Skip to content

Commit

Permalink
Merge pull request aeon0#928 from xw220/improve/diablo_sealdance
Browse files Browse the repository at this point in the history
Update diablo.py _sealdance() -reviewed and approved. also implemented for PR867
  • Loading branch information
jobithu authored Jun 23, 2022
2 parents 67dc695 + 0e95c16 commit 1ba5319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run/diablo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def _cs_town_visit(self, location:str) -> bool:
# OPEN SEALS
def _sealdance(self, seal_opentemplates: list[str], seal_closedtemplates: list[str], seal_layout: str, seal_node: str) -> bool:
i = 0
while i < 4:
while i < 8:
Logger.debug(seal_layout + ": trying to open (try #" + str(i+1)+")")
self._char.select_by_template(seal_closedtemplates, threshold=0.5, timeout=0.1, telekinesis=True)
wait(i*0.5)
found = template_finder.search_and_wait(seal_opentemplates, threshold=0.75, timeout=0.1).valid
found = template_finder.search_and_wait(seal_opentemplates, threshold=0.7, timeout=0.1).valid
if found:
Logger.info(seal_layout +": is open - "+'\033[92m'+" open"+'\033[0m')
break
Expand Down

0 comments on commit 1ba5319

Please sign in to comment.