mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 21:49:03 +08:00
Fix: Handle GET_ADAPTABILITY in map detection (#2915)
This commit is contained in:
@@ -16,7 +16,7 @@ from module.map_detection.grid import Grid
|
|||||||
from module.map_detection.utils import area2corner, trapezoid2area
|
from module.map_detection.utils import area2corner, trapezoid2area
|
||||||
from module.map_detection.view import View
|
from module.map_detection.view import View
|
||||||
from module.os.assets import GLOBE_GOTO_MAP
|
from module.os.assets import GLOBE_GOTO_MAP
|
||||||
from module.os_handler.assets import AUTO_SEARCH_REWARD, PORT_SUPPLY_CHECK
|
from module.os_handler.assets import AUTO_SEARCH_REWARD, GET_ADAPTABILITY, PORT_SUPPLY_CHECK
|
||||||
from module.ui.assets import BACK_ARROW
|
from module.ui.assets import BACK_ARROW
|
||||||
|
|
||||||
|
|
||||||
@@ -136,6 +136,10 @@ class Camera(MapOperation):
|
|||||||
logger.warning('Perspective error caused by GET_ITEMS_1_RYZA')
|
logger.warning('Perspective error caused by GET_ITEMS_1_RYZA')
|
||||||
self.device.click(GET_ITEMS_1_RYZA)
|
self.device.click(GET_ITEMS_1_RYZA)
|
||||||
return False
|
return False
|
||||||
|
elif self.appear(GET_ADAPTABILITY, offset=(20, 20)):
|
||||||
|
logger.warning('Perspective error caused by GET_ADAPTABILITY')
|
||||||
|
self.device.click(GET_ADAPTABILITY)
|
||||||
|
return False
|
||||||
elif self.handle_story_skip():
|
elif self.handle_story_skip():
|
||||||
logger.warning('Perspective error caused by story')
|
logger.warning('Perspective error caused by story')
|
||||||
self.ensure_no_story(skip_first_screenshot=False)
|
self.ensure_no_story(skip_first_screenshot=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user