Browse Source

1 second delay for mob movements

magicbox-1.5.2
FatBoy-DOTC 1 year ago
parent
commit
5ed7662798
  1. 3
      src/engine/mobileAI/MobAI.java

3
src/engine/mobileAI/MobAI.java

@ -722,8 +722,7 @@ public class MobAI { @@ -722,8 +722,7 @@ public class MobAI {
try {
if(mob.getTimestamps().containsKey("lastChase") == false) {
mob.getTimestamps().put("lastChase", System.currentTimeMillis());
return;//ensure mob timestamps have the lastChase parameter
mob.getTimestamps().put("lastChase", System.currentTimeMillis());//ensure mob timestamps have the lastChase parameter
}
if(mob.getTimestamps().get("lastChase") + 1000 < System.currentTimeMillis())

Loading…
Cancel
Save