From d135405ed3bb76bd68d16e20ac1235eb65294129 Mon Sep 17 00:00:00 2001 From: aerinon Date: Wed, 12 Jul 2023 09:16:00 -0600 Subject: [PATCH] Customizer: Exception raised for placements of items that are not in pool --- ItemList.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ItemList.py b/ItemList.py index a44a3f6e..5ffb5152 100644 --- a/ItemList.py +++ b/ItemList.py @@ -1397,6 +1397,8 @@ def fill_specific_items(world): track_dungeon_items(item_to_place, loc, world) loc.event = (event_flag or item_to_place.advancement or item_to_place.bigkey or item_to_place.smallkey) + else: + raise Exception(f'Did not find "{item}" in item pool to place at "{location}"') advanced_placements = world.customizer.get_advanced_placements() if advanced_placements: for player, placement_list in advanced_placements.items(): @@ -1406,7 +1408,7 @@ def fill_specific_items(world): item_to_place, event_flag = get_item_and_event_flag(item, world, player, dungeon_pool, prize_set, prize_pool) if not item_to_place: - continue + raise Exception(f'Did not find "{item}" in item pool to place for a LocationGroup"') locations = placement['locations'] handled = False while not handled: