vending ![code/game/machinery/vending/_vending.dm 1](git.png)
Vars | |
antag | Stock for antag items unlocked by challenge coin purchased from uplink. Each coin costs 10 TCs; value in vendor should be 10 at baseline with rare chance going up to 30. |
---|---|
antagrandom | Maximum number of randomly generated antag items. Default of 1 so it is usually only 0 or 1. This var is used as exceptions when large amounts of ammo needs to be randomly spawned. |
contraband | Stock for products hidden by the contraband wire as (/item/path = count) |
icon_deny | icon_state to flick() when refusing to vend |
icon_vend | icon_state to flick() when vending |
max_overlays | Total number of overlays that can be randomly picked from when an item is being vended. |
maxrandom | Maximum number of possible non-rare products that can be randomly spawned. This can be set by vending machine not item. Maximum rare product depends on rarity. |
minrandom | Minimum number of possible non-rare product that can be randomly spawned. This can be set by vending machine not item. Minimum rare product is set as 1 by default. |
premium | Stock for products hidden by coin insertion as (/item/path = count) |
products | Stock for each product as (/item/path = count). Set to '0' if you want the vendor to randomly spawn between 1 and 10 items. |
rare_products | Probability of each rare product of spawning in, max amount increases with large value. Need to have value of '0' associated with it in product list for this to work. |
vend_power_usage | Power to one-off spend on successfully vending. |
vendor_flags | A field associated with vending machines from the below flags. |
vendor_wires | The machine's wires, but typed. |
Procs | |
ProcessAntag | Proc that enables hidden antag items and replaces slogan list with anti-Sol slogans if any. |
UpdateShowAntag | Update whether the vendor should show the antag category, flipping if null. |
UpdateShowContraband | Update whether the vendor should show the contraband category, flipping if null. |
UpdateShowPremium | Update whether the vendor should show the premium category, flipping if null. |
UpdateShowProducts | Update whether the vendor should show the normal products category, flipping if null. |
Var Details
antag ![code/game/machinery/vending/_vending.dm 66](git.png)
Stock for antag items unlocked by challenge coin purchased from uplink. Each coin costs 10 TCs; value in vendor should be 10 at baseline with rare chance going up to 30.
antagrandom ![code/game/machinery/vending/_vending.dm 75](git.png)
Maximum number of randomly generated antag items. Default of 1 so it is usually only 0 or 1. This var is used as exceptions when large amounts of ammo needs to be randomly spawned.
contraband ![code/game/machinery/vending/_vending.dm 60](git.png)
Stock for products hidden by the contraband wire as (/item/path = count)
icon_deny ![code/game/machinery/vending/_vending.dm 32](git.png)
icon_state to flick() when refusing to vend
icon_vend ![code/game/machinery/vending/_vending.dm 26](git.png)
icon_state to flick() when vending
max_overlays ![code/game/machinery/vending/_vending.dm 29](git.png)
Total number of overlays that can be randomly picked from when an item is being vended.
maxrandom ![code/game/machinery/vending/_vending.dm 72](git.png)
Maximum number of possible non-rare products that can be randomly spawned. This can be set by vending machine not item. Maximum rare product depends on rarity.
minrandom ![code/game/machinery/vending/_vending.dm 69](git.png)
Minimum number of possible non-rare product that can be randomly spawned. This can be set by vending machine not item. Minimum rare product is set as 1 by default.
premium ![code/game/machinery/vending/_vending.dm 63](git.png)
Stock for products hidden by coin insertion as (/item/path = count)
products ![code/game/machinery/vending/_vending.dm 54](git.png)
Stock for each product as (/item/path = count). Set to '0' if you want the vendor to randomly spawn between 1 and 10 items.
rare_products ![code/game/machinery/vending/_vending.dm 57](git.png)
Probability of each rare product of spawning in, max amount increases with large value. Need to have value of '0' associated with it in product list for this to work.
vend_power_usage ![code/game/machinery/vending/_vending.dm 35](git.png)
Power to one-off spend on successfully vending.
vendor_flags ![code/game/machinery/vending/_vending.dm 41](git.png)
A field associated with vending machines from the below flags.
vendor_wires ![code/game/machinery/vending/_vending.dm 23](git.png)
The machine's wires, but typed.
Proc Details
ProcessAntag
Proc that enables hidden antag items and replaces slogan list with anti-Sol slogans if any.
UpdateShowAntag
Update whether the vendor should show the antag category, flipping if null.
UpdateShowContraband
Update whether the vendor should show the contraband category, flipping if null.
UpdateShowPremium
Update whether the vendor should show the premium category, flipping if null.
UpdateShowProducts
Update whether the vendor should show the normal products category, flipping if null.