More base parts

This commit is contained in:
Anuken
2020-10-20 15:43:06 -04:00
parent 30abfc0619
commit 8f58228317
15 changed files with 9 additions and 21 deletions
@@ -43,8 +43,6 @@ public class FlyingAI extends AIController{
return null;
}
//TODO clean up
protected void attack(float circleLength){
vec.set(target).sub(unit);
+1 -1
View File
@@ -94,7 +94,7 @@ public class FormationAI extends AIController implements FormationMember{
@Override
public float formationSize(){
return unit.hitSize * 1f;
return unit.hitSize * 1.1f;
}
@Override
-16
View File
@@ -13,8 +13,6 @@ import java.util.*;
import static mindustry.Vars.*;
public class GroundAI extends AIController{
//static final float commandCooldown = 60f * 10;
//float commandTimer = 60*3;
@Override
public void updateMovement(){
@@ -57,19 +55,5 @@ public class GroundAI extends AIController{
unit.lookAt(unit.vel().angle());
}
//auto-command works but it's very buggy
/*
if(unit instanceof Commanderc){
Commanderc c = (Commanderc)unit;
//try to command when missing members
if(c.controlling().size <= unit.type().commandLimit/2){
commandTimer -= Time.delta;
if(commandTimer <= 0){
c.commandNearby(new SquareFormation(), u -> !(u.controller() instanceof FormationAI) && !(u instanceof Commanderc));
commandTimer = commandCooldown;
}
}
}*/
}
}