Stopped heart is also crit (while not a "disease" even technically) (#14937)

This commit is contained in:
moxian
2020-11-19 15:29:32 +00:00
committed by GitHub
parent 37225485c9
commit 5020616268
+8
View File
@@ -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)