Skip to content

Commit

Permalink
Signaler QoL (#23340)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ExcessiveUseOfCobblestone authored and optimumtact committed Jan 29, 2017
1 parent 74f0214 commit 7821fb8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions 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. Allows for syncing when using a secure signaler on another."
icon_state = "signaller"
item_state = "signaler"
materials = list(MAT_METAL=400, MAT_GLASS=120)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7821fb8

Please sign in to comment.