Fixes some cases where fakedeath doesn't work. (#16404)

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-05-30 16:14:31 +00:00
committed by GitHub
co-authored by Matt Atlas
parent f59556ffdf
commit b13ba13521
5 changed files with 50 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
/mob/living/carbon/human/proc/get_blood_oxygenation()
var/blood_volume = get_blood_circulation()
if(is_asystole()) // Heart is missing or isn't beating and we're not breathing (hardcrit)
if(is_asystole() || (status_flags & FAKEDEATH)) // Heart is missing or isn't beating and we're not breathing (hardcrit)
return min(blood_volume, BLOOD_VOLUME_SURVIVE)
if(!need_breathe())
+3
View File
@@ -340,6 +340,9 @@
if(owner.failed_last_breath)
return "no respiration"
if(owner.status_flags & FAKEDEATH)
return "no respiration"
if(BP_IS_ROBOTIC(src))
if(is_bruised())
return "malfunctioning fans"