From 50206162686f63cd0848b6dcb2f6d7990bf0f697 Mon Sep 17 00:00:00 2001 From: moxian Date: Thu, 19 Nov 2020 07:29:32 -0800 Subject: [PATCH] Stopped heart is also crit (while not a "disease" even technically) (#14937) --- code/game/data_huds.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/game/data_huds.dm b/code/game/data_huds.dm index c79ca11bfab..121838ee304 100644 --- a/code/game/data_huds.dm +++ b/code/game/data_huds.dm @@ -71,6 +71,7 @@ //HELPERS /// Whether the carbon mob is currently in crit. +// Even though "crit" does not realistically happen for non-humans.. /mob/living/carbon/proc/is_in_crit() for(var/thing in viruses) var/datum/disease/D = thing @@ -78,6 +79,13 @@ return TRUE return FALSE +/mob/living/carbon/human/is_in_crit() + if(..()) + return TRUE + if(undergoing_cardiac_arrest()) + return TRUE + return FALSE + /// Whether a virus worthy displaying on the HUD is present. /mob/living/carbon/proc/has_virus() for(var/thing in viruses)