pokken: add constants, add stats to profile table

This commit is contained in:
2023-04-14 02:51:28 -04:00
parent 71c43a4a57
commit dc3e3e1fb3
2 changed files with 50 additions and 17 deletions

View File

@ -1,3 +1,5 @@
from enum import Enum
class PokkenConstants:
GAME_CODE = "SDAK"
@ -7,6 +9,16 @@ class PokkenConstants:
VERSION_NAMES = "Pokken Tournament"
class BATTLE_TYPE(Enum):
BATTLE_TYPE_TUTORIAL = 1
BATTLE_TYPE_AI = 2
BATTLE_TYPE_LAN = 3
BATTLE_TYPE_WAN = 4
class BATTLE_RESULT(Enum):
BATTLE_RESULT_WIN = 1
BATTLE_RESULT_LOSS = 2
@classmethod
def game_ver_to_string(cls, ver: int):
return cls.VERSION_NAMES[ver]