Browse Source

Easy AI

lakebane-easy
FatBoy-DOTC 3 weeks ago
parent
commit
7289f9e006
  1. 4
      src/engine/mobileAI/BehaviourFiles/PlayerPet.java
  2. 3
      src/engine/mobileAI/Threads/MobAIThread.java

4
src/engine/mobileAI/BehaviourFiles/PlayerPet.java

@ -31,10 +31,8 @@ public class PlayerPet { @@ -31,10 +31,8 @@ public class PlayerPet {
pet.despawn();
return;
case patrolling:
if(pet.loc.distanceSquared(pet.getOwner().loc) > 25){
if(pet.loc.distanceSquared(pet.getOwner().loc) > 90 && !pet.isMoving()){
MovementUtilities.aiMove(pet,pet.getOwner().loc,false);
} else if (pet.isMoving()) {
pet.stopMovement(pet.getMovementLoc());
}
return;
case attacking:

3
src/engine/mobileAI/Threads/MobAIThread.java

@ -34,7 +34,8 @@ public class MobAIThread implements Runnable{ @@ -34,7 +34,8 @@ public class MobAIThread implements Runnable{
try {
if (mob != null)
EasyAI.aiRun(mob);
//EasyAI.aiRun(mob);
MobAI.DetermineAction(mob);
} catch (Exception e) {
Logger.error("Mob: " + mob.getName() + " UUID: " + mob.getObjectUUID() + " ERROR: " + e);
e.printStackTrace();

Loading…
Cancel
Save