Atolls tutorial finalized & moved into bundles
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user