From f16dc3268618e71d8db51a8163f678bffb431011 Mon Sep 17 00:00:00 2001 From: HugoLuman Date: Sun, 24 Apr 2016 16:00:28 -0700 Subject: [PATCH] Fixes IPC deathgasp spam Adds a brain damage threshold to the can_revive_by_healing proc to prevent braindead IPCs from continually dying and reviving. Signed-off-by: HugoLuman --- code/modules/mob/living/carbon/human/human_damage.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index c0e58942cfc..cf47ee3b5d0 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -20,7 +20,7 @@ if(species.can_revive_by_healing) var/obj/item/organ/internal/brain/B = get_int_organ(/obj/item/organ/internal/brain) if(B) - if((health >= (config.health_threshold_dead + config.health_threshold_crit) * 0.5) && stat == DEAD) + if((health >= (config.health_threshold_dead + config.health_threshold_crit) * 0.5) && stat == DEAD && getBrainLoss()<120) update_revive() if(stat == CONSCIOUS && (src in dead_mob_list)) //Defib fix update_revive()