diff --git a/code/modules/asset_cache/assets/uplink.dm b/code/modules/asset_cache/assets/uplink.dm index b03e10a08eb..317e76bd579 100644 --- a/code/modules/asset_cache/assets/uplink.dm +++ b/code/modules/asset_cache/assets/uplink.dm @@ -31,6 +31,7 @@ "restricted_roles" = item.restricted_roles, "restricted_species" = item.restricted_species, "progression_minimum" = item.progression_minimum, + "cost_override_string" = item.cost_override_string, )) } SStraitor.uplink_items += item diff --git a/code/modules/uplink/uplink_items.dm b/code/modules/uplink/uplink_items.dm index b60d8ac7ba2..0d295307b15 100644 --- a/code/modules/uplink/uplink_items.dm +++ b/code/modules/uplink/uplink_items.dm @@ -63,6 +63,8 @@ var/restricted = FALSE /// Can this item be deconstructed to unlock certain techweb research nodes? var/illegal_tech = TRUE + // String to be shown instead of the price, e.g for the Random item. + var/cost_override_string = "" /datum/uplink_category /// Name of the category diff --git a/code/modules/uplink/uplink_items/bundle.dm b/code/modules/uplink/uplink_items/bundle.dm index 3ee0aeafd35..103125633d4 100644 --- a/code/modules/uplink/uplink_items/bundle.dm +++ b/code/modules/uplink/uplink_items/bundle.dm @@ -13,6 +13,7 @@ desc = "Picking this will purchase a random item. Useful if you have some TC to spare or if you haven't decided on a strategy yet." item = /obj/effect/gibspawner/generic // non-tangible item because techwebs use this path to determine illegal tech cost = 0 + cost_override_string = "Varies" /datum/uplink_item/bundles_tc/random/purchase(mob/user, datum/uplink_handler/handler, atom/movable/source) var/list/possible_items = list() diff --git a/tgui/packages/tgui/interfaces/Uplink/index.tsx b/tgui/packages/tgui/interfaces/Uplink/index.tsx index 14b3031487a..c921c2eca37 100644 --- a/tgui/packages/tgui/interfaces/Uplink/index.tsx +++ b/tgui/packages/tgui/interfaces/Uplink/index.tsx @@ -21,6 +21,7 @@ type UplinkItem = { restricted_roles: string, restricted_species: string, progression_minimum: number, + cost_override_string: string ref?: string, } @@ -194,7 +195,7 @@ export class Uplink extends Component<{}, UplinkState> { ), cost: ( - {item.cost} TC + {item.cost_override_string || `${item.cost} TC`} {has_progression ? ( <>