Skip to content

Commit

Permalink
🐛 Fix starrail character skills map cannot break loop
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Feb 7, 2024
1 parent 4e03740 commit f0a7e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simnet/models/starrail/chronicle/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def skills_map(self) -> List[List[Skill]]:
for skill in filter(lambda x: x.point_type == 3, self.skills):
data.append([skill])
skills = list(filter(lambda x: x.point_type == 1 and x.pre_point, self.skills))
while True:
for _ in range(10):
for skill in skills.copy():
for item in data:
item_ids = [i.point_id for i in item]
Expand Down

0 comments on commit f0a7e14

Please sign in to comment.