mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
16 lines
418 B
Python
16 lines
418 B
Python
from dataclasses import dataclass
|
|
from game_server.resource.base_resource import BaseResource
|
|
from game_server.resource.decorators import GameResource
|
|
|
|
@dataclass
|
|
@GameResource("resources/ExcelOutputAsset/AffixList.json")
|
|
class AffixListData(BaseResource):
|
|
affixID: int
|
|
level: int
|
|
|
|
def on_load(self) -> bool:
|
|
return self.level == 3
|
|
|
|
def get_index(self) -> str:
|
|
return str(self.affixID)
|