🐛 修复部分情况下可能造成角色技能等级错误

This commit is contained in:
KimigaiiWuyi 2025-05-11 01:28:18 +08:00
parent 84aa293bc1
commit e7e9778af4

View File

@ -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