1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 19:55:12 +00:00

perf: shop

This commit is contained in:
RedDeadDepresso 2024-01-07 01:58:00 +00:00 committed by YoursFunny
parent 17851b86de
commit 0184376076
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -109,7 +109,7 @@ class ShopUI(UI):
self.swipe_flags[8], self.swipe_flags[16] = False, False
def make_purchase(self):
if self.select_then_check(PURCHASE, CONFIRM_PURCHASE) and self.appear_then_click(CONFIRM_PURCHASE):
if self.match_color(PURCHASE) and self.select_then_check(PURCHASE, CONFIRM_PURCHASE) and self.appear_then_click(CONFIRM_PURCHASE):
return True
logger.warning("No items were selected. Unable to purchase.")
return False