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)

This commit is contained in:
nemvar
2019-07-21 16:10:01 -07:00
committed by Rob Bailey
parent e63c9dd9fa
commit fa4fa7c186
+8 -6
View File
@@ -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)