From 791aae547f18f1485855ff206958c65f5ff1f761 Mon Sep 17 00:00:00 2001 From: Colin Armstrong Date: Sun, 31 Jul 2016 17:25:46 -0400 Subject: [PATCH] only use berries on VIP pokemon if catch rate is less than 90% #2135 (#2138) --- pokemongo_bot/cell_workers/pokemon_catch_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index 2fab9bd024..e8c0256ff5 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -87,7 +87,7 @@ def work(self): berry_used = False if flag_VIP: - if(berries_count>0): + if(berries_count>0 and catch_rate[pokeball-1] < 0.9): success_percentage = '{0:.2f}'.format(catch_rate[pokeball-1]*100) logger.log('Catch Rate with normal Pokeball is low ({}%). Thinking to throw a {}... ({} left!)'.format(success_percentage,self.item_list[str(berry_id)],berries_count-1)) # Out of all pokeballs! Let's don't waste berry.