兼容老的结构。

This commit is contained in:
liuwei
2025-11-19 08:59:58 +08:00
parent 7c5051cca6
commit 740e4fecd0
2 changed files with 223 additions and 183 deletions

View File

@@ -96,27 +96,24 @@ class LevelsDBOperator(BaseDBOperator):
return max(1, lvl - 1)
def level_title(self, level: int) -> str:
# 统一使用xiuxian插件的境界定义
# 与 plugins/xiuxian/config.toml 中的 realm_score 保持一致
titles = [
"凡人",
"练气期",
"炼体期",
"筑基期",
"结丹期",
"元婴期",
"化神期",
"炼虚期",
"合体期",
"大乘期",
"渡劫期",
"",
"",
"",
"真仙",
"金仙",
"玄仙",
"太乙金仙",
"大罗金仙",
"圣人",
"凡人", # 0
"炼气", # 1 (原"练气期")
"筑基", # 2 (原"炼体期"、"筑基期"合并)
"金丹", # 3 (原"结丹期")
"元婴", # 4
"化神", # 5
"合体", # 6 (原"炼虚期"、"合体期"合并)
"大乘", # 7
"渡劫", # 8
"真仙", # 9 (原"散仙"、"地仙"、"天仙"、"真仙"合并)
"金仙", # 10
"", # 11
"太乙金", # 12
"大罗金", # 13
"圣人", # 14
]
if level <= 0:
return titles[0]