Code cleanup

This commit is contained in:
Anuken
2020-12-16 10:39:28 -05:00
parent 4ad234ad75
commit d0cba1aff2
29 changed files with 38 additions and 60 deletions

View File

@@ -41,7 +41,7 @@ public class BlockForge extends PayloadAcceptor{
public void setBars(){
super.setBars();
bars.add("progress", (BlockForgeBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.recipe == null ? 0f : (float)(entity.progress / entity.recipe.buildCost)));
bars.add("progress", (BlockForgeBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.recipe == null ? 0f : (entity.progress / entity.recipe.buildCost)));
}
@Override

View File

@@ -81,7 +81,7 @@ public class Cultivator extends GenericCrafter{
float life = 1f - (((Time.time + offset) / 50f) % recurrence);
if(life > 0){
Lines.stroke(warmup * (life * 1f + 0.2f));
Lines.stroke(warmup * (life + 0.2f));
Lines.poly(x + x, y + y, 8, (1f - life) * 3f);
}
}

View File

@@ -6,7 +6,6 @@ import arc.graphics.g2d.*;
import arc.math.*;
import arc.math.geom.*;
import arc.struct.*;
import arc.util.*;
import mindustry.*;
import mindustry.annotations.Annotations.*;
import mindustry.content.*;