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

Fix: Entrance Rando one-way entrances preventing certain entrances from being overridden #2318

Merged

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Dec 31, 2022

A bug was preventing certain entrances from being overridden and missing from the spoiler log file when decoupled was off.

This would occur when a one-way entrance was early in the entrance sphere play through order (usually child/adult spawn). When decoupled is set to off, we avoid putting in the "coupled" entrance in the sphere order. This check was not accounting for one-way entrances, so if child spawn was set to a grotto exit, then the grotto itself would be missing from the entrance override list.

This fix makes it so we exclude one-way entrances from the coupled check.

As an aside, I think it may be best to modify the spoiler log for the actual entrance override IDs to not be derived from the play through sphere, that way if there is an error with the sphere itself in the log, it doesn't break the game. I'll reference this in #2308.

Prior to this fix I had 10+ bad seeds after generating 200 seeds. With this fix I confirmed after generating 500 seeds, that everything looks as expected.

Fixes #2275

Build Artifacts

@dcvz dcvz merged commit 1e7cf88 into HarbourMasters:develop-bradley Jan 17, 2023
@Archez Archez deleted the entrance-rando-one-way-fix branch January 17, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants