Merge pull request #1134 from CHOMPStation2/cadyn-patch-5

Delete defib timer
This commit is contained in:
cadyn
2021-01-24 06:52:37 -08:00
committed by GitHub
2 changed files with 3 additions and 5 deletions

View File

@@ -288,7 +288,7 @@
/obj/item/weapon/shockpaddles/proc/can_revive(mob/living/carbon/human/H) //This is checked right before attempting to revive
var/obj/item/organ/internal/brain/brain = H.internal_organs_by_name[O_BRAIN]
if(H.should_have_organ(O_BRAIN) && (!brain || brain.defib_timer <= 0 ) )
if(H.should_have_organ(O_BRAIN) && (!brain) ) //CHOMPEdit Defib Timer Removal
return "buzzes, \"Resuscitation failed - Excessive neural degeneration. Further attempts futile.\""
H.updatehealth()

View File

@@ -145,8 +145,7 @@ var/list/organ_cache = list()
STOP_PROCESSING(SSobj, src)
handle_organ_mod_special(TRUE)
if(owner && vital)
owner.can_defib = 0
owner.death()
owner.death() //CHOMPEdit Defib Timer Removal
/obj/item/organ/proc/adjust_germ_level(var/amount) // Unless you're setting germ level directly to 0, use this proc instead
germ_level = CLAMP(germ_level + amount, 0, INFECTION_LEVEL_MAX)
@@ -405,8 +404,7 @@ var/list/organ_cache = list()
if(user)
add_attack_logs(user, owner, "Removed vital organ [src.name]")
if(owner.stat != DEAD)
owner.can_defib = 0
owner.death()
owner.death() //CHOMPEdit Defib Timer Removal
handle_organ_mod_special(TRUE)