added smaler mining area

This commit is contained in:
2023-05-06 19:26:02 +02:00
parent a9e25527f5
commit 2d46fd65b9
5 changed files with 17 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
import cv2 as cv
import game_base_class
from utils import dig_point, check_for_ok_button
from game_base_class import GameBase
from window_capture import WindowCapture
@@ -63,8 +65,8 @@ class Mine(GameBase):
elif self.level % 2 == 0:
self.plot_size = self.plot_size - 1
p1 = int((self.config.returnDiggingWindowPos2()[0] / 2) + self.config.returnDiggingWindowPos2()[2])
p2 = int((self.config.returnDiggingWindowPos2()[1] / 2) + self.config.returnDiggingWindowPos2()[3])
p1 = int((self.config.returnDiggingWindowPos2(game_base_class.MINING_LARGE)[0] / 2) + self.config.returnDiggingWindowPos2(game_base_class.MINING_LARGE)[2])
p2 = int((self.config.returnDiggingWindowPos2(game_base_class.MINING_LARGE)[1] / 2) + self.config.returnDiggingWindowPos2(game_base_class.MINING_LARGE)[3])
# start 705 , 564 -> click
# move L D -> click