From fa4fa7c186fc751dfbdaaf2c9112c039bf974adb Mon Sep 17 00:00:00 2001 From: nemvar <47324920+nemvar@users.noreply.github.com> Date: Mon, 22 Jul 2019 01:10:01 +0200 Subject: [PATCH] I swear, this is the third time I fixes an issue related to this proc. How hard can it be to get this right? (#45293) --- code/modules/mob/living/carbon/life.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index c31454309a3..8c20d880316 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -39,7 +39,7 @@ if(stat == DEAD) stop_sound_channel(CHANNEL_HEARTBEAT) LoadComponent(/datum/component/rot/corpse) - + check_cremation() //Updates the number of stored chemicals for powers @@ -579,14 +579,16 @@ GLOBAL_LIST_INIT(ballmer_windows_me_msg, list("Yo man, what if, we like, uh, put //LIVER// ///////// +///Decides if the liver is failing or not. /mob/living/carbon/proc/handle_liver() + if(!dna) + return var/obj/item/organ/liver/liver = getorganslot(ORGAN_SLOT_LIVER) if(liver) - if(liver.damage >= liver.maxHealth) - liver.failing = TRUE - liver_failure() - else - liver_failure() + if(liver.damage < liver.maxHealth) + return + liver.failing = TRUE + liver_failure() /mob/living/carbon/proc/undergoing_liver_failure() var/obj/item/organ/liver/liver = getorganslot(ORGAN_SLOT_LIVER)