mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 14:54:38 +01:00
Initial commit
This commit is contained in:
18
game_server/resource/configdb/avatar_data.py
Normal file
18
game_server/resource/configdb/avatar_data.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from dataclasses import dataclass
|
||||
from game_server.resource.base_resource import BaseResource
|
||||
from game_server.resource.decorators import GameResource
|
||||
|
||||
@dataclass
|
||||
@GameResource("resources/ExcelOutputAsset/AvatarData.json")
|
||||
class AvatarData(BaseResource):
|
||||
avatarID: int
|
||||
DefaultDressId: int
|
||||
unlockStar: int
|
||||
initialWeapon: int
|
||||
skillList: list
|
||||
|
||||
def on_load(self) -> bool:
|
||||
return self.avatarID != 316 and (self.avatarID < 9000 or self.avatarID > 20000)
|
||||
|
||||
def get_index(self) -> str:
|
||||
return str(self.avatarID)
|
||||
Reference in New Issue
Block a user