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

Fix: Auto search in zone 154

- Fix: Loop in zone_init()
- Opt: Skip auto search in port
This commit is contained in:
LmeSzinc
2021-12-10 13:46:09 +08:00
parent e5ae34b033
commit 20d96f43ff
3 changed files with 10 additions and 7 deletions

View File

@@ -142,6 +142,10 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle
else:
self.device.screenshot()
if timeout.reached():
logger.warning('Zone init timeout')
break
if self.handle_map_event():
timeout.reset()
continue
@@ -153,10 +157,6 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle
else:
timeout.reset()
if timeout.reached():
logger.warning('Zone init timeout')
break
if not self.is_in_map():
logger.warning('Trying to get zone name, but not in OS map')
return self.get_current_zone()