1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-15 19:43:28 +08:00

Fix: handle OS exploration containers (#5854)

* fix: handle Operation Siren exploration containers

* chore: update os container template
This commit is contained in:
Compeador
2026-08-07 00:17:47 +08:00
committed by GitHub
parent 9c6e5b23b8
commit 84c06a37d9
8 changed files with 30 additions and 2 deletions

View File

@@ -785,10 +785,26 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
Returns:
bool: If solved a map random event
"""
grids = self.view.select(is_exploration_container=True)
if 'is_exploration_container' not in self._solved_map_event \
and grids and grids[0].is_exploration_container:
grid = grids[0]
logger.info(f'Found exploration container on {grid}')
self.device.click(grid)
with self.config.temporary(STORY_ALLOW_SKIP=False, STORY_OPTION=1):
result = self.wait_until_walk_stable(
drop=drop, walk_out_of_step=False, confirm_timer=Timer(1.5, count=4))
if 'event' in result:
self._solved_map_event.add('is_exploration_container')
return True
else:
return False
grids = self.view.select(is_exploration_reward=True)
if 'is_exploration_reward' not in self._solved_map_event and grids and grids[0].is_exploration_reward:
grid = grids[0]
logger.info(f'Found exploration reward on {grid}')
self.device.click(grid)
result = self.wait_until_walk_stable(drop=drop, walk_out_of_step=False, confirm_timer=Timer(1.5, count=4))
if 'event' in result:
self._solved_map_event.add('is_exploration_reward')