uplink_item

Uplink Items
Items that can be spawned from an uplink. Can be limited by gamemode.
Vars | |
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 |
Procs | |
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 |
spawn_item | Spawns an item in the world |
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
spawn_item
Spawns an item in the world