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

Gas Tank

Handheld gas canisters Can rupture explosively if overpressurized

Vars

air_contentsThe gases this tank contains. Don't modify this directly, use return_air() to get it instead
distribute_pressureThe pressure of the gases this tank supplies to internals.
excitedUsed by process() to track if there's a reason to process each tick
leakingWhether the tank is currently leaking.
tank_holder_icon_stateIcon state when in a tank holder. Null makes it incompatible with tank holder.
volumeThe volume of this tank. Among other things gas tank explosions (including TTVs) scale off of this. Be sure to account for that if you change this or you will break ~~toxins~~ordinance.

Procs

atom_breakHandles the tank springing a leak.
atom_destructionHandles rupturing and fragmenting
handle_tolerancesHandles the minimum and maximum pressure tolerances of the tank.
rad_actHandle fragmentation
remove_air_volumeRemoves some volume of the tanks gases as the tanks distribution pressure.

Var Details

air_contents

The gases this tank contains. Don't modify this directly, use return_air() to get it instead

distribute_pressure

The pressure of the gases this tank supplies to internals.

excited

Used by process() to track if there's a reason to process each tick

leaking

Whether the tank is currently leaking.

tank_holder_icon_state

Icon state when in a tank holder. Null makes it incompatible with tank holder.

volume

The volume of this tank. Among other things gas tank explosions (including TTVs) scale off of this. Be sure to account for that if you change this or you will break ~~toxins~~ordinance.

Proc Details

atom_break

Handles the tank springing a leak.

atom_destruction

Handles rupturing and fragmenting

handle_tolerances

Handles the minimum and maximum pressure tolerances of the tank.

Returns true if it did anything of significance, false otherwise Arguments:

rad_act

Handle fragmentation

remove_air_volume

Removes some volume of the tanks gases as the tanks distribution pressure.

Arguments: