vending record datum ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 26](git.png)
A datum that represents a product that is vendable
Vars | |
age_restricted | Whether spessmen with an ID with an age below AGE_MINOR (20 by default) can buy this item |
---|---|
amount | How many of this product we currently have |
category | The category the product was in, if any. Sourced directly from product_categories. |
colorable | Whether the product can be recolored by the GAGS system |
custom_premium_price | Does the item have a custom premium price override |
custom_price | Does the item have a custom price override |
max_amount | How many we can store at maximum |
product_path | Typepath of the product that is created when this record "sells" |
returned_products | List of items that have been returned to the vending machine. |
Var Details
age_restricted ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 39](git.png)
Whether spessmen with an ID with an age below AGE_MINOR (20 by default) can buy this item
amount ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 31](git.png)
How many of this product we currently have
category ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 44](git.png)
The category the product was in, if any. Sourced directly from product_categories.
colorable ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 41](git.png)
Whether the product can be recolored by the GAGS system
custom_premium_price ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 37](git.png)
Does the item have a custom premium price override
custom_price ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 35](git.png)
Does the item have a custom price override
max_amount ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 33](git.png)
How many we can store at maximum
product_path ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 29](git.png)
Typepath of the product that is created when this record "sells"
returned_products ![modular_bluemoon/phoenix404/modules/vending/_vending.dm 48](git.png)
List of items that have been returned to the vending machine.