Skip to content

Commit

Permalink
Warns if there aren't sufficient space left for loot.
Browse files Browse the repository at this point in the history
MoveToFort will terminate silently, and users will not notice
that MoveToFort is skipping due to the lack of space.

As a result, it sends out requests to Niantic even faster than before
becuase tasks are looping faster and doing noops. More server busy (error 52)
errors appear in the log without an explanation of what's actually
going on.
  • Loading branch information
leoskyrocker committed Jul 31, 2016
1 parent cc3e954 commit 5a7b3d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pokemongo_bot/cell_workers/recycle_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def work(self):
else:
logger.log("-- Failed to discard " + item_name, 'red')

if not self.bot.has_space_for_loot:
logger.log("-- Inventory is still lacking space after recycling.. You might want to fix your config to recycle more things.", 'yellow')

def send_recycle_item_request(self, item_id, count):
self.bot.api.recycle_inventory_item(item_id=item_id, count=count)
inventory_req = self.bot.api.call()
Expand Down

0 comments on commit 5a7b3d5

Please sign in to comment.