mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
co-authored by
Sirryan2002
parent
6ab9a133ba
commit
cfabb34b49
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user