Fix assets proundMap

This commit is contained in:
M307 (Mac) 2022-12-09 13:37:26 +07:00
parent 7e196b0157
commit 1bc18612b0

View File

@ -108,10 +108,12 @@ class Assets:
LOGGER.error(f"Character skills not found with id: {id}")
return
pround = data.get("proudSkillGroupId", 0)
return assets.CharacterSkillAsset.parse_obj({
"id": id,
**data,
"pround_map": data.get("proudSkillGroupId", 0),
"pround_map": pround if not pround is None and pround != "" else 0,
"icon": utils.IconAsset(filename=data["skillIcon"])
})