Recycle lower level pokeballs to retain the best balls.#2361
Recycle lower level pokeballs to retain the best balls.#2361Jasperrr91 wants to merge 1 commit intoPokemonGoF:devfrom Jasperrr91:dev
Conversation
|
@Jasperrr91 this needs to come with better pokeball choice logics, otherwise ppl will just get a full inventory and never use better balls. |
|
@douglascamata true, it's not giving you the full benefit because any normal pokeballs will be used first. But it's giving you a small benefit nonetheless. So I think it's best to open a new PR to maximise the benefits of this hack. |
|
Could we make it so the Order of the items in RecycleItems config item_filter would determine which items to keep (prioritizing). Mine would look like this So with a limit of 450 items I would have 300 Ultra Balls, 100 Berries, and 50 Great Balls (I'm only lvl 23). |
|
@Kassius509: dicts have no order. |
|
@Kassius509 the script compares each item's inventory count to their respective filter setting. |
|
@bstpierr @douglascamata please aprove this feature ;) |
|
@Jasperrr91 this merge is severly outdated. How do you want to proceed? |
|
Merged #4005. We have this feature now. |
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: