WIP command order system

This commit is contained in:
Anuken
2022-07-30 21:01:07 -04:00
parent a326e36bbe
commit 55edd53f84
11 changed files with 327 additions and 62 deletions

View File

@@ -6,6 +6,7 @@ import arc.math.*;
import arc.math.geom.*;
import arc.struct.*;
import arc.util.*;
import mindustry.ai.*;
import mindustry.ai.types.*;
import mindustry.annotations.Annotations.*;
import mindustry.entities.*;
@@ -1247,8 +1248,11 @@ public class UnitTypes{
//region air support
mono = new UnitType("mono"){{
//there's no reason to command monos anywhere. it's just annoying.
controller = u -> new MinerAI();
defaultCommand = UnitCommand.mineCommand;
flying = true;
drag = 0.06f;
accel = 0.12f;
@@ -1266,7 +1270,7 @@ public class UnitTypes{
}};
poly = new UnitType("poly"){{
controller = u -> new BuilderAI();
defaultCommand = UnitCommand.rebuildCommand;
flying = true;
drag = 0.05f;
@@ -1320,7 +1324,7 @@ public class UnitTypes{
}};
mega = new UnitType("mega"){{
controller = u -> new RepairAI();
defaultCommand = UnitCommand.repairCommand;
mineTier = 3;
mineSpeed = 4f;