国服特色数据修正

This commit is contained in:
2026-06-28 00:09:17 +08:00
parent 6c71bdf737
commit 8199275181
10 changed files with 97 additions and 615 deletions
+2 -1
View File
@@ -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)