Ports mod link system and scryers (#28479)

* commiting

* and this

* the rest of the fucking owl

* name moment

* in my defense it printed

* Apply suggestions from code review

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

* woe old code removey

* and tgui / comment

* Apply suggestions from code review

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2025-04-24 14:52:45 +00:00
committed by GitHub
co-authored by PollardTheDragon Burzah
parent e6ad589b41
commit fddf9be567
23 changed files with 773 additions and 25 deletions
+8
View File
@@ -13,6 +13,9 @@
data["malfunctioning"] = malfunctioning
data["open"] = open
data["active"] = active
data["link_id"] = mod_link.id
data["link_freq"] = mod_link.frequency
data["link_call"] = mod_link.get_other()?.id
data["locked"] = locked
data["complexity"] = complexity
data["selected_module"] = selected_module?.name
@@ -65,6 +68,11 @@
to_chat(usr, "<span class='warning'>ERROR!</span>")
return
switch(action)
if("call")
if(!mod_link.link_call)
call_link(ui.user, mod_link)
else
mod_link.end_call()
if("lock")
locked = !locked
to_chat(usr, "<span class='notice'>ID [locked ? "locked" : "unlocked"].</span>")