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

powered

Vars

depoweredMakes sure the depowered proc is only called when it transitions from powered -> depowered, NOT every process() while already depowered
enabledIf the structure has its "on" switch flipped. Does not mean it's on, necessarily (needs power and anchoring, too)
has_off_iconHas an "_inactive" icon state
has_on_iconHas an "_active" icon state
has_power_toggleHas the ability to toggle power by using an empty hand on it
insufficient_powerIf this ran out of power during process()
minimum_powerMinimum power to work
passive_consumptionHow much power this structure uses passively
processingIf the structure is "on" and working.
transmission_sigilsLazylist of nearby transmission signals

Procs

check_powerChecks if there's equal or greater power to the amount arg, TRUE if so, FALSE otherwise
depoweredTriggers when the structure runs out of power to use
link_to_sigilAdds a sigil to the linked structure list
repoweredTriggers when the structure regains power to use
turn_offTurn off the structure, ceasing its processing
turn_onTurn on the structure, letting it consume power and process again
unlink_to_sigilRemoves a sigil from the linked structure list
update_powerChecks if there's enough power to power it, calls repower() if changed from depowered to powered, vice versa
use_powerUses power if there's enough to do so

Var Details

depowered

Makes sure the depowered proc is only called when it transitions from powered -> depowered, NOT every process() while already depowered

enabled

If the structure has its "on" switch flipped. Does not mean it's on, necessarily (needs power and anchoring, too)

has_off_icon

Has an "_inactive" icon state

has_on_icon

Has an "_active" icon state

has_power_toggle

Has the ability to toggle power by using an empty hand on it

insufficient_power

If this ran out of power during process()

minimum_power

Minimum power to work

passive_consumption

How much power this structure uses passively

processing

If the structure is "on" and working.

transmission_sigils

Lazylist of nearby transmission signals

Proc Details

check_power

Checks if there's equal or greater power to the amount arg, TRUE if so, FALSE otherwise

depowered

Triggers when the structure runs out of power to use

Adds a sigil to the linked structure list

repowered

Triggers when the structure regains power to use

turn_off

Turn off the structure, ceasing its processing

turn_on

Turn on the structure, letting it consume power and process again

Removes a sigil from the linked structure list

update_power

Checks if there's enough power to power it, calls repower() if changed from depowered to powered, vice versa

use_power

Uses power if there's enough to do so