Goonstation 13 - Modules - TypesDefine Details

_std/macros/atmos.dm

R_IDEAL_GAS_EQUATIONin kPa * L/(K * mol)
ONE_ATMOSPHERE1atm, now in kPa
MOLES_O2STANDARDO2 standard value (21%)
MOLES_N2STANDARDN2 standard value (79%)
MOLES_GAS_VISIBLEMoles in a standard cell after which visible gases are visible
GAS_IMG_PLASMAPlasma Tile Overlay Id
GAS_IMG_N2ON20 Tile Overlay Id
GAS_IMG_RADRad Particles Tile Overlay Id
ALPHA_GAS_OVERLAYSEnables gas overlays to have continuous opacity based on molarity
ALPHA_GAS_COMPRESSIONFactor that reduces the number of gas opacity levels, higher = better performance and worse visuals
UPDATE_GAS_MIXTURE_GRAPHICGiven gas mixture's graphics var and gas overlay id and gas moles sets the graphics so the gas is rendered if there are right conditions
UPDATE_TILE_GAS_OVERLAYGiven the VISUALS_STATE bit field and gas overlay id as defined above it possibly adds the right overlay to TILE_GRAPHIC
BREATH_VOLUMEliters in a normal breath
BREATH_PERCENTAGEAmount of air to take a from a tile
HUMAN_NEEDED_OXYGENAmount of air needed before pass out/suffocation commences
MINIMUM_AIR_RATIO_TO_SUSPENDMinimum ratio of air that must move to/from a tile to suspend group processing
MINIMUM_AIR_TO_SUSPENDMinimum amount of air that has to move before a group processing can be suspended
MINIMUM_TEMPERATURE_DELTA_TO_SUSPENDMinimum temperature difference before group processing is suspended
MINIMUM_TEMPERATURE_DELTA_TO_CONSIDERMinimum temperature difference before the gas temperatures are just set to be equa
FIRE_CARBON_ENERGY_RELEASEDAmount of heat released per mole of burnt carbon into the tile
FIRE_PLASMA_ENERGY_RELEASEDAmount of heat released per mole of burnt plasma into the tile
HOTSPOT_MAX_NOCAT_TEMPERATUREHotspot Maximum Temperature without a catalyst
HOTSPOT_MAX_CAT_TEMPERATUREHotspot Maximum Temperature to maintain maths works to 1e35-sh in practice)
REACTION_ACTIVEReaction is Active
COMBUSTION_ACTIVECombustion is Active
CATALYST_ACTIVEHotspot Catalyst is Active
TANK_LEAK_PRESSURETank starts leaking
TANK_RUPTURE_PRESSURETank spills all contents into atmosphere
/proc/gas_text_color Enables debug overlay which counts process_cell() calls per turf (viewable through info-overlays) Enables debug overlay which counts all atmos operations per turf (viewable through info-overlays) Puts a list of turfs which get processed a lot into global.hotly_processed_turf for debugging Returns the color of a given gas ID.
_ZERO_GASGiven a gas mixture, zeroes it
TOTAL_MOLESReturns total moles of a given gas mixture

Define Details

ALPHA_GAS_COMPRESSION

Factor that reduces the number of gas opacity levels, higher = better performance and worse visuals

ALPHA_GAS_OVERLAYS

Enables gas overlays to have continuous opacity based on molarity

BREATH_PERCENTAGE

Amount of air to take a from a tile

BREATH_VOLUME

liters in a normal breath

CATALYST_ACTIVE

Hotspot Catalyst is Active

COMBUSTION_ACTIVE

Combustion is Active

FIRE_CARBON_ENERGY_RELEASED

Amount of heat released per mole of burnt carbon into the tile

FIRE_PLASMA_ENERGY_RELEASED

Amount of heat released per mole of burnt plasma into the tile

GAS_IMG_N2O

N20 Tile Overlay Id

GAS_IMG_PLASMA

Plasma Tile Overlay Id

GAS_IMG_RAD

Rad Particles Tile Overlay Id

HOTSPOT_MAX_CAT_TEMPERATURE

Hotspot Maximum Temperature to maintain maths works to 1e35-sh in practice)

HOTSPOT_MAX_NOCAT_TEMPERATURE

Hotspot Maximum Temperature without a catalyst

HUMAN_NEEDED_OXYGEN

Amount of air needed before pass out/suffocation commences

MINIMUM_AIR_RATIO_TO_SUSPEND

Minimum ratio of air that must move to/from a tile to suspend group processing

MINIMUM_AIR_TO_SUSPEND

Minimum amount of air that has to move before a group processing can be suspended

MINIMUM_TEMPERATURE_DELTA_TO_CONSIDER

Minimum temperature difference before the gas temperatures are just set to be equa

MINIMUM_TEMPERATURE_DELTA_TO_SUSPEND

Minimum temperature difference before group processing is suspended

MOLES_GAS_VISIBLE

Moles in a standard cell after which visible gases are visible

MOLES_N2STANDARD

N2 standard value (79%)

MOLES_O2STANDARD

O2 standard value (21%)

ONE_ATMOSPHERE

1atm, now in kPa

REACTION_ACTIVE

Reaction is Active

R_IDEAL_GAS_EQUATION

in kPa * L/(K * mol)

TANK_LEAK_PRESSURE

Tank starts leaking

TANK_RUPTURE_PRESSURE

Tank spills all contents into atmosphere

TOTAL_MOLES

Returns total moles of a given gas mixture

UPDATE_GAS_MIXTURE_GRAPHIC

Given gas mixture's graphics var and gas overlay id and gas moles sets the graphics so the gas is rendered if there are right conditions

UPDATE_TILE_GAS_OVERLAY

Given the VISUALS_STATE bit field and gas overlay id as defined above it possibly adds the right overlay to TILE_GRAPHIC

_ZERO_GAS

Given a gas mixture, zeroes it