From ecec3833c4c46804fc651343e0d4583e15fb3125 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Apr 2023 20:31:13 -0500 Subject: [PATCH] added ./aiinfo command for debugging new AI system --- src/engine/ai/MobileFSM.java | 4 ---- src/engine/gameManager/DevCmdManager.java | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index d3c52faf..b651084b 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -569,10 +569,6 @@ public class MobileFSM { if (mob == null || mob.BehaviourType == MobBehaviourType.None) { return; } - //add default behaviour type - if(mob.BehaviourType == null){ - mob.BehaviourType = MobBehaviourType.Simple; - } if (mob.isAlive() == false) { //no need to continue if mob is dead, check for respawn and move on CheckForRespawn(mob); diff --git a/src/engine/gameManager/DevCmdManager.java b/src/engine/gameManager/DevCmdManager.java index eb250dd6..bea6aa66 100644 --- a/src/engine/gameManager/DevCmdManager.java +++ b/src/engine/gameManager/DevCmdManager.java @@ -56,6 +56,7 @@ public enum DevCmdManager { DevCmdManager.registerDevCmd(new PrintResistsCmd()); DevCmdManager.registerDevCmd(new PrintLocationCmd()); DevCmdManager.registerDevCmd(new InfoCmd()); + DevCmdManager.registerDevCmd(new aiInfoCmd()); DevCmdManager.registerDevCmd(new simulateBootyCmd()); DevCmdManager.registerDevCmd(new GetHeightCmd());