国服特色数据修正
This commit is contained in:
@@ -7,6 +7,7 @@ from typing import Any, Literal, TYPE_CHECKING
|
||||
from .formula import 武器冷却惩罚
|
||||
from database.connect import BACKEND_DIR, get_redis_client
|
||||
from api.core.Redis import get_redis_info
|
||||
from api.utils.openapi_data import logical_skill_detail_path
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from core.basic.character import Character
|
||||
@@ -27,7 +28,7 @@ def _load_custom_cn() -> list[dict[str, Any]]:
|
||||
|
||||
@cache
|
||||
def _load_skill_detail(prefix: str) -> dict[str, Any]:
|
||||
with (OPENAPI_DIR / 'data' / f'{prefix}.json').open(encoding='utf-8') as f:
|
||||
with logical_skill_detail_path(prefix).open(encoding='utf-8') as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user