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

Merge pull request #623 from railzy/shipyard

Fix: shipyard handle ship level not enough
This commit is contained in:
LmeSzinc
2021-09-19 14:25:10 +08:00
committed by GitHub
7 changed files with 10 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ from module.ui.ui import UI
class ShipyardUI(UI):
def _shipyard_appear_max(self):
def _shipyard_cannot_strengthen(self):
"""
Shorthand for appear if a ship can no longer
be strengthened either in 'DEV' or 'FATE'
@@ -17,8 +17,10 @@ class ShipyardUI(UI):
Returns:
bool if appear
"""
if self.appear(SHIPYARD_PROGRESS_DEV, offset=(20, 20)) or \
self.appear(SHIPYARD_PROGRESS_FATE, offset=(20, 20)):
if self.appear(SHIPYARD_PROGRESS_DEV, offset=(20, 20)) \
or self.appear(SHIPYARD_PROGRESS_FATE, offset=(20, 20)) \
or self.appear(SHIPYARD_LEVEL_NOT_ENOUGH_FATE, offset=(20, 20)) \
or self.appear(SHIPYARD_LEVEL_NOT_ENOUGH_DEV, offset=(20, 20)):
logger.info('Ship at full strength for current level, '
'no more BPs can be consumed')
return True