From 3cb0a22e173a195809054d5f9f853ea0377e74a9 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 1 Sep 2021 17:56:35 +0200 Subject: [PATCH] LttP: crash on outdated dungeon_items use --- Generate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Generate.py b/Generate.py index a5dd5a44..3acd4742 100644 --- a/Generate.py +++ b/Generate.py @@ -529,6 +529,8 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b def roll_alttp_settings(ret: argparse.Namespace, weights, plando_options): + if "dungeon_items" in weights and get_choice_legacy('dungeon_items', weights, "non") != "none": + raise Exception(f"dungeon_items key in A Link to the Past was removed, but is present in these weights as {get_choice_legacy('dungeon_items', weights, False)}.") glitches_required = get_choice_legacy('glitches_required', weights) if glitches_required not in [None, 'none', 'no_logic', 'overworld_glitches', 'hybrid_major_glitches', 'minor_glitches']: logging.warning("Only NMG, OWG, HMG and No Logic supported")