Add count to missing command

Add a server's missing command
Fix password wasn't able to remove a set password
This commit is contained in:
Fabian Dill
2020-04-20 11:47:50 +02:00
parent ecc2b03aed
commit 5a57519c32
2 changed files with 24 additions and 3 deletions

View File

@@ -824,10 +824,17 @@ class ClientCommandProcessor(CommandProcessor):
get_location_name_from_address(item.location), index, len(self.ctx.items_received)))
def _cmd_missing(self):
"""List all missing location checks"""
"""List all missing location checks, from your local game state"""
count = 0
for location in [k for k, v in Regions.location_table.items() if type(v[0]) is int]:
if location not in self.ctx.locations_checked:
logging.info('Missing: ' + location)
self.output('Missing: ' + location)
count += 1
if count:
self.output(f"Found {count} missing location checks")
else:
self.output("No missing location checks found.")
def _cmd_show_items(self, toggle: str = ""):
"""Toggle showing of items received across the team"""