AI engine is working and I have a little BattleEngine going but the AI is working better than it should in systems.cpp. Need to find out why then make the BattleEngine avoid running entities that have END in action lists.

This commit is contained in:
Zed A. Shaw 2025-03-26 13:34:52 -04:00
parent da273cbee6
commit 47c6bfd531
13 changed files with 131 additions and 27 deletions

View file

@ -61,7 +61,7 @@ void System::enemy_ai_initialize(GameLevel &level) {
auto ai_goal = ai::load_state(config.ai_goal_name);
ai::EntityAI enemy(config.ai_script, ai_start, ai_goal);
auto&personality = world.get<Personality>(ent);
auto& personality = world.get<Personality>(ent);
enemy.set_state("tough_personality", personality.tough);
enemy.set_state("detect_enemy", map.distance(pos.location) < personality.hearing_distance);