Fixed retreat command, more pathfinding

This commit is contained in:
Anuken
2018-08-07 18:26:16 -04:00
parent 8dea45d9d5
commit 1f59d4354a
5 changed files with 8 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ public class HudFragment extends Fragment{
//paused table
parent.fill(t -> {
t.top().visible(() -> state.is(State.paused) && !Net.active());
t.table("pane", top -> top.add("[orange]< " + Bundles.get("text.paused") + " >").pad(6).get().setFontScale(fontScale * 1.5f));
t.table("clear", top -> top.add("[orange]< " + Bundles.get("text.paused") + " >").pad(6).get().setFontScale(fontScale * 1.5f));
});
//'core is under attack' table

View File

@@ -38,7 +38,7 @@ public class CommandCenter extends Block{
public CommandCenter(String name){
super(name);
flags = EnumSet.of(BlockFlag.comandCenter, BlockFlag.target);
flags = EnumSet.of(BlockFlag.comandCenter);
destructible = true;
solid = true;
configurable = true;

View File

@@ -32,7 +32,7 @@ public class ResupplyPoint extends Block{
super(name);
update = true;
solid = true;
flags = EnumSet.of(BlockFlag.resupplyPoint, BlockFlag.target);
flags = EnumSet.of(BlockFlag.resupplyPoint);
layer = Layer.laser;
hasItems = true;
hasPower = true;

View File

@@ -54,7 +54,7 @@ public class UnitPad extends Block{
hasItems = true;
solid = false;
itemCapacity = 10;
flags = EnumSet.of(BlockFlag.target);
flags = EnumSet.of(BlockFlag.producer);
consumes.require(ConsumeItems.class);
}

View File

@@ -8,15 +8,15 @@ public enum BlockFlag{
/**Point to drop off resources.*/
dropPoint(Float.MAX_VALUE),
/**Producer of important goods.*/
producer(20),
producer(Float.MAX_VALUE),
/**Just a turret.*/
turret(20),
turret(Float.MAX_VALUE),
/**Producer or storage unit of volatile materials.*/
explosive(10),
explosive(Float.MAX_VALUE),
/**Repair point.*/
repair(Float.MAX_VALUE),
/**Special flag for command center blocks.*/
comandCenter(30);
comandCenter(Float.MAX_VALUE);
public final float cost;