mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user