This commit is contained in:
Anuken
2021-12-01 13:50:08 -05:00
parent e30d090a2e
commit 3f503a7f4d
4 changed files with 5 additions and 4 deletions

View File

@@ -179,6 +179,7 @@ public class CargoAI extends AIController{
}
}
//unused, might change later
void sortTargets(Seq<UnitCargoUnloadPointBuild> targets){
//find sort by "most desirable" first
targets.sort(Structs.comps(Structs.comparingInt(b -> b.items.total()), Structs.comparingFloat(b -> b.dst2(unit))));