From 823d8362ac814c5e8274a5a7d8799008675d8d85 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 21 Sep 2020 19:16:10 +0200 Subject: [PATCH] Fix local keys working without "dungeon_items" key in mystery --- Mystery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mystery.py b/Mystery.py index 46993303..e9ffbcdf 100644 --- a/Mystery.py +++ b/Mystery.py @@ -435,8 +435,8 @@ def roll_settings(weights): if get_choice("local_keys", weights, "l" in dungeon_items): # () important for ordering of commands, without them the Big Keys section is part of the Small Key else - ret.local_items = (item_name_groups["Small Keys"] if "s" in dungeon_items else set()) \ - | item_name_groups["Big Keys"] if "b" in dungeon_items else set() + ret.local_items = (item_name_groups["Small Keys"] if ret.keyshuffle else set()) \ + | item_name_groups["Big Keys"] if ret.bigkeyshuffle else set() else: ret.local_items = set() for item_name in weights.get('local_items', []):