Skip to content

Commit

Permalink
Ensure recycling happens if bag is over capacity. (#3531)
Browse files Browse the repository at this point in the history
Short Description:
Ensures you that item Recycling happens if you have more items than the total bag capacity.

When you level up, you are awarded items which can cause the bag to be over the capacity.
  • Loading branch information
rdrgmnzs authored and solderzzc committed Aug 11, 2016
1 parent 41e5758 commit e60da10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/recycle_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def work(self):
free_bag_space = total_bag_space - items_in_bag

if self.min_empty_space is not None:
if free_bag_space >= self.min_empty_space:
if free_bag_space >= self.min_empty_space and items_in_bag < total_bag_space:
self.emit_event(
'item_discard_skipped',
formatted="Skipping Recycling of Items. {space} space left in bag.",
Expand Down

0 comments on commit e60da10

Please sign in to comment.