feat: derive capable opportunity helpers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user