1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-11 03:31:19 +03:00

Misc cleanup

This commit is contained in:
Anuken 2021-03-16 21:51:12 -04:00
parent 89997ad8d4
commit 786d638ad0
5 changed files with 6 additions and 15 deletions

View File

@ -32,7 +32,6 @@ public class BaseAI{
private static final Seq<Tile> tmpTiles = new Seq<>();
private static int correct = 0, incorrect = 0;
private static boolean anyDrills;
private int lastX, lastY, lastW, lastH;
private boolean triedWalls, foundPath;
@ -228,7 +227,7 @@ public class BaseAI{
//make sure at least X% of resource requirements are met
correct = incorrect = 0;
anyDrills = false;
boolean anyDrills = false;
if(part.required instanceof Item){
for(Stile tile : result.tiles){

View File

@ -10,12 +10,8 @@ import mindustry.logic.LExecutor.*;
public class LAssembler{
public static ObjectMap<String, Func<String[], LStatement>> customParsers = new ObjectMap<>();
public static final int maxTokenLength = 36;
private static final int invalidNum = Integer.MIN_VALUE;
private static final StringMap opNameChanges = StringMap.of(
"atan2", "angle",
"dst", "len"
);
private static final int invalidNum = Integer.MIN_VALUE;
private int lastVar;
/** Maps names to variable IDs. */

View File

@ -51,7 +51,7 @@ public abstract class LStatement{
}
protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter){
table.add(desc).padLeft(10).left().self(this::param);;
table.add(desc).padLeft(10).left().self(this::param);
return field(table, value, setter).width(85f).padRight(10).left();
}

View File

@ -905,7 +905,7 @@ public class LStatements{
void rebuild(Table table){
table.clearChildren();
table.add(" find ").left().self(this::param);;
table.add(" find ").left().self(this::param);
table.button(b -> {
b.label(() -> locate.name());
@ -918,14 +918,14 @@ public class LStatements{
switch(locate){
case building -> {
row(table);
table.add(" group ").left().self(this::param);;
table.add(" group ").left().self(this::param);
table.button(b -> {
b.label(() -> flag.name());
b.clicked(() -> showSelect(b, BlockFlag.allLogic, flag, t -> flag = t, 2, cell -> cell.size(110, 50)));
}, Styles.logict, () -> {}).size(110, 40).color(table.color).left().padLeft(2);
row(table);
table.add(" enemy ").left().self(this::param);;
table.add(" enemy ").left().self(this::param);
fields(table, enemy, str -> enemy = str);

View File

@ -115,10 +115,6 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
tile.floor = getBlock(position);
tile.block = tile.floor.asFloor().wall;
//if(noise.octaveNoise3D(5, 0.6, 8.0, position.x, position.y, position.z) > 0.65){
//tile.block = Blocks.air;
//}
if(rid.getValue(position.x, position.y, position.z, 22) > 0.32){
tile.block = Blocks.air;
}