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

market_item

Vars

abstract_pathUsed to exclude abstract/special paths from the unit test if the value matches the type itself.
availability_probProbability for this item to be available. Used by SSblackmarket on init.
categoryThe category this item belongs to, should be already declared in the market that this item is accessible in.
descDescription for the item entry used in the uplink.
identifierThe identifier for the market item, generated on runtime and used to access them in the market categories.
itemPath to or the item itself what this entry is for, this should be set even if you override spawn_item to spawn your item.
markets"/datum/market"s that this item should be in, used by SSblackmarket on init.
nameName for the item entry used in the uplink.
pricePrice for the item, if not set creates a price according to the *_min and *_max vars.
price_maxMaximum price for the item if generated randomly.
price_minMinimum price for the item if generated randomly.
shipping_overrideIf set, these will override the shipment methods set by the market
stockHow many of this type of item is available, if not set creates a price according to the *_min and *_max vars.
stock_maxMaximum amount that there should be of this item in the market if generated randomly.
stock_minMinimum amount that there should be of this item in the market if generated randomly. This defaults to 1 as most items will have it as 1.

Procs

buyBuys the item and makes SSblackmarket handle it.
set_itemFor 'dynamic' market items generated on runtime, this proc is to be used to properly sets the item, especially if it's a hardref.
spawn_itemUsed for spawning the wanted item, override if you need to do something special with the item.

Var Details

abstract_path

Used to exclude abstract/special paths from the unit test if the value matches the type itself.

availability_prob

Probability for this item to be available. Used by SSblackmarket on init.

category

The category this item belongs to, should be already declared in the market that this item is accessible in.

desc

Description for the item entry used in the uplink.

identifier

The identifier for the market item, generated on runtime and used to access them in the market categories.

item

Path to or the item itself what this entry is for, this should be set even if you override spawn_item to spawn your item.

markets

"/datum/market"s that this item should be in, used by SSblackmarket on init.

name

Name for the item entry used in the uplink.

price

Price for the item, if not set creates a price according to the *_min and *_max vars.

price_max

Maximum price for the item if generated randomly.

price_min

Minimum price for the item if generated randomly.

shipping_override

If set, these will override the shipment methods set by the market

stock

How many of this type of item is available, if not set creates a price according to the *_min and *_max vars.

stock_max

Maximum amount that there should be of this item in the market if generated randomly.

stock_min

Minimum amount that there should be of this item in the market if generated randomly. This defaults to 1 as most items will have it as 1.

Proc Details

buy

Buys the item and makes SSblackmarket handle it.

set_item

For 'dynamic' market items generated on runtime, this proc is to be used to properly sets the item, especially if it's a hardref.

spawn_item

Used for spawning the wanted item, override if you need to do something special with the item.