Merge pull request #4474 from Tastyfish/reagent-air

Standardizes behavior of a few reagents
This commit is contained in:
Fox McCloud
2016-05-21 20:37:20 -04:00
7 changed files with 18 additions and 27 deletions
@@ -201,6 +201,16 @@
reagent_tag = PROCESS_ORG
butt_sprite = "skrell"
has_organ = list(
"heart" = /obj/item/organ/internal/heart,
"lungs" = /obj/item/organ/internal/lungs,
"liver" = /obj/item/organ/internal/liver/skrell,
"kidneys" = /obj/item/organ/internal/kidneys,
"brain" = /obj/item/organ/internal/brain,
"appendix" = /obj/item/organ/internal/appendix,
"eyes" = /obj/item/organ/internal/eyes,
)
suicide_messages = list(
"is attempting to bite their tongue off!",
"is jamming their thumbs into their eye sockets!",
@@ -63,13 +63,11 @@
return
/datum/reagent/proc/on_mob_life(var/mob/living/M as mob, var/alien)
if(!istype(M, /mob/living)) // YOU'RE A FUCKING RETARD NEO WHY CAN'T YOU JUST FIX THE PROBLEM ON THE REAGENT - Iamgoofball
return //Noticed runtime errors from facid trying to damage ghosts, this should fix. --NEO
// Certain elements in too large amounts cause side-effects
if(!istype(M))
return
if(holder)
holder.remove_reagent(src.id, metabolization_rate) //By default it slowly disappears.
holder.remove_reagent(id, metabolization_rate) //By default it slowly disappears.
current_cycle++
return
// Called when two reagents of the same are mixing.
/datum/reagent/proc/on_merge(var/data)
@@ -36,8 +36,7 @@
if(ishuman(M) && !M.isSynthetic())
var/mob/living/carbon/human/H = M
L = H.get_int_organ(/obj/item/organ/internal/liver)
if(!L || (istype(L) && L.dna.species in list("Skrell", "Neara")))
d*=5
d *= L ? L.alcohol_intensity : 5
M.dizziness += dizzy_adj.
if(d >= slur_start && d < pass_out)
@@ -42,16 +42,6 @@
reagent_state = GAS
color = "#808080" // rgb: 128, 128, 128
/datum/reagent/oxygen/on_mob_life(var/mob/living/M as mob, var/alien)
if(M.stat == 2) return
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.species && (H.species.name == "Vox" || H.species.name =="Vox Armalis"))
M.adjustToxLoss(REAGENTS_METABOLISM)
holder.remove_reagent(src.id, REAGENTS_METABOLISM) //By default it slowly disappears.
return
..()
/datum/reagent/nitrogen
name = "Nitrogen"
@@ -60,16 +50,6 @@
reagent_state = GAS
color = "#808080" // rgb: 128, 128, 128
/datum/reagent/nitrogen/on_mob_life(var/mob/living/M as mob, var/alien)
if(M.stat == 2) return
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(H.species && (H.species.name == "Vox" || H.species.name =="Vox Armalis"))
M.adjustOxyLoss(-2*REM)
holder.remove_reagent(src.id, REAGENTS_METABOLISM) //By default it slowly disappears.
return
..()
/datum/reagent/hydrogen
name = "Hydrogen"
@@ -292,6 +292,7 @@
organ_tag = "liver"
parent_organ = "groin"
slot = "liver"
var/alcohol_intensity = 1
/obj/item/organ/internal/liver/process()
@@ -0,0 +1,2 @@
/obj/item/organ/internal/liver/skrell
alcohol_intensity = 5
+1
View File
@@ -2008,6 +2008,7 @@
#include "code\modules\surgery\organs\subtypes\machine.dm"
#include "code\modules\surgery\organs\subtypes\misc.dm"
#include "code\modules\surgery\organs\subtypes\nucleation.dm"
#include "code\modules\surgery\organs\subtypes\skrell.dm"
#include "code\modules\surgery\organs\subtypes\standard.dm"
#include "code\modules\surgery\organs\subtypes\unbreakable.dm"
#include "code\modules\surgery\organs\subtypes\wryn.dm"