From 9a6b7c624d8d45f8f2b2cae75eb1d6ac6491d13f Mon Sep 17 00:00:00 2001 From: aerinon Date: Wed, 18 May 2022 15:16:09 -0600 Subject: [PATCH] Minor fix for mystery --- source/classes/CustomSettings.py | 1 + source/tools/MysteryUtils.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/source/classes/CustomSettings.py b/source/classes/CustomSettings.py index 0145c319..2a8a39f6 100644 --- a/source/classes/CustomSettings.py +++ b/source/classes/CustomSettings.py @@ -59,6 +59,7 @@ class CustomSettings(object): if isinstance(player_setting, str): weights = get_weights(os.path.join(self.relative_dir, player_setting)) settings = defaultdict(lambda: None, vars(roll_settings(weights))) + args.mystery = True else: settings = defaultdict(lambda: None, player_setting) args.shuffle[p] = get_setting(settings['shuffle'], args.shuffle[p]) diff --git a/source/tools/MysteryUtils.py b/source/tools/MysteryUtils.py index 51c6c153..3fbbbf8d 100644 --- a/source/tools/MysteryUtils.py +++ b/source/tools/MysteryUtils.py @@ -46,7 +46,6 @@ def roll_settings(weights): ret = argparse.Namespace() ret.algorithm = get_choice('algorithm') - ret.mystery = get_choice_default('mystery', default=True) glitch_map = {'none': 'noglitches', 'no_logic': 'nologic', 'owglitches': 'owglitches', 'owg': 'owglitches', 'minorglitches': 'minorglitches'}