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:
kane-f
2022-02-06 04:25:57 +00:00
committed by GitHub
parent bd8c45795b
commit f9e4493c37

View File

@@ -51,6 +51,15 @@
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)
return 0