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

Fix: Handle locked zones in OpsiExplore, no need to move to NY manually now

This commit is contained in:
LmeSzinc
2022-02-02 03:59:56 +08:00
parent 69bf73b28d
commit d591334c76
10 changed files with 38 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ from module.logger import logger
from module.map.map_grids import SelectedGrids
from module.os.fleet import BossFleet
from module.os.globe import OSGlobe
from module.os.globe_operation import OSExploreError
class OperationSiren(OSGlobe):
@@ -167,7 +168,7 @@ class OperationSiren(OSGlobe):
def _is_in_os_explore(self):
return deep_get(self.config.data, keys='OpsiExplore.Scheduler.Enable', default=False)
def os_explore(self):
def _os_explore(self):
"""
Explore all dangerous zones at the beginning of month.
"""
@@ -213,6 +214,18 @@ class OperationSiren(OSGlobe):
if zone == order[-1]:
end()
def os_explore(self):
for _ in range(2):
try:
self._os_explore()
except OSExploreError:
logger.info('Go back to NY, explore again')
self.config.OpsiExplore_LastZone = 0
self.globe_goto(0)
logger.critical('Failed to solve the locked zone')
raise RequestHumanTakeover
def clear_obscure(self):
"""
Raises: