Adds emp effect to detectives revolver (#18507)

* Adds emp effect to detectives revolver

* Update code/modules/projectiles/guns/energy/special.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2022-07-24 17:51:08 +01:00
committed by GitHub
co-authored by Sirryan2002
parent 6ab9a133ba
commit cfabb34b49
2 changed files with 24 additions and 5 deletions
@@ -361,6 +361,13 @@
if(istype(I, /obj/item/gun/energy/detective))
link_gun(I.UID())
/obj/item/pinpointer/crew/emp_act(severity)
var/obj/item/gun/energy/detective/D = locateUID(linked_gun_UID)
if(!D)
return
D.unlink()
atom_say("EMP detected. Connection to revolver tracking system lost.")
/obj/item/pinpointer/crew/proc/link_gun(gun_UID)
var/obj/item/gun/energy/detective/D = locateUID(gun_UID)
if(!D)