diff --git a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm index a593d2fef79..47e8c6e125e 100644 --- a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm +++ b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm @@ -919,12 +919,6 @@ //The amount of heat that is finally emitted, based on the power output. Min and max are variables that depends of the modifier heat_output = clamp(internal_instability * power_output * heat_modifier / 100, - heat_limiter_modifier * 0.01, heat_limiter_modifier) - //Modifies the internal_fusion temperature with the amount of heat output - if(internal_fusion.temperature <= FUSION_MAXIMUM_TEMPERATURE) - internal_fusion.temperature = clamp(internal_fusion.temperature + heat_output,TCMB,FUSION_MAXIMUM_TEMPERATURE) - else - internal_fusion.temperature -= heat_limiter_modifier * 0.01 * delta_time - var/datum/gas_mixture/internal_output = new //gas consumption and production if(check_fuel()) @@ -1065,6 +1059,12 @@ moderator_internal.gases[/datum/gas/healium][MOLES] -= min(moderator_internal.gases[/datum/gas/healium][MOLES], scaled_production * 20) internal_fusion.gases[/datum/gas/antinoblium][MOLES] += 0.01 * (scaled_helium / (fuel_injection_rate * 0.0095)) * delta_time + //Modifies the internal_fusion temperature with the amount of heat output + if(internal_fusion.temperature <= FUSION_MAXIMUM_TEMPERATURE) + internal_fusion.temperature = clamp(internal_fusion.temperature + heat_output,TCMB,FUSION_MAXIMUM_TEMPERATURE) + else + internal_fusion.temperature -= heat_limiter_modifier * 0.01 * delta_time + //heat up and output what's in the internal_output into the linked_output port if(internal_output.total_moles() > 0) if(moderator_internal.total_moles() > 0)