Easy AI first draft

This commit is contained in:
2025-01-08 20:29:42 -06:00
parent 88e16448a8
commit c1eb6796f5
10 changed files with 387 additions and 21 deletions
@@ -83,7 +83,7 @@ public class MovementUtilities {
}
public static boolean inRangeToAggro(Mob agent, PlayerCharacter target) {
public static boolean inRangeToAggro(Mob agent, AbstractCharacter target) {
Vector3fImmutable sl = agent.getLoc();
Vector3fImmutable tl = target.getLoc();
@@ -169,6 +169,9 @@ public class MovementUtilities {
if (agent.getMobBase() != null && Enum.MobFlagType.SENTINEL.elementOf(agent.getMobBase().getFlags()))
return false;
if(!agent.BehaviourType.canRoam)
return false;
return (agent.isAlive() && !agent.getBonuses().getBool(ModType.Stunned, SourceType.None) && !agent.getBonuses().getBool(ModType.CannotMove, SourceType.None));
}