Scale impact reactor warmup time with boost (#4317)
This commit is contained in:
committed by
GitHub
parent
2d3a9b605a
commit
f3b1ef02e3
@@ -72,7 +72,7 @@ public class ImpactReactor extends PowerGenerator{
|
|||||||
if(consValid() && power.status >= 0.99f){
|
if(consValid() && power.status >= 0.99f){
|
||||||
boolean prevOut = getPowerProduction() <= consumes.getPower().requestedPower(this);
|
boolean prevOut = getPowerProduction() <= consumes.getPower().requestedPower(this);
|
||||||
|
|
||||||
warmup = Mathf.lerpDelta(warmup, 1f, warmupSpeed);
|
warmup = Mathf.lerpDelta(warmup, 1f, warmupSpeed * timeScale());
|
||||||
if(Mathf.equal(warmup, 1f, 0.001f)){
|
if(Mathf.equal(warmup, 1f, 0.001f)){
|
||||||
warmup = 1f;
|
warmup = 1f;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user