mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Stopped heart is also crit (while not a "disease" even technically) (#14937)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user