Skip to content

Commit

Permalink
🐛 Fix TheaterDifficulty missed VISIONARY
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Sep 3, 2024
1 parent 43176fc commit 2a20785
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/genshin/role_combat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
2 changes: 2 additions & 0 deletions resources/genshin/role_combat/overview.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2a20785

Please sign in to comment.