fix: make C3 AI behavior policies explicit

This commit is contained in:
goose
2026-10-03 01:32:04 -04:00
parent ee9dc65184
commit 943a8117b5
3 changed files with 110 additions and 15 deletions
+11
View File
@@ -49,6 +49,17 @@ static func append_enemy_response(state: GameState, results: Array[TurnResult])
if enemy == null or not enemy.is_alive():
continue
var decision: Dictionary = EnemyBehaviorsType.decide(enemy, state.player, state.map, occupied)
if decision.has("diagnostic"):
results.append(TurnResultType.new(
enemy.id,
&"enemy_behavior_unsupported",
enemy.cell,
enemy.cell,
&"",
0,
"%s holds: unsupported AI behavior '%s'." % [_actor_label(enemy.id), decision.behavior],
{"diagnostic": decision.diagnostic, "behavior": decision.behavior}
))
match decision.get("kind", &"idle"):
&"melee":
_append_combat_results(results, CombatEngineType.new().resolve_attack(enemy, state.player), enemy.cell, state.player.cell)