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

Core: Fix worlds that rely on other worlds having their Entrances connected before connect_entrances, add unit test #4530

Merged
merged 7 commits into from
Jan 22, 2025

Conversation

NewSoupVi
Copy link
Member

@NewSoupVi NewSoupVi commented Jan 21, 2025

Fixes #4527.

In #4420, we added a new step called connect_entrances.
The description of this step reads: "By the end of this step, all Entrances must be connected".

However, there are some worlds that are relying on other worlds not having any dangling entrances in set_rules (which is before connect_entrances).
The culprit here is get_all_state, which does region sweeps on all worlds.

Conveniently, get_all_state has an allow_partial_entrances kwarg.
So, this PR adds that arg to the two "offending" worlds, and adds a unit test to ensure that it is used.

@NewSoupVi NewSoupVi 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. affects: release/blocker Issues/PRs that must be addressed before next official release. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jan 21, 2025
@NewSoupVi NewSoupVi added the waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. label Jan 21, 2025
Copy link
Member

@Exempt-Medic Exempt-Medic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two small wording comments to make the test description match what the test tests

@NewSoupVi NewSoupVi removed the waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. label Jan 21, 2025
@NewSoupVi NewSoupVi merged commit 5a42c70 into ArchipelagoMW:main Jan 22, 2025
16 checks passed
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. affects: release/blocker Issues/PRs that must be addressed before next official release. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Generation with ALTTP and KH AssertionError: entrance with no connected region
3 participants