From 19beb3d5cb0ae9503cd4988e8b8569377d295a29 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 11:29:00 -0500 Subject: [PATCH] randomized patrol delays --- src/engine/ai/MobileFSM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index f0d9c756..5ef6b6f6 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -180,7 +180,7 @@ public class MobileFSM { mob.stopPatrolTime = System.currentTimeMillis(); return; } - int patrolDelay = ThreadLocalRandom.current().nextInt((int)(MBServerStatics.AI_PATROL_DIVISOR * 0.5f)) + (int)(MBServerStatics.AI_PATROL_DIVISOR * 0.5f); + int patrolDelay = ThreadLocalRandom.current().nextInt(MBServerStatics.AI_PATROL_DIVISOR) + (int)(MBServerStatics.AI_PATROL_DIVISOR * 0.5f); if (mob.stopPatrolTime + (patrolDelay * 1000) > System.currentTimeMillis()) //early exit while waiting to patrol again return;