Paradise Station 13 - Modules - TypesProc Details

gas_mixture

Procs

archiveUpdate archived versions of variables. Returns: TRUE in all cases
copy_from_turfCopies all gas info from the turf into the gas list along with temperature Returns: TRUE if we are mutable, FALSE otherwise
get_breath_partial_pressureTakes the amount of the gas you want to PP as an argument So I don't have to do some hacky switches/defines/magic strings eg: Tox_PP = get_partial_pressure(gas_mixture.toxins) O2_PP = get_partial_pressure(gas_mixture.oxygen)
get_true_breath_pressureinverse
heat_capacityjoules per kelvin
mergeMerges all air from giver into self. Deletes giver. Returns: TRUE if we are mutable, FALSE otherwise
reactPerforms various reactions such as combustion or fusion (LOL) Returns: TRUE if any reaction took place; FALSE otherwise
removeProportionally removes amount of gas from the gas_mixture. Returns: gas_mixture with the gases removed
remove_ratioProportionally removes amount of gas from the gas_mixture. Returns: gas_mixture with the gases removed
return_pressureCalculate pressure in kilopascals
return_temperatureCalculate temperature in kelvins
return_volumeCalculate volume in liters
sharePerforms air sharing calculations between two gas_mixtures assuming only 1 boundary length Returns: amount of gas exchanged (+ if sharer received)
temperature_sharePerforms temperature sharing calculations (via conduction) between two gas_mixtures assuming only 1 boundary length Returns: new temperature of the sharer
thermal_energyCalculate thermal energy in joules
total_molesCalculate moles

Proc Details

archive

Update archived versions of variables. Returns: TRUE in all cases

copy_from_turf

Copies all gas info from the turf into the gas list along with temperature Returns: TRUE if we are mutable, FALSE otherwise

get_breath_partial_pressure

Takes the amount of the gas you want to PP as an argument So I don't have to do some hacky switches/defines/magic strings eg: Tox_PP = get_partial_pressure(gas_mixture.toxins) O2_PP = get_partial_pressure(gas_mixture.oxygen)

get_true_breath_pressure

inverse

heat_capacity

joules per kelvin

merge

Merges all air from giver into self. Deletes giver. Returns: TRUE if we are mutable, FALSE otherwise

react

Performs various reactions such as combustion or fusion (LOL) Returns: TRUE if any reaction took place; FALSE otherwise

remove

Proportionally removes amount of gas from the gas_mixture. Returns: gas_mixture with the gases removed

remove_ratio

Proportionally removes amount of gas from the gas_mixture. Returns: gas_mixture with the gases removed

return_pressure

Calculate pressure in kilopascals

return_temperature

Calculate temperature in kelvins

return_volume

Calculate volume in liters

share

Performs air sharing calculations between two gas_mixtures assuming only 1 boundary length Returns: amount of gas exchanged (+ if sharer received)

temperature_share

Performs temperature sharing calculations (via conduction) between two gas_mixtures assuming only 1 boundary length Returns: new temperature of the sharer

thermal_energy

Calculate thermal energy in joules

total_moles

Calculate moles