reduce pluox produced by the SM (#65120)

Decrease the pluoxium produced when exposing co2 to the SM by 5 times.
Decrease the co2 consumed by that process by half

CO2 setups were getting much harder to maintain due to the increased consumption of co2 and production of pluoxium at high level setups. This allows a more fine tuning of the gases and rebalances the gases production/consumption to be around the old levels (pre rads)
This commit is contained in:
Ghilker
2022-03-11 03:59:14 -08:00
committed by GitHub
parent 6fc90a5b3d
commit 36c1a4553c
@@ -667,11 +667,11 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if(gas_comp[/datum/gas/carbon_dioxide] && gas_comp[/datum/gas/oxygen])
var/carbon_dioxide_pp = env.return_pressure() * gas_comp[/datum/gas/carbon_dioxide]
var/consumed_carbon_dioxide = clamp(((carbon_dioxide_pp - CO2_CONSUMPTION_PP) / (carbon_dioxide_pp + CO2_PRESSURE_SCALING)), CO2_CONSUMPTION_RATIO_MIN, CO2_CONSUMPTION_RATIO_MAX)
consumed_carbon_dioxide = min(consumed_carbon_dioxide * gas_comp[/datum/gas/carbon_dioxide] * combined_gas, removed.gases[/datum/gas/carbon_dioxide][MOLES], removed.gases[/datum/gas/oxygen][MOLES] * INVERSE(0.5))
consumed_carbon_dioxide = min(consumed_carbon_dioxide * gas_comp[/datum/gas/carbon_dioxide] * combined_gas, removed.gases[/datum/gas/carbon_dioxide][MOLES] * INVERSE(0.5), removed.gases[/datum/gas/oxygen][MOLES] * INVERSE(0.5))
if(consumed_carbon_dioxide)
removed.gases[/datum/gas/carbon_dioxide][MOLES] -= consumed_carbon_dioxide
removed.gases[/datum/gas/carbon_dioxide][MOLES] -= consumed_carbon_dioxide * 0.5
removed.gases[/datum/gas/oxygen][MOLES] -= consumed_carbon_dioxide * 0.5
removed.gases[/datum/gas/pluoxium][MOLES] += consumed_carbon_dioxide * 0.5
removed.gases[/datum/gas/pluoxium][MOLES] += consumed_carbon_dioxide * 0.25
//more moles of gases are harder to heat than fewer, so let's scale heat damage around them
mole_heat_penalty = max(combined_gas / MOLE_HEAT_PENALTY, 0.25)