mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 19:29:05 +08:00
Fix: Retry interval in OS storage and map_exit
This commit is contained in:
@@ -120,8 +120,10 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle
|
|||||||
if self.appear_then_click(MAP_EXIT, offset=(20, 20), interval=5):
|
if self.appear_then_click(MAP_EXIT, offset=(20, 20), interval=5):
|
||||||
continue
|
continue
|
||||||
if self.handle_popup_confirm('MAP_EXIT'):
|
if self.handle_popup_confirm('MAP_EXIT'):
|
||||||
|
self.interval_reset(MAP_EXIT)
|
||||||
continue
|
continue
|
||||||
if self.handle_map_event():
|
if self.handle_map_event():
|
||||||
|
self.interval_reset(MAP_EXIT)
|
||||||
changed = True
|
changed = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
@@ -51,15 +51,18 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
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)
|
self.device.click(button)
|
||||||
continue
|
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
|
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
|
success = True
|
||||||
continue
|
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
|
success = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -113,10 +116,13 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
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)
|
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
|
continue
|
||||||
|
|
||||||
|
# End
|
||||||
if self.is_zone_pinned():
|
if self.is_zone_pinned():
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user