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

Fix: Retry interval in OS storage and map_exit

This commit is contained in:
LmeSzinc
2021-08-25 01:27:34 +08:00
parent b510203942
commit 625602d028
2 changed files with 14 additions and 6 deletions

View File

@@ -51,15 +51,18 @@ class StorageHandler(GlobeOperation, ZoneManager):
else:
self.device.screenshot()
if self.appear(STORAGE_CHECK, offset=(20, 20), interval=3):
if self.appear(STORAGE_CHECK, offset=(20, 20), interval=5):
self.device.click(button)
continue
if self.appear_then_click(STORAGE_USE, offset=(180, 30), interval=3):
if self.appear_then_click(STORAGE_USE, offset=(180, 30), interval=5):
self.interval_reset(STORAGE_CHECK)
continue
if self.appear_then_click(GET_ITEMS_1, interval=3):
if self.appear_then_click(GET_ITEMS_1, interval=5):
self.interval_reset(STORAGE_CHECK)
success = True
continue
if self.appear_then_click(GET_ITEMS_2, interval=3):
if self.appear_then_click(GET_ITEMS_2, interval=5):
self.interval_reset(STORAGE_CHECK)
success = True
continue
@@ -113,10 +116,13 @@ class StorageHandler(GlobeOperation, ZoneManager):
else:
self.device.screenshot()
if self.appear(STORAGE_CHECK, offset=(30, 30), interval=3):
if self.appear(STORAGE_CHECK, offset=(30, 30), interval=5):
self.device.click(button)
if self.appear_then_click(STORAGE_COORDINATE_CHECKOUT, offset=(30, 30), interval=3):
if self.appear_then_click(STORAGE_COORDINATE_CHECKOUT, offset=(30, 30), interval=5):
self.interval_reset(STORAGE_CHECK)
continue
# End
if self.is_zone_pinned():
break