Skip to content

Comments

Keep best CP pokemon#880

Closed
koper89 wants to merge 1 commit intoPokemonGoF:devfrom
koper89:keep_best_cp
Closed

Keep best CP pokemon#880
koper89 wants to merge 1 commit intoPokemonGoF:devfrom
koper89:keep_best_cp

Conversation

@koper89
Copy link

@koper89 koper89 commented Jul 25, 2016

Short Description:
Couldn't test it cause dev branch cannot find me any pokemons, but hopes it'll work.

@koper89
Copy link
Author

koper89 commented Jul 25, 2016

if not self._check_if_higher_cp_pokemon(pokemon_name, cp):

  •  return True
    

in here should be False

and tested on master works fine.

@glenncampioni
Copy link
Contributor

The logic seems correct, I'll test it in my patched dev branch


release_cp = release_config.get('release_below_cp', 0)

if release_config.get('keep_best_cp', True):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we would want the default value to be False, so nothing changes for users who pull but don't update their release_config.json file?

Copy link
Author

Choose a reason for hiding this comment

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

Yep but in dev branch there's no more realeae congig as separate file

Copy link
Contributor

Choose a reason for hiding this comment

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

You're right. This just caused quite a few errors :)

@koper89
Copy link
Author

koper89 commented Jul 25, 2016

Doesn't seem like issue with my addition

On 26 Jul 2016 12:33 am, "Calcyfer" notifications@github.com wrote:

Currently getting this error :

pokemon_catch_worker.py", line 338, in _get_catch_config_for
catch_config = self.config.catch.get(pokemon)

AttributeError: 'Namespace' object has no attribute 'catch'


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#880 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGLvD1_1sinLv-Ih5VxEy3poMVoOGvFHks5qZUflgaJpZM4JUmNL
.

@glenncampioni
Copy link
Contributor

It's not, that's why I removed the comment - damn all these commits.

Works great on dev btw, after fixing the issues with the config created by other commits.

@koper89
Copy link
Author

koper89 commented Jul 26, 2016

Great to hear.

On 26 Jul 2016 1:01 am, "Calcyfer" notifications@github.com wrote:

It's not, that's why I removed the comment - damn all these commits.

Works great on dev btw, after fixing the issues with the config created by
other commits.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#880 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGLvD3G5jJ_5JbLnqw3xcKrtozZK7Sziks5qZU5TgaJpZM4JUmNL
.

@Nihisil
Copy link
Contributor

Nihisil commented Jul 26, 2016

👍

I hope you have enough patience to merge all dev changes into your branch and that you will not give up with this pull-request.

@slimjim2234
Copy link

LGTM!
👍

@j-waaang
Copy link

Suggestion: It should keep lower cp pokemon in case it has very good iv otherwise I'm gonna loose all my perfekt pokemons.

@koper89
Copy link
Author

koper89 commented Jul 26, 2016

#953
Moved to this pull.

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.

5 participants