added loop for double dig
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import sys
|
||||
|
||||
from config_file import UserConfigs
|
||||
import keyboard
|
||||
import cv2 as cv
|
||||
@@ -14,7 +16,6 @@ def run():
|
||||
capture_config = UserConfigs()
|
||||
capture_window = WindowCapture(None, "screen_conf", capture_config)
|
||||
|
||||
|
||||
# initialize the StunVision class
|
||||
vision_stun = Vision()
|
||||
dig_overlay = DiggingOverlay(config)
|
||||
@@ -27,6 +28,18 @@ def run():
|
||||
plot_size = 45
|
||||
DIG_TIME = 100
|
||||
|
||||
runcounter = 2
|
||||
|
||||
if runcounter == 2:
|
||||
double_dig = True
|
||||
else:
|
||||
double_dig = False
|
||||
|
||||
while runcounter != 0:
|
||||
if double_dig and runcounter == 1:
|
||||
dig_point(290, 100, 200)
|
||||
cv.waitKey(2000)
|
||||
runcounter = runcounter - 1
|
||||
while True:
|
||||
if keyboard.is_pressed('p') == True:
|
||||
pause = True
|
||||
@@ -182,3 +195,4 @@ def run():
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user