Skip to content

Commit

Permalink
Forgot to increase placements remaining when swapping into the batch
Browse files Browse the repository at this point in the history
It might not even be necessary to track the number of batch placements
remaining when placing 1 item at a time because it will automatically
start the next batch if it tries to place an item that is not in the
batch.
  • Loading branch information
Mysteryem committed Jan 18, 2025
1 parent 9a0e3ea commit 14878bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def fill_restrictive(multiworld: MultiWorld, base_state: CollectionState, locati
batch_empty_spaces[placed_item.player] = empty_spaces_for_items - 1
if not one_item_per_player:
items_per_player_in_batch[placed_item.player] += 1
batched_placements_remaining += 1
else:
# There are no empty spaces in the current batch for this player, so the item will
# need to be placed in a different batch.
Expand Down

0 comments on commit 14878bc

Please sign in to comment.