powered
Vars | |
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 |
Procs | |
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 |
link_to_sigil | 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 |
unlink_to_sigil | 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 |
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
link_to_sigil
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
unlink_to_sigil
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