From 58baa412f5cabef6ff61b353175977ed6c9a3c67 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Thu, 27 Mar 2025 02:28:03 -0500 Subject: [PATCH] Fix extra junk added to pool for some prize shuffles --- ItemList.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ItemList.py b/ItemList.py index 3c879c9f..788ecb48 100644 --- a/ItemList.py +++ b/ItemList.py @@ -459,7 +459,8 @@ def generate_itempool(world, player): world.itempool = [beemizer(item) for item in world.itempool] # increase pool if not enough items - ttl_locations = sum(1 for x in world.get_unfilled_locations(player) if world.prizeshuffle[player] != 'none' or not x.prize) + ttl_locations = sum(1 for x in world.get_unfilled_locations(player) if not x.prize and not x.event) + ttl_locations -= 10 if world.prize_shuffle[player] in ['dungeon', 'nearby'] else 0 # TODO: Fix item pool to include prizes for these modes pool_size = count_player_dungeon_item_pool(world, player) pool_size += sum(1 for x in world.itempool if x.player == player)