Automatic retreat AI for builders/repair units

This commit is contained in:
Anuken
2021-02-14 20:44:40 -05:00
parent f2468f0b3d
commit e16622afcc
3 changed files with 46 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ import static mindustry.Vars.*;
public class AIController implements UnitController{
protected static final Vec2 vec = new Vec2();
protected static final int timerTarget = 0, timerTarget2 = 1, timerTarget3 = 2;
protected static final int timerTarget = 0, timerTarget2 = 1, timerTarget3 = 2, timerTarget4 = 2;
protected Unit unit;
protected Interval timer = new Interval(4);