Skip to content

Commit

Permalink
Fixes missing IV values (PokemonGoF#927)
Browse files Browse the repository at this point in the history
* Fixed sleep to use floats again

* Fixed sleep to use floats again PokemonGoF#2

* Refactored jitter to have its own function to be used elsewhere

* Fixes SpiralNavigation skipping waypoints

* Fixing stationary movements

* Improved StepWalker
(distances lower than speed should be walked directly)

* Fixes error on missing IV values
  • Loading branch information
tstumm authored and MFizz committed Jul 29, 2016
1 parent 8336a2e commit d91e399
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ def work(self):

if 'pokemon_data' in pokemon and 'cp' in pokemon['pokemon_data']:
cp = pokemon['pokemon_data']['cp']

# make sure we catch any missing iv information
if 'individual_stamina' not in pokemon['pokemon_data']:
pokemon['pokemon_data']['individual_stamina'] = 0
if 'individual_attack' not in pokemon['pokemon_data']:
pokemon['pokemon_data']['individual_attack'] = 0
if 'individual_defense' not in pokemon['pokemon_data']:
pokemon['pokemon_data']['individual_defense'] = 0

iv_stats = ['individual_attack', 'individual_defense', 'individual_stamina']
#iv_display = '{}/{}/{}'.format(
# pokemon['pokemon_data']['individual_stamina'],
Expand Down

0 comments on commit d91e399

Please sign in to comment.