Browse Source

Formation offset for minions.

feature-workorder
MagicBot 1 year ago
parent
commit
8d12bbf453
  1. 4
      src/engine/mobileAI/MobAI.java

4
src/engine/mobileAI/MobAI.java

@ -279,6 +279,10 @@ public class MobAI {
mob.lastPatrolPointIndex = 0; mob.lastPatrolPointIndex = 0;
mob.destination = mob.patrolPoints.get(mob.lastPatrolPointIndex); mob.destination = mob.patrolPoints.get(mob.lastPatrolPointIndex);
if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION))
mob.destination = mob.destination.add(Formation.getOffset(2, mob.minions.indexOf(mob.getObjectUUID()) + 3));
mob.lastPatrolPointIndex += 1; mob.lastPatrolPointIndex += 1;
MovementUtilities.aiMove(mob, mob.destination, true); MovementUtilities.aiMove(mob, mob.destination, true);

Loading…
Cancel
Save