mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Opt: Recovery if somehow exited page_archives during search
This commit is contained in:
@@ -45,12 +45,17 @@ class CampaignBase(CampaignBase_):
|
|||||||
"""
|
"""
|
||||||
detection_area = (565, 125, 700, 675)
|
detection_area = (565, 125, 700, 675)
|
||||||
|
|
||||||
for _ in range(5):
|
for _ in range(10):
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
|
# Drag may result in accidental exit, recover
|
||||||
|
# before starting next search attempt
|
||||||
|
while not self.appear(WAR_ARCHIVES_CHECK):
|
||||||
|
self.ui_ensure(destination=page_archives)
|
||||||
|
|
||||||
entrance = self._get_archives_entrance(name)
|
entrance = self._get_archives_entrance(name)
|
||||||
if entrance is not None:
|
if entrance is not None:
|
||||||
return entrance
|
return entrance
|
||||||
|
|||||||
Reference in New Issue
Block a user