feat: introduce identity-backed goat

This commit is contained in:
Rijad Zuzo
2026-07-26 22:26:00 +02:00
parent 1f09ebe6b6
commit f79c2bb630
47 changed files with 1903 additions and 96 deletions
+11 -1
View File
@@ -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: