mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 16:57:20 +08:00
Refactor: Standardize the use of match_template_color()
This commit is contained in:
@@ -25,8 +25,7 @@ class StrategicSearchHandler(MapEventHandler):
|
||||
continue
|
||||
if self.appear(AUTO_SEARCH_REWARD, offset=(50, 50)):
|
||||
continue
|
||||
if self.appear(STRATEGIC_SEARCH_MAP_OPTION_OFF, offset=(20, 20), interval=2) \
|
||||
and STRATEGIC_SEARCH_MAP_OPTION_OFF.match_appear_on(self.device.image):
|
||||
if self.match_template_color(STRATEGIC_SEARCH_MAP_OPTION_OFF, offset=(20, 20), interval=2):
|
||||
self.device.click(STRATEGIC_SEARCH_MAP_OPTION_OFF)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user