Skip to content

Commit fd190dc

Browse files
committed
fix: memory piece count
1 parent 667abd9 commit fd190dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

autopcr/core/pcrclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,9 +1312,9 @@ def unit_info_to_dict(self, unit_id: int) -> Dict:
13121312
for other in kizuna_unit:
13131313
if other not in db.unlock_unit_condition: continue
13141314
unit_name = db.get_unit_name(other)
1315-
unit_id = other // 100
1316-
love_level = self.data.unit_love_data[unit_id].love_level if unit_id in self.data.unit_love_data else 0
1317-
unit_story = [story.story_id for story in db.unit_story if story.story_group_id == unit_id]
1315+
other_id = other // 100
1316+
love_level = self.data.unit_love_data[other_id].love_level if other_id in self.data.unit_love_data else 0
1317+
unit_story = [story.story_id for story in db.unit_story if story.story_group_id == other_id]
13181318
total_storys = len(unit_story)
13191319
read_storys = len([story for story in unit_story if story in read_story])
13201320
love.append(f"{unit_name}好感{love_level}({read_storys}/{total_storys})")

0 commit comments

Comments
 (0)