Skip to content

Commit

Permalink
encounter round shop delay and choose items popup
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony5301 authored Mar 26, 2024
1 parent 45355e7 commit cd1b73a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions arena.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,22 +365,22 @@ def spend_gold(self, speedy=False) -> None:
print(f" Shop: {shop}")

# For set 11 encounter round shop delay and choose items popup
if shop == [(1,""), (2,""), (3,""), (4,""), (5,"")]:
for _ in range(15):
if speedy:
return
sleep(10)
anvil_msg: str = ocr.get_text(
screenxy=screen_coords.ANVIL_MSG_POS.get_coords(),
scale=3,
psm=7,
whitelist=ocr.ALPHABET_WHITELIST,
)
if anvil_msg == "ChooseOne":
print(" Choosing item")
mk_functions.left_click(screen_coords.BUY_LOC[2].get_coords())
if shop == [(1,""), (2,""), (3,""), (4,""), (5,"")]:
sleep(1)
self.spend_gold(True)
return
anvil_msg: str = ocr.get_text(
screenxy=screen_coords.ANVIL_MSG_POS.get_coords(),
scale=3,
psm=7,
whitelist=ocr.ALPHABET_WHITELIST,
)
if anvil_msg in ["ChooseOne", "Feelinglucky"]:
print(" Choosing item")
mk_functions.left_click(screen_coords.BUY_LOC[2].get_coords())
sleep(1)
break

for champion in shop:
if (
Expand Down

0 comments on commit cd1b73a

Please sign in to comment.