Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit 7969652

Browse files
committed
Remove unused code
1 parent 85a3290 commit 7969652

File tree

2 files changed

+0
-577
lines changed

2 files changed

+0
-577
lines changed

src/run/diablo.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -48,38 +48,6 @@ def __init__(
4848
self._curr_loc: bool | Location = Location.A4_TOWN_START
4949
self._runs = runs
5050

51-
def _sealdance(self, seal_opentemplates: list[str], seal_closedtemplates: list[str], seal_layout: str, seal_node: str) -> bool:
52-
i = 0
53-
while i < 5:
54-
if Config().general["use_automap_navigation"] == 1 : toggle_automap(False) # just to ensure we switch off Automap, so it does not interfere with sealcheck
55-
Logger.debug(seal_layout + ": trying to open (try #" + str(i+1)+")")
56-
self._char.select_by_template(seal_closedtemplates, threshold=0.5, timeout=0.1, telekinesis=True)
57-
wait(i*1)
58-
found = template_finder.search_and_wait(seal_opentemplates, threshold=0.7, timeout=0.1, suppress_debug=True).valid
59-
if found:
60-
Logger.info(seal_layout +": is open - "+'\033[92m'+" open"+'\033[0m')
61-
break
62-
else:
63-
Logger.debug(seal_layout +": is closed - "+'\033[91m'+" closed"+'\033[0m')
64-
pos_m = convert_abs_to_monitor((0, 0))
65-
mouse.move(*pos_m, randomize=[90, 160])
66-
wait(0.3)
67-
if i >= 1:
68-
Logger.debug(seal_layout + ": failed " + str(i+2) + " times, trying to kill trash now")
69-
Logger.debug("Sealdance: Kill trash at location: sealdance")
70-
self._char.dia_kill_trash("sealdance")
71-
wait(i*0.5)
72-
Logger.debug("Sealdance: Recalibrating at seal_node")
73-
if not self._pather.traverse_nodes_automap(seal_node, self._char): return False
74-
else:
75-
direction = 1 if i % 2 == 0 else -1
76-
x_m, y_m = convert_abs_to_monitor([50 * direction, direction])
77-
self._char.move((x_m, y_m), force_move=True)
78-
i += 1
79-
if Config().general["info_screenshots"] and not found: cv2.imwrite(f"./log/screenshots/info/info_failed_seal_" + seal_layout + "_" + time.strftime("%Y%m%d_%H%M%S") + ".png", grab())
80-
return found
81-
82-
8351
# BUY POTS & STASH WHEN AT PENTAGRAM
8452
def _cs_town_visit(self, location:str) -> bool:
8553
common.close() # close all windows and minimaps to see the TP

0 commit comments

Comments
 (0)