Skip to content

Commit

Permalink
Add inventory hot-update to collect_level_up_reward (#4320)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmezh authored and solderzzc committed Aug 20, 2016
1 parent 367ff4b commit 23e3035
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pokemongo_bot/cell_workers/collect_level_up_reward.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pokemongo_bot.base_task import BaseTask
from pokemongo_bot import inventory


class CollectLevelUpReward(BaseTask):
Expand Down Expand Up @@ -45,6 +46,7 @@ def _collect_level_reward(self):
got_item = self.bot.item_list[str(item['item_id'])]
item['name'] = got_item
count = 'item_count' in item and item['item_count'] or 0
inventory.items().get(item['item_id']).add(count)

self.emit_event(
'level_up_reward',
Expand Down

0 comments on commit 23e3035

Please sign in to comment.