Skip to content

Commit

Permalink
sc2: Fixing an issue where I forgot to recalculate precollect_items b…
Browse files Browse the repository at this point in the history
…efore the last ditch start_inventory check
  • Loading branch information
MatthewMarinets committed Dec 11, 2024
1 parent 497fcb2 commit 66b2c72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/sc2/pool_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ def exclude_wa(prefix: str) -> List[StarcraftItem]:

# Part 4: Last-ditch effort to reduce inventory size; upgrades can go in start inventory
current_inventory_size = len(inventory)
if current_inventory_size - start_inventory_size > inventory_size:
precollect_items = current_inventory_size - inventory_size - start_inventory_size
if precollect_items > 0:
promotable = [
item
for item in inventory
Expand Down

0 comments on commit 66b2c72

Please sign in to comment.