Skip to content

Commit

Permalink
Fix more merge errors
Browse files Browse the repository at this point in the history
Some day I'll get the hang of GitHub, but today is not that day.
  • Loading branch information
Ars-Ignis committed Feb 6, 2025
1 parent 91143a8 commit 98fe736
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,13 @@ def mark_for_locking(location: Location):
# "priority fill"
fill_restrictive(multiworld, multiworld.state, prioritylocations, progitempool,
single_player_placement=single_player, swap=False, on_place=mark_for_locking,
name="Priority", one_item_per_player=False)
name="Priority", one_item_per_player=True, allow_partial=True)

if prioritylocations:
# retry with one_item_per_player off because some priority fills can fail to fill with that optimization
fill_restrictive(multiworld, multiworld.state, prioritylocations, progitempool,
single_player_placement=single_player, swap=False, on_place=mark_for_locking,
name="Priority Retry", one_item_per_player=False)
accessibility_corrections(multiworld, multiworld.state, prioritylocations, progitempool)
defaultlocations = prioritylocations + defaultlocations

Expand Down Expand Up @@ -561,7 +567,8 @@ def mark_for_locking(location: Location):
if progitempool:
raise FillError(
f"Not enough locations for progression items. "
f"There are {len(progitempool)} more progression items than there are available locations.",
f"There are {len(progitempool)} more progression items than there are available locations.\n"
f"Unfilled locations:\n{multiworld.get_unfilled_locations()}.",
multiworld=multiworld,
)
accessibility_corrections(multiworld, multiworld.state, defaultlocations)
Expand Down

0 comments on commit 98fe736

Please sign in to comment.