fix equipment.py

This commit is contained in:
2023-04-28 17:59:55 +02:00
parent 059712770a
commit bebcac9cf3

View File

@@ -131,7 +131,10 @@ class Equipment(GameBase):
cv.waitKey(500)
if emitter == EMITTER_MAIN:
loop_time = time()
while True:
if (time() - loop_time) >= 60:
break
screenshot = self.capture_window.get_screenshot()
c_rectangles = self.vision_stun.find(screenshot, self.c_needle, 0.95, 1, True, self.c_mask)
k_rectangles = self.vision_stun.find(screenshot, self.k_needle, 0.95, 1, True, self.k_mask)