Skip to content

Commit

Permalink
only use berries on VIP pokemon if catch rate is less than 90% Pokemo…
Browse files Browse the repository at this point in the history
  • Loading branch information
seeARMS committed Jul 31, 2016
1 parent a160fa7 commit 1787fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1787fec

Please sign in to comment.