Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e3960d2

Browse files
e
1 parent d04c9f6 commit e3960d2

File tree

2 files changed

+7
-2
lines changed
  • code/modules
    • atmospherics/machinery/components/unary_devices
    • mob/living/carbon

2 files changed

+7
-2
lines changed

code/modules/atmospherics/machinery/components/unary_devices/cryo.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@
321321
gas_reagent.reaction_mob(mob_occupant, VAPOR|BREATH, 2, permeability = 1)
322322
air1.adjust_moles(gas_id, -0.1 / efficiency)
323323
qdel(gas_reagent)
324+
if(ishuman(occupant) && stat == DEAD && occupant.reagents.has_reagent(/datum/reagent/gas/healium)) // attempts to cycle healium in the body to a reviable state
325+
var/mob/living/carbon/human/H = occupant
326+
if(!H.can_defib(FALSE))
327+
H.reagents.del_reagent(/datum/reagent/gas/healium)
324328

325329
return TRUE
326330

code/modules/mob/living/carbon/carbon.dm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,9 @@
874874
/mob/living/carbon/proc/can_defib(careAboutGhost = TRUE) //yogs start
875875
if(suiciding || hellbound || HAS_TRAIT(src, TRAIT_HUSK)) //can't revive
876876
return FALSE
877-
if((world.time - timeofdeath) > DEFIB_TIME_LIMIT) //too late
878-
return FALSE
877+
if(!reagents.has_reagent(/datum/reagent/gas/healium))
878+
if((world.time - timeofdeath) > DEFIB_TIME_LIMIT) //too late
879+
return FALSE
879880
if((getBruteLoss() >= MAX_REVIVE_BRUTE_DAMAGE) || (getFireLoss() >= MAX_REVIVE_FIRE_DAMAGE) || !can_be_revived()) //too damaged
880881
return FALSE
881882
if(!getorgan(/obj/item/organ/heart)) //what are we even shocking

0 commit comments

Comments
 (0)