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
parent 02e0882900
commit dd4aa45f1c

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