Merge branch 'main' into multishop

This commit is contained in:
CaitSith2 2021-01-22 05:51:52 -08:00
commit 50888eaa6b
1 changed files with 3 additions and 1 deletions

View File

@ -92,6 +92,7 @@ class Context():
self.team = None
self.slot = None
self.player_names: typing.Dict[int: str] = {}
self.locations_recognized = set()
self.locations_checked = set()
self.locations_scouted = set()
self.items_received = []
@ -1168,7 +1169,8 @@ async def track_locations(ctx : Context, roomid, roomdata):
else:
items_total = len(ctx.items_missing) + len(ctx.items_checked)
if location in ctx.items_missing or location in ctx.items_checked:
check = f'New Check: {location} ({len(ctx.locations_checked)}/{items_total})'
ctx.locations_recognized.add(location)
check = f'New Check: {location} ({len(ctx.locations_recognized)}/{items_total})'
if check:
logger.info(check)