1
0
mirror of synced 2025-02-13 08:52:32 +01:00

more enums!

This commit is contained in:
daydensteve 2024-11-03 16:37:27 -05:00
parent c2d4abcc26
commit e49c70b738
2 changed files with 22 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import pytz
from typing import Dict, Any, List
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.config import ChuniConfig
SCORE_BUFFER = {}
@ -43,7 +43,7 @@ class ChuniBase:
user_id,
{
"itemId": ticket.strip(),
"itemKind": 5,
"itemKind": ItemKind.TICKET.value,
"stock": self.game_cfg.mods.stock_count,
"isValid": True,
},
@ -116,7 +116,7 @@ class ChuniBase:
user_id,
{
"itemId": login_item["presentId"],
"itemKind": 6,
"itemKind": ItemKind.PRESENT.value,
"stock": login_item["itemNum"],
"isValid": True,
},

View File

@ -91,3 +91,22 @@ class MapAreaConditionType(Enum):
class MapAreaConditionLogicalOperator(Enum):
AND = 1
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