mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 19:33:33 +08:00
Upd: resize and change similarity for 1920x1080 images in campaign
bonus
This commit is contained in:
@@ -15,12 +15,12 @@ class BonusItem(Item):
|
||||
class CampaignBonusStatistics(GetItemsStatistics):
|
||||
bonus_button: Button = CAMPAIGN_BONUS
|
||||
|
||||
def appear_on(self, image):
|
||||
if CAMPAIGN_BONUS_STRATEGY_CHECK.match(image, offset=(200, 500)):
|
||||
def appear_on(self, image, similarity=0.85):
|
||||
if CAMPAIGN_BONUS_STRATEGY_CHECK.match(image, offset=(200, 500), similarity=similarity):
|
||||
return False
|
||||
if AUTO_SEARCH_MENU_EXIT.match(image, offset=(200, 20)) \
|
||||
and (CAMPAIGN_BONUS.match(image, offset=(200, 500)) \
|
||||
and CAMPAIGN_BONUS_SINGLE.match(image, offset=(200, 500))):
|
||||
if AUTO_SEARCH_MENU_EXIT.match(image, offset=(200, 20), similarity=similarity) \
|
||||
and (CAMPAIGN_BONUS.match(image, offset=(200, 500), similarity=similarity) \
|
||||
and CAMPAIGN_BONUS_SINGLE.match(image, offset=(200, 500), similarity=similarity)):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user