Skip to content

Commit

Permalink
feat: main bot object ( picklerick) now has a bases property mirrorin…
Browse files Browse the repository at this point in the history
…g the map manager bases
  • Loading branch information
eladyaniv01 committed Oct 2, 2020
1 parent 40eeb71 commit dfd2b41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions picklerick.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self):
self.commander = None
self.action_reporter = None
self.initial_units = []
self.bases = []

async def on_start(self):
await super().on_start()
Expand Down Expand Up @@ -53,9 +54,9 @@ async def on_building_construction_complete(self, unit: Unit):
suspected_builder = self.workers.closest_to(unit)
sanity_check = self.commander.build_book.get(suspected_builder.tag)
if sanity_check:
logger.info(f"len of build book BEFORE: {len(self.commander.build_book)}")
# logger.info(f"len of build book BEFORE: {len(self.commander.build_book)}")
del self.commander.build_book[suspected_builder.tag]
logger.info(f"len of build book AFTER: {len(self.commander.build_book)}")
# logger.info(f"len of build book AFTER: {len(self.commander.build_book)}")
else:
logger.error(f"failed sanity check for {unit}")

Expand Down

0 comments on commit dfd2b41

Please sign in to comment.