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

Pokémon RB: Fix shared connection names + missing connection #2553

Conversation

Alchav
Copy link
Contributor

@Alchav Alchav commented Dec 2, 2023

What is this fixing or adding?

  • Adds a missing connection from Cerulean City-T (in the doorway but potentially blocked by the officer) to Cerulean City with Fly - if you are in the City anywhere you gain access to flying to the city.
  • Several entrance names were being used in multiple entrances, this has been fixed.
  • When entrance shuffle was off, the specified names of entrances were being ignored, leading to even more duplicate entrance names.
  • Deletes a straight up duplicate entrance (Route 8-W to Saffron City was being connected twice)

How was this tested?

Running generate with some debug code to warn if duplicate entrance names existed.

@@ -1944,7 +1945,8 @@ def create_regions(self):
connect(multiworld, player, region.name, entrance_data["to"]["map"],
lambda state: logic.rock_tunnel(state, player), one_way=True)
else:
connect(multiworld, player, region.name, entrance_data["to"]["map"], one_way=True)
connect(multiworld, player, region.name, entrance_data["to"]["map"], one_way=True,
name=entrance_data["name"] if "name" in entrance_data else None)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name=entrance_data["name"] if "name" in entrance_data else None)
name=entrance_data.get("name", None))

Should be cleaner in the future.

@Berserker66 Berserker66 merged commit e8ceb12 into ArchipelagoMW:main Dec 2, 2023
12 checks passed
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants