-
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
Fix crash with upgrade pokemon #5564
Conversation
for i in range(pokemon.level, upgrade_level, 0.5): | ||
upgrade_cost = self.pokemon_upgrade_cost[2 * (i - 1)] | ||
for i in range(int(pokemon.level * 2), int(upgrade_level * 2)): | ||
upgrade_cost = self.pokemon_upgrade_cost[i - 2] |
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.
what kind of crash is it fixing? I don't see any difference between old and new code - it looks exactly the same (steps are twice as big, but "*2" is omitted when the couner variable is used, so...)
Can you show the logfile with the crash?
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.
You cannot create a range with a decimal step
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.
Makes sense for me
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.
👍
need the pull approve stuff otherwise I cannot merge :s. Thank you |
When optimizer tried to transfer it crashes bot #5563 New Pokemon Optimizer crashes the Bot (Maybe because of buddy assignment) #5567 PokemonOptimizer stops after counting pokemon in bag #5565 PokemonOptimizer it says Evolving the best, but apparently not #5492