From a26abf940286c3956a055873747b1dd74dda3eb5 Mon Sep 17 00:00:00 2001 From: Penwin <53474257+Penwin0@users.noreply.github.com> Date: Sat, 14 Oct 2023 08:57:41 +0200 Subject: [PATCH] the thing (#10018) --- code/__DEFINES/uplink.dm | 3 +++ code/datums/mind.dm | 2 ++ code/modules/uplink/uplink_items.dm | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/uplink.dm b/code/__DEFINES/uplink.dm index 7f55c3128ec28..59dbf000fae26 100644 --- a/code/__DEFINES/uplink.dm +++ b/code/__DEFINES/uplink.dm @@ -11,3 +11,6 @@ /// This item is purchasable to clown ops #define UPLINK_CLOWN_OPS (1 << 3) + +/// This item is purchasable to excommunicates +#define UPLINK_EXCOMMUNICATE (1 << 4) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 6f949de012d3c..a5f2331ff4383 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -353,6 +353,8 @@ var/datum/component/uplink/U = uplink_loc.AddComponent(/datum/component/uplink, traitor_mob.key, TRUE, FALSE, gamemode, telecrystals) if(src.has_antag_datum(/datum/antagonist/incursion)) U.uplink_flag = UPLINK_INCURSION + if(src.has_antag_datum(/datum/antagonist/traitor/excommunicate)) + U.uplink_flag = UPLINK_EXCOMMUNICATE if(!U) CRASH("Uplink creation failed.") U.setup_unlock_code() diff --git a/code/modules/uplink/uplink_items.dm b/code/modules/uplink/uplink_items.dm index e9c6d1c287be9..038722765d561 100644 --- a/code/modules/uplink/uplink_items.dm +++ b/code/modules/uplink/uplink_items.dm @@ -1847,7 +1847,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) item = /obj/item/encryptionkey/syndicate cost = 2 surplus = 75 - purchasable_from = ~UPLINK_INCURSION + purchasable_from = ~(UPLINK_INCURSION | UPLINK_EXCOMMUNICATE) restricted = TRUE /datum/uplink_item/device_tools/syndietome @@ -1937,7 +1937,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) Used just like a regular headset, but can be disabled to use external headsets normally and to avoid detection." item = /obj/item/storage/box/syndie_kit/imp_radio cost = 4 - purchasable_from = ~UPLINK_INCURSION //To prevent traitors from immediately outing the hunters to security. + purchasable_from = ~(UPLINK_INCURSION | UPLINK_EXCOMMUNICATE) //To prevent traitors from immediately outing the hunters to security. restricted = TRUE /datum/uplink_item/implants/reviver