Merge pull request #15756 from Putnam3145/supermatter-less-death

Nitric oxide second pass (+ some prettiness stuff in the UI)
This commit is contained in:
Lin
2022-08-08 00:17:43 +00:00
committed by GitHub
3 changed files with 29 additions and 4 deletions
+2 -1
View File
@@ -135,12 +135,13 @@
id = GAS_NITRIC
specific_heat = 20
name = "Nitric oxide"
flags = GAS_FLAG_DANGEROUS
odor = "sharp sweetness"
odor_strength = 1
fusion_power = 15
enthalpy = 91290
heat_resistance = 2
powermix = -1
heat_penalty = -1
/datum/gas/nitryl
id = GAS_NITRYL
@@ -729,11 +729,11 @@
/datum/gas_reaction/nitric_oxide/react(datum/gas_mixture/air, datum/holder)
var/nitric = air.get_moles(GAS_NITRIC)
var/oxygen = air.get_moles(GAS_O2)
var/max_amount = max(nitric / 10, MINIMUM_MOLE_COUNT)
var/enthalpy = air.return_temperature() * (air.heat_capacity() + R_IDEAL_GAS_EQUATION * air.total_moles());
var/max_amount = max(nitric / 8, MINIMUM_MOLE_COUNT)
var/enthalpy = air.return_temperature() * (air.heat_capacity() + R_IDEAL_GAS_EQUATION * air.total_moles())
var/list/enthalpies = GLOB.gas_data.enthalpies
if(oxygen > MINIMUM_MOLE_COUNT)
var/reaction_amount = min(max_amount, oxygen)
var/reaction_amount = min(max_amount, oxygen)/4
air.adjust_moles(GAS_NITRIC, -reaction_amount*2)
air.adjust_moles(GAS_O2, -reaction_amount)
air.adjust_moles(GAS_NITRYL, reaction_amount*2)
+24
View File
@@ -181,6 +181,12 @@ const GASES = [
'label': 'N₂O',
'color': 'red',
},
{
'id': 'no',
'name': 'Nitric Oxide',
'label': 'NO',
'color': 'red',
},
{
'id': 'no2',
'name': 'Nitryl',
@@ -223,6 +229,24 @@ const GASES = [
'label': 'H₂',
'color': 'white',
},
{
'id': 'methane',
'name': 'Methane',
'label': 'CH₄',
'color': 'grey',
},
{
'id': 'methyl_bromide',
'name': 'Methyl Bromide',
'label': 'CH₃Br',
'color': 'brown',
},
{
'id': 'qcd',
'name': 'Quark Matter',
'label': 'QGP',
'color': 'pink',
},
];
export const getGasLabel = (gasId, fallbackValue) => {