feat: add weak-villager and damaged-roof village needs
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user