feat: introduce identity-backed goat
This commit is contained in:
@@ -35,7 +35,7 @@ func _test_registry_integrity() -> void:
|
||||
"Action lookup should return '%s'" % definition.action_id
|
||||
)
|
||||
_check(
|
||||
action_ids.size() == 11, "Registry should contain all eleven executable prototype actions"
|
||||
action_ids.size() == 12, "Registry should contain all twelve executable prototype actions"
|
||||
)
|
||||
|
||||
var profession_ids := SimulationDefinitions.get_profession_ids()
|
||||
@@ -88,6 +88,16 @@ func _test_definition_backed_behavior() -> void:
|
||||
),
|
||||
"Gather-food target metadata should come from its definition"
|
||||
)
|
||||
var feed := SimulationDefinitions.get_action(SimulationIds.ACTION_FEED_ANIMAL)
|
||||
_check(
|
||||
(
|
||||
feed.target_type == SimulationIds.TARGET_ANIMAL
|
||||
and feed.preferred_profession_id == SimulationIds.PROFESSION_FARMER
|
||||
and feed.completion_cost_resource_id == SimulationIds.RESOURCE_FOOD
|
||||
and is_equal_approx(feed.completion_cost_amount, 1.0)
|
||||
),
|
||||
"Feed-animal should target an animal and declare its exact pantry-food cost"
|
||||
)
|
||||
|
||||
|
||||
func _test_state_reference_validation() -> void:
|
||||
|
||||
Reference in New Issue
Block a user