Browse Source

remove mob movement delay

combat-2
FatBoy-DOTC 1 year ago
parent
commit
1a0fc309f9
  1. 7
      src/engine/mobileAI/MobAI.java

7
src/engine/mobileAI/MobAI.java

@ -721,13 +721,6 @@ public class MobAI {
try { try {
if(mob.getTimestamps().containsKey("lastChase") == false) {
mob.getTimestamps().put("lastChase", System.currentTimeMillis());//ensure mob timestamps have the lastChase parameter
}
if(mob.getTimestamps().get("lastChase") + 1000 < System.currentTimeMillis())
return; // only allows mobs to chase once a second
if (!MovementUtilities.canMove(mob)) if (!MovementUtilities.canMove(mob))
return; return;

Loading…
Cancel
Save