Refactor to separate persistence and write fsm to table.

This commit is contained in:
MagicBot committed 2023-08-31 08:03:30 -04:00
1 parent 6641651f3c
commit c8ed04aaaf
5 files changed
+54 -47

No files matched your search

+2 -2
View File
@@ -1011,14 +1011,14 @@ public class MobAI {
//dont scan self.
if (mob.equals(awoMob) || (mob.agentType.equals(Enum.AIAgentType.GUARD)) == true)
if (mob.equals(awoMob) || (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) == true)
continue;
Mob aggroMob = (Mob) awoMob;
//don't attack other guards
if ((aggroMob.agentType.equals(Enum.AIAgentType.GUARD)))
if ((aggroMob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)))
continue;
if (aggroMob.behaviourType.equals(Enum.MobBehaviourType.Pet1))