fix: enforce village resource invariants

This commit is contained in:
Rijad Zuzo
2026-07-09 23:10:18 +02:00
parent d6520c426a
commit 5cbab527bf
9 changed files with 136 additions and 42 deletions
+2 -1
View File
@@ -189,7 +189,7 @@ func _test_household_familiarity() -> void:
manager.simulation_seed = 700
manager.debug_logs = false
manager.set_process(false)
manager.home_positions = [
var household_positions: Array[Vector3] = [
Vector3(-15.0, 2.0, 7.0),
Vector3(-15.0, 2.0, 8.0),
Vector3(-8.5, 2.0, 3.0),
@@ -197,6 +197,7 @@ func _test_household_familiarity() -> void:
Vector3(20.0, 0.0, 20.0),
Vector3(22.0, 0.0, 22.0)
]
manager.home_positions = household_positions
root.add_child(manager)
var a: SimNPC = manager.npcs[0]