Skip to content

Commit

Permalink
🐛 Fix Weapon Level
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshuijs committed Oct 21, 2023
1 parent a982b10 commit c2a3b30
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 @@ -131,7 +131,7 @@ def de_equip_list(equip_list: list[dict]) -> Tuple[WeaponInfo, List[ArtifactInfo
weapon_name = weapon_name_map.get(weapon_id)
if weapon_name is None:
raise RuntimeError
_level = _weapon["level"] - 1
_level = _weapon["level"]
refinement_level = next(iter(_weapon["affixMap"].values())) + 1
_promote_level = _weapon["promoteLevel"]
ascend = is_ascend(_level, _promote_level)
Expand Down

0 comments on commit c2a3b30

Please sign in to comment.