blackmarket_item

Vars | |
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. |
Procs | |
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. |
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.