mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-03 14:33:42 -07:00
DS3: Use remaining_fill instead of custom fill (#4397)
--------- Co-authored-by: Mysteryem <Mysteryem@users.noreply.github.com>
This commit is contained in:
1
Fill.py
1
Fill.py
@@ -280,6 +280,7 @@ def remaining_fill(multiworld: MultiWorld,
|
||||
item_to_place = itempool.pop()
|
||||
spot_to_fill: typing.Optional[Location] = None
|
||||
|
||||
# going through locations in the same order as the provided `locations` argument
|
||||
for i, location in enumerate(locations):
|
||||
if location_can_fill_item(location, item_to_place):
|
||||
# popping by index is faster than removing by content,
|
||||
|
||||
Reference in New Issue
Block a user