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

portable_atmospherics

Vars

air_contentsStores the gas mixture of the portable component. Don't access this directly, use return_air() so you support the temporary processing it provides
connected_portStores the reference of the connecting port
excitedUsed to track if anything of note has happen while running process_atmos(). Treat it as a process_atmos() scope var, we just declare it here to pass it between parent calls. Should be false on start of every process_atmos() proc, since true means we'll process again next tick.
holdingStores the reference of the tank the machine is holding
nob_crystal_insertedIs there a hypernoblium crystal inserted into this
pressure_limitMax amount of pressure allowed inside of the canister before it starts to break. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.
suppress_reactionsShould reactions inside the object be suppressed
temp_limitMax amount of heat allowed inside the machine before it starts to melt. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.
volumeVolume (in L) of the inside of the machine

Procs

connectAllow the portable machine to be connected to a connector Arguments:
disconnectAllow the portable machine to be disconnected from the connector
replace_tankAllow the player to place a tank inside the machine. Arguments:
take_atmos_damageTake damage if a variable is exceeded. Damage is equal to temp/limit * heat/limit. The damage multiplier is treated as 1 if something is being ignored while the other one is exceeded. On most cases only one will be exceeded, so the other one is scaled down.
unregister_holdingHolding tanks can get to zero integrity and be destroyed without other warnings due to pressure change. This checks for that case and removes our reference to it.

Var Details

air_contents

Stores the gas mixture of the portable component. Don't access this directly, use return_air() so you support the temporary processing it provides

connected_port

Stores the reference of the connecting port

excited

Used to track if anything of note has happen while running process_atmos(). Treat it as a process_atmos() scope var, we just declare it here to pass it between parent calls. Should be false on start of every process_atmos() proc, since true means we'll process again next tick.

holding

Stores the reference of the tank the machine is holding

nob_crystal_inserted

Is there a hypernoblium crystal inserted into this

pressure_limit

Max amount of pressure allowed inside of the canister before it starts to break. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.

suppress_reactions

Should reactions inside the object be suppressed

temp_limit

Max amount of heat allowed inside the machine before it starts to melt. [PORTABLE_ATMOS_IGNORE_ATMOS_LIMIT] is special value meaning we are immune.

volume

Volume (in L) of the inside of the machine

Proc Details

connect

Allow the portable machine to be connected to a connector Arguments:

disconnect

Allow the portable machine to be disconnected from the connector

replace_tank

Allow the player to place a tank inside the machine. Arguments:

take_atmos_damage

Take damage if a variable is exceeded. Damage is equal to temp/limit * heat/limit. The damage multiplier is treated as 1 if something is being ignored while the other one is exceeded. On most cases only one will be exceeded, so the other one is scaled down.

unregister_holding

Holding tanks can get to zero integrity and be destroyed without other warnings due to pressure change. This checks for that case and removes our reference to it.