emp'd wire interface implants no longer hard stun (#29870)

* emp'd wire interface implants no longer hard stun

* Update code/datums/wires/wires.dm

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2025-08-07 16:46:15 +00:00
committed by GitHub
co-authored by PollardTheDragon
parent 85c92cde07
commit 3184299587
4 changed files with 20 additions and 2 deletions
@@ -301,6 +301,13 @@
REMOVE_TRAIT(M, TRAIT_SHOW_WIRE_INFO, "show_wire_info[UID()]")
return ..()
/obj/item/organ/internal/cyberimp/brain/wire_interface/emp_act(severity)
if(!owner || emp_proof)
return
var/time_of_emp = world.time // This lets us be emp'd multiple times, applying the trait multiple times, extending the cooldown
ADD_TRAIT(owner, TRAIT_WIRE_BLIND, "emp'd_at_[time_of_emp]")
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(callback_remove_trait), owner, TRAIT_WIRE_BLIND, "emp'd_at_[time_of_emp]"), (2 MINUTES / severity))
/obj/item/organ/internal/cyberimp/brain/wire_interface/hardened
name = "Hardened Wire interface implant"
desc = "This wire interface implant is actually wireless, to avoid issues with electromagnetic pulses."