From 56cf726d4ffb87a548f4da73f26fecade1d821df Mon Sep 17 00:00:00 2001 From: "Thaloria@web.de" Date: Sun, 30 Apr 2023 20:31:41 +0200 Subject: [PATCH] timing changes --- equipment.py | 4 ++-- sodoku.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/equipment.py b/equipment.py index c9f9d16..b99012b 100644 --- a/equipment.py +++ b/equipment.py @@ -133,7 +133,7 @@ class Equipment(GameBase): if emitter == EMITTER_MAIN: loop_time = time() while True: - if (time() - loop_time) >= 60: + if (time() - loop_time) >= 10: break screenshot = self.capture_window.get_screenshot() c_rectangles = self.vision_stun.find(screenshot, self.c_needle, 0.95, 1, True, self.c_mask) @@ -152,7 +152,7 @@ class Equipment(GameBase): for rer in range(0, len(self.needles), 1): loop_time = time() while True: - if (time() - loop_time) >= 60: + if (time() - loop_time) >= 20: break screenshot = self.capture_window.get_screenshot_by_area(self.config.returnOKWindowPos()) rectangles = self.vision_stun.find(screenshot, self.dig_button, 0.5, 1) diff --git a/sodoku.py b/sodoku.py index 321f30e..cb4f7c3 100644 --- a/sodoku.py +++ b/sodoku.py @@ -140,7 +140,7 @@ class Sodoku(GameBase): return def deploy_finding_to_game(self, e, i, color): - cv.waitKey(random.randint(4000, 6500)) + cv.waitKey(random.randint(3500, 5500)) click_pt = self.get_click_point(self.data_coordinates[e, i]) self.dig_point(click_pt[0] + self.offset_left, click_pt[1] + self.offset_down, 500)