Update grey translator implant to have a proper EMP effect (#15323)

* Add a proper emp_act to translator implant

Getting EMP'd as a grey with a translator now causes 20 brain damage and shuts down the translator for a minute.

* Remove brain damage
This commit is contained in:
datlo
2021-01-24 13:34:49 +00:00
committed by GitHub
parent f1ef0f99a3
commit 9e4061a796
@@ -235,12 +235,22 @@
/obj/item/organ/internal/cyberimp/brain/speech_translator/emp_act(severity)
if(emp_proof)
return
if(owner && active)
to_chat(owner, "<span class='notice'>Your translator's safeties trigger, it is now turned off.</span>")
if(owner && active && !crit_fail)
to_chat(owner, "<span class='danger'>Your translator implant shuts down with a harsh buzz.</span>")
addtimer(CALLBACK(src, .proc/reboot), 60 SECONDS)
crit_fail = TRUE
active = FALSE
/obj/item/organ/internal/cyberimp/brain/speech_translator/proc/reboot()
crit_fail = FALSE
if(owner)
to_chat(owner, "<span class='notice'>Your translator implant beeps.</span>")
SEND_SOUND(owner, 'sound/machines/twobeep.ogg')
/obj/item/organ/internal/cyberimp/brain/speech_translator/ui_action_click()
if(owner && !active)
if(owner && crit_fail)
to_chat(owner, "<span class='warning'>The implant is still rebooting.</span>")
else if(owner && !active)
to_chat(owner, "<span class='notice'>You turn on your translator implant.</span>")
active = TRUE
else if(owner && active)