1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Fix: Avoid stuck on energy storage device (#2825)

Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
This commit is contained in:
guoh064
2023-07-02 15:36:37 +08:00
committed by GitHub
parent 945598f552
commit b72eecf277

View File

@@ -61,6 +61,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
out: STORAGE_CHECK
"""
success = False
get_mission_counter = 0
self.interval_clear(STORAGE_CHECK)
self.interval_clear(STORAGE_USE)
self.interval_clear(GET_ITEMS_1)
@@ -79,6 +80,10 @@ class StorageHandler(GlobeOperation, ZoneManager):
logger.info(f'_storage_item_use item info -> {GET_MISSION}')
self.device.click(GET_MISSION)
self.interval_reset(STORAGE_CHECK)
get_mission_counter += 1
if get_mission_counter >= 3:
logger.warning('Possibly stuck on energy storage device, redetecting logger items.')
break
continue
# Item rewards
if self.appear_then_click(STORAGE_USE, offset=(180, 30), interval=5):