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

Opt: Combine dock filter operations to skip waiting dock loaded

This commit is contained in:
LmeSzinc
2025-01-04 00:02:29 +08:00
parent 3be9adc485
commit 4a2eb4470c
5 changed files with 78 additions and 52 deletions

View File

@@ -606,12 +606,12 @@ class RewardTacticalClass(Dock):
def select_suitable_ship(self):
logger.hr(f'Select suitable ship')
# Set if favorite from config
self.dock_favourite_set(enable=self.config.AddNewStudent_Favorite, wait_loading=False)
# reset filter
self.dock_filter_set()
# Set if favorite from config
self.dock_favourite_set(enable=self.config.AddNewStudent_Favorite)
# No ship in dock
if self.appear(DOCK_EMPTY, offset=(30, 30)):
logger.info('Dock is empty or favorite ships is empty')