feat: define action completion costs
This commit is contained in:
@@ -65,6 +65,22 @@ func _test_definition_backed_behavior() -> void:
|
||||
study.preferred_profession_id == SimulationIds.PROFESSION_SCHOLAR,
|
||||
"Study should reference the stable scholar profession ID"
|
||||
)
|
||||
_check(
|
||||
(
|
||||
study.completion_cost_resource_id == SimulationIds.RESOURCE_WOOD
|
||||
and is_equal_approx(study.completion_cost_amount, 1.0)
|
||||
and study.has_completion_cost()
|
||||
),
|
||||
"Study should declare its completion cost through definition metadata"
|
||||
)
|
||||
var patrol := SimulationDefinitions.get_action(SimulationIds.ACTION_PATROL)
|
||||
_check(
|
||||
(
|
||||
patrol.completion_cost_resource_id == SimulationIds.RESOURCE_WOOD
|
||||
and is_equal_approx(patrol.completion_cost_amount, 1.0)
|
||||
),
|
||||
"Patrol should share the proven one-wood completion-cost contract"
|
||||
)
|
||||
var gather := SimulationDefinitions.get_action(SimulationIds.ACTION_GATHER_FOOD)
|
||||
_check(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user