Code Cleanup

This commit is contained in:
Shade
2024-03-19 19:03:06 +08:00
parent 65156e4409
commit 4070a5e180

View File

@@ -11,12 +11,9 @@ import mindustry.entities.*;
import mindustry.gen.*; import mindustry.gen.*;
import mindustry.graphics.*; import mindustry.graphics.*;
import mindustry.type.*; import mindustry.type.*;
import mindustry.world.blocks.environment.*;
import mindustry.world.consumers.*; import mindustry.world.consumers.*;
import mindustry.world.meta.*; import mindustry.world.meta.*;
import static mindustry.Vars.*;
public class BurstDrill extends Drill{ public class BurstDrill extends Drill{
public float shake = 2f; public float shake = 2f;
public Interp speedCurve = Interp.pow2In; public Interp speedCurve = Interp.pow2In;
@@ -87,7 +84,7 @@ public class BurstDrill extends Drill{
if(timer(timerDump, dumpTime)){ if(timer(timerDump, dumpTime)){
dump(items.has(dominantItem) ? dominantItem : null); dump(items.has(dominantItem) ? dominantItem : null);
} }
float drillTime = getDrillTime(dominantItem); float drillTime = getDrillTime(dominantItem);
smoothProgress = Mathf.lerpDelta(smoothProgress, progress / (drillTime - 20f), 0.1f); smoothProgress = Mathf.lerpDelta(smoothProgress, progress / (drillTime - 20f), 0.1f);