From cc85215dd9a40001f00bd248a237b322a4584948 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 24 Jul 2026 15:41:17 -0400 Subject: [PATCH] Migrate personal AI device to the new attack chain. (#32258) --- code/game/objects/items/devices/paicard.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/devices/paicard.dm b/code/game/objects/items/devices/paicard.dm index de4090187af..479155eb9f9 100644 --- a/code/game/objects/items/devices/paicard.dm +++ b/code/game/objects/items/devices/paicard.dm @@ -17,6 +17,7 @@ var/list/faction = list("neutral") // The factions the pAI will inherit from the card var/current_emotion = 1 resistance_flags = FIRE_PROOF | ACID_PROOF | INDESTRUCTIBLE + new_attack_chain = TRUE /obj/item/paicard/syndicate name = "syndicate personal AI device" @@ -33,10 +34,11 @@ QDEL_NULL(radio) return ..() -/obj/item/paicard/attack_self__legacy__attackchain(mob/user) +/obj/item/paicard/activate_self(mob/user) if(!in_range(src, user)) - return + return ..() user.set_machine(src) + add_fingerprint(user) var/dat = {" @@ -227,7 +229,7 @@ "} user << browse(dat, "window=paicard") onclose(user, "paicard") - return + return ITEM_INTERACT_COMPLETE /obj/item/paicard/Topic(href, href_list) @@ -290,7 +292,7 @@ to_chat(pai, "Your supplemental directives have been updated. Your new directives are:") to_chat(pai, "Prime Directive:
[pai.pai_law0]") to_chat(pai, "Supplemental Directives:
[pai.pai_laws]") - attack_self__legacy__attackchain(usr) + activate_self(usr) // WIRE_SIGNAL = 1 // WIRE_RECEIVE = 2