mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Fix gas overlays (#10944)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1cd6e9fb41
commit
49f8cf7b8b
@@ -92,7 +92,7 @@
|
||||
// STEP 3 - Convert CO2 to O2 (Note: We know our internal group multipier is 1, so just be cool)
|
||||
var/co2_moles = internal.gas[input_gas]
|
||||
if(co2_moles < MINIMUM_MOLES_TO_FILTER)
|
||||
ui_error = "Insufficient [gas_data.name[input_gas]] to process."
|
||||
ui_error = "Insufficient [GLOB.gas_data.name[input_gas]] to process."
|
||||
update_icon()
|
||||
return
|
||||
|
||||
@@ -194,13 +194,13 @@
|
||||
if(air1 && network1 && node1)
|
||||
data["input"] = list(
|
||||
"pressure" = air1.return_pressure(),
|
||||
"name" = gas_data.name[input_gas],
|
||||
"name" = GLOB.gas_data.name[input_gas],
|
||||
"percent" = air1.total_moles > 0 ? round((air1.gas[input_gas] / air1.total_moles) * 100) : 0,
|
||||
"moles" = round(air1.gas[input_gas], 0.01))
|
||||
if(air2 && network2 && node2)
|
||||
data["output"] = list(
|
||||
"pressure" = air2.return_pressure(),
|
||||
"name" = gas_data.name[output_gas],
|
||||
"name" = GLOB.gas_data.name[output_gas],
|
||||
"percent" = air2.total_moles ? round((air2.gas[output_gas] / air2.total_moles) * 100) : 0,
|
||||
"moles" = round(air2.gas[output_gas], 0.01))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user