/tg/ Station 13 - Modules - TypesVar Details - Proc Details

cargo

Vars

can_approve_requestsCan you approve requests placed for cargo? Works differently between the app and the computer.
can_sendCan the supply console send the shuttle back and forth? Used in the UI backend.
cargo_accountThe account this console processes and displays. Independent from the account the shuttle processes.
cargo_shuttleThe name of the shuttle template being used as the cargo shuttle. 'cargo' is default and contains critical code. Don't change this unless you know what you're doing.
docking_awayThe docking port called when leaving the station.
docking_homeThe docking port called when returning to the station.
interface_typeInterface name for the ui_interact call for different subtypes.
is_expressvar that makes express console use rockets
message_cooldownvar that tracks message cooldown
requestonlyCan this console only send requests?
stationcargoIf this console can loan the cargo shuttle. Set to false to disable.

Procs

add_itemadds an supply pack to the checkout cart
get_discountreturns the discount multiplier applied to all supply packs, the discount is calculated as follows: pack_cost * get_discount()
get_packs_datareturns a list of supply packs for a certain group
name_to_idmaps the ordename displayed on the ui to its supply pack id
remove_itemremoves an item from the checkout cart

Var Details

can_approve_requests

Can you approve requests placed for cargo? Works differently between the app and the computer.

can_send

Can the supply console send the shuttle back and forth? Used in the UI backend.

cargo_account

The account this console processes and displays. Independent from the account the shuttle processes.

cargo_shuttle

The name of the shuttle template being used as the cargo shuttle. 'cargo' is default and contains critical code. Don't change this unless you know what you're doing.

docking_away

The docking port called when leaving the station.

docking_home

The docking port called when returning to the station.

interface_type

Interface name for the ui_interact call for different subtypes.

is_express

var that makes express console use rockets

message_cooldown

var that tracks message cooldown

requestonly

Can this console only send requests?

stationcargo

If this console can loan the cargo shuttle. Set to false to disable.

Proc Details

add_item

adds an supply pack to the checkout cart

get_discount

returns the discount multiplier applied to all supply packs, the discount is calculated as follows: pack_cost * get_discount()

get_packs_data

returns a list of supply packs for a certain group

name_to_id

maps the ordename displayed on the ui to its supply pack id

remove_item

removes an item from the checkout cart