feat: scale village queries and enrich Jajce center

This commit is contained in:
Rijad Zuzo
2026-07-16 23:51:08 +02:00
parent 4be72639d8
commit 2c88ed6ea8
48 changed files with 2059 additions and 280 deletions
+3 -2
View File
@@ -22,7 +22,8 @@ func select_action(
village: SimVillage,
time_of_day: float = 0.5,
all_npcs: Array = [],
opportunity_helper: OpportunityHelperResult = null
opportunity_helper: OpportunityHelperResult = null,
population_view: SimulationPopulationView = null
) -> ActionSelectionResult:
if npc.is_dead:
return null
@@ -127,7 +128,7 @@ func select_action(
)
if village.food <= RELATIONSHIP_AID_PANTRY_THRESHOLD and relationship_system != null:
var trusted_starving_npc: SimNPC = relationship_system.get_trusted_starving_subject(
npc.id, all_npcs
npc.id, all_npcs, population_view
)
if trusted_starving_npc != null:
return ActionSelectionResult.new(