[REQUEST] Add Razz Berry/Great Ball/Ultra Ball thresholds to config file
Expected Behavior
Allow razz berry/higher balls to have customizable rates in the config file. Under 50% for a Pidgey is not worth using a razz berry and/or great ball.
Actual Behavior
Razz berry is used when below 50%, better ball below 35%.
Steps to Reproduce
Encounter a pokemon with a catch chance below 50%/35%.
in dev: pokemon_catch_worker
if(catch_rate[pokeball-1] < 0.5 and berries_count > 0): # and berry is in stock
if catch_rate[pokeball-1] < 0.35 and balls_stock[current_type] > 0:
Other Information
OS: Windows 10 Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
If using configs to set thresholds is not feasible, maybe just auto-escalating would work? If the % is low enough for a pokeball and it fails then try2 adds a razzberry (if available), if that fails then try3 uses a greatball (if available), etc....
This situation is what had me think of it...I used 4 pokeballs and 2 razzberries when I had over 100 great balls available, Fortunately (for me, not for the Taurus) it ended in a capture :)
[01:17:38] Something rustles nearby! [01:17:39] A Wild Tauros appeared! [CP 681] [Potential 0.67] [01:17:39] IV [Stamina/Attack/Defense] = [15/4/11] [01:17:42] Catch Rate with normal Pokeball is low (24.01%). Throwing Razz Berry... (22 left!) [01:17:43] Catch Rate with normal Pokeball has increased to 36.01% [01:17:43] Using Pokeball (chance: 36.01%)... (24 left!) [01:17:43] [-] Attempted to capture Tauros - failed.. trying again! [01:17:45] Catch Rate with normal Pokeball is low (36.01%). Throwing Razz Berry... (22 left!) [01:17:46] Catch Rate with normal Pokeball has increased to 54.02% [01:17:46] Using Pokeball (chance: 54.02%)... (23 left!) [01:17:46] [-] Attempted to capture Tauros - failed.. trying again! [01:17:48] Using Pokeball (chance: 54.02%)... (22 left!) [01:17:48] [-] Attempted to capture Tauros - failed.. trying again! [01:17:51] Using Pokeball (chance: 54.02%)... (21 left!) [01:17:51] [-] Attempted to capture Tauros - failed.. trying again! [01:17:54] Using Pokeball (chance: 54.02%)... (20 left!) [01:17:54] [-] Attempted to capture Tauros - failed.. trying again! [01:17:57] Using Pokeball (chance: 54.02%)... (19 left!) [01:17:57] Captured Tauros! [CP 681] [Potential 0.67] [15/4/11]