修复查询深渊指定层数错误问题

This commit is contained in:
季落 2023-10-11 16:45:42 +08:00 committed by GitHub
parent 53667a6431
commit 5028bae5ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,16 +22,16 @@ from ..utils.fonts.starrail_fonts import (
)
abyss_list = {
'1': '琥珀恩赐其',
'2': '琥珀恩赐其',
'3': '琥珀恩赐其',
'4': '琥珀恩赐其',
'5': '琥珀恩赐其',
'6': '琥珀恩赐其',
'7': '琥珀恩赐其',
'8': '琥珀恩赐其',
'9': '琥珀恩赐其',
'10': '琥珀恩赐其',
'1': '',
'2': '',
'3': '',
'4': '',
'5': '',
'6': '',
'7': '',
'8': '',
'9': '',
'10': '',
}
TEXT_PATH = Path(__file__).parent / 'texture2D'
@ -229,7 +229,7 @@ async def draw_abyss_img(
for index_floor, level in enumerate(raw_abyss_data.all_floor_detail):
if floor:
if abyss_list[str(floor)] == level.name:
if abyss_list[str(floor)] == level.name.split('')[1]:
index_floor = 0 # noqa: PLW2901
else:
continue