-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pokemon optimizer improvements #4446
Conversation
Take into account the candy rewarded at evolution
@anakin5, thanks for your PR! By analyzing the annotation information on this pull request, we identified @BriceSD, @RedViper9 and @DeXtroTip to be potential reviewers |
@@ -29,13 +29,13 @@ def initialize(self): | |||
self.max_pokemon_storage = inventory.get_pokemon_inventory_size() | |||
self.last_pokemon_count = 0 | |||
|
|||
self.config_transfer = self.config.get("transfer", False) | |||
self.config_evolve = self.config.get("evolve", False) | |||
self.config_transfer = self.config.get("transfer", True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer things to be off by default.
If we use the default value, they are probably missing important stuff in their config.
done |
self.config_evolve_count_for_lucky_egg = self.config.get("evolve_count_for_lucky_egg", 90) | ||
self.config_may_use_lucky_egg = self.config.get("may_use_lucky_egg", False) | ||
self.config_evolve_count_for_lucky_egg = self.config.get("evolve_count_for_lucky_egg", 92) | ||
self.config_may_use_lucky_egg = self.config.get("may_use_lucky_egg", True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we revert this as well?
done |
Thanks for the PR. |
If we have 23 candies and 2 Pidgey (at 12 evolution cost), the previous formula give us that only one of them can be evolved:
(23 + 2) / (12 + 1) = 1
The fixed formula return that both can be evolved (which is correct):
(23 + 2 - 1) / 12 = 2