mob ai work

This commit is contained in:
2025-01-08 17:46:46 -06:00
parent ff4010d652
commit a33ac85b21
+3 -1
View File
@@ -147,10 +147,12 @@ public class MobAi2 {
if (!CombatUtilities.inRangeToAttack(mob, target)) { if (!CombatUtilities.inRangeToAttack(mob, target)) {
if(mob.nextChaseUpdate < System.currentTimeMillis()) { if(mob.nextChaseUpdate < System.currentTimeMillis()) {
mob.nextChaseUpdate = System.currentTimeMillis() + 1500L; mob.nextChaseUpdate = System.currentTimeMillis() + 5000L;
MovementUtilities.aiMove(mob, target.loc, false); MovementUtilities.aiMove(mob, target.loc, false);
} }
return; return;
}else{
mob.stopMovement(mob.getMovementLoc());
} }
switch (target.getObjectType()) { switch (target.getObjectType()) {