feat: define action completion costs
This commit is contained in:
@@ -82,6 +82,15 @@ func _test_selection_and_execution_are_separate() -> void:
|
||||
unfunded_selection.action_id == SimulationIds.ACTION_GATHER_WOOD,
|
||||
"A guard should gather wood instead of selecting patrol when its material cost is unavailable"
|
||||
)
|
||||
_check(
|
||||
(
|
||||
unfunded_selection.rejections.has(SimulationIds.ACTION_PATROL)
|
||||
and "Needs 1 Wood" in String(
|
||||
unfunded_selection.rejections[SimulationIds.ACTION_PATROL]
|
||||
)
|
||||
),
|
||||
"Selection should expose a readable definition-backed rejection reason"
|
||||
)
|
||||
|
||||
|
||||
func _test_target_resolution_and_travel_are_separate() -> void:
|
||||
|
||||
Reference in New Issue
Block a user