-
Notifications
You must be signed in to change notification settings - Fork 638
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
Core: fix unfilled items "Per-Player Count" #2661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my first time looking at fill.py, since qwint asked for more eyes on this in Discord, but I can't make heads or tails of what's going on with this change even with the PR description.
get_locations() if location.item
and .get_filled_locations()
seem to be doing the same thing, from looking at the (current) implementation of get_filled_locations()
, so changing that part seems like a clear readability improvement.
That would imply the real change is the deletion of the .update() below. This appears to only affect the "Per-Player counts" log, but why do we want these counts to include unplaced items while excluding unfilled locations? Since they don't specify, I would've naively expected these counts to be all items and locations, including the unplaced items and unfilled locations.
And the PR description says that get_locations()
used to be filled only. But if that's the case, why is there already a if location.item
check here? Does "filled" mean something different from "has an item"?
The unfilled locations are already accounted for within |
What is this fixing or adding?
At some point (likely the region caching rework),
multiworld.get_locations
was changed to include unfilled locations as well as filled, creating a mismatch between the evaluated per-player count and the actual player location count.How was this tested?
Debugging two plando bugs, and wondering why the counts were showing an additional 2 locations.
If this makes graphical changes, please attach screenshots.