mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 02:48:23 +08:00
Fix: [EN] Split into separate assets, cannot easily be differentiated by offset
Opt: [CN] Use same asset, cloned under new name to adapt to changes
This commit is contained in:
@@ -160,12 +160,12 @@ class MapEventHandler(EnemySearchingHandler):
|
||||
Returns:
|
||||
bool: If clicked.
|
||||
"""
|
||||
if self.appear(AUTO_SEARCH_MAP_OPTION_OFF, offset=(5, 50), interval=3) \
|
||||
and AUTO_SEARCH_MAP_OPTION_OFF.match_appear_on(self.device.image):
|
||||
self.device.click(AUTO_SEARCH_MAP_OPTION_OFF)
|
||||
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50), interval=3) \
|
||||
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image):
|
||||
self.device.click(AUTO_SEARCH_OS_MAP_OPTION_OFF)
|
||||
return True
|
||||
if self.appear(AUTO_SEARCH_MAP_OPTION_OFF, offset=(5, 50)) \
|
||||
and AUTO_SEARCH_MAP_OPTION_OFF.match_appear_on(self.device.image) \
|
||||
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50)) \
|
||||
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image) \
|
||||
and self.info_bar_count() >= 2:
|
||||
raise CampaignEnd
|
||||
if self.appear(AUTO_SEARCH_REWARD, offset=(20, 20)):
|
||||
|
||||
Reference in New Issue
Block a user