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. |
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 |
uplink_item_flags | Flags related to if an item will provide illegal tech, or trips contraband detectors once spawned in as an 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 |
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 |
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.
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
uplink_item_flags
Flags related to if an item will provide illegal tech, or trips contraband detectors once spawned in as an 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