Fixed retreat command, more pathfinding
This commit is contained in:
@@ -131,7 +131,7 @@ public class HudFragment extends Fragment{
|
|||||||
//paused table
|
//paused table
|
||||||
parent.fill(t -> {
|
parent.fill(t -> {
|
||||||
t.top().visible(() -> state.is(State.paused) && !Net.active());
|
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
|
//'core is under attack' table
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class CommandCenter extends Block{
|
|||||||
public CommandCenter(String name){
|
public CommandCenter(String name){
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
flags = EnumSet.of(BlockFlag.comandCenter, BlockFlag.target);
|
flags = EnumSet.of(BlockFlag.comandCenter);
|
||||||
destructible = true;
|
destructible = true;
|
||||||
solid = true;
|
solid = true;
|
||||||
configurable = true;
|
configurable = true;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class ResupplyPoint extends Block{
|
|||||||
super(name);
|
super(name);
|
||||||
update = true;
|
update = true;
|
||||||
solid = true;
|
solid = true;
|
||||||
flags = EnumSet.of(BlockFlag.resupplyPoint, BlockFlag.target);
|
flags = EnumSet.of(BlockFlag.resupplyPoint);
|
||||||
layer = Layer.laser;
|
layer = Layer.laser;
|
||||||
hasItems = true;
|
hasItems = true;
|
||||||
hasPower = true;
|
hasPower = true;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class UnitPad extends Block{
|
|||||||
hasItems = true;
|
hasItems = true;
|
||||||
solid = false;
|
solid = false;
|
||||||
itemCapacity = 10;
|
itemCapacity = 10;
|
||||||
flags = EnumSet.of(BlockFlag.target);
|
flags = EnumSet.of(BlockFlag.producer);
|
||||||
|
|
||||||
consumes.require(ConsumeItems.class);
|
consumes.require(ConsumeItems.class);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ public enum BlockFlag{
|
|||||||
/**Point to drop off resources.*/
|
/**Point to drop off resources.*/
|
||||||
dropPoint(Float.MAX_VALUE),
|
dropPoint(Float.MAX_VALUE),
|
||||||
/**Producer of important goods.*/
|
/**Producer of important goods.*/
|
||||||
producer(20),
|
producer(Float.MAX_VALUE),
|
||||||
/**Just a turret.*/
|
/**Just a turret.*/
|
||||||
turret(20),
|
turret(Float.MAX_VALUE),
|
||||||
/**Producer or storage unit of volatile materials.*/
|
/**Producer or storage unit of volatile materials.*/
|
||||||
explosive(10),
|
explosive(Float.MAX_VALUE),
|
||||||
/**Repair point.*/
|
/**Repair point.*/
|
||||||
repair(Float.MAX_VALUE),
|
repair(Float.MAX_VALUE),
|
||||||
/**Special flag for command center blocks.*/
|
/**Special flag for command center blocks.*/
|
||||||
comandCenter(30);
|
comandCenter(Float.MAX_VALUE);
|
||||||
|
|
||||||
public final float cost;
|
public final float cost;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user