Skip to content

Commit

Permalink
Merge pull request #5082 from rawgni/add_poke_lvl
Browse files Browse the repository at this point in the history
Add poke lvl
  • Loading branch information
solderzzc authored Sep 2, 2016
2 parents 3ae1ed4 + 908f58d commit 5f237a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pokemongo_bot/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ def __init__(self, data):
# Current pokemon level (half of level is a normal value)
self.level = LevelToCPm.level_from_cpm(self.cp_m)

if 'level' not in self._data:
self._data['level'] = self.level

# Maximum health points
self.hp_max = data['stamina_max']
# Current health points
Expand Down

0 comments on commit 5f237a6

Please sign in to comment.