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

rsf

Vars

action_typeThe verb that describes what we're doing, for use in text
allowed_surfacesA list of surfaces that we are allowed to place things on.
cooldownHolds a copy of world.time from the last time the synth was used.
cooldowndelayHow long should the minimum period between this RSF's item dispensings be?
cost_by_itemAn associated list of atoms and charge costs. This can contain a separate list, as long as its associated item is an object The RSF item list below shows in the player facing ui in this order, this is why it isn't in alphabetical order, but instead sorted by category
discriptorThe unit of mesure of the matter, for use in text
dispense_costThe cost of the object we are going to dispense
matterThe current matter count
matter_by_itemAn associated list of fuel and its value
max_matterThe max amount of matter in the device
spent_icon_stateThe icon state to revert to when the tool is empty
to_dispenseThe type of the object we are going to dispense

Procs

formRadialForms a radial menu based off an object in a list, or a list's associated object
is_allowedHelper proc that iterates through all the things we are allowed to spawn on, and sees if the passed atom is one of them
use_matterA helper proc. checks to see if we can afford the amount of charge that is passed, and if we can docs the charge from our base, and returns TRUE. If we can't we return FALSE

Var Details

action_type

The verb that describes what we're doing, for use in text

allowed_surfaces

A list of surfaces that we are allowed to place things on.

cooldown

Holds a copy of world.time from the last time the synth was used.

cooldowndelay

How long should the minimum period between this RSF's item dispensings be?

cost_by_item

An associated list of atoms and charge costs. This can contain a separate list, as long as its associated item is an object The RSF item list below shows in the player facing ui in this order, this is why it isn't in alphabetical order, but instead sorted by category

discriptor

The unit of mesure of the matter, for use in text

dispense_cost

The cost of the object we are going to dispense

matter

The current matter count

matter_by_item

An associated list of fuel and its value

max_matter

The max amount of matter in the device

spent_icon_state

The icon state to revert to when the tool is empty

to_dispense

The type of the object we are going to dispense

Proc Details

formRadial

Forms a radial menu based off an object in a list, or a list's associated object

is_allowed

Helper proc that iterates through all the things we are allowed to spawn on, and sees if the passed atom is one of them

use_matter

A helper proc. checks to see if we can afford the amount of charge that is passed, and if we can docs the charge from our base, and returns TRUE. If we can't we return FALSE