unemps ur defib (#18021)

This commit is contained in:
Mitchs98
2022-06-22 00:55:59 -05:00
committed by GitHub
parent 1c2cec06d1
commit 2eae437689
@@ -24,18 +24,6 @@
if(user)
to_chat(user, "<span class='warning'>You restore the safeties on [src]</span>")
/obj/item/handheld_defibrillator/emp_act(severity)
if(emagged)
emagged = FALSE
desc = "Used to restart stopped hearts."
visible_message("<span class='notice'>[src] beeps: Safety protocols enabled!</span>")
playsound(get_turf(src), 'sound/machines/defib_saftyon.ogg', 50, 0)
else
emagged = TRUE
desc += " The screen only shows the word KILL flashing over and over."
visible_message("<span class='notice'>[src] beeps: Safety protocols disabled!</span>")
playsound(get_turf(src), 'sound/machines/defib_saftyoff.ogg', 50, 0)
/obj/item/handheld_defibrillator/attack(mob/living/carbon/human/H, mob/user)
if(!istype(H))
return ..()