Fix bug with vanilla portals

This commit is contained in:
Scipio Wright
2024-08-08 22:42:56 -04:00
parent 32f2f14a5f
commit 1a59087d8a
2 changed files with 3 additions and 4 deletions

View File

@@ -87,8 +87,7 @@ class TunicWorld(World):
er_regions: Dict[str, RegionInfo] # absolutely needed so outlet regions work
def generate_early(self) -> None:
if self.options.entrance_rando:
self.er_regions = tunic_er_regions.copy()
self.er_regions = tunic_er_regions.copy()
if self.options.plando_connections:
for index, cxn in enumerate(self.options.plando_connections):
if (self.options.entrance_layout == EntranceLayout.option_direction_pairs
@@ -432,7 +431,7 @@ class TunicWorld(World):
"lanternless": self.options.lanternless.value,
"maskless": self.options.maskless.value,
"entrance_rando": int(bool(self.options.entrance_rando.value)),
"decoupled": self.options.decoupled.value,
"decoupled": self.options.decoupled.value if self.options.entrance_rando else 0,
"shuffle_ladders": self.options.shuffle_ladders.value,
"combat_logic": self.options.combat_logic.value,
"Hexagon Quest Prayer": self.ability_unlocks["Pages 24-25 (Prayer)"],

View File

@@ -686,7 +686,7 @@ def create_randomized_entrances(world: "TunicWorld", portal_pairs: Dict[Portal,
regions[portal1.region].connect(
connecting_region=regions[get_portal_outlet_region(portal2, world)],
name=portal1.name)
if not world.options.decoupled:
if not world.options.decoupled or not world.options.entrance_rando:
regions[portal2.region].connect(
connecting_region=regions[get_portal_outlet_region(portal1, world)],
name=portal2.name)