From d54fb380e94ba37fe2494efd1ed17ebb791067e8 Mon Sep 17 00:00:00 2001 From: alemidev Date: Sat, 18 Jun 2022 16:13:26 +0200 Subject: [PATCH] fix: set total_xp in constructor --- src/treepuncher/game/state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/treepuncher/game/state.py b/src/treepuncher/game/state.py index 1e9d15f..0ceac1a 100644 --- a/src/treepuncher/game/state.py +++ b/src/treepuncher/game/state.py @@ -46,6 +46,7 @@ class GameState(Scaffold): self.food = 20.0 self.xp = 0.0 self.lvl = 0 + self.total_xp = 0 @self.on(DisconnectedEvent) async def disconnected_cb(_):