mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-06-01 04:59:50 +08:00
🐛 修复部分情况下可能造成角色技能等级错误
This commit is contained in:
parent
84aa293bc1
commit
e7e9778af4
@ -137,6 +137,12 @@ async def mys_to_data(uid: str):
|
||||
}
|
||||
)
|
||||
|
||||
if len(avatar_skill) > 4:
|
||||
# 移除最后两个元素
|
||||
avatar_skill.pop()
|
||||
avatar_skill.pop()
|
||||
break
|
||||
|
||||
weapon = char['weapon']
|
||||
weapon_main = weapon['main_property']
|
||||
main_prop_id = Id2PropId[str(weapon_main['property_type'])]
|
||||
@ -308,4 +314,3 @@ async def mys_to_card(uid: str) -> Union[str, bytes, Tuple[bytes, List[Dict]]]:
|
||||
|
||||
img = await draw_enka_card(uid=uid, char_data_list=char_data_list)
|
||||
return img, char_data_list
|
||||
return img, char_data_list
|
||||
|
Loading…
x
Reference in New Issue
Block a user