mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-06 19:53:45 +08:00
🐛 修复版本深渊
的问题
This commit is contained in:
parent
bf3c5a4d97
commit
e821c454e0
@ -75,7 +75,8 @@ async def send_abyss_review(bot: Bot, ev: Event):
|
|||||||
input_version = float(version)
|
input_version = float(version)
|
||||||
now_version = float(Genshin_version[:-2])
|
now_version = float(Genshin_version[:-2])
|
||||||
if input_version <= now_version:
|
if input_version <= now_version:
|
||||||
adv_version = now_version + 0.1
|
gv = Genshin_version.split('.')
|
||||||
|
adv_version = f'{gv[0]}.{int(gv[1])+1}'
|
||||||
else:
|
else:
|
||||||
adv_version = now_version
|
adv_version = now_version
|
||||||
d = Button(f'♾️版本深渊{adv_version}', f'深渊概览{adv_version}')
|
d = Button(f'♾️版本深渊{adv_version}', f'深渊概览{adv_version}')
|
||||||
|
@ -62,7 +62,7 @@ async def get_half_img(data: List, half: Literal['Upper', 'Lower']):
|
|||||||
|
|
||||||
index = 0
|
index = 0
|
||||||
for wave in data:
|
for wave in data:
|
||||||
if ver is not None and wave['Vers'][-1] != ver:
|
if ver is not None and 'Vers' in wave and wave['Vers'][-1] != ver:
|
||||||
continue
|
continue
|
||||||
monsters = wave['Monsters']
|
monsters = wave['Monsters']
|
||||||
wave_monster_uh = (((len(monsters) - 1) // 3) + 1) * 125 + 40
|
wave_monster_uh = (((len(monsters) - 1) // 3) + 1) * 125 + 40
|
||||||
|
@ -73,6 +73,7 @@ REF = {
|
|||||||
'多莉': 3,
|
'多莉': 3,
|
||||||
},
|
},
|
||||||
'水': {
|
'水': {
|
||||||
|
'芙宁娜': 3,
|
||||||
'那维莱特': 3,
|
'那维莱特': 3,
|
||||||
'旅行者水': 2,
|
'旅行者水': 2,
|
||||||
'妮露': 3,
|
'妮露': 3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user