From 24addbd6cea6e7d6f8a4743441f767cb05c2f3d9 Mon Sep 17 00:00:00 2001 From: Regen Date: Thu, 17 Mar 2016 19:29:02 +0100 Subject: [PATCH] Makes robotic hearts fail when EMP'd People with robotic hearts will now get a heart attack if subject to an EMP Engineers stay away from the singularity --- code/modules/surgery/organs/organ.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm index e3b7f49abc4..b4b20f0bec2 100644 --- a/code/modules/surgery/organs/organ.dm +++ b/code/modules/surgery/organs/organ.dm @@ -256,6 +256,11 @@ var/list/organ_cache = list() if(3.0) take_damage(0,3) +/obj/item/organ/internal/heart/emp_act(intensity) + if(owner && robotic) + owner.heart_attack = 1 + owner.visible_message("[owner] clutches their chest and gasps!","You clutch your chest in pain!") + /obj/item/organ/proc/remove(var/mob/living/user,special = 0) if(!istype(owner)) return