🐛 Fix starrail character skills map cannot break loop

This commit is contained in:
xtaodada 2024-02-08 00:18:18 +08:00
parent 4e037400e5
commit f0a7e14db5
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -129,7 +129,7 @@ class StarRailDetailCharacter(character.StarRailPartialCharacter):
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]