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

Evolving based on IV and CP #802

Merged
merged 25 commits into from
Jul 26, 2016
Merged

Evolving based on IV and CP #802

merged 25 commits into from
Jul 26, 2016

Conversation

guyz
Copy link
Contributor

@guyz guyz commented Jul 25, 2016

Short Description:

Instead of evolving pokemons by their CP, evolving is now done by IV first. To prevent situations where ridiculously low CP pokemons with high IVs are evolved, there is a new optional config value cp_min (default: 300). This is used as a threshold - first, all larger (than the threshold) CP pokemons are evolved based on their IV. Then, if possible, lower CP pokemons are evolved based on their CP alone, since presumably IV doesn't matter that much then.

@SteffanLong
Copy link
Contributor

This looks great, but I know we're trying to refactor the code into an event-driven worker-plugin system. Evolution will eventually be migrated into a worker, perhaps this PR should do that?

@guyz
Copy link
Contributor Author

guyz commented Jul 26, 2016

Evolution is already its separate worker, so not sure how this applies? There is definitely refactoring to do to have the workers share some utility functionalities - but this is beyond just this worker. I'll do it myself if I get around to it soon, but that might not be the case.

Also, this change is fairly small but very useful. I've been using it for the past two days and it does a much better job compared to just CP.

@solderzzc
Copy link
Contributor

Please help to check the README, if feature list updated.

@solderzzc solderzzc merged commit 9071ebd into PokemonGoF:dev Jul 26, 2016
MFizz pushed a commit to MFizz/PokemonGo-Bot that referenced this pull request Jul 29, 2016
* fixed a bug with zero values in release_config causing bot to crash

* added evolve all option

* added evolve all option

* added evolve all option

* added to contrib. list

* sorting pokemons by cp

* stepper update from upstream

* much improved evolve all

* Update README.md

* updated config example

* longer sleeps - to avoid flooding the servers

* mixed IV and CP evolving

* Update README.md

* modified config example

* shorter sleep duration after failed evolve. Should make things faster

* shorter sleep duration after success evolve. Should make things faster

* Update README.md
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