byond - Modules - TypesVar Details - Proc Details

apc

Vars

aidisabledIs the AI locked from using the APC
areaThe area we're affecting
beenhitUsed for counting how many times it has been hit, used for Aliens at the moment
cellThe power cell inside the APC
cell_typeThe type of cell to spawn this APC with
chargecountNumber of ticks where the apc is trying to recharge
chargemodeCan the APC recharge?
chargingState of the apc charging (not charging, charging, fully charged)
coverlockedIs the apc cover locked?
crash_break_probabilityProbability of APC being broken by a shuttle crash on the same z-level
environState of the environmental channel (off, auto off, on, auto on)
equipmentState of the equipment channel (off, auto off, on, auto on)
has_electronicsState of the electronics inside (missing, installed, secured)
icon_update_neededUsed to stop the icon from updating too much
lastused_environAmount of power used by the environmental channel
lastused_equipAmount of power used by the equipment channel
lastused_lightAmount of power used by the lighting channel
lastused_totalTotal amount of power used by the three channels
lightingState of the lighting channel (off, auto off, on, auto on)
lockedIs the apc interface locked?
longtermpowerBuffer state that makes apcs not shut off channels immediately as long as theres some power left, effect visible in apcs only slowly losing power
openedThe current state of the APC cover
operatingIs the apc working?
shortedIs the APC shorted?
start_chargeThe charge of the APC when first spawned
terminalReference to our cable terminal
update_overlayStores the flag for the overlays
update_stateStores the flags related to icon updating

Procs

check_updatesChecks for what icon updates we will need to handle
on_cell_deletionCalled by the deletion of the referenced powercell.
set_cellWrapper to guarantee powercells are properly nulled and avoid hard deletes.

Var Details

aidisabled

Is the AI locked from using the APC

area

The area we're affecting

beenhit

Used for counting how many times it has been hit, used for Aliens at the moment

cell

The power cell inside the APC

cell_type

The type of cell to spawn this APC with

chargecount

Number of ticks where the apc is trying to recharge

chargemode

Can the APC recharge?

charging

State of the apc charging (not charging, charging, fully charged)

coverlocked

Is the apc cover locked?

crash_break_probability

Probability of APC being broken by a shuttle crash on the same z-level

environ

State of the environmental channel (off, auto off, on, auto on)

equipment

State of the equipment channel (off, auto off, on, auto on)

has_electronics

State of the electronics inside (missing, installed, secured)

icon_update_needed

Used to stop the icon from updating too much

lastused_environ

Amount of power used by the environmental channel

lastused_equip

Amount of power used by the equipment channel

lastused_light

Amount of power used by the lighting channel

lastused_total

Total amount of power used by the three channels

lighting

State of the lighting channel (off, auto off, on, auto on)

locked

Is the apc interface locked?

longtermpower

Buffer state that makes apcs not shut off channels immediately as long as theres some power left, effect visible in apcs only slowly losing power

opened

The current state of the APC cover

operating

Is the apc working?

shorted

Is the APC shorted?

start_charge

The charge of the APC when first spawned

terminal

Reference to our cable terminal

update_overlay

Stores the flag for the overlays

update_state

Stores the flags related to icon updating

Proc Details

check_updates

Checks for what icon updates we will need to handle

on_cell_deletion

Called by the deletion of the referenced powercell.

set_cell

Wrapper to guarantee powercells are properly nulled and avoid hard deletes.