Added an alien var to metabolize procs for humans and monkeys to tie into alien reagent reactions.

This commit is contained in:
Zuhayr
2014-01-08 10:27:21 +10:30
parent 049501a898
commit c8b595be95
3 changed files with 13 additions and 3 deletions

View File

@@ -866,7 +866,15 @@
*/
proc/handle_chemicals_in_body()
if(reagents) reagents.metabolize(src)
if(reagents)
var/alien //Not the best way to handle it, but neater than checking this for every single reagent proc.
if(species && species.name == "Diona")
alien = 1
else if(species && species.name == "Vox")
alien = 2
reagents.metabolize(src,alien)
var/total_plasmaloss = 0
for(var/obj/item/I in src)
if(I.contaminated)

View File

@@ -440,7 +440,7 @@
proc/handle_chemicals_in_body()
if(istype(src,/mob/living/carbon/monkey/diona)) //Filthy check. Dionaea nymphs need light or they get sad.
if(alien) //Diona nymphs are the only alien monkey currently.
var/light_amount = 0 //how much light there is in the place, affects receiving nutrition and healing
if(isturf(loc)) //else, there's considered to be no light
var/turf/T = loc
@@ -459,7 +459,7 @@
adjustToxLoss(-1)
adjustOxyLoss(-1)
if(reagents) reagents.metabolize(src)
if(reagents) reagents.metabolize(src,alien)
if (drowsyness)
drowsyness--

View File

@@ -14,6 +14,7 @@
//var/uni_append = "12C4E2" // Small appearance modifier for different species.
var/list/uni_append = list(0x12C,0x4E2) // Same as above for DNA2.
var/update_muts = 1 // Monkey gene must be set at start.
var/alien //Used for reagent metabolism.
/mob/living/carbon/monkey/tajara
name = "farwa"
@@ -97,6 +98,7 @@
/mob/living/carbon/monkey/diona/New()
..()
alien = 1
gender = NEUTER
dna.mutantrace = "plant"
greaterform = "Diona"