Skip to content

Commit

Permalink
Address unconnected regions
Browse files Browse the repository at this point in the history
  • Loading branch information
PoryGone committed Dec 19, 2022
1 parent a2ffeec commit 406e188
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions worlds/smw/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ def create_regions(world, player: int, active_locations):
menu_region = create_region(world, player, active_locations, 'Menu', None)

yoshis_island_region = create_region(world, player, active_locations, LocationName.yoshis_island_region, None)
donut_plains_region = create_region(world, player, active_locations, LocationName.donut_plains_region, None)
vanilla_dome_region = create_region(world, player, active_locations, LocationName.vanilla_dome_region, None)
twin_bridges_region = create_region(world, player, active_locations, LocationName.twin_bridges_region, None)
forest_of_illusion_region = create_region(world, player, active_locations, LocationName.forest_of_illusion_region, None)
chocolate_island_region = create_region(world, player, active_locations, LocationName.chocolate_island_region, None)
valley_of_bowser_region = create_region(world, player, active_locations, LocationName.valley_of_bowser_region, None)
star_road_region = create_region(world, player, active_locations, LocationName.star_road_region, None)
special_zone_region = create_region(world, player, active_locations, LocationName.special_zone_region, None)


yoshis_house_tile = create_region(world, player, active_locations, LocationName.yoshis_house_tile, None)
Expand Down Expand Up @@ -472,14 +464,6 @@ def create_regions(world, player: int, active_locations):
world.regions += [
menu_region,
yoshis_island_region,
donut_plains_region,
vanilla_dome_region,
twin_bridges_region,
forest_of_illusion_region,
chocolate_island_region,
valley_of_bowser_region,
star_road_region,
special_zone_region,
yoshis_house_tile,
yoshis_house_region,
yoshis_island_1_tile,
Expand Down Expand Up @@ -866,6 +850,8 @@ def connect_regions(world, player, level_to_tile_dict):
names: typing.Dict[str, int] = {}

connect(world, player, names, "Menu", LocationName.yoshis_island_region)
connect(world, player, names, LocationName.yoshis_island_region, LocationName.yoshis_house_tile)
connect(world, player, names, LocationName.yoshis_house_tile, LocationName.donut_plains_top_secret)
connect(world, player, names, LocationName.yoshis_island_region, LocationName.yoshis_island_1_tile)
connect(world, player, names, LocationName.yoshis_island_region, LocationName.yoshis_island_2_tile)

Expand Down

0 comments on commit 406e188

Please sign in to comment.