Atolls tutorial finalized & moved into bundles

This commit is contained in:
Anuken
2026-01-12 23:26:22 -05:00
parent a86761fea6
commit 6313a2b5cc
6 changed files with 20 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ public class CommandAI extends AIController{
if(
(hasStance(UnitStance.patrol) && !hasStance(UnitStance.pursueTarget) && target != null && unit.within(target, unit.type.range - 2f) && !unit.type.circleTarget) ||
(command == UnitCommand.enterPayloadCommand && unit.within(targetPos, 4f) || (targetBuild != null && unit.within(targetBuild, targetBuild.block.size * tilesize/2f * 0.9f))) ||
(command == UnitCommand.loopPayloadCommand && unit.within(targetPos, 10f))
(command == UnitCommand.loopPayloadCommand && unit.within(vecMovePos, 10f))
){
move = false;
}
@@ -343,6 +343,10 @@ public class CommandAI extends AIController{
vecOut.set(vecMovePos);
}
if(command == UnitCommand.loopPayloadCommand){
alwaysArrive = true;
}
if(move){
if(unit.type.circleTarget && attackTarget != null){
target = attackTarget;