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

Added only_catch_better_iv and only_catch_better_cp #6162

Merged
merged 3 commits into from
Aug 9, 2017

Conversation

davidakachaos
Copy link
Contributor

Added ability for the bot to do a basic check if a Pokemon to be caught is a higher IV or CP than the one we have (highest one we have) and see if we need to try and catch it.

@mention-bot
Copy link

@davidakachaos, thanks for your PR! By analyzing the history of the files in this pull request, we identified @supercourgette, @TheSavior and @pokepal to be potential reviewers.

@davidakachaos davidakachaos changed the title Dev Added only_catch_better_iv and only_catch_better_cp Jul 29, 2017
@MerlionRock
Copy link
Contributor

I don't understand the need of this... Just catch... Can earn some stardust... Later use optimizer to release... This sound redundant....

@davidakachaos
Copy link
Contributor Author

Agreed, but look at #6154 why someone wants to change catch parameters all the time

@Jcolomar
Copy link
Contributor

this is better than #6154

@Jcolomar
Copy link
Contributor

works only around IV and CP, but only see pokemon_id? or also family_id?

@goedzo
Copy link
Contributor

goedzo commented Jul 31, 2017

I am not liking the way this is coded:

if pokemon_config.get('only_catch_better_cp', False):

This will fail if the key is missing in json. So we need to avoid config fails whenever something new is added. Please default the values and allow the key not to be in config.

@davidakachaos
Copy link
Contributor Author

davidakachaos commented Aug 1, 2017

This will fail if the key is missing in json.

It doesn't with me? I believe I provide a default value with the False here, so if no value found it will default to False?

@davidakachaos
Copy link
Contributor Author

@Jcolomar it works based on a Pokemon, not on a family of Pokemon, so no family_id

@goedzo
Copy link
Contributor

goedzo commented Aug 1, 2017

@davidakachaos sorry missed the false there :).

@Jcolomar
Copy link
Contributor

Jcolomar commented Aug 1, 2017

@davidakachaos so u need a rule for each pokemon...

@davidakachaos
Copy link
Contributor Author

davidakachaos commented Aug 1, 2017 via email

@solderzzc
Copy link
Contributor

@davidakachaos @Jcolomar You want to merge this pr?

@Jcolomar
Copy link
Contributor

Jcolomar commented Aug 9, 2017

Ya np. We kept opened coz @davidakachaos is in vacation.

@Jcolomar Jcolomar merged commit 55e910a into PokemonGoF:dev Aug 9, 2017
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.

6 participants