More logic commands
This commit is contained in:
@@ -22,6 +22,7 @@ public class LogicAI extends AIController{
|
||||
public float moveX, moveY, moveRad;
|
||||
public float itemTimer, controlTimer = logicControlTimeout, targetTimer;
|
||||
public Building controller;
|
||||
public BuildPlan plan = new BuildPlan();
|
||||
|
||||
//special cache for instruction to store data
|
||||
public ObjectMap<Object, Object> execCache = new ObjectMap<>();
|
||||
@@ -90,6 +91,11 @@ public class LogicAI extends AIController{
|
||||
}
|
||||
}
|
||||
}
|
||||
case stop -> {
|
||||
if(unit instanceof Builderc build){
|
||||
build.clearBuilding();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(unit.type().canBoost && !unit.type().flying){
|
||||
|
||||
Reference in New Issue
Block a user