Fixed thorium reactor heat output again

This commit is contained in:
Anuken
2025-11-01 11:31:39 -04:00
parent 986cbe1d25
commit c7ef1535aa

View File

@@ -31,7 +31,7 @@ public class NuclearReactor extends PowerGenerator{
/** heating per frame * fullness */
public float heating = 0.01f;
/** max heat this block can output */
public float heatOutput = 10f;
public float heatOutput = 15f;
/** rate at which heat progress increases */
public float heatWarmupRate = 1f;
/** threshold at which block starts smoking */
@@ -121,7 +121,7 @@ public class NuclearReactor extends PowerGenerator{
}
heat = Mathf.clamp(heat);
heatProgress = heatOutput > 0f ? Mathf.approachDelta(heatProgress, heat * heatOutput * efficiency, heatWarmupRate * delta()) : 0f;
heatProgress = heatOutput > 0f ? Mathf.approachDelta(heatProgress, heat * heatOutput * (enabled ? 1f : 0f), heatWarmupRate * delta()) : 0f;
if(heat >= 0.999f){
Events.fire(Trigger.thoriumReactorOverheat);