From 4eb7dbf9ace7163420620f18b6d3955b1bbdcf14 Mon Sep 17 00:00:00 2001 From: shellspeed1 <46614774+shellspeed1@users.noreply.github.com> Date: Fri, 27 Sep 2019 15:46:06 -0700 Subject: [PATCH] more life changes to make stasis work --- code/modules/mob/living/carbon/life.dm | 33 +++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index c1ff5e1b..2ef5f2f7 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -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)