From 7821fb80321ef2ee544d97f173c676999ecc759b Mon Sep 17 00:00:00 2001 From: ExcessiveUseOfCobblestone Date: Sun, 29 Jan 2017 16:09:02 -0500 Subject: [PATCH] Signaler QoL (#23340) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://tgstation13.org/phpBB/viewtopic.php?f=9&t=30&p=247728#p247542 THIS KILLS TACTICAL SIGNALERS 🆑 Cobby add: You can now copy one signaler's settings to another by hitting it on the other signaler. [Credit to Weepo for the idea] /🆑 2557 > using github application 2557 > testing your code if someone could make that changelog simpler please hmu In case someone was confused on the function. You have Signaler1 and Signaler2 Signaler 1 is in active hand clicking signaler2 with hand+signaler1 edits Signaler2's code and frequency --- code/modules/assembly/signaler.dm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm index 5bceadfd906..02ad14d3b3f 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -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. Allows for syncing when using a secure signaler on another." icon_state = "signaller" item_state = "signaler" materials = list(MAT_METAL=400, MAT_GLASS=120) @@ -96,7 +96,16 @@ Code: return - +/obj/item/device/assembly/signaler/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 \the [signaler2.name] to \the [name]" + else + ..() + /obj/item/device/assembly/signaler/proc/signal() if(!radio_connection) return