Skip to content

Commit

Permalink
Signaler QoL Improvement - Method to copy setup from one signaler to …
Browse files Browse the repository at this point in the history
…another

* Just tap them together and settings are copied.
* Code copied from tgstation/tgstation#23340
  • Loading branch information
Leshana committed Feb 5, 2017
1 parent f59d8d6 commit f0945e3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion code/modules/assembly/signaler.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/obj/item/device/assembly/signaler
name = "remote signaling device"
desc = "Used to remotely activate devices."
desc = "Used to remotely activate devices. Tap against another secured signaler to transfer configuration."
icon_state = "signaller"
item_state = "signaler"
origin_tech = list(TECH_MAGNET = 1)
Expand Down Expand Up @@ -98,6 +98,15 @@

return

attackby(obj/item/weapon/W, mob/user, params)
if(issignaler(W))
var/obj/item/device/assembly/signaler/signaler2 = W
if(secured && signaler2.secured)
code = signaler2.code
frequency = signaler2.frequency
user << "You transfer the frequency and code of [signaler2] to [src]"
else
..()

proc/signal()
if(!radio_connection) return
Expand Down

0 comments on commit f0945e3

Please sign in to comment.