Skip to content

Commit

Permalink
Latitude and Longitude in UpdateLiveStats (#4196)
Browse files Browse the repository at this point in the history
* Added an option to show location in UpdateLiveStats

* Fix error
  • Loading branch information
DeXtroTip authored and solderzzc committed Aug 18, 2016
1 parent de0d43f commit 2c51350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/update_live_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class UpdateLiveStats(BaseTask):
- stardust_earned : The number of earned stardust since the bot started.
- highest_cp_pokemon : The caught pokemon with the highest CP since the bot started.
- most_perfect_pokemon : The most perfect caught pokemon since the bot started.
- location : The location where the player is located.
"""
SUPPORTED_TASK_API_VERSION = 1

Expand Down Expand Up @@ -244,6 +245,7 @@ def _get_stats_line(self, player_stats):
'stardust_earned': 'Earned {:,} Stardust'.format(stardust_earned),
'highest_cp_pokemon': 'Highest CP pokemon : {}'.format(highest_cp_pokemon),
'most_perfect_pokemon': 'Most perfect pokemon : {}'.format(most_perfect_pokemon),
'location': 'Location : ({}, {})'.format(self.bot.position[0], self.bot.position[1]),
}

def get_stat(stat):
Expand Down

0 comments on commit 2c51350

Please sign in to comment.