/tg/ Station 13 - Modules - TypesVar Details - Proc Details

uplink_item

Uplink Items

Items that can be spawned from an uplink. Can be limited by gamemode.

Vars

cant_discountWhether this can be discounted or not
categoryCategory of the uplink
costCost of the item.
cost_override_stringString to be shown instead of the price, e.g for the Random item.
descDescription of the uplink
discountedIf discounted, is true. Used to send a signal to update reimbursement.
illegal_techCan this item be deconstructed to unlock certain techweb research nodes?
itemPath to the item to spawn.
limited_stockHow many items of this stock can be purchased.
lock_other_purchasesWhether this item locks all other items from being purchased. Used by syndicate balloon and a few other purchases. Can't be purchased if you've already bought other things Uses the purchase log, so items purchased that are not visible in the purchase log will not count towards this. However, they won't be purchasable afterwards.
nameName of the uplink item
progression_minimumThe minimum amount of progression needed for this item to be added to uplinks.
purchasable_fromA bitfield to represent what uplinks can purchase this item. See [code/__DEFINES/uplink.dm].
purchase_log_visWhether this purchase is visible in the purchase log.
refund_amountAmount of TC to refund, in case there's a TC penalty for refunds.
refundableWhether this item is refundable or not.
restrictedWhether this purchase is restricted or not (VR/Events related)
restricted_rolesIf this uplink item is only available to certain roles. Roles are dependent on the frequency chip or stored ID.
restricted_speciesThe species able to purchase this uplink item.
stock_keyIf this value is changed on two items they will share stock, defaults to not sharing stock with any other item

Procs

can_be_boughtFor special overrides if an item can be bought or not.
get_discountReturns by how much percentage do we reduce the price of the selected item
get_discount_valueReceives a traitor discount type value, returns the amount by which we will reduce the price
purchaseSpawns an item and logs its purchase
replace_pinUsed by spawn_item_for_generic_use to replace the pin of a gun with a normal one
spawn_itemSpawns an item in the world
spawn_item_for_generic_useUsed to create the uplink's item for generic use, rather than use by a Syndie specifically Can be used to "de-restrict" some items, such as Nukie guns spawning with Syndicate pins

Var Details

cant_discount

Whether this can be discounted or not

category

Category of the uplink

cost

Cost of the item.

cost_override_string

String to be shown instead of the price, e.g for the Random item.

desc

Description of the uplink

discounted

If discounted, is true. Used to send a signal to update reimbursement.

illegal_tech

Can this item be deconstructed to unlock certain techweb research nodes?

item

Path to the item to spawn.

limited_stock

How many items of this stock can be purchased.

lock_other_purchases

Whether this item locks all other items from being purchased. Used by syndicate balloon and a few other purchases. Can't be purchased if you've already bought other things Uses the purchase log, so items purchased that are not visible in the purchase log will not count towards this. However, they won't be purchasable afterwards.

name

Name of the uplink item

progression_minimum

The minimum amount of progression needed for this item to be added to uplinks.

purchasable_from

A bitfield to represent what uplinks can purchase this item. See [code/__DEFINES/uplink.dm].

purchase_log_vis

Whether this purchase is visible in the purchase log.

refund_amount

Amount of TC to refund, in case there's a TC penalty for refunds.

refundable

Whether this item is refundable or not.

restricted

Whether this purchase is restricted or not (VR/Events related)

restricted_roles

If this uplink item is only available to certain roles. Roles are dependent on the frequency chip or stored ID.

restricted_species

The species able to purchase this uplink item.

stock_key

If this value is changed on two items they will share stock, defaults to not sharing stock with any other item

Proc Details

can_be_bought

For special overrides if an item can be bought or not.

get_discount

Returns by how much percentage do we reduce the price of the selected item

get_discount_value

Receives a traitor discount type value, returns the amount by which we will reduce the price

purchase

Spawns an item and logs its purchase

replace_pin

Used by spawn_item_for_generic_use to replace the pin of a gun with a normal one

spawn_item

Spawns an item in the world

spawn_item_for_generic_use

Used to create the uplink's item for generic use, rather than use by a Syndie specifically Can be used to "de-restrict" some items, such as Nukie guns spawning with Syndicate pins