Skip to content

Commit

Permalink
the thing (#10018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Penwin0 authored Oct 14, 2023
1 parent b931e09 commit a26abf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/__DEFINES/uplink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions code/modules/uplink/uplink_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a26abf9

Please sign in to comment.