more life changes to make stasis work

This commit is contained in:
shellspeed1
2019-09-27 15:46:06 -07:00
parent 0dd578b08a
commit 4eb7dbf9ac
+17 -16
View File
@@ -9,28 +9,29 @@
stamdamageoverlaytemp = 0
update_damage_hud()
if(stat != DEAD) //Reagent processing needs to come before breathing, to prevent edge cases.
handle_organs()
if(!IsInStasis())
if(stat != DEAD) //Reagent processing needs to come before breathing, to prevent edge cases.
handle_organs()
. = ..()
. = ..()
if (QDELETED(src))
return
if (QDELETED(src))
return
if(.) //not dead
handle_blood()
if(.) //not dead
handle_blood()
if(stat != DEAD)
var/bprv = handle_bodyparts()
if(bprv & BODYPART_LIFE_UPDATE_HEALTH)
updatehealth()
update_stamina()
if(stat != DEAD)
var/bprv = handle_bodyparts()
if(bprv & BODYPART_LIFE_UPDATE_HEALTH)
updatehealth()
update_stamina()
if(stat != DEAD)
handle_brain_damage()
if(stat != DEAD)
handle_brain_damage()
if(stat != DEAD)
handle_liver()
if(stat != DEAD)
handle_liver()
if(stat == DEAD)
stop_sound_channel(CHANNEL_HEARTBEAT)