Recycle lower level pokeballs to retain the best balls. #2361
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short Description:
At the moment, you need to specify how many PokeBalls, GreatBalls, UltraBalls and MasterBalls you want to keep. Preferably you only want MasterBalls, but if you set Pokeballs to 0; you'll need to spin tons of pokestops before finally getting MasterBalls to catch a pokemon.
A better system would be to just set the total amount of Balls you want. This script allows you to do that. Simply update your config to:
{ "type": "RecycleItems", "config": { "item_filter": { "101": { "keep" : 0 }, "102": { "keep" : 0 }, "103": { "keep" : 25 }, "104": { "keep" : 25 }, "201": { "keep" : 25 }, "701": { "keep" : 50 } }, "balls": 200 }
Then when you have 10 normal PokeBalls and 190 GreatBalls and a pokestop gives you 3 GreatBalls; the bot will discard 3 normal Pokeballs.
So to summarize: this PR makes sure you'll have the best PokeBalls available.
Todo: