remove special rules for pinball room

This commit is contained in:
Fabian Dill
2020-07-09 16:16:31 +02:00
parent baa1f1d2ba
commit 57fe16ab60
5 changed files with 6 additions and 25 deletions

View File

@@ -281,14 +281,14 @@ def distribute_items_restrictive(world, gftower_trash=False, fill_locations=None
if any(
localprioitempool.values() or localrestitempool.values()): # we need to make sure some fills are limited to certain worlds
for player, items in localprioitempool.items(): # already shuffled
for player, items in localprioitempool.items(): # items already shuffled
local_locations = [location for location in fill_locations if location.player == player]
random.shuffle(local_locations)
for item_to_place in items:
spot_to_fill = local_locations.pop()
world.push_item(spot_to_fill, item_to_place, False)
fill_locations.remove(spot_to_fill)
for player, items in localrestitempool.items(): # already shuffled
for player, items in localrestitempool.items(): # items already shuffled
local_locations = [location for location in fill_locations if location.player == player]
random.shuffle(local_locations)
for item_to_place in items: