chart_achievement: --level 改为谱面难度(0=BASIC 1=ADVANCED 2=EXPERT 3=MASTER 4=RE:MASTER),反向示例补上难度

This commit is contained in:
2026-10-07 23:37:39 +08:00
parent 3a0f3435f7
commit b1d7e33c7b
3 changed files with 69 additions and 35 deletions
+2 -1
View File
@@ -274,7 +274,8 @@ def parse_difficulty(text) -> int:
key = str(text).strip().lower()
if key in _DIFFICULTY_ALIASES:
return _DIFFICULTY_ALIASES[key]
raise ValueError("无法识别的难度:%s(可用 basic/advanced/expert/master/remaster 或 0~4)" % text)
raise ValueError("无法识别的难度:%s(可用 0=BASIC 1=ADVANCED 2=EXPERT 3=MASTER 4=RE:MASTER,"
"或直接写名字)" % text)
def find_music_dir(game_path: str) -> str: