1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-26 11:37:54 +08:00

Fix: unique buy handle helper only returns True; if condition no longer needed

This commit is contained in:
nEEtdo0d
2022-01-19 21:38:33 -05:00
parent 4365ecacdc
commit bd4f878504
2 changed files with 2 additions and 5 deletions

View File

@@ -132,8 +132,7 @@ class CoreShop(ShopBase):
bool: whether interface was detected and handled bool: whether interface was detected and handled
""" """
if self.appear(SHOP_BUY_CONFIRM_AMOUNT, offset=(20, 20), interval=3): if self.appear(SHOP_BUY_CONFIRM_AMOUNT, offset=(20, 20), interval=3):
if not self.shop_buy_amount_execute(item): self.shop_buy_amount_execute(item)
logger.warning('Failed to purchase amount item')
self.interval_reset(SHOP_BUY_CONFIRM_AMOUNT) self.interval_reset(SHOP_BUY_CONFIRM_AMOUNT)
return True return True

View File

@@ -237,9 +237,7 @@ class GuildShop(ShopBase, ShopUI):
bool: whether interface was detected and handled bool: whether interface was detected and handled
""" """
if self.appear(SHOP_BUY_CONFIRM_SELECT, offset=(20, 20), interval=3): if self.appear(SHOP_BUY_CONFIRM_SELECT, offset=(20, 20), interval=3):
if not self.shop_buy_select_execute(item): self.shop_buy_select_execute(item)
logger.warning('Failed to purchase secondary '
'grid item')
self.interval_reset(SHOP_BUY_CONFIRM_SELECT) self.interval_reset(SHOP_BUY_CONFIRM_SELECT)
return True return True