Removed redundant parens
This commit is contained in:
@@ -114,7 +114,7 @@ public class Conveyor extends Block implements Autotiler{
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
int frame = enabled && clogHeat <= 0.5f ? (int)(((Time.time * speed * 8f * timeScale())) % 4) : 0;
|
||||
int frame = enabled && clogHeat <= 0.5f ? (int)(((Time.time * speed * 8f * timeScale)) % 4) : 0;
|
||||
|
||||
//draw extra conveyors facing this one for non-square tiling purposes
|
||||
Draw.z(Layer.blockUnder);
|
||||
|
||||
@@ -45,7 +45,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
|
||||
bars.add("poweroutput", (GeneratorBuild entity) -> new Bar(() ->
|
||||
Core.bundle.format("bar.poweroutput",
|
||||
Strings.fixed(Math.max(entity.getPowerProduction() - consumes.getPower().usage, 0) * 60 * entity.timeScale(), 1)),
|
||||
Strings.fixed(Math.max(entity.getPowerProduction() - consumes.getPower().usage, 0) * 60 * entity.timeScale, 1)),
|
||||
() -> Pal.powerBar,
|
||||
() -> entity.productionEfficiency));
|
||||
}
|
||||
@@ -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 * timeScale());
|
||||
warmup = Mathf.lerpDelta(warmup, 1f, warmupSpeed * timeScale);
|
||||
if(Mathf.equal(warmup, 1f, 0.001f)){
|
||||
warmup = 1f;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
Events.fire(Trigger.impactPower);
|
||||
}
|
||||
|
||||
if(timer(timerUse, itemDuration / timeScale())){
|
||||
if(timer(timerUse, itemDuration / timeScale)){
|
||||
consume();
|
||||
}
|
||||
}else{
|
||||
|
||||
@@ -81,7 +81,7 @@ public class NuclearReactor extends PowerGenerator{
|
||||
if(fuel > 0 && enabled){
|
||||
heat += fullness * heating * Math.min(delta(), 4f);
|
||||
|
||||
if(timer(timerFuel, itemDuration / timeScale())){
|
||||
if(timer(timerFuel, itemDuration / timeScale)){
|
||||
consume();
|
||||
}
|
||||
}else{
|
||||
|
||||
@@ -90,7 +90,7 @@ public class Drill extends Block{
|
||||
super.setBars();
|
||||
|
||||
bars.add("drillspeed", (DrillBuild e) ->
|
||||
new Bar(() -> Core.bundle.format("bar.drillspeed", Strings.fixed(e.lastDrillSpeed * 60 * e.timeScale(), 2)), () -> Pal.ammo, () -> e.warmup));
|
||||
new Bar(() -> Core.bundle.format("bar.drillspeed", Strings.fixed(e.lastDrillSpeed * 60 * e.timeScale, 2)), () -> Pal.ammo, () -> e.warmup));
|
||||
}
|
||||
|
||||
public Item getDrop(Tile tile){
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Unloader extends Block{
|
||||
|
||||
@Override
|
||||
public void updateTile(){
|
||||
if(timer(timerUnload, speed / timeScale())){
|
||||
if(timer(timerUnload, speed / timeScale)){
|
||||
if(rotations == null || rotations.length != proximity.size){
|
||||
rotations = new int[proximity.size];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user