Skip to content

Commit

Permalink
Remove unused IV calculation from evolve_pokemon (#3487)
Browse files Browse the repository at this point in the history
Previously IV was computed in each worker. Now its fetched from inventory. This was left over and not called in the worker at all.
  • Loading branch information
leadboots5 authored and elicwhite committed Aug 10, 2016
1 parent 99187ab commit edeb2c2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pokemongo_bot/cell_workers/evolve_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,3 @@ def _execute_pokemon_evolve(self, pokemon, cache):
cache[pokemon.name] = 1
sleep(0.7)
return False

def _compute_iv(self, pokemon):
total_iv = pokemon.get("individual_attack", 0) + pokemon.get("individual_stamina", 0) + pokemon.get(
"individual_defense", 0)
return round((total_iv / 45.0), 2)

0 comments on commit edeb2c2

Please sign in to comment.