more enums!
This commit is contained in:
parent
c2d4abcc26
commit
e49c70b738
@ -7,7 +7,7 @@ import pytz
|
|||||||
from typing import Dict, Any, List
|
from typing import Dict, Any, List
|
||||||
|
|
||||||
from core.config import CoreConfig
|
from core.config import CoreConfig
|
||||||
from titles.chuni.const import ChuniConstants
|
from titles.chuni.const import ChuniConstants, ItemKind
|
||||||
from titles.chuni.database import ChuniData
|
from titles.chuni.database import ChuniData
|
||||||
from titles.chuni.config import ChuniConfig
|
from titles.chuni.config import ChuniConfig
|
||||||
SCORE_BUFFER = {}
|
SCORE_BUFFER = {}
|
||||||
@ -43,7 +43,7 @@ class ChuniBase:
|
|||||||
user_id,
|
user_id,
|
||||||
{
|
{
|
||||||
"itemId": ticket.strip(),
|
"itemId": ticket.strip(),
|
||||||
"itemKind": 5,
|
"itemKind": ItemKind.TICKET.value,
|
||||||
"stock": self.game_cfg.mods.stock_count,
|
"stock": self.game_cfg.mods.stock_count,
|
||||||
"isValid": True,
|
"isValid": True,
|
||||||
},
|
},
|
||||||
@ -116,7 +116,7 @@ class ChuniBase:
|
|||||||
user_id,
|
user_id,
|
||||||
{
|
{
|
||||||
"itemId": login_item["presentId"],
|
"itemId": login_item["presentId"],
|
||||||
"itemKind": 6,
|
"itemKind": ItemKind.PRESENT.value,
|
||||||
"stock": login_item["itemNum"],
|
"stock": login_item["itemNum"],
|
||||||
"isValid": True,
|
"isValid": True,
|
||||||
},
|
},
|
||||||
|
@ -91,3 +91,22 @@ class MapAreaConditionType(Enum):
|
|||||||
class MapAreaConditionLogicalOperator(Enum):
|
class MapAreaConditionLogicalOperator(Enum):
|
||||||
AND = 1
|
AND = 1
|
||||||
OR = 2
|
OR = 2
|
||||||
|
|
||||||
|
|
||||||
|
class AvatarCategory(Enum):
|
||||||
|
WEAR = 1
|
||||||
|
HEAD = 2
|
||||||
|
FACE = 3
|
||||||
|
SKIN = 4
|
||||||
|
ITEM = 5
|
||||||
|
FRONT = 6
|
||||||
|
BACK = 7
|
||||||
|
|
||||||
|
class ItemKind(Enum):
|
||||||
|
NAMEPLATE = 1
|
||||||
|
TROPHY = 3
|
||||||
|
TICKET = 5
|
||||||
|
PRESENT = 6
|
||||||
|
MAP_ICON = 8
|
||||||
|
SYSTEM_VOICE = 9
|
||||||
|
AVATAR_ACCESSORY = 11
|
Loading…
x
Reference in New Issue
Block a user