From 58b287bc4baa08dc1a502f8eb1fb981afbbe5719 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 3 Mar 2025 20:26:43 -0600 Subject: [PATCH] simplified mob aI --- src/engine/mobileAI/Behaviours/StandardMob.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/mobileAI/Behaviours/StandardMob.java b/src/engine/mobileAI/Behaviours/StandardMob.java index 8349e946..6ab1167e 100644 --- a/src/engine/mobileAI/Behaviours/StandardMob.java +++ b/src/engine/mobileAI/Behaviours/StandardMob.java @@ -116,6 +116,9 @@ public class StandardMob { return; } + if(!mob.BehaviourType.isAgressive) + return; + if(mob.BehaviourType.equals(Enum.MobBehaviourType.HamletGuard)){ return; } @@ -180,6 +183,9 @@ public class StandardMob { public static void CheckForMovement(Mob mob){ + if(!mob.BehaviourType.canRoam) + return; + if(mob.combatTarget != null){ //chase player if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange())) {