order_console ![code/game/machinery/computer/orders/order_computer/order_computer.dm 5](git.png)
Vars | |
blackbox_key | For blackbox logging, what kind of order is this? set nothing to not tally, like golem orders |
---|---|
cargo_cost_multiplier | Multiplied cost to use for cargo mode |
cooldown_time | Cooldown time between uses, express console will have extra time depending on express_cost_multiplier. |
credit_type | The kind of cash does the console use. |
express_cost_multiplier | Multiplied cost to use for express mode |
express_tooltip | Tooltip for the express button in TGUI |
forced_express | Whether the console can only use express mode ONLY |
grocery_list | The current list of things we're trying to order, waiting for checkout. |
order_categories | The categories of orderable items this console can view and purchase. |
order_cooldown | Cooldown between order uses. |
purchase_tooltip | Tooltip for the purchase button in TGUI |
radio | The radio the console can speak into |
radio_channel | The channel we will attempt to speak into through our radio. |
Procs | |
order_groceries | start of the shipment of your order Args: purchaser - The mob who is making this purchase card - The card used to place this order groceries - the list of orders to be placed |
purchase_items | Checks if an ID card is able to afford the total cost of the current console's groceries and deducts the cost if they can. Args: card - The ID card we check for balance express - Boolean on whether we need to add the express cost mulitplier returns TRUE if we can afford, FALSE otherwise. |
retrieve_points | points is any type of currency this machine accepts(money, mining points etc) which is displayed on the ui Args: card - The ID card we retrieve these points from |
subtract_points | whatever type of points was retrieved in retrieve_points() subtract those type of points from the card upon confirming order Args: final_cost - amount of points to subtract from this card card - The ID card to subtract these points from returns TRUE if successfull |
Var Details
blackbox_key ![code/game/machinery/computer/orders/order_computer/order_computer.dm 42](git.png)
For blackbox logging, what kind of order is this? set nothing to not tally, like golem orders
cargo_cost_multiplier ![code/game/machinery/computer/orders/order_computer/order_computer.dm 32](git.png)
Multiplied cost to use for cargo mode
cooldown_time ![code/game/machinery/computer/orders/order_computer/order_computer.dm 21](git.png)
Cooldown time between uses, express console will have extra time depending on express_cost_multiplier.
credit_type ![code/game/machinery/computer/orders/order_computer/order_computer.dm 28](git.png)
The kind of cash does the console use.
express_cost_multiplier ![code/game/machinery/computer/orders/order_computer/order_computer.dm 34](git.png)
Multiplied cost to use for express mode
express_tooltip ![code/game/machinery/computer/orders/order_computer/order_computer.dm 12](git.png)
Tooltip for the express button in TGUI
forced_express ![code/game/machinery/computer/orders/order_computer/order_computer.dm 30](git.png)
Whether the console can only use express mode ONLY
grocery_list ![code/game/machinery/computer/orders/order_computer/order_computer.dm 38](git.png)
The current list of things we're trying to order, waiting for checkout.
order_categories ![code/game/machinery/computer/orders/order_computer/order_computer.dm 36](git.png)
The categories of orderable items this console can view and purchase.
order_cooldown ![code/game/machinery/computer/orders/order_computer/order_computer.dm 19](git.png)
Cooldown between order uses.
purchase_tooltip ![code/game/machinery/computer/orders/order_computer/order_computer.dm 15](git.png)
Tooltip for the purchase button in TGUI
radio ![code/game/machinery/computer/orders/order_computer/order_computer.dm 23](git.png)
The radio the console can speak into
radio_channel ![code/game/machinery/computer/orders/order_computer/order_computer.dm 25](git.png)
The channel we will attempt to speak into through our radio.
Proc Details
order_groceries
start of the shipment of your order Args: purchaser - The mob who is making this purchase card - The card used to place this order groceries - the list of orders to be placed
purchase_items
Checks if an ID card is able to afford the total cost of the current console's groceries and deducts the cost if they can. Args: card - The ID card we check for balance express - Boolean on whether we need to add the express cost mulitplier returns TRUE if we can afford, FALSE otherwise.
retrieve_points
points is any type of currency this machine accepts(money, mining points etc) which is displayed on the ui Args: card - The ID card we retrieve these points from
subtract_points
whatever type of points was retrieved in retrieve_points() subtract those type of points from the card upon confirming order Args: final_cost - amount of points to subtract from this card card - The ID card to subtract these points from returns TRUE if successfull