diff --git a/game/states.py b/game/states.py index 22a14a9..107d464 100644 --- a/game/states.py +++ b/game/states.py @@ -52,8 +52,8 @@ class InGame(State): def on_draw(self, console: tcod.console.Console) -> None: """Draw the standard screen.""" centers = g.world.Q.all_of(tags=[IsPlayer]) - centers = list(map(lambda a: a.components[Position], centers)) - center = reduce(lambda a,b: a.components[Position]+b.components[Position], centers) + centers = [a.components[Position] for a in centers] + center = sum(centers, start=Position(0,0)) center = center.mod(len(centers)) def draw(e):