feat: add weak-villager and damaged-roof village needs

This commit is contained in:
Rijad Zuzo
2026-08-11 00:32:22 +02:00
parent 37f262fb84
commit 82e44a9f5d
10 changed files with 547 additions and 45 deletions
@@ -248,6 +248,14 @@ static func is_knowable_event(event: EconomicEventRecord) -> bool:
)
and float(event.data.get("required_amount", 0.0)) > 0.0
)
if (
event_type
in [
SimulationIds.EVENT_VILLAGER_WEAK,
SimulationIds.EVENT_HOME_DAMAGED,
]
):
return int(event.data["actor_id"]) >= 0
if float(event.data["amount"]) <= 0.0:
return false
if event_type == SimulationIds.EVENT_STORAGE_DEPOSITED: