Skip to content

Commit

Permalink
🐛 Fix Skill Level
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshuijs committed Oct 21, 2023
1 parent be62d46 commit 3d1899d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_genshin_artifact/enka/enka_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def enka_parser(data: dict, avatar_id: int) -> Tuple[CharacterInfo, WeaponInfo,
for _index, _value in enumerate(character_info["ProudMap"]):
_level = _skill_level_map.get(str(_value))
_key_name = "skill" + str(_index + 1)
skill_info[_key_name] = _level
skill_info[_key_name] = _level - 1 # mona 的角色等级是从 0 开始并非 1 估计是使用了List导致的
for _index, _value in enumerate(character_info["Consts"]):
if "UI_Talent_U_" in _value and len(talent_id_list) > _index:
if _value.endswith("01"):
Expand Down

0 comments on commit 3d1899d

Please sign in to comment.