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

perf: lesson

This commit is contained in:
RedDeadDepresso 2024-01-07 21:39:58 +00:00 committed by YoursFunny
parent e5fe0d096c
commit a1af2b0b74
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -28,7 +28,7 @@ class ScheduleUI(UI):
def click_then_check(self, coords, dest_check: ButtonWrapper):
click_coords = self.device.click_methods.get(self.config.Emulator_ControlMethod, self.device.click_adb)
timer = Timer(3, 5).start()
timer = Timer(3, 2).start()
wait = Timer(1).start()
while 1:
click_coords(*coords)
@ -61,6 +61,7 @@ class ScheduleUI(UI):
if self.select_then_check(START_LESSON, CONFIRM):
ticket -= 1
if not self.select_then_check(CONFIRM, LOCATIONS_POPUP):
logger.error(f"An unexpected error occurred. Skipping location")
break
return True