mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Added a new shadow person mutant race sprited by Majorsephiroth. If it is too bright, they take damage, dark enough, they heal.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5147 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -773,6 +773,18 @@
|
||||
heal_overall_damage(1,1)
|
||||
adjustToxLoss(-1)
|
||||
adjustOxyLoss(-1)
|
||||
if(dna && dna.mutantrace == "shadow")
|
||||
var/light_amount = 0
|
||||
if(isturf(loc))
|
||||
var/turf/T = loc
|
||||
var/area/A = T.loc
|
||||
if(A)
|
||||
if(A.lighting_use_dynamic) light_amount = T.lighting_lumcount
|
||||
else light_amount = 10
|
||||
if(light_amount > 2) //if there's enough light, start dying
|
||||
take_overall_damage(2,1)
|
||||
else if (light_amount < 2) //heal in the dark
|
||||
heal_overall_damage(1,1)
|
||||
|
||||
//The fucking FAT mutation is the dumbest shit ever. It makes the code so difficult to work with
|
||||
if(FAT in mutations)
|
||||
|
||||
@@ -323,7 +323,7 @@ Please contact me on #coderbus IRC. ~Carn x
|
||||
|
||||
if(dna)
|
||||
switch(dna.mutantrace)
|
||||
if("lizard","golem","metroid")
|
||||
if("lizard","golem","metroid","shadow")
|
||||
overlays_lying[MUTANTRACE_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "[dna.mutantrace][fat]_l")
|
||||
overlays_standing[MUTANTRACE_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "[dna.mutantrace][fat]_s")
|
||||
if("plant")
|
||||
|
||||
Reference in New Issue
Block a user