feat: add weak-villager and damaged-roof village needs
This commit is contained in:
@@ -95,13 +95,13 @@ static func from_dictionary(record_data: Dictionary) -> OpportunityStateRecord:
|
||||
if opportunity_id < 0 or created_tick < 0 or trigger_event_id < 0 or interested_npc_id < 0:
|
||||
return null
|
||||
match opportunity_type:
|
||||
SimulationIds.OPPORTUNITY_RESTOCK_EMPTY_PANTRY:
|
||||
SimulationIds.OPPORTUNITY_RESTOCK_EMPTY_PANTRY, SimulationIds.OPPORTUNITY_FEED_WEAK_VILLAGER:
|
||||
if (
|
||||
target_id != SimulationIds.STORAGE_VILLAGE_PANTRY
|
||||
or resource_id != SimulationIds.RESOURCE_FOOD
|
||||
):
|
||||
return null
|
||||
SimulationIds.OPPORTUNITY_SUPPLY_MISSING_WOOD:
|
||||
SimulationIds.OPPORTUNITY_SUPPLY_MISSING_WOOD, SimulationIds.OPPORTUNITY_REPAIR_HOME_ROOF:
|
||||
if (
|
||||
target_id != SimulationIds.STORAGE_VILLAGE_WOODPILE
|
||||
or resource_id != SimulationIds.RESOURCE_WOOD
|
||||
|
||||
Reference in New Issue
Block a user