mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2025-04-12 23:29:37 +08:00
🐛 修复ysa
未知制图问题
This commit is contained in:
parent
198ee3a71f
commit
4e6666fd01
@ -39,8 +39,8 @@ def sort_characters(characters: List[Character]) -> List[Character]:
|
||||
武器等级每级0.6/0.6/0.6/0.8/1分,精炼等级每级10/10/10/20/40,
|
||||
圣遗物每级0.5/0.8/1分,每个两件套20分,四件套60分,最后按降序排序
|
||||
"""
|
||||
characters = [chara for chara in characters if chara is not None]
|
||||
for chara in characters:
|
||||
try:
|
||||
chara.score = chara.level * (0.8 if chara.rarity == 4 else 1) + chara.fetter * 3
|
||||
if chara.talents:
|
||||
for talent in chara.talents:
|
||||
@ -59,9 +59,6 @@ def sort_characters(characters: List[Character]) -> List[Character]:
|
||||
chara.score += artifact.level * (0.5 if artifact.rarity <= 3 else 0.8 if artifact.rarity == 4 else 1)
|
||||
else:
|
||||
chara.suit = []
|
||||
except Exception:
|
||||
chara.score = 0
|
||||
chara.suit = []
|
||||
return sorted(characters, key=lambda x: x.score, reverse=True)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user