Fix Variable Reactor power output (#7600)
This commit is contained in:
@@ -78,7 +78,7 @@ public class VariableReactor extends PowerGenerator{
|
|||||||
public void updateTile(){
|
public void updateTile(){
|
||||||
heat = calculateHeat(sideHeat);
|
heat = calculateHeat(sideHeat);
|
||||||
|
|
||||||
productionEfficiency = Mathf.clamp(heat / maxHeat) * efficiency;
|
productionEfficiency = efficiency;
|
||||||
warmup = Mathf.lerpDelta(warmup, productionEfficiency > 0 ? 1f : 0f, warmupSpeed);
|
warmup = Mathf.lerpDelta(warmup, productionEfficiency > 0 ? 1f : 0f, warmupSpeed);
|
||||||
|
|
||||||
if(instability >= 1f){
|
if(instability >= 1f){
|
||||||
|
|||||||
Reference in New Issue
Block a user