Shiptest 13 - Modules - TypesVar Details - Proc Details

blackmarket_item

Vars

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.
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/blackmarket_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.
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.
spawn_itemUsed for spawning the wanted item, override if you need to do something special with the item.

Var Details

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.

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/blackmarket_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.

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.

spawn_item

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