mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: unique buy handle helper only returns True; if condition no longer needed
This commit is contained in:
parent
4365ecacdc
commit
bd4f878504
@ -132,8 +132,7 @@ class CoreShop(ShopBase):
|
||||
bool: whether interface was detected and handled
|
||||
"""
|
||||
if self.appear(SHOP_BUY_CONFIRM_AMOUNT, offset=(20, 20), interval=3):
|
||||
if not self.shop_buy_amount_execute(item):
|
||||
logger.warning('Failed to purchase amount item')
|
||||
self.shop_buy_amount_execute(item)
|
||||
self.interval_reset(SHOP_BUY_CONFIRM_AMOUNT)
|
||||
return True
|
||||
|
||||
|
||||
@ -237,9 +237,7 @@ class GuildShop(ShopBase, ShopUI):
|
||||
bool: whether interface was detected and handled
|
||||
"""
|
||||
if self.appear(SHOP_BUY_CONFIRM_SELECT, offset=(20, 20), interval=3):
|
||||
if not self.shop_buy_select_execute(item):
|
||||
logger.warning('Failed to purchase secondary '
|
||||
'grid item')
|
||||
self.shop_buy_select_execute(item)
|
||||
self.interval_reset(SHOP_BUY_CONFIRM_SELECT)
|
||||
return True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user