Some defib adjustments (#19075)

This commit is contained in:
Cameron Lennox
2026-01-21 09:36:18 -05:00
committed by GitHub
parent 5fa52b1de9
commit 57ba97535e
@@ -566,6 +566,10 @@
// Check for sanity
if(!istype(reviver,/mob/living/carbon/human))
return
if(isSynthetic(src))
to_chat(reviver, span_danger("You push on [src]'s chest and realize you're shoving down on metal! This isn't going to work!"))
return //Lets you know IMMEDIATELY that this is a robot. Do not pass go. Don't do damage or pump blood.
//The below is what actually allows metabolism.
add_modifier(/datum/modifier/bloodpump_corpse/cpr, 2 SECONDS)
@@ -583,6 +587,9 @@
// standard CPR ahead, adjust oxy and refresh health
if(health > get_crit_point() && prob(10))
if(species.flags & NO_DEFIB) //TODO: Changee the NO_DEFIB species flag into a HAS_TRAIT() sometime.
to_chat(reviver, span_danger("You get the feeling [src] can't be revived by CPR alone."))
return // Handle no-defib species flag.
if(get_xenochimera_component())
visible_message(span_danger("\The [src]'s body twitches and gurgles a bit."))
to_chat(reviver, span_danger("You get the feeling [src] can't be revived by CPR alone."))
@@ -618,7 +625,9 @@
failed_last_breath = 0 //So mobs that died of oxyloss don't revive and have perpetual out of breath.
reload_fullscreen()
emote("gasp")
var/obj/item/organ/internal/lungs/lungs = internal_organs_by_name[O_LUNGS]
if(lungs)
emote("gasp")
Weaken(rand(10,25))
updatehealth()
//SShaunting.influence(HAUNTING_RESLEEVE) // Used for the Haunting module downstream. Not implemented upstream.
@@ -637,4 +646,3 @@
else if(health > -getMaxHealth())
adjustOxyLoss(-(min(getOxyLoss(), 5)))
updatehealth()
to_chat(src, span_notice("You feel a breath of fresh air enter your lungs. It feels good."))