Core/LttP: remove initialize_regions (#2362)
This commit is contained in:
parent
e5ca83b5db
commit
dab704df55
|
@ -328,11 +328,6 @@ class MultiWorld():
|
||||||
""" the base name (without file extension) for each player's output file for a seed """
|
""" the base name (without file extension) for each player's output file for a seed """
|
||||||
return f"AP_{self.seed_name}_P{player}_{self.get_file_safe_player_name(player).replace(' ', '_')}"
|
return f"AP_{self.seed_name}_P{player}_{self.get_file_safe_player_name(player).replace(' ', '_')}"
|
||||||
|
|
||||||
def initialize_regions(self, regions=None):
|
|
||||||
for region in regions if regions else self.regions:
|
|
||||||
region.multiworld = self
|
|
||||||
self._region_cache[region.player][region.name] = region
|
|
||||||
|
|
||||||
@functools.cached_property
|
@functools.cached_property
|
||||||
def world_name_lookup(self):
|
def world_name_lookup(self):
|
||||||
return {self.player_name[player_id]: player_id for player_id in self.player_ids}
|
return {self.player_name[player_id]: player_id for player_id in self.player_ids}
|
||||||
|
|
|
@ -477,8 +477,6 @@ def create_inverted_regions(world, player):
|
||||||
create_lw_region(world, player, 'Death Mountain Bunny Descent Area')
|
create_lw_region(world, player, 'Death Mountain Bunny Descent Area')
|
||||||
]
|
]
|
||||||
|
|
||||||
world.initialize_regions()
|
|
||||||
|
|
||||||
|
|
||||||
def mark_dark_world_regions(world, player):
|
def mark_dark_world_regions(world, player):
|
||||||
# cross world caves may have some sections marked as both in_light_world, and in_dark_work.
|
# cross world caves may have some sections marked as both in_light_world, and in_dark_work.
|
||||||
|
|
|
@ -535,8 +535,6 @@ def set_up_take_anys(world, player):
|
||||||
take_any.shop.add_inventory(0, 'Blue Potion', 0, 0)
|
take_any.shop.add_inventory(0, 'Blue Potion', 0, 0)
|
||||||
take_any.shop.add_inventory(1, 'Boss Heart Container', 0, 0, create_location=True)
|
take_any.shop.add_inventory(1, 'Boss Heart Container', 0, 0, create_location=True)
|
||||||
|
|
||||||
world.initialize_regions()
|
|
||||||
|
|
||||||
|
|
||||||
def get_pool_core(world, player: int):
|
def get_pool_core(world, player: int):
|
||||||
shuffle = world.shuffle[player]
|
shuffle = world.shuffle[player]
|
||||||
|
|
|
@ -382,8 +382,6 @@ def create_regions(world, player):
|
||||||
create_dw_region(world, player, 'Dark Death Mountain Bunny Descent Area')
|
create_dw_region(world, player, 'Dark Death Mountain Bunny Descent Area')
|
||||||
]
|
]
|
||||||
|
|
||||||
world.initialize_regions()
|
|
||||||
|
|
||||||
|
|
||||||
def create_lw_region(world: MultiWorld, player: int, name: str, locations=None, exits=None):
|
def create_lw_region(world: MultiWorld, player: int, name: str, locations=None, exits=None):
|
||||||
return _create_region(world, player, name, LTTPRegionType.LightWorld, 'Light World', locations, exits)
|
return _create_region(world, player, name, LTTPRegionType.LightWorld, 'Light World', locations, exits)
|
||||||
|
|
Loading…
Reference in New Issue