/tg/ Station 13 - Modules - TypesVar Details

vending record datum

A datum that represents a product that is vendable

Vars

age_restrictedWhether spessmen with an ID with an age below AGE_MINOR (20 by default) can buy this item
amountHow many of this product we currently have
categoryThe category the product was in, if any. Sourced directly from product_categories.
colorableWhether the product can be recolored by the GAGS system
custom_premium_priceDoes the item have a custom premium price override
custom_priceDoes the item have a custom price override
max_amountHow many we can store at maximum
product_pathTypepath of the product that is created when this record "sells"
returned_productsList of items that have been returned to the vending machine.

Var Details

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.