/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/atmospherics/atmos_helpers.dm

CANATMOSPASSCheck if the turfs allows gas passage based on density, do not use.
CANVERTICALATMOSPASSCheck if the turfs allows gas passage on a z level, do not use.
PIPING_LAYER_SHIFTMoves the icon of the device based on the piping layer and on the direction
PIPING_FORWARD_SHIFTMoves the icon of the device based on the piping layer and on the direction, the shift amount is dictated by more_shift
PIPING_LAYER_DOUBLE_SHIFTMoves the icon of the device based on the piping layer on both x and y
THERMAL_ENERGYCalculate the thermal energy of the selected gas (J)
ADD_GASDirectly adds a gas to a gas mixture without checking for its presence beforehand, use only if is certain the absence of said gas
ASSERT_GASAdds a gas to a gas mixture but checks if is already present, faster than the same proc
TOTAL_MOLESCalculate the total moles of the gas mixture, faster than the proc, good for performance critical areas
GAS_OVERLAYSReturns a list of overlays of every gas in the mixture

Define Details

ADD_GAS

Directly adds a gas to a gas mixture without checking for its presence beforehand, use only if is certain the absence of said gas

ASSERT_GAS

Adds a gas to a gas mixture but checks if is already present, faster than the same proc

CANATMOSPASS

Check if the turfs allows gas passage based on density, do not use.

CANVERTICALATMOSPASS

Check if the turfs allows gas passage on a z level, do not use.

GAS_OVERLAYS

Returns a list of overlays of every gas in the mixture

PIPING_FORWARD_SHIFT

Moves the icon of the device based on the piping layer and on the direction, the shift amount is dictated by more_shift

PIPING_LAYER_DOUBLE_SHIFT

Moves the icon of the device based on the piping layer on both x and y

PIPING_LAYER_SHIFT

Moves the icon of the device based on the piping layer and on the direction

THERMAL_ENERGY

Calculate the thermal energy of the selected gas (J)

TOTAL_MOLES

Calculate the total moles of the gas mixture, faster than the proc, good for performance critical areas