From d06ea988fb0209b55a7653ab99cb363b49085639 Mon Sep 17 00:00:00 2001 From: alwaysintreble Date: Mon, 18 Nov 2024 17:29:14 -0600 Subject: [PATCH] Aquaria: don't create regions during initialization --- worlds/aquaria/Regions.py | 14 ++++++++------ worlds/aquaria/__init__.py | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/worlds/aquaria/Regions.py b/worlds/aquaria/Regions.py index 7a41e0d0c864..5204d9381c1a 100755 --- a/worlds/aquaria/Regions.py +++ b/worlds/aquaria/Regions.py @@ -1396,12 +1396,7 @@ def add_regions_to_world(self) -> None: self.__add_abyss_regions_to_world() self.__add_body_regions_to_world() - def __init__(self, multiworld: MultiWorld, player: int): - """ - Initialisation of the regions - """ - self.multiworld = multiworld - self.player = player + def create_regions(self) -> None: self.__create_home_water_area() self.__create_energy_temple() self.__create_openwater() @@ -1412,3 +1407,10 @@ def __init__(self, multiworld: MultiWorld, player: int): self.__create_abyss() self.__create_sunken_city() self.__create_body() + + def __init__(self, multiworld: MultiWorld, player: int): + """ + Initialisation of the regions + """ + self.multiworld = multiworld + self.player = player diff --git a/worlds/aquaria/__init__.py b/worlds/aquaria/__init__.py index 1e58fc5fc6ef..806b6ac3167b 100644 --- a/worlds/aquaria/__init__.py +++ b/worlds/aquaria/__init__.py @@ -108,6 +108,7 @@ def create_regions(self) -> None: """ Create every Region in `regions` """ + self._regions.create_regions() self._regions.add_regions_to_world() self._regions.connect_regions() self._regions.add_event_locations()