From 84fc0dc10ad67257d53eda146d32aa11f1c4bc0b Mon Sep 17 00:00:00 2001 From: codemann8 Date: Sun, 5 Jan 2025 03:25:07 -0600 Subject: [PATCH] Fixed issue with In-dungeon Prize shuffle placing multiple prizes within the same dungeon --- Fill.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Fill.py b/Fill.py index 6654c813..df7cadaf 100644 --- a/Fill.py +++ b/Fill.py @@ -36,6 +36,10 @@ def dungeon_tracking(world): for dungeon in world.dungeons: layout = world.dungeon_layouts[dungeon.player][dungeon.name] layout.dungeon_items = len([i for i in dungeon.all_items if i.is_inside_dungeon_item(world)]) + if world.prizeshuffle[dungeon.player] in ['dungeon', 'district'] and not dungeon.prize: + from Dungeons import dungeon_table + if dungeon_table[dungeon.name].prize: + layout.dungeon_items += 1 layout.free_items = layout.location_cnt - layout.dungeon_items