Browse Source

mob ai work

lakebane-mobai2
FatBoy-DOTC 1 week ago
parent
commit
a33ac85b21
  1. 4
      src/engine/mobileAI/MobAi2.java

4
src/engine/mobileAI/MobAi2.java

@ -147,10 +147,12 @@ public class MobAi2 { @@ -147,10 +147,12 @@ public class MobAi2 {
if (!CombatUtilities.inRangeToAttack(mob, target)) {
if(mob.nextChaseUpdate < System.currentTimeMillis()) {
mob.nextChaseUpdate = System.currentTimeMillis() + 1500L;
mob.nextChaseUpdate = System.currentTimeMillis() + 5000L;
MovementUtilities.aiMove(mob, target.loc, false);
}
return;
}else{
mob.stopMovement(mob.getMovementLoc());
}
switch (target.getObjectType()) {

Loading…
Cancel
Save