From 98eb557c5803795fd071b7741ee4c546ca3854c1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Apr 2023 20:03:17 -0500 Subject: [PATCH] added none to behaviour type for mobs and defuated RS constructor for mobs --- src/engine/ai/MobileFSM.java | 5 +++-- src/engine/objects/Mob.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 522f01a3..d3c52faf 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -59,7 +59,8 @@ public class MobileFSM { Pet1(null, false, false, false, false, false), Simple(null, false, false, true, false, false), Helpee(null, false, true, true, false, true), - HelpeeWimpy(null, true, false, true, false, false); + HelpeeWimpy(null, true, false, true, false, false), + None(null, false, false, false, false, false); private static HashMap _behaviourTypes = new HashMap<>(); public MobBehaviourType BehaviourHelperType; @@ -565,7 +566,7 @@ public class MobileFSM { } } public static void run(Mob mob) { - if (mob == null) { + if (mob == null || mob.BehaviourType == MobBehaviourType.None) { return; } //add default behaviour type diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 6590cdd1..4144c4db 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -296,7 +296,7 @@ public class Mob extends AbstractIntelligenceAgent { if(rs.getString("fsm").length() > 1) { this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm")); } else{ - this.BehaviourType = MobileFSM.MobBehaviourType.Simple; + this.BehaviourType = MobileFSM.MobBehaviourType.None; } } catch (Exception e) { Logger.error(currentID + "");