Unit factory tweaks / AI fixes
This commit is contained in:
@@ -30,16 +30,16 @@ public class GroundAI extends AIController{
|
||||
|
||||
Tilec core = unit.closestEnemyCore();
|
||||
|
||||
if(core == null) return;
|
||||
if(core != null){
|
||||
float dst = unit.dst(core);
|
||||
|
||||
float dst = unit.dst(core);
|
||||
if(dst < unit.range() / 1.1f){
|
||||
target = core;
|
||||
}
|
||||
|
||||
if(dst < unit.range() / 1.1f){
|
||||
target = core;
|
||||
}
|
||||
|
||||
if(dst > unit.range() * 0.5f){
|
||||
moveToCore(PathTarget.enemyCores);
|
||||
if(dst > unit.range() * 0.5f){
|
||||
moveToCore(PathTarget.enemyCores);
|
||||
}
|
||||
}
|
||||
|
||||
boolean rotate = false, shoot = false;
|
||||
|
||||
Reference in New Issue
Block a user