Skip to content

Commit 8badcf4

Browse files
committed
Removido codigo herança - BombCrypto
1 parent 64a8387 commit 8badcf4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

index.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,6 @@ def load_images():
8484

8585
images = load_images()
8686

87-
def show(rectangles, img = None):
88-
89-
if img is None:
90-
with mss.mss() as sct:
91-
monitor = sct.monitors[0]
92-
img = np.array(sct.grab(monitor))
93-
94-
for (x, y, w, h) in rectangles:
95-
cv2.rectangle(img, (x, y), (x + w, y + h), (255,255,255,255), 2)
96-
97-
cv2.imshow('img',img)
98-
cv2.waitKey(0)
99-
100-
101-
102-
10387

10488
def clickBtn(img,name=None, timeout=3, threshold = ct['default']):
10589
logger(None, progress_indicator=True)
@@ -126,7 +110,6 @@ def clickBtn(img,name=None, timeout=3, threshold = ct['default']):
126110
pyautogui.click()
127111
return True
128112

129-
130113
def printSreen():
131114
with mss.mss() as sct:
132115
monitor = sct.monitors[0]
@@ -164,7 +147,6 @@ def scroll(clickAndDragAmount):
164147

165148
pyautogui.dragRel(0,clickAndDragAmount,duration=1, button='left')
166149

167-
168150
def refreshPage():
169151
# refresh Page
170152
clickBtn(images['refresh-page'])
@@ -352,7 +334,6 @@ def surrenderFight():
352334
global count_victory
353335
count_victory = 0
354336

355-
356337
def endFight():
357338
logger("End fight")
358339
time.sleep(3)

0 commit comments

Comments
 (0)