1
0
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:
sui-feng-cb
2025-12-03 13:46:26 +08:00
parent 49085b3e35
commit fa44b728bc
3 changed files with 35 additions and 9 deletions

View File

@@ -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