mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Signaler QoL (#23340)
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
This commit is contained in:
committed by
oranges
parent
74f0214a14
commit
7821fb8032
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user