File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } )" )
You can’t perform that action at this time.
0 commit comments