From ebd3858aefa4a39d571f469c17d926fe14195658 Mon Sep 17 00:00:00 2001 From: Nate Bowman Date: Mon, 27 Jul 2026 22:21:23 -0400 Subject: [PATCH] Enforce max population --- aoe/world.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aoe/world.py b/aoe/world.py index 2bb846d..d030494 100644 --- a/aoe/world.py +++ b/aoe/world.py @@ -332,7 +332,8 @@ class World(): def _get_population_space(self): - return sum([self.housing.space[building] for building in self.buildings]) + space = sum([self.housing.space[building] for building in self.buildings]) + return min(space, 200) def _get_effective_population(self):