Space Station 13 - Nebula13 - Modules - TypesProc Details

vending

A vending machine

Procs

build_inventoryBuild produdct_records from the products lists
credit_purchaseAdd money for current purchase to the vendor account.
pay_with_cashReceive payment with cashmoney.
pay_with_charge_cardScan a chargecard and deduct payment from it.
stockAdd item to the machine
ui_interactDisplay the NanoUI window for the vending machine.

Proc Details

build_inventory

Build produdct_records from the products lists

products and contraband lists allow specifying products that the vending machine is to carry without manually populating product_records.

credit_purchase

Add money for current purchase to the vendor account.

Called after the money has already been taken from the customer.

pay_with_cash

Receive payment with cashmoney.

pay_with_charge_card

Scan a chargecard and deduct payment from it.

Takes payment for whatever is the currently_vending item. Returns 1 if successful, 0 if failed.

stock

Add item to the machine

Checks if item is vendable in this machine should be performed before calling. W is the item being inserted, R is the associated vending_product entry.

ui_interact

Display the NanoUI window for the vending machine.

See NanoUI documentation for details.