Fixed thorium reactor heat output again
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user