From 83f0a7a4d29a1fedca460103bab021d9e0f548a4 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Fri, 31 Jan 2025 10:56:01 -0500 Subject: [PATCH] Places a limit on gas_coefficient to limit rad issues (#27921) * Places a limit on gas_coefficient to limit rad issues * formula --- code/modules/power/engines/supermatter/supermatter.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/engines/supermatter/supermatter.dm b/code/modules/power/engines/supermatter/supermatter.dm index dfb6ee07def..207a4d9e6f9 100644 --- a/code/modules/power/engines/supermatter/supermatter.dm +++ b/code/modules/power/engines/supermatter/supermatter.dm @@ -567,7 +567,7 @@ var/crush_ratio = combined_gas / MOLE_CRUNCH_THRESHOLD - gas_coefficient = 1 + (crush_ratio ** 2 * (crush_ratio <= 1) + (crush_ratio > 1) * crush_ratio ** 0.5) * (plasmacomp * PLASMA_CRUNCH + o2comp * O2_CRUNCH + co2comp * CO2_CRUNCH + n2comp * N2_CRUNCH + n2ocomp * N2O_CRUNCH) + gas_coefficient = 1 + (crush_ratio ** 2 * (crush_ratio <= 1) + (crush_ratio > 1) * 2 * crush_ratio / (crush_ratio + 1)) * (plasmacomp * PLASMA_CRUNCH + o2comp * O2_CRUNCH + co2comp * CO2_CRUNCH + n2comp * N2_CRUNCH + n2ocomp * N2O_CRUNCH) if(prob(50)) radiation_pulse(src, power * (gas_coefficient + max(0, ((power_transmission_bonus / 10)))))