mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Signaller frequency/code cloning with another (#31983)
* Signaller frequency/code cloning with another * Extra feedback * Compatiability Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -50,6 +50,15 @@
|
||||
I.frequency = src.frequency
|
||||
user.u_equip(src,0)
|
||||
qdel(src)
|
||||
|
||||
if(issignaler(W))
|
||||
var/obj/item/device/assembly/signaler/signaler2 = W
|
||||
if(secured && signaler2.secured)
|
||||
code = signaler2.code
|
||||
set_frequency(signaler2.frequency)
|
||||
to_chat(user, "<span class='notice'>You transfer the frequency and code of \the [signaler2.name] to \the [name].</span>")
|
||||
else
|
||||
to_chat(user, "<span class='warning'>Re-secure the signaler first!</span>")
|
||||
|
||||
/obj/item/device/assembly/signaler/activate()
|
||||
if(cooldown > 0)
|
||||
|
||||
Reference in New Issue
Block a user