🐛 Fix TheaterDifficulty missed VISIONARY

This commit is contained in:
xtaodada 2024-09-04 00:37:17 +08:00
parent 43176fc564
commit 2a20785a94
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 9 additions and 3 deletions

View File

@ -316,9 +316,13 @@ class RoleCombatPlugin(Plugin):
diff = "简单"
elif data.abyss_data.stat.difficulty == TheaterDifficulty.NORMAL:
diff = "普通"
else:
elif data.abyss_data.stat.difficulty == TheaterDifficulty.HARD:
diff = "困难"
if data.abyss_data.stat.medal_num == 8 and data.abyss_data.stat.difficulty == TheaterDifficulty.HARD:
if data.abyss_data.stat.medal_num >= 8:
honor = "👑"
else:
diff = "卓越"
if data.abyss_data.stat.medal_num >= 10:
honor = "👑"
return f"{time} {data.abyss_data.stat.medal_num}{diff} {honor}"

View File

@ -42,6 +42,8 @@
{% set diff_str = "普通" %}
{% elif diff == 3 %}
{% set diff_str = "困难" %}
{% elif diff == 4 %}
{% set diff_str = "卓越" %}
{% endif %}
<div>挑战难度:{{ diff_str }}</div>
<div>最佳记录: 第 {{ stat.max_round_id }} 幕</div>