TUNIC: Some cleanup (#3115)

This commit is contained in:
Scipio Wright
2024-04-13 20:06:06 -04:00
committed by GitHub
parent 3d5c21cec5
commit fb3035a78b
5 changed files with 13 additions and 13 deletions

View File

@@ -22,13 +22,13 @@ class TunicERLocation(Location):
def create_er_regions(world: "TunicWorld") -> Dict[Portal, Portal]:
regions: Dict[str, Region] = {}
if world.options.entrance_rando:
portal_pairs: Dict[Portal, Portal] = pair_portals(world)
portal_pairs = pair_portals(world)
# output the entrances to the spoiler log here for convenience
for portal1, portal2 in portal_pairs.items():
world.multiworld.spoiler.set_entrance(portal1.name, portal2.name, "both", world.player)
else:
portal_pairs: Dict[Portal, Portal] = vanilla_portals()
portal_pairs = vanilla_portals()
for region_name, region_data in tunic_er_regions.items():
regions[region_name] = Region(region_name, world.player, world.multiworld)