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

[suggestion] Use great balls when encounter higher CP pokemons #17

Closed
harsh1412 opened this issue Jul 21, 2016 · 5 comments
Closed

[suggestion] Use great balls when encounter higher CP pokemons #17

harsh1412 opened this issue Jul 21, 2016 · 5 comments

Comments

@harsh1412
Copy link

Hey so i just had an idea, Why don't you make a code that uses great balls when bot encounter higher set amount of CP of a pokemon lets say bot saw a pokemon of CP 1000 let the bot through a normal ball first. if fails then try a great ball if it again fails then through a raspberry and a greatball until its captured. :)

@tstumm
Copy link
Contributor

tstumm commented Jul 21, 2016

The Pokemon Go app itself shows the "hardness" of a pokemon by a pokeball as colors. Maybe we can adapt this somehow?

@tstumm
Copy link
Contributor

tstumm commented Jul 21, 2016

Actually encouters contain the following information:

e.g.
"capture_probability": {
"capture_probability": [
0.320090651512146,
0.43936973810195923,
0.5377233028411865
],
"pokeball_type": [
1,
2,
3
]
}

So we actually have a probability for pokeballs, superballs and hyperballs
If the capture_probability is very low we should switch to better balls if we have any.

@tstumm
Copy link
Contributor

tstumm commented Jul 21, 2016

Basic algorithm:
Look at pokeball probability. Check if higher than THRESHOLD.
If it is and has enough pokeballs: Use pokeball
If not: Repeat for great ball, hyperball, etc.

@tstumm
Copy link
Contributor

tstumm commented Jul 21, 2016

Will work on that tomorrow

@fredrik-hellmangroup
Copy link
Contributor

merged in #618

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
Jcolomar pushed a commit that referenced this issue Jul 23, 2017
Merge pull request #6113 from goedzo/PokemonGoF-Dev
nbq pushed a commit that referenced this issue Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants