Enforce max population
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user