fix: set total_xp in constructor
This commit is contained in:
parent
664cb64613
commit
d54fb380e9
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ class GameState(Scaffold):
|
||||||
self.food = 20.0
|
self.food = 20.0
|
||||||
self.xp = 0.0
|
self.xp = 0.0
|
||||||
self.lvl = 0
|
self.lvl = 0
|
||||||
|
self.total_xp = 0
|
||||||
|
|
||||||
@self.on(DisconnectedEvent)
|
@self.on(DisconnectedEvent)
|
||||||
async def disconnected_cb(_):
|
async def disconnected_cb(_):
|
||||||
|
|
Loading…
Reference in a new issue