From d0374a2deaa1ae369b0eb12e7c4e8cc6d551675c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 16 Oct 2023 15:07:39 -0500 Subject: [PATCH] random delay between mob chase --- src/engine/mobileAI/MobAI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 5bf35d43..8a925021 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -898,7 +898,7 @@ public class MobAI { if(mob.getTimestamps().containsKey("lastChase") == false) mob.getTimestamps().put("lastChase",System.currentTimeMillis()); - else if(System.currentTimeMillis() < mob.getTimestamps().get("lastChase").longValue() + 1000) + else if(System.currentTimeMillis() < mob.getTimestamps().get("lastChase").longValue() + (750 + ThreadLocalRandom.current().nextInt(0,500))) return; mob.getTimestamps().put("lastChase",System.currentTimeMillis());