Fix Fill choking on itself in minimal + full games

This commit is contained in:
NewSoupVi
2024-11-22 16:09:24 +01:00
committed by GitHub
parent d4b1351c99
commit 6bca1cbdac

View File

@@ -183,7 +183,12 @@ def fill_restrictive(multiworld: MultiWorld, base_state: CollectionState, locati
base_state, [], multiworld.get_filled_locations(item.player)
if single_player_placement else None)
for placement in placements:
if multiworld.worlds[placement.item.player].options.accessibility != "minimal" and not placement.can_reach(state):
if (
multiworld.worlds[placement.item.player].options.accessibility != "minimal"
# accessibility_corrections can clean up the case where the location's player is minimal
and multiworld.worlds[placement.player].options.accessibility != "minimal"
and not placement.can_reach(state)
):
placement.item.location = None
unplaced_items.append(placement.item)
placement.item = None