mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 11:31:51 +00:00
13 lines
580 B
Plaintext
13 lines
580 B
Plaintext
/**
|
|
* Datum used to hold further information about a product in a vending machine
|
|
*/
|
|
/datum/stored_item/vending_product
|
|
var/price = 0 // Price to buy one
|
|
var/display_color = null // Display color for vending machine listing
|
|
var/category = CAT_NORMAL // CAT_HIDDEN for contraband, CAT_COIN for premium
|
|
|
|
/datum/stored_item/vending_product/New(var/stored, var/path, var/name = null, var/amount = 1, var/price = 0, var/color = null, var/category = CAT_NORMAL)
|
|
..(stored, path, name, amount)
|
|
src.price = price
|
|
src.display_color = color
|
|
src.category = category |