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
This commit is contained in:
Regen
2016-03-17 19:29:02 +01:00
parent 488a03ebf4
commit 24addbd6ce
+5
View File
@@ -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("<span class='danger'>[owner] clutches their chest and gasps!</span>","<span class='userdanger'>You clutch your chest in pain!</span>")
/obj/item/organ/proc/remove(var/mob/living/user,special = 0)
if(!istype(owner))
return