fix: set total_xp in constructor

This commit is contained in:
əlemi 2022-06-18 16:13:26 +02:00
parent 664cb64613
commit d54fb380e9
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -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(_):