Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Fix longer click delay starting at the 6th node instead of the 5th
Browse files Browse the repository at this point in the history
  • Loading branch information
NG0N committed Nov 30, 2022
1 parent 7728ea0 commit 526b393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autobuy/web_autobuy.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _try_buy_nodes(self, nodes: np.ndarray) -> bool:
self.reset()
if self._verbose and self._level_bought_nodes == 4:
log("5th node bought, switching to longer delay mode")
sleep(0.305 if self._level_bought_nodes >= 5 else 0.001) # Longer delay is needed after 5th node of a level is bought
sleep(0.305 if self._level_bought_nodes >= 4 else 0.001) # Longer delay is needed after 5th node of a level is bought
self._level_bought_nodes += 1
return True
return False
Expand Down

0 comments on commit 526b393

Please sign in to comment.