Migrate radios to the new attack chain. (#32270)

* Migrate radios to the new attack chain.

* Apply suggestion from CRUNCH review.

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

* Make code reachable.

* Migrate uplinks themselves too.

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
Alan
2026-07-24 19:39:28 +00:00
committed by GitHub
co-authored by CRUNCH
parent 43a254b002
commit d93c05a145
5 changed files with 79 additions and 66 deletions
@@ -1076,7 +1076,7 @@ GLOBAL_LIST_INIT(robot_verbs_default, list(
if(istype(used, /obj/item/encryptionkey) && opened)
if(radio)
to_chat(user, SPAN_NOTICE("You install [used] into [src]'s radio."))
radio.attackby__legacy__attackchain(used, user)
radio.item_interaction(user, used)
else
to_chat(user, SPAN_WARNING("[src] has no radio!"))
return ITEM_INTERACT_COMPLETE
@@ -1381,7 +1381,10 @@ GLOBAL_LIST_INIT(robot_verbs_default, list(
if(href_list["mod"])
var/obj/item/O = locate(href_list["mod"])
if(istype(O) && (O.loc == src))
O.attack_self__legacy__attackchain(src)
if(O.new_attack_chain)
O.activate_self(src)
else
O.attack_self__legacy__attackchain(src)
return TRUE
if(href_list["act"])