Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bot never try to walk to not snipable pokemons #5207

Closed
wants to merge 1 commit into from
Closed

Fix bot never try to walk to not snipable pokemons #5207

wants to merge 1 commit into from

Conversation

ProblemFactory
Copy link

Short Description:

  • When both snipe and snipe_high_prio_only are on, the bot now will try to walk to next pokemon after sniping.
  • Remove unnecessary sleep in snipe chain

Fixes/Resolves/Closes (please use correct syntax):

* When both `snipe` and `snipe_high_prio_only` are on, the bot now will try to walk to unqualified pokemons (for sniping).
* Remove unnecessary sleep in snipe chain
@mention-bot
Copy link

@martixingwei, thanks for your PR! By analyzing the annotation information on this pull request, we identified @solderzzc, @DBa2016 and @chrisle to be potential reviewers

@@ -341,16 +341,12 @@ def work(self):
self.snipe(pokemon)
count = count +1
if count >= self.config.get('snipe_max_in_chain', 2):
return WorkerResult.SUCCESS
if count is not 1:
time.sleep(self.config.get('snipe_sleep_sec', 2)*5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a must.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? I think the bot should continue to move to next pokemon after sniping the high priority pokemons.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the sleep is a must? There already sleeps in snipe function. What does this sleep for?

@solderzzc
Copy link
Contributor

This PR is not good. Will break the balance.

@solderzzc solderzzc closed this Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants