fix equipment.py
This commit is contained in:
@@ -131,7 +131,10 @@ class Equipment(GameBase):
|
|||||||
cv.waitKey(500)
|
cv.waitKey(500)
|
||||||
|
|
||||||
if emitter == EMITTER_MAIN:
|
if emitter == EMITTER_MAIN:
|
||||||
|
loop_time = time()
|
||||||
while True:
|
while True:
|
||||||
|
if (time() - loop_time) >= 60:
|
||||||
|
break
|
||||||
screenshot = self.capture_window.get_screenshot()
|
screenshot = self.capture_window.get_screenshot()
|
||||||
c_rectangles = self.vision_stun.find(screenshot, self.c_needle, 0.95, 1, True, self.c_mask)
|
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)
|
k_rectangles = self.vision_stun.find(screenshot, self.k_needle, 0.95, 1, True, self.k_mask)
|
||||||
|
|||||||
Reference in New Issue
Block a user