feat: add npc decision inspector
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user