From 319a3d0bf6d52bb1f6542c0ba26af98016b6d451 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:53:59 +0200 Subject: [PATCH] Adds hijack items back to the uplink (#26390) --- code/datums/uplink_items/uplink_general.dm | 8 ++------ code/datums/uplink_items/uplink_nuclear.dm | 4 +--- code/datums/uplink_items/uplink_traitor.dm | 5 +---- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/code/datums/uplink_items/uplink_general.dm b/code/datums/uplink_items/uplink_general.dm index 3db7889d818..d2b52139511 100644 --- a/code/datums/uplink_items/uplink_general.dm +++ b/code/datums/uplink_items/uplink_general.dm @@ -20,16 +20,13 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) continue if(I.species && !(user.dna?.species.name in I.species)) //If your species does not match, no discount continue - if(I.hijack_only && !(locate(/datum/objective/hijack) in user.mind.get_all_objectives())) //If you aren't a hijacker, no hijack only items - continue if(!uplink_items[I.category]) uplink_items[I.category] = list() uplink_items[I.category] += I - - if(I.limited_stock < 0 && I.can_discount && I.item && I.cost > 5) + if(I.limited_stock < 0 && I.can_discount && I.item && I.cost > 5 && !I.hijack_only) sales_items += I if(isnull(user)) //Handles surplus @@ -90,7 +87,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) var/can_discount = TRUE /// Can you only buy so many? -1 allows for infinite purchases var/limited_stock = -1 - /// Can this item be purchased only during hijackings? + /// Can this item be purchased only during hijackings? Hijack-only items are by default unable to be on sale. var/hijack_only = FALSE /// Can you refund this in the uplink? var/refundable = FALSE @@ -734,7 +731,6 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) cost = 10 surplus = 0 hijack_only = TRUE //This is an item only useful for a hijack traitor, as such, it should only be available in those scenarios. - can_discount = FALSE /datum/uplink_item/device_tools/advpinpointer name = "Advanced Pinpointer" diff --git a/code/datums/uplink_items/uplink_nuclear.dm b/code/datums/uplink_items/uplink_nuclear.dm index 150d4e0d0db..d0386ad0c75 100644 --- a/code/datums/uplink_items/uplink_nuclear.dm +++ b/code/datums/uplink_items/uplink_nuclear.dm @@ -664,7 +664,6 @@ cost = 55 excludefrom = list(UPLINK_TYPE_TRAITOR, UPLINK_TYPE_SIT) surplus = 0 - can_discount = FALSE hijack_only = FALSE /datum/uplink_item/explosives/emp_bomb/nuke @@ -676,11 +675,10 @@ /datum/uplink_item/explosives/atmosfiregrenades/nuke reference = "NAPG" - hijack_only = FALSE cost = 60 excludefrom = list(UPLINK_TYPE_TRAITOR, UPLINK_TYPE_SIT) surplus = 0 - can_discount = FALSE + hijack_only = TRUE /datum/uplink_item/stealthy_tools/chameleon/nuke reference = "NCHAM" diff --git a/code/datums/uplink_items/uplink_traitor.dm b/code/datums/uplink_items/uplink_traitor.dm index e117b493a09..fc3fe6b2665 100644 --- a/code/datums/uplink_items/uplink_traitor.dm +++ b/code/datums/uplink_items/uplink_traitor.dm @@ -144,7 +144,6 @@ job = list("Chaplain") surplus = 0 //No lucky chances from the crate; if you get this, this is ALL you're getting hijack_only = TRUE //This is a murderbone weapon, as such, it should only be available in those scenarios. - can_discount = FALSE //Janitor @@ -691,7 +690,6 @@ cost = 40 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) surplus = 0 - can_discount = FALSE hijack_only = TRUE /datum/uplink_item/explosives/emp_bomb @@ -715,11 +713,10 @@ desc = "A box of two (2) grenades that cause large plasma fires. Can be used to deny access to a large area. Most useful if you have an atmospherics hardsuit." reference = "APG" item = /obj/item/storage/box/syndie_kit/atmosfiregrenades - hijack_only = TRUE cost = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) surplus = 0 - can_discount = FALSE + hijack_only = TRUE /datum/uplink_item/stealthy_tools/chameleon name = "Chameleon Kit"