Scale impact reactor warmup time with boost (#4317)

This commit is contained in:
Patrick 'Quezler' Mounier 2021-01-15 23:09:39 +01:00 committed by GitHub
parent 2d3a9b605a
commit f3b1ef02e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ public class ImpactReactor extends PowerGenerator{
if(consValid() && power.status >= 0.99f){
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)){
warmup = 1f;
}