-
Notifications
You must be signed in to change notification settings - Fork 792
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: Region handling customization #3682
Conversation
Not reviewing the code rn, but I'm super in favor of this exact way of doing this, over anything else that has been tried or suggested |
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.
Also strong agree with the concept. On its own this doesn't quite solve the "gotcha" for new world devs, but this is definitely a big part of the solution.
Code LGTM. It took me a while to wrap my head around how the BFS loops work, but that code is mostly pre-existing, and I'm not used to performance-sensitive Python anyway, so I dunno if it's worth aiming for higher readability there.
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.
I didn't run the code, it looks correct to me though, and I have some faith in it because this is just old code shuffled around that I know works
Might run it later
…name (#3887) * Docs: Mention explicit_indirect_conditions #3682 * Update world api.md * Docs: "Menu" -> origin_region_name #3682 * Update docs/world api.md Co-authored-by: Nicholas Saylor <[email protected]> * Update world api.md * I just didn't do this one and then Medic approved it anyway LMAO * Update world api.md --------- Co-authored-by: Nicholas Saylor <[email protected]>
…name (ArchipelagoMW#3887) * Docs: Mention explicit_indirect_conditions ArchipelagoMW#3682 * Update world api.md * Docs: "Menu" -> origin_region_name ArchipelagoMW#3682 * Update docs/world api.md Co-authored-by: Nicholas Saylor <[email protected]> * Update world api.md * I just didn't do this one and then Medic approved it anyway LMAO * Update world api.md --------- Co-authored-by: Nicholas Saylor <[email protected]>
What is this fixing or adding?
Adds #1764 as a per-world-instance option, given we didn't find a more performant option and some devs would like to use it, it is now available as opt-in
It also adds World.origin_region_name, for worlds that don't want to start in "Menu"
The two changes are somewhat related and would conflict seperately, so for now I lumped them together.
How was this tested?
The original _update_reachable_regions_auto_indirect_conditions is a copy-paste with formatting changes, so that was tested in the PR 1764, the start name change I tested for this PR. It's a critical core functionality though, so additional testing is certainly welcome.