mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 23:17:21 +08:00
@@ -136,6 +136,8 @@ class CampaignEvent(CampaignStatus):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def handle_task_balancer(self):
|
def handle_task_balancer(self):
|
||||||
|
return
|
||||||
|
|
||||||
if self.config.TaskBalancer_Enable and self.triggered_task_balancer():
|
if self.config.TaskBalancer_Enable and self.triggered_task_balancer():
|
||||||
self.config.task_delay(minute=5)
|
self.config.task_delay(minute=5)
|
||||||
next_task = self.config.TaskBalancer_TaskCall
|
next_task = self.config.TaskBalancer_TaskCall
|
||||||
|
|||||||
@@ -15,14 +15,28 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
def is_in_storage(self):
|
def is_in_storage(self):
|
||||||
return self.appear(STORAGE_CHECK, offset=(20, 20))
|
return self.appear(STORAGE_CHECK, offset=(20, 20))
|
||||||
|
|
||||||
def storage_enter(self):
|
def storage_enter(self, skip_first_screenshot=True):
|
||||||
"""
|
"""
|
||||||
Pages:
|
Pages:
|
||||||
in: is_in_map, STORAGE_ENTER
|
in: is_in_map, STORAGE_ENTER
|
||||||
out: STORAGE_CHECK
|
out: STORAGE_CHECK
|
||||||
"""
|
"""
|
||||||
self.ui_click(STORAGE_ENTER, check_button=self.is_in_storage,
|
while 1:
|
||||||
retry_wait=3, offset=(200, 5), skip_first_screenshot=True)
|
if skip_first_screenshot:
|
||||||
|
skip_first_screenshot = False
|
||||||
|
else:
|
||||||
|
self.device.screenshot()
|
||||||
|
|
||||||
|
# End
|
||||||
|
if self.is_in_storage():
|
||||||
|
break
|
||||||
|
|
||||||
|
if self.appear_then_click(STORAGE_ENTER, offset=(200, 5), interval=3):
|
||||||
|
continue
|
||||||
|
# A game bug that AUTO_SEARCH_REWARD from the last cleared zone popups
|
||||||
|
if self.appear_then_click(AUTO_SEARCH_REWARD, offset=(50, 50), interval=3):
|
||||||
|
continue
|
||||||
|
|
||||||
self.handle_info_bar()
|
self.handle_info_bar()
|
||||||
|
|
||||||
def storage_quit(self):
|
def storage_quit(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user