mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 09:33:32 +08:00
Upd: gemsfarming flagship change
This commit is contained in:
@@ -440,14 +440,14 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange, GemsEquipmentHandler):
|
|||||||
|
|
||||||
return candidates
|
return candidates
|
||||||
|
|
||||||
def find_candidates(self, template, scanner, output=False):
|
def find_candidates(self, template, scanner):
|
||||||
"""
|
"""
|
||||||
Find candidates based on template matching using a scanner.
|
Find candidates based on template matching using a scanner.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
candidates = []
|
candidates = []
|
||||||
for item in template:
|
for item in template:
|
||||||
candidates = [ship for ship in scanner.scan(self.device.image, output=output)
|
candidates = [ship for ship in scanner.scan(self.device.image, output=False)
|
||||||
if item.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE)]
|
if item.match(self.image_crop(ship.button, copy=False), similarity=SIM_VALUE)]
|
||||||
if candidates:
|
if candidates:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user