This commit is contained in:
Regen
2016-03-17 21:20:01 +01:00
parent e00a15b579
commit 509683af8c
+20 -1
View File
@@ -256,10 +256,29 @@ var/list/organ_cache = list()
if(3.0)
take_damage(3,0)
/obj/item/organ/internal/emp_act(severity)
if(!robotic)
return
if(ORGAN_ROBOT)
switch (severity)
if (1.0)
take_damage(20,1)
return
if (2.0)
take_damage(7,1)
return
if(3.0)
take_damage(3,1)
else if(ORGAN_ASSISTED)
take_damage(11,1)
/obj/item/organ/internal/heart/emp_act(intensity)
if(owner && robotic)
if(owner && robotic == 2)
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>")
return
else if(owner && robotic == 1)
take_damage(11,1)
/obj/item/organ/proc/remove(var/mob/living/user,special = 0)
if(!istype(owner))