-
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
Using higher Pokeballs when available #1755
Comments
I want to trying to update the catching logic :D |
You can swap the order for berries vs balls to make the decision tree for balls happen before berries. That way it ups the ball and if the threshold is still below the desired level, it will use a berry. Here's how I changed mine (I also added a check for pokemon_potential. No use wasting berries on high CP low IV mons):
|
Partly addressed by the already landed #1807 though it's not as configurable as I'd like; I'll give it a spin and see if my inventory will still fill up with Great Balls while always being out of Razzberries and low capture chance... |
Expected Behavior
Bot uses Great Balls and Ultra Balls as needed, and saves berries.
Actual Behavior
Bot uses RazzBerries whenever one is available, while Great Balls fill up whole inventory.
Steps to Reproduce
Run bot
Other Information
dev branch
Technically, you can just change the thresholds for using higher level balls, as they're already supported in the code. Personally, I like to set the pokeball difficulty level to same as the RazzBerries: "if catch_rate[pokeball - 1] < 0.50 and items_stock[current_type] > 0:" This makes it so the bot prefers to use higher level balls, actually using them up, and uses the berries only if out of balls or even the balls don't get probability to 50%. You may want to bring those difficulty levels even higher when you find your bag filling up with items.
However, I understand people might have different preferences, maybe they really want to save 350 Great Balls for their level 40 run and use only plain Pokeballs for the first 30 levels. Because of that, the difficulty thresholds should be at the very least exposed into config.json. Are there other Pokeball strategies that make generic enough sense to be codified? Should you always be preferring whichever item you have most of, for example?
The text was updated successfully, but these errors were encountered: