[MIRROR] Fixes runtimes (#11421)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-15 21:54:38 +02:00
committed by GitHub
co-authored by Cameron Lennox Kashargul
parent 1394e54c33
commit ece6e8b28a
9 changed files with 42 additions and 42 deletions
+3 -2
View File
@@ -292,8 +292,9 @@
if(H.should_have_organ(O_BRAIN))
if(!brain)
return "buzzes, \"Resuscitation failed - Patient lacks a brain. Further attempts futile without replacement.\""
if(brain.defib_timer <= 0)
return "buzzes, \"Resuscitation failed - Patient's brain has naturally degraded past a recoverable state. Further attempts futile.\""
else if(istype(brain, /obj/item/organ/internal/brain)) //Some species have weird 'brains' that aren't technically brains. Those don't have defib timers.
if(brain.defib_timer <= 0)
return "buzzes, \"Resuscitation failed - Patient's brain has naturally degraded past a recoverable state. Further attempts futile.\""
H.updatehealth()