From 8f548fcda9c3dd996db5a888bdb78e2cf2de62f4 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 24 Jul 2026 15:39:48 -0400 Subject: [PATCH] Migrate encryption key to the new attack chain. (#32269) * Migrate encryption key 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 --------- Signed-off-by: Alan Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> --- code/datums/outfits/outfit_debug.dm | 7 +++++-- code/game/objects/items/devices/radio/encryptionkey.dm | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/datums/outfits/outfit_debug.dm b/code/datums/outfits/outfit_debug.dm index 69c4278ad97..2997d21ebe6 100644 --- a/code/datums/outfits/outfit_debug.dm +++ b/code/datums/outfits/outfit_debug.dm @@ -61,9 +61,12 @@ for(var/channel in SSradio.radiochannels) channels[channel] = 1 // yeah, all channels, sure, probably fine -/obj/item/encryptionkey/syndicate/all_channels/attack_self__legacy__attackchain(mob/user, pickupfireoverride) +/obj/item/encryptionkey/syndicate/all_channels/activate_self(mob/user) + if(..()) + return ITEM_INTERACT_COMPLETE change_voice = !change_voice - to_chat(user, "You switch [src] to [change_voice ? "" : "not "]change your voice on syndicate communications.") + to_chat(user, SPAN_NOTICE("You switch [src] to [change_voice ? "" : "not "]change your voice on syndicate communications.")) + return ITEM_INTERACT_COMPLETE /obj/item/encryptionkey/syndicate/all_channels/AltClick(mob/user) var/new_name = tgui_input_text(user, "Enter new fake agent name...", "New name", max_length = MAX_NAME_LEN) diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm index dc399cc24fb..5dfb3b64761 100644 --- a/code/game/objects/items/devices/radio/encryptionkey.dm +++ b/code/game/objects/items/devices/radio/encryptionkey.dm @@ -10,6 +10,7 @@ var/syndie = FALSE var/change_voice = FALSE var/list/channels = list() + new_attack_chain = TRUE /obj/item/encryptionkey/syndicate name = "syndicate encryption key"