blackmarket_item
![code/modules/cargo/blackmarket/blackmarket_item.dm 1](git.png)
Vars | |
availability_prob | Probability for this item to be available. Used by SSblackmarket on init. |
---|---|
available | Whether the item is visible and purchasable on the market |
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. |
pair_item | Should another item spawn alongside this one in the catalogue? |
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. |
spawn_weighting | If this item is affected by avalibility weight. For items that shouldnt appear on their own (paired items), should always appear, or items paticularly rare or powerful that we dont want showing up too often |
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. |
weight | If this item should be more or less likely to spawn than usual. Positive is more likely, negative is less |
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
![code/modules/cargo/blackmarket/blackmarket_item.dm 30](git.png)
Probability for this item to be available. Used by SSblackmarket on init.
available
![code/modules/cargo/blackmarket/blackmarket_item.dm 28](git.png)
Whether the item is visible and purchasable on the market
category
![code/modules/cargo/blackmarket/blackmarket_item.dm 7](git.png)
The category this item belongs to, should be already declared in the market that this item is accessible in.
desc
![code/modules/cargo/blackmarket/blackmarket_item.dm 5](git.png)
Description for the item entry used in the uplink.
item
![code/modules/cargo/blackmarket/blackmarket_item.dm 17](git.png)
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
![code/modules/cargo/blackmarket/blackmarket_item.dm 9](git.png)
"/datum/blackmarket_market"s that this item should be in, used by SSblackmarket on init.
name
![code/modules/cargo/blackmarket/blackmarket_item.dm 3](git.png)
Name for the item entry used in the uplink.
pair_item
![code/modules/cargo/blackmarket/blackmarket_item.dm 38](git.png)
Should another item spawn alongside this one in the catalogue?
price
![code/modules/cargo/blackmarket/blackmarket_item.dm 12](git.png)
Price for the item, if not set creates a price according to the *_min and *_max vars.
price_max
![code/modules/cargo/blackmarket/blackmarket_item.dm 22](git.png)
Maximum price for the item if generated randomly.
price_min
![code/modules/cargo/blackmarket/blackmarket_item.dm 20](git.png)
Minimum price for the item if generated randomly.
spawn_weighting
![code/modules/cargo/blackmarket/blackmarket_item.dm 34](git.png)
If this item is affected by avalibility weight. For items that shouldnt appear on their own (paired items), should always appear, or items paticularly rare or powerful that we dont want showing up too often
stock
![code/modules/cargo/blackmarket/blackmarket_item.dm 14](git.png)
How many of this type of item is available, if not set creates a price according to the *_min and *_max vars.
stock_max
![code/modules/cargo/blackmarket/blackmarket_item.dm 26](git.png)
Maximum amount that there should be of this item in the market if generated randomly.
stock_min
![code/modules/cargo/blackmarket/blackmarket_item.dm 24](git.png)
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.
weight
![code/modules/cargo/blackmarket/blackmarket_item.dm 32](git.png)
If this item should be more or less likely to spawn than usual. Positive is more likely, negative is less
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.