More fixes to non_local_items

This commit is contained in:
CaitSith2 2020-11-22 14:29:11 -08:00
parent 25f0a5956c
commit 4370447adc
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ def main(args, seed=None):
# item in item_table gets checked in mystery, but not CLI - so we double-check here # item in item_table gets checked in mystery, but not CLI - so we double-check here
world.local_items[player] = {item.strip() for item in args.local_items[player].split(',') if world.local_items[player] = {item.strip() for item in args.local_items[player].split(',') if
item.strip() in item_table} item.strip() in item_table}
world.non_local_items[player] = {item.strip() for item in args.local_items[player].split(',') if world.non_local_items[player] = {item.strip() for item in args.non_local_items[player].split(',') if
item.strip() in item_table} item.strip() in item_table}
# items can't be both local and non-local, prefer local # items can't be both local and non-local, prefer local
world.non_local_items[player] -= world.local_items[player] world.non_local_items[player] -= world.local_items[player]

View File

@ -497,7 +497,7 @@ def roll_settings(weights):
if item in item_table: if item in item_table:
ret.non_local_items.add(item) ret.non_local_items.add(item)
else: else:
raise Exception(f"Could not force item {item} to be world-local, as it was not recognized.") raise Exception(f"Could not force item {item} to be world-non-local, as it was not recognized.")
ret.non_local_items = ",".join(ret.non_local_items) ret.non_local_items = ",".join(ret.non_local_items)