From 36c1a4553cfd558c6d50be12109b7d6d12c770cc Mon Sep 17 00:00:00 2001 From: Ghilker <42839747+Ghilker@users.noreply.github.com> Date: Fri, 11 Mar 2022 12:59:14 +0100 Subject: [PATCH] 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) --- code/modules/power/supermatter/supermatter.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index d151308190f..d19f6b8e80a 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -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)