1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Merge branch 'master' into dev

This commit is contained in:
LmeSzinc
2020-07-26 17:34:02 +08:00
2 changed files with 10 additions and 5 deletions

View File

@@ -102,7 +102,8 @@ class ResearchProject:
self.__setattr__(f'need_{result.group(1)}', True)
for item in data['output']:
result = re.search(self.REGEX_SHIP, item['name'].replace(' ', '').lower())
self.ship = result.group(1) if result else ''
if not self.ship:
self.ship = result.group(1) if result else ''
if self.ship:
self.ship_rarity = 'dr' if self.ship in self.DR_SHIP else 'pry'
break