More logic commands

This commit is contained in:
Anuken
2020-10-06 14:03:21 -04:00
parent 9182b48b85
commit 2d539565c3
10 changed files with 63 additions and 9 deletions
+6
View File
@@ -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){