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

tank

Vars

air_contentsReference to the gas mix inside the tank
breaking_soundsThe sounds that play when the tank is breaking from overpressure
crack_statesThe icon states for the cracks in the tank dmi
crack_states_countNumber of crack states to fill the list with. This exists because I'm lazy and didn't want to keeping adding more things manually to the below list.
gas_holderHolder for our gas overlays used to alpha mask them
gas_typeThe typepath of the gas this tank should be filled with.
greyscaled_iconCached GAGS icon for our window
knob_overlaysShared images for the knob overlay representing a side of the tank that is open to connections
max_pressureThe max pressure of the gas mixture before damaging the tank
merger_idThe merger id used to create/get the merger group in charge of handling tanks that share an internal gas storage
merger_typecacheThe typecache of types which are allowed to merge internal storage
open_portsThe open node directions of the tank, assuming that the tank is facing NORTH.
starting_pressure_percentUp to how much percent of the max pressure do we fill the tank on init
volumeThe volume of the gas mixture
window_glassWindow glass visual rendered ontop of gases

Procs

fill_to_pressureFills the tank to the maximum safe pressure. Safety margin is a multiplier for the cap for the purpose of this proc so it doesn't have to be filled completely.
merger_refresh_completeHandles the combined gas tank for the entire merger group, only the origin tank actualy runs this.
refresh_pressure_limitRecalculates pressure based on the current max integrity compared to original
set_portdir_relativeEnables/Disables a port direction in var/open_ports.
Use this, then call set_init_directions() instead of setting initialize_directions directly
This system exists because tanks not having all initialize_directions set correctly breaks shuttle rotations
toggle_portdir_relativeToggles a port direction in var/open_ports
Use this, then call set_init_directions() instead of setting initialize_directions directly
This system exists because tanks not having all initialize_directions set correctly breaks shuttle rotations

Var Details

air_contents

Reference to the gas mix inside the tank

breaking_sounds

The sounds that play when the tank is breaking from overpressure

crack_states

The icon states for the cracks in the tank dmi

crack_states_count

Number of crack states to fill the list with. This exists because I'm lazy and didn't want to keeping adding more things manually to the below list.

gas_holder

Holder for our gas overlays used to alpha mask them

gas_type

The typepath of the gas this tank should be filled with.

greyscaled_icon

Cached GAGS icon for our window

knob_overlays

Shared images for the knob overlay representing a side of the tank that is open to connections

max_pressure

The max pressure of the gas mixture before damaging the tank

merger_id

The merger id used to create/get the merger group in charge of handling tanks that share an internal gas storage

merger_typecache

The typecache of types which are allowed to merge internal storage

open_ports

The open node directions of the tank, assuming that the tank is facing NORTH.

starting_pressure_percent

Up to how much percent of the max pressure do we fill the tank on init

volume

The volume of the gas mixture

window_glass

Window glass visual rendered ontop of gases

Proc Details

fill_to_pressure

Fills the tank to the maximum safe pressure. Safety margin is a multiplier for the cap for the purpose of this proc so it doesn't have to be filled completely.

merger_refresh_complete

Handles the combined gas tank for the entire merger group, only the origin tank actualy runs this.

refresh_pressure_limit

Recalculates pressure based on the current max integrity compared to original

set_portdir_relative

Enables/Disables a port direction in var/open_ports.
Use this, then call set_init_directions() instead of setting initialize_directions directly
This system exists because tanks not having all initialize_directions set correctly breaks shuttle rotations

toggle_portdir_relative

Toggles a port direction in var/open_ports
Use this, then call set_init_directions() instead of setting initialize_directions directly
This system exists because tanks not having all initialize_directions set correctly breaks shuttle rotations