Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill: Fix plando removing Usefuls first #2445

Merged
merged 7 commits into from
Nov 24, 2023
Merged

Fill: Fix plando removing Usefuls first #2445

merged 7 commits into from
Nov 24, 2023

Conversation

Exempt-Medic
Copy link
Member

What is this fixing or adding?

Fill defines restitempool as usefulitempool + filleritempool which is used in remaining_fill which itself uses itempool.pop(), but because pop() defaults to -1, it pops and places the filler items first. This switches the order of the summation so that useful items are placed first instead.

How was this tested?

Running generations with plando adding in new items and seeing which items were removed from the pool before and after the change.

blastron and others added 7 commits August 7, 2023 14:24
This fixes two problems:
 - A crash in the early "good" item placement on the tutorial gate when a plando contained an item not in the good item list
 - Crashes when processing malformed plando settings that represent items as nested structures.
@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: core Issues/PRs that touch core and may need additional validation. labels Nov 10, 2023
@ThePhar ThePhar merged commit a8e0342 into ArchipelagoMW:main Nov 24, 2023
12 checks passed
@Exempt-Medic Exempt-Medic deleted the plando-usefuls branch November 25, 2023 22:49
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants