Paradise Station 13 - Modules - TypesVar Details - Proc Details

apc

Vars

aidisabledCan silicons access this APC?
apc_areaAPC Area/Powernet vars the area that this APC is in
areastringthe set string name of the area, used in naming the APC
autoflagsettings variable for having the APC auto use certain power channel settings
cellAPC Cell Vars the cell type stored in this APC
cell_typeBase cell has 2500 capacity. Enter the path of a different cell you want to use. cell determines charge rates, max capacity, ect. These can also be changed with other APC vars, but isn't recommended to minimize the risk of accidental usage of dirty editted APCs
chargecountCounter var, ticks up when the APC recieves power from terminal and resets to 0 when not charging, used for the var/charging var
chargemodeIf TRUE, the APC will automatically draw power from connect terminal, if FALSE it will not charge
chargingThe current charging mode of the APC: not charging, charging, fully charged
constructedWas this APC built instead of already existing? Used for malfhack to keep borgs from building apcs in space
coverlockedIs the APC cover locked? i.e cannot be opened?
emergency_powerUsed to determine if emergency lights should be on or off
environment_channelThe current setting for the environment channel
equipment_channelThe current setting for the equipment channel
last_used_environmentamount of power used in the last cycle for environment channel
last_used_equipmentamount of power used in the last cycle for equipment channel
last_used_lightingamount of power used in the last cycle for lighting channel
last_used_totalamount of power used in the last cycle in total
lighting_channelAPC Settings Vars The current setting for the lighting channel
lockedIs the APC User Interface locked (prevents interaction)? Will not prevent silicons or admin observers from interacting
longtermpowerA counter var used to help determine if the APC has not been charging long enough to justify not performing certain auto setting such as turning all channels back on
main_statusThe status of the terminals powernet that this APC is connected to: not connected, no power, or recieving power
malfhackAPC Malf AI Vars
openedState of the APC Cover - Closed, Open, or Off
operatingIs the APC on and transmitting power to enabled breakers? Think of this var as the master breaker for the APC
shortedCan the APC recieve/transmit power? Determined by the condition of the 2 Main Power Wires
start_chargethe percentage charge the internal battery will start with
terminalThe power terminal connected to this APC
update_stateAPC Overlay Vars
wiresAPC Status Vars The wire panel associated with this APC

Procs

autoset
check_ai_control_callbackUpdates APC to AI accesible if AI Wire is mended
check_main_power_callbackUpdates APC to not be shorted if both main power wires are mended
connect_to_networkOverride because the APC does not directly connect to the network; it goes through a terminal.
emp_act
get_cell
handle_shock_chanceHandles APC arc'ing every APC process interval
overload_lightingoverload all the lights in this APC area
processWhat the APC will do every process interval, updates power settings and power changes depending on powernet state
recharge_apcIf the APC has a cell, recharge it
repair_apcRepairs all wires, enables all breakers, and unshorts the APC
set_broken************* --- APC Helper Procs --- Antag Abilities/Fun Stuff ************* --- set APC stat as broken and set it to be non operational, kick out an AI if there's a malf one in it
set_nightshiftsets nightshift mode on for the APC
togglelock
turn_emergency_power_offturns off emergency power and sets each light to update

Var Details

aidisabled

Can silicons access this APC?

apc_area

APC Area/Powernet vars the area that this APC is in

areastring

the set string name of the area, used in naming the APC

autoflag

settings variable for having the APC auto use certain power channel settings

cell

APC Cell Vars the cell type stored in this APC

cell_type

Base cell has 2500 capacity. Enter the path of a different cell you want to use. cell determines charge rates, max capacity, ect. These can also be changed with other APC vars, but isn't recommended to minimize the risk of accidental usage of dirty editted APCs

chargecount

Counter var, ticks up when the APC recieves power from terminal and resets to 0 when not charging, used for the var/charging var

chargemode

If TRUE, the APC will automatically draw power from connect terminal, if FALSE it will not charge

charging

The current charging mode of the APC: not charging, charging, fully charged

constructed

Was this APC built instead of already existing? Used for malfhack to keep borgs from building apcs in space

coverlocked

Is the APC cover locked? i.e cannot be opened?

emergency_power

Used to determine if emergency lights should be on or off

environment_channel

The current setting for the environment channel

equipment_channel

The current setting for the equipment channel

last_used_environment

amount of power used in the last cycle for environment channel

last_used_equipment

amount of power used in the last cycle for equipment channel

last_used_lighting

amount of power used in the last cycle for lighting channel

last_used_total

amount of power used in the last cycle in total

lighting_channel

APC Settings Vars The current setting for the lighting channel

locked

Is the APC User Interface locked (prevents interaction)? Will not prevent silicons or admin observers from interacting

longtermpower

A counter var used to help determine if the APC has not been charging long enough to justify not performing certain auto setting such as turning all channels back on

main_status

The status of the terminals powernet that this APC is connected to: not connected, no power, or recieving power

malfhack

APC Malf AI Vars

opened

State of the APC Cover - Closed, Open, or Off

operating

Is the APC on and transmitting power to enabled breakers? Think of this var as the master breaker for the APC

shorted

Can the APC recieve/transmit power? Determined by the condition of the 2 Main Power Wires

start_charge

the percentage charge the internal battery will start with

terminal

The power terminal connected to this APC

update_state

APC Overlay Vars

wires

APC Status Vars The wire panel associated with this APC

Proc Details

autoset

autoset

this proc is rather confusing at first glance, it handles apc power channel settings when trying to auto set values to it, good luck understanding how this works but I sure as hell don't

check_ai_control_callback

Updates APC to AI accesible if AI Wire is mended

check_main_power_callback

Updates APC to not be shorted if both main power wires are mended

connect_to_network

Override because the APC does not directly connect to the network; it goes through a terminal.

emp_act


External Acts on the APCS


get_cell


APC Power Procs


handle_shock_chance

Handles APC arc'ing every APC process interval

overload_lighting

overload all the lights in this APC area

process

What the APC will do every process interval, updates power settings and power changes depending on powernet state

recharge_apc

If the APC has a cell, recharge it

repair_apc

Repairs all wires, enables all breakers, and unshorts the APC

set_broken

************* --- APC Helper Procs --- Antag Abilities/Fun Stuff ************* --- set APC stat as broken and set it to be non operational, kick out an AI if there's a malf one in it

set_nightshift

sets nightshift mode on for the APC

togglelock


APC Settings


turn_emergency_power_off

turns off emergency power and sets each light to update