Gas Tank
Handheld gas canisters Can rupture explosively if overpressurized
Vars | |
air_contents | The gases this tank contains. Don't modify this directly, use return_air() to get it instead |
---|---|
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. |
leaking | Whether the tank is currently leaking. |
reaction_info | List containing reactions happening inside our tank. |
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. |
Procs | |
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 |
dropped | Closes the tank if dropped while open. |
equipped | Closes the tank if given to another mob while open. |
handle_tolerances | Handles the minimum and maximum pressure tolerances of the tank. |
merging_information | Handle fragmentation Holy. Fucking. Shit. This is AGONIZING. Give me /obj/proc/fragmentate() PLEASE. |
remove_air_volume | Removes some volume of the tanks gases as the tanks distribution pressure. |
toggle_internals | Attempts 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
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.
leaking
Whether the tank is currently leaking.
reaction_info
List containing reactions happening inside our tank.
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
dropped
Closes the tank if dropped while open.
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:
- delta_time: How long has passed between ticks.
merging_information
Handle fragmentation Holy. Fucking. Shit. This is AGONIZING. Give me /obj/proc/fragmentate() PLEASE.
remove_air_volume
Removes some volume of the tanks gases as the tanks distribution pressure.
Arguments:
- volume_to_return: The amount of volume to remove from the tank.
toggle_internals
Attempts to toggle the mob's internals on or off using this tank. Returns TRUE if successful.