mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Merge branch 'master' of https://github.com/LmeSzinc/AzurLaneAutoScript
This commit is contained in:
@@ -369,7 +369,8 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
||||
|
||||
# Arrive
|
||||
# Check colors, because screen goes black when something is unlocking.
|
||||
if self.is_in_map() and IN_MAP.match_appear_on(self.device.image):
|
||||
# A direct use of IN_MAP, basically `self.is_in_map() and IN_MAP.match_template_color()`
|
||||
if self.match_template_color(IN_MAP, offset=(200, 5)):
|
||||
self.update_os()
|
||||
current = self.view.backend.homo_loca
|
||||
logger.attr('homo_loca', current)
|
||||
|
||||
@@ -29,7 +29,7 @@ class FleetSelector:
|
||||
int: Index of current fleet, 1 to 4. return 0 if unrecognized.
|
||||
"""
|
||||
for index, button in enumerate([FLEET_1, FLEET_2, FLEET_3, FLEET_4]):
|
||||
if self.main.appear(button, offset=(20, 20), threshold=0.75):
|
||||
if self.main.appear(button, offset=(20, 20), similarity=0.75):
|
||||
return index + 1
|
||||
|
||||
logger.info('Unknown OpSi fleet')
|
||||
|
||||
Reference in New Issue
Block a user