From 2a20785a94addc8d3a76c415dd1b7ee07d6798bc Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 4 Sep 2024 00:37:17 +0800 Subject: [PATCH] :bug: Fix TheaterDifficulty missed VISIONARY --- plugins/genshin/role_combat.py | 10 +++++++--- resources/genshin/role_combat/overview.jinja2 | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/genshin/role_combat.py b/plugins/genshin/role_combat.py index cd190a7ec..94ce1b96c 100644 --- a/plugins/genshin/role_combat.py +++ b/plugins/genshin/role_combat.py @@ -316,10 +316,14 @@ def get_season_data_name(data: "HistoryDataImgTheater"): 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: - honor = "👑" + 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}" diff --git a/resources/genshin/role_combat/overview.jinja2 b/resources/genshin/role_combat/overview.jinja2 index e312bd42d..ef1db8b94 100644 --- a/resources/genshin/role_combat/overview.jinja2 +++ b/resources/genshin/role_combat/overview.jinja2 @@ -42,6 +42,8 @@ {% set diff_str = "普通" %} {% elif diff == 3 %} {% set diff_str = "困难" %} + {% elif diff == 4 %} + {% set diff_str = "卓越" %} {% endif %}
挑战难度:{{ diff_str }}
最佳记录: 第 {{ stat.max_round_id }} 幕