Remote signaler tweaks (#22160)

* remmove signaler tweaks

* Update code/modules/assembly/signaler.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Reviews

* Contra review

* Update code/modules/assembly/signaler.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Henri215
2023-09-07 07:06:08 -03:00
committed by GitHub
parent 31822a1831
commit b8b71043f8
+16 -2
View File
@@ -2,10 +2,10 @@ GLOBAL_LIST_EMPTY(remote_signalers)
/obj/item/assembly/signaler
name = "remote signaling device"
desc = "Used to remotely activate devices."
desc = "Used to remotely activate devices. Allows for syncing when using a signaler on another."
icon_state = "signaller"
item_state = "signaler"
materials = list(MAT_METAL=400, MAT_GLASS=120)
materials = list(MAT_METAL = 400, MAT_GLASS = 120)
origin_tech = "magnets=1;bluespace=1"
wires = WIRE_RECEIVE | WIRE_PULSE | WIRE_RADIO_PULSE | WIRE_RADIO_RECEIVE
secured = TRUE
@@ -28,6 +28,20 @@ GLOBAL_LIST_EMPTY(remote_signalers)
/obj/item/assembly/signaler/examine(mob/user)
. = ..()
. += "The power light is [receiving ? "on" : "off"]"
. += "<span class='notice'>Alt+Click to send a signal.</span>"
/obj/item/assembly/signaler/AltClick(mob/user)
to_chat(user, "<span class='notice'>You activate [src].</span>")
activate()
/obj/item/assembly/signaler/attackby(obj/item/W, mob/user, params)
if(issignaler(W))
var/obj/item/assembly/signaler/signaler2 = W
if(secured && signaler2.secured)
code = signaler2.code
frequency = signaler2.frequency
to_chat(user, "You transfer the frequency and code to [src].")
return ..()
/// Called from activate(), actually invokes the signal on other signallers in the world
/obj/item/assembly/signaler/proc/signal()