feat: derive capable opportunity helpers

This commit is contained in:
Rijad Zuzo
2026-07-16 10:41:05 +02:00
parent 79dd503343
commit eaa15c076c
17 changed files with 648 additions and 40 deletions
+13
View File
@@ -53,6 +53,19 @@ func _run() -> void:
not caption.visible,
"The cinematic caption should remain hidden until the full sequence starts"
)
var derived_helper: OpportunityHelperResult = manager.get_active_opportunity_helper()
_check(
(
derived_helper != null
and derived_helper.helper_npc_id == helper.id
and derived_helper.action_id == SimulationIds.ACTION_GATHER_FOOD
and derived_helper.resource_id == SimulationIds.RESOURCE_FOOD
and derived_helper.source_id.is_empty()
and derived_helper.available_source_count > 0
and not derived_helper.uses_inventory
),
"The open need should read-only derive the staged trusted helper and a finite food route"
)
_check(demo.begin_pantry_restock(), "A trusted helper should begin the real food run")
var decision: ActionSelectionResult = manager.get_latest_decision(helper.id)