/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
bomb_statusWhether or not it will try to explode when it receives a signal
breathing_mobMob that is currently breathing from the tank.
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
explosion_infoHow our particular tank explodes.
ignitingIf we are in the process of exploding, stops multi explosions
leakingWhether the tank is currently leaking.
reaction_infoList containing reactions happening inside our tank.
tank_assemblyAttached assembly, can either detonate the tank or release its contents when receiving a signal
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

after_internals_closedCalled by carbons after they disconnect the tank from their breathing apparatus.
after_internals_openedCalled by carbons after they connect the tank to their breathing apparatus.
atom_breakHandles the tank springing a leak.
atom_destructionHandles rupturing and fragmenting
bomb_assembleAttaches an assembly holder to the tank to create a bomb.
bomb_disassembleDetaches an assembly holder from the tank, disarming the bomb
equippedCloses the tank if given to another mob while open.
handle_tolerancesHandles the minimum and maximum pressure tolerances of the tank.
igniteIgnites the contents of the tank. Called when receiving a signal if the tank is welded and has an igniter attached.
merging_informationHandle fragmentation
releaseUsed to determine what the temperature of the hotspot when it isn't able to explode Releases air stored in the tank. Called when signaled without being welded, or when ignited without enough pressure to explode.
remove_air_volumeRemoves some volume of the tanks gases as the tanks distribution pressure.
toggle_internalsAttempts to toggle the mob's internals on or off using this tank. Returns TRUE if successful.

Var Details

air_contents

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

bomb_status

Whether or not it will try to explode when it receives a signal

breathing_mob

Mob that is currently breathing from the tank.

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

explosion_info

How our particular tank explodes.

igniting

If we are in the process of exploding, stops multi explosions

leaking

Whether the tank is currently leaking.

reaction_info

List containing reactions happening inside our tank.

tank_assembly

Attached assembly, can either detonate the tank or release its contents when receiving a signal

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

after_internals_closed

Called by carbons after they disconnect the tank from their breathing apparatus.

after_internals_opened

Called by carbons after they connect the tank to their breathing apparatus.

atom_break

Handles the tank springing a leak.

atom_destruction

Handles rupturing and fragmenting

bomb_assemble

Attaches an assembly holder to the tank to create a bomb.

bomb_disassemble

Detaches an assembly holder from the tank, disarming the bomb

equipped

Closes the tank if given to another mob while open.

handle_tolerances

Handles the minimum and maximum pressure tolerances of the tank.

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

ignite

Ignites the contents of the tank. Called when receiving a signal if the tank is welded and has an igniter attached.

merging_information

Handle fragmentation

release

Used to determine what the temperature of the hotspot when it isn't able to explode Releases air stored in the tank. Called when signaled without being welded, or when ignited without enough pressure to explode.

remove_air_volume

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

Arguments:

toggle_internals

Attempts to toggle the mob's internals on or off using this tank. Returns TRUE if successful.