feat: add npc decision inspector

This commit is contained in:
2026-07-05 23:50:18 +02:00
parent 7edf9acd57
commit d883148132
16 changed files with 305 additions and 13 deletions
+11
View File
@@ -53,6 +53,17 @@ func _test_selection_and_execution_are_separate() -> void:
selection.action_id == SimulationIds.ACTION_WITHDRAW_FOOD,
"Selection should independently choose food retrieval"
)
_check(
not selection.reason.is_empty(),
"Selection should expose the real decision branch for presentation"
)
npc.hunger = 20.0
npc.energy = 80.0
var work_selection := selector.select_action(npc, village)
_check(
work_selection.scores.size() == 4,
"Ordinary work selection should expose all compared utility scores"
)
func _test_target_resolution_and_travel_are_separate() -> void: