| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | """
 | 
					
						
							|  |  |  | Author: Louis M | 
					
						
							|  |  |  | Date: Fri, 15 Mar 2024 18:41:40 +0000 | 
					
						
							|  |  |  | Description: Used to manage Regions in the Aquaria game multiworld randomizer | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from typing import Dict, Optional | 
					
						
							| 
									
										
										
										
											2024-05-20 02:58:44 -04:00
										 |  |  | from BaseClasses import MultiWorld, Region, Entrance, ItemClassification, CollectionState | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | from .Items import AquariaItem | 
					
						
							|  |  |  | from .Locations import AquariaLocations, AquariaLocation | 
					
						
							|  |  |  | from .Options import AquariaOptions | 
					
						
							|  |  |  | from worlds.generic.Rules import add_rule, set_rule | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Every condition to connect regions | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_hot_soup(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the hotsoup item""" | 
					
						
							|  |  |  |     return state.has("Hot soup", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_tongue_cleared(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the Body tongue cleared item""" | 
					
						
							|  |  |  |     return state.has("Body tongue cleared", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_sun_crystal(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the Sun crystal item""" | 
					
						
							|  |  |  |     return state.has("Has sun crystal", player) and _has_bind_song(state, player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_li(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has Li in its team""" | 
					
						
							|  |  |  |     return state.has("Li and Li song", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_damaging_item(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the shield song item""" | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |     return state.has_any({"Energy form",  "Nature form", "Beast form", "Li and Li song", "Baby Nautilus", | 
					
						
							|  |  |  |                          "Baby Piranha", "Baby Blaster"}, player) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_shield_song(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the shield song item""" | 
					
						
							|  |  |  |     return state.has("Shield song", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_bind_song(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the bind song item""" | 
					
						
							|  |  |  |     return state.has("Bind song", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_energy_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the energy form item""" | 
					
						
							|  |  |  |     return state.has("Energy form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_beast_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the beast form item""" | 
					
						
							|  |  |  |     return state.has("Beast form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_nature_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the nature form item""" | 
					
						
							|  |  |  |     return state.has("Nature form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_sun_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the sun form item""" | 
					
						
							|  |  |  |     return state.has("Sun form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_light(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the light item""" | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |     return state.has("Baby Dumbo", player) or _has_sun_form(state, player) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_dual_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the dual form item""" | 
					
						
							|  |  |  |     return _has_li(state, player) and state.has("Dual form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_fish_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the fish form item""" | 
					
						
							|  |  |  |     return state.has("Fish form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_spirit_form(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has the spirit form item""" | 
					
						
							|  |  |  |     return state.has("Spirit form", player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_big_bosses(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has beated every big bosses""" | 
					
						
							|  |  |  |     return state.has_all({"Fallen God beated", "Mithalan God beated", "Drunian God beated", | 
					
						
							|  |  |  |                          "Sun God beated", "The Golem beated"}, player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_mini_bosses(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     """`player` in `state` has beated every big bosses""" | 
					
						
							|  |  |  |     return state.has_all({"Nautilus Prime beated", "Blaster Peg Prime beated", "Mergog beated", | 
					
						
							|  |  |  |                          "Mithalan priests beated", "Octopus Prime beated", "Crabbius Maximus beated", | 
					
						
							|  |  |  |                          "Mantis Shrimp Prime beated", "King Jellyfish God Prime beated"}, player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _has_secrets(state:CollectionState, player: int) -> bool: | 
					
						
							|  |  |  |     return state.has_all({"First secret obtained", "Second secret obtained", "Third secret obtained"},player) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class AquariaRegions: | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Class used to create regions of the Aquaria game | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     menu: Region | 
					
						
							|  |  |  |     verse_cave_r: Region | 
					
						
							|  |  |  |     verse_cave_l: Region | 
					
						
							|  |  |  |     home_water: Region | 
					
						
							|  |  |  |     home_water_nautilus: Region | 
					
						
							|  |  |  |     home_water_transturtle: Region | 
					
						
							|  |  |  |     naija_home: Region | 
					
						
							|  |  |  |     song_cave: Region | 
					
						
							|  |  |  |     energy_temple_1: Region | 
					
						
							|  |  |  |     energy_temple_2: Region | 
					
						
							|  |  |  |     energy_temple_3: Region | 
					
						
							|  |  |  |     energy_temple_boss: Region | 
					
						
							|  |  |  |     energy_temple_idol: Region | 
					
						
							|  |  |  |     energy_temple_blaster_room: Region | 
					
						
							|  |  |  |     energy_temple_altar: Region | 
					
						
							|  |  |  |     openwater_tl: Region | 
					
						
							|  |  |  |     openwater_tr: Region | 
					
						
							|  |  |  |     openwater_tr_turtle: Region | 
					
						
							|  |  |  |     openwater_bl: Region | 
					
						
							|  |  |  |     openwater_br: Region | 
					
						
							|  |  |  |     skeleton_path: Region | 
					
						
							|  |  |  |     skeleton_path_sc: Region | 
					
						
							|  |  |  |     arnassi: Region | 
					
						
							|  |  |  |     arnassi_path: Region | 
					
						
							|  |  |  |     arnassi_crab_boss: Region | 
					
						
							|  |  |  |     simon: Region | 
					
						
							|  |  |  |     mithalas_city: Region | 
					
						
							|  |  |  |     mithalas_city_top_path: Region | 
					
						
							|  |  |  |     mithalas_city_fishpass: Region | 
					
						
							|  |  |  |     cathedral_l: Region | 
					
						
							|  |  |  |     cathedral_l_tube: Region | 
					
						
							|  |  |  |     cathedral_l_sc: Region | 
					
						
							|  |  |  |     cathedral_r: Region | 
					
						
							|  |  |  |     cathedral_underground: Region | 
					
						
							|  |  |  |     cathedral_boss_l: Region | 
					
						
							|  |  |  |     cathedral_boss_r: Region | 
					
						
							|  |  |  |     forest_tl: Region | 
					
						
							|  |  |  |     forest_tl_fp: Region | 
					
						
							|  |  |  |     forest_tr: Region | 
					
						
							|  |  |  |     forest_tr_fp: Region | 
					
						
							|  |  |  |     forest_bl: Region | 
					
						
							|  |  |  |     forest_br: Region | 
					
						
							|  |  |  |     forest_boss: Region | 
					
						
							|  |  |  |     forest_boss_entrance: Region | 
					
						
							|  |  |  |     forest_sprite_cave: Region | 
					
						
							|  |  |  |     forest_sprite_cave_tube: Region | 
					
						
							|  |  |  |     mermog_cave: Region | 
					
						
							|  |  |  |     mermog_boss: Region | 
					
						
							|  |  |  |     forest_fish_cave: Region | 
					
						
							|  |  |  |     veil_tl: Region | 
					
						
							|  |  |  |     veil_tl_fp: Region | 
					
						
							|  |  |  |     veil_tr_l: Region | 
					
						
							|  |  |  |     veil_tr_r: Region | 
					
						
							|  |  |  |     veil_bl: Region | 
					
						
							|  |  |  |     veil_b_sc: Region | 
					
						
							|  |  |  |     veil_bl_fp: Region | 
					
						
							|  |  |  |     veil_br: Region | 
					
						
							|  |  |  |     octo_cave_t: Region | 
					
						
							|  |  |  |     octo_cave_b: Region | 
					
						
							|  |  |  |     turtle_cave: Region | 
					
						
							|  |  |  |     turtle_cave_bubble: Region | 
					
						
							|  |  |  |     sun_temple_l: Region | 
					
						
							|  |  |  |     sun_temple_r: Region | 
					
						
							|  |  |  |     sun_temple_boss_path: Region | 
					
						
							|  |  |  |     sun_temple_boss: Region | 
					
						
							|  |  |  |     abyss_l: Region | 
					
						
							|  |  |  |     abyss_lb: Region | 
					
						
							|  |  |  |     abyss_r: Region | 
					
						
							|  |  |  |     ice_cave: Region | 
					
						
							|  |  |  |     bubble_cave: Region | 
					
						
							|  |  |  |     bubble_cave_boss: Region | 
					
						
							|  |  |  |     king_jellyfish_cave: Region | 
					
						
							|  |  |  |     whale: Region | 
					
						
							|  |  |  |     first_secret: Region | 
					
						
							|  |  |  |     sunken_city_l: Region | 
					
						
							|  |  |  |     sunken_city_r: Region | 
					
						
							|  |  |  |     sunken_city_boss: Region | 
					
						
							|  |  |  |     sunken_city_l_bedroom: Region | 
					
						
							|  |  |  |     body_c: Region | 
					
						
							|  |  |  |     body_l: Region | 
					
						
							|  |  |  |     body_rt: Region | 
					
						
							|  |  |  |     body_rb: Region | 
					
						
							|  |  |  |     body_b: Region | 
					
						
							|  |  |  |     final_boss_loby: Region | 
					
						
							|  |  |  |     final_boss_tube: Region | 
					
						
							|  |  |  |     final_boss: Region | 
					
						
							|  |  |  |     final_boss_end: Region | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Every Region of the game | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     multiworld: MultiWorld | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     The Current Multiworld game. | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     player: int | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     The ID of the player | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_region(self, hint: str, | 
					
						
							|  |  |  |                      locations: Optional[Dict[str, Optional[int]]]) -> Region: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create a new Region, add it to the `world` regions and return it. | 
					
						
							|  |  |  |         Be aware that this function have a side effect on ``world`.`regions` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         region: Region = Region(hint, self.player, self.multiworld, hint) | 
					
						
							|  |  |  |         if locations is not None: | 
					
						
							|  |  |  |             region.add_locations(locations, AquariaLocation) | 
					
						
							|  |  |  |         return region | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_home_water_area(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `verse_cave`, `home_water` and `song_cave*` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.menu = self.__add_region("Menu", None) | 
					
						
							|  |  |  |         self.verse_cave_r = self.__add_region("Verse Cave right area", | 
					
						
							|  |  |  |                                               AquariaLocations.locations_verse_cave_r) | 
					
						
							|  |  |  |         self.verse_cave_l = self.__add_region("Verse Cave left area", | 
					
						
							|  |  |  |                                               AquariaLocations.locations_verse_cave_l) | 
					
						
							|  |  |  |         self.home_water = self.__add_region("Home Water", AquariaLocations.locations_home_water) | 
					
						
							|  |  |  |         self.home_water_nautilus = self.__add_region("Home Water, Nautilus nest", | 
					
						
							|  |  |  |                                                      AquariaLocations.locations_home_water_nautilus) | 
					
						
							|  |  |  |         self.home_water_transturtle = self.__add_region("Home Water, turtle room", | 
					
						
							|  |  |  |                                                      AquariaLocations.locations_home_water_transturtle) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.naija_home = self.__add_region("Naija's Home", AquariaLocations.locations_naija_home) | 
					
						
							|  |  |  |         self.song_cave = self.__add_region("Song Cave", AquariaLocations.locations_song_cave) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def __create_energy_temple(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `energy_temple_*` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_1 = self.__add_region("Energy Temple first area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                  AquariaLocations.locations_energy_temple_1) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_2 = self.__add_region("Energy Temple second area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                  AquariaLocations.locations_energy_temple_2) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_3 = self.__add_region("Energy Temple third area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                  AquariaLocations.locations_energy_temple_3) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_altar = self.__add_region("Energy Temple bottom entrance", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                      AquariaLocations.locations_energy_temple_altar) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_boss = self.__add_region("Energy Temple fallen God room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                     AquariaLocations.locations_energy_temple_boss) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_idol = self.__add_region("Energy Temple Idol room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                     AquariaLocations.locations_energy_temple_idol) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.energy_temple_blaster_room = self.__add_region("Energy Temple blaster room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                             AquariaLocations.locations_energy_temple_blaster_room) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_openwater(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `openwater_*`, `skeleton_path`, `arnassi*` and `simon` | 
					
						
							|  |  |  |         regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.openwater_tl = self.__add_region("Open Water top left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_openwater_tl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.openwater_tr = self.__add_region("Open Water top right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_openwater_tr) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.openwater_tr_turtle = self.__add_region("Open Water top right area, turtle room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                      AquariaLocations.locations_openwater_tr_turtle) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.openwater_bl = self.__add_region("Open Water bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_openwater_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.openwater_br = self.__add_region("Open Water bottom right area", None) | 
					
						
							|  |  |  |         self.skeleton_path = self.__add_region("Open Water skeleton path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                AquariaLocations.locations_skeleton_path) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.skeleton_path_sc = self.__add_region("Open Water skeleton path spirit crystal", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                   AquariaLocations.locations_skeleton_path_sc) | 
					
						
							|  |  |  |         self.arnassi = self.__add_region("Arnassi Ruins", AquariaLocations.locations_arnassi) | 
					
						
							|  |  |  |         self.arnassi_path = self.__add_region("Arnassi Ruins, back entrance path", | 
					
						
							|  |  |  |                                               AquariaLocations.locations_arnassi_path) | 
					
						
							|  |  |  |         self.arnassi_crab_boss = self.__add_region("Arnassi Ruins, Crabbius Maximus lair", | 
					
						
							|  |  |  |                                                    AquariaLocations.locations_arnassi_crab_boss) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_mithalas(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `mithalas_city*` and `cathedral_*` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.mithalas_city = self.__add_region("Mithalas City", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                AquariaLocations.locations_mithalas_city) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.mithalas_city_fishpass = self.__add_region("Mithalas City fish pass", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                         AquariaLocations.locations_mithalas_city_fishpass) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.mithalas_city_top_path = self.__add_region("Mithalas City top path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                         AquariaLocations.locations_mithalas_city_top_path) | 
					
						
							|  |  |  |         self.cathedral_l = self.__add_region("Mithalas castle", AquariaLocations.locations_cathedral_l) | 
					
						
							|  |  |  |         self.cathedral_l_tube = self.__add_region("Mithalas castle, plant tube entrance", | 
					
						
							|  |  |  |                                                   AquariaLocations.locations_cathedral_l_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.cathedral_l_sc = self.__add_region("Mithalas castle spirit crystal", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                 AquariaLocations.locations_cathedral_l_sc) | 
					
						
							|  |  |  |         self.cathedral_r = self.__add_region("Mithalas Cathedral", | 
					
						
							|  |  |  |                                              AquariaLocations.locations_cathedral_r) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.cathedral_underground = self.__add_region("Mithalas Cathedral underground", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                        AquariaLocations.locations_cathedral_underground) | 
					
						
							|  |  |  |         self.cathedral_boss_r = self.__add_region("Mithalas Cathedral, Mithalan God room", | 
					
						
							|  |  |  |                                                   AquariaLocations.locations_cathedral_boss) | 
					
						
							|  |  |  |         self.cathedral_boss_l = self.__add_region("Mithalas Cathedral, after Mithalan God room", None) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_forest(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `forest_*` dans `mermog_cave` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_tl = self.__add_region("Kelp Forest top left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_forest_tl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_tl_fp = self.__add_region("Kelp Forest top left area fish pass", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_forest_tl_fp) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_tr = self.__add_region("Kelp Forest top right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_forest_tr) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_tr_fp = self.__add_region("Kelp Forest top right area fish pass", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_forest_tr_fp) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_bl = self.__add_region("Kelp Forest bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_forest_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_br = self.__add_region("Kelp Forest bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_forest_br) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_sprite_cave = self.__add_region("Kelp Forest spirit cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                     AquariaLocations.locations_forest_sprite_cave) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_sprite_cave_tube = self.__add_region("Kelp Forest spirit cave after the plant tube", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                          AquariaLocations.locations_forest_sprite_cave_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_boss = self.__add_region("Kelp Forest Drunian God room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_forest_boss) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_boss_entrance = self.__add_region("Kelp Forest Drunian God room entrance", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                       AquariaLocations.locations_forest_boss_entrance) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.mermog_cave = self.__add_region("Kelp Forest Mermog cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_mermog_cave) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.mermog_boss = self.__add_region("Kelp Forest Mermog cave boss", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_mermog_boss) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.forest_fish_cave = self.__add_region("Kelp Forest fish cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                   AquariaLocations.locations_forest_fish_cave) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.simon = self.__add_region("Kelp Forest, Simon's room", AquariaLocations.locations_simon) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def __create_veil(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `veil_*`, `octo_cave` and `turtle_cave` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_tl = self.__add_region("The Veil top left area", AquariaLocations.locations_veil_tl) | 
					
						
							|  |  |  |         self.veil_tl_fp = self.__add_region("The Veil top left area fish pass", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                             AquariaLocations.locations_veil_tl_fp) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.turtle_cave = self.__add_region("The Veil top left area, turtle cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_turtle_cave) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.turtle_cave_bubble = self.__add_region("The Veil top left area, turtle cave Bubble Cliff", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                     AquariaLocations.locations_turtle_cave_bubble) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_tr_l = self.__add_region("The Veil top right area, left of temple", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_veil_tr_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_tr_r = self.__add_region("The Veil top right area, right of temple", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_veil_tr_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.octo_cave_t = self.__add_region("Octopus Cave top entrance", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_octo_cave_t) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.octo_cave_b = self.__add_region("Octopus Cave bottom entrance", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              AquariaLocations.locations_octo_cave_b) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_bl = self.__add_region("The Veil bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          AquariaLocations.locations_veil_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_b_sc = self.__add_region("The Veil bottom spirit crystal area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                            AquariaLocations.locations_veil_b_sc) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_bl_fp = self.__add_region("The Veil bottom left area, in the sunken ship", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                             AquariaLocations.locations_veil_bl_fp) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.veil_br = self.__add_region("The Veil bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          AquariaLocations.locations_veil_br) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_sun_temple(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `sun_temple*` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sun_temple_l = self.__add_region("Sun Temple left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_sun_temple_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sun_temple_r = self.__add_region("Sun Temple right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                               AquariaLocations.locations_sun_temple_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sun_temple_boss_path = self.__add_region("Sun Temple before boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                     AquariaLocations.locations_sun_temple_boss_path) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sun_temple_boss = self.__add_region("Sun Temple boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                    AquariaLocations.locations_sun_temple_boss) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_abyss(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `abyss_*`, `ice_cave`, `king_jellyfish_cave` and `whale` | 
					
						
							|  |  |  |         regions | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.abyss_l = self.__add_region("Abyss left area", | 
					
						
							|  |  |  |                                          AquariaLocations.locations_abyss_l) | 
					
						
							|  |  |  |         self.abyss_lb = self.__add_region("Abyss left bottom area", AquariaLocations.locations_abyss_lb) | 
					
						
							|  |  |  |         self.abyss_r = self.__add_region("Abyss right area", AquariaLocations.locations_abyss_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.ice_cave = self.__add_region("Ice Cave", AquariaLocations.locations_ice_cave) | 
					
						
							|  |  |  |         self.bubble_cave = self.__add_region("Bubble Cave", AquariaLocations.locations_bubble_cave) | 
					
						
							|  |  |  |         self.bubble_cave_boss = self.__add_region("Bubble Cave boss area", AquariaLocations.locations_bubble_cave_boss) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.king_jellyfish_cave = self.__add_region("Abyss left area, King jellyfish cave", | 
					
						
							|  |  |  |                                                      AquariaLocations.locations_king_jellyfish_cave) | 
					
						
							|  |  |  |         self.whale = self.__add_region("Inside the whale", AquariaLocations.locations_whale) | 
					
						
							|  |  |  |         self.first_secret = self.__add_region("First secret area", None) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_sunken_city(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `sunken_city_*` regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sunken_city_l = self.__add_region("Sunken City left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                AquariaLocations.locations_sunken_city_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sunken_city_l_bedroom = self.__add_region("Sunken City left area, bedroom", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                        AquariaLocations.locations_sunken_city_l_bedroom) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sunken_city_r = self.__add_region("Sunken City right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                AquariaLocations.locations_sunken_city_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.sunken_city_boss = self.__add_region("Sunken City boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                               AquariaLocations.locations_sunken_city_boss) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __create_body(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Create the `body_*` and `final_boss* regions | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.body_c = self.__add_region("The Body center area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                         AquariaLocations.locations_body_c) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.body_l = self.__add_region("The Body left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                         AquariaLocations.locations_body_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.body_rt = self.__add_region("The Body right area, top path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          AquariaLocations.locations_body_rt) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.body_rb = self.__add_region("The Body right area, bottom path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          AquariaLocations.locations_body_rb) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.body_b = self.__add_region("The Body bottom area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                         AquariaLocations.locations_body_b) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.final_boss_loby = self.__add_region("The Body, before final boss", None) | 
					
						
							|  |  |  |         self.final_boss_tube = self.__add_region("The Body, final boss area turtle room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                  AquariaLocations.locations_final_boss_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.final_boss = self.__add_region("The Body, final boss", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                    AquariaLocations.locations_final_boss) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.final_boss_end = self.__add_region("The Body, final boss area", None) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def __connect_one_way_regions(self, source_name: str, destination_name: str, | 
					
						
							|  |  |  |                                   source_region: Region, | 
					
						
							|  |  |  |                                   destination_region: Region, rule=None) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect from the `source_region` to the `destination_region` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         entrance = Entrance(source_region.player, source_name + " to " + destination_name, source_region) | 
					
						
							|  |  |  |         source_region.exits.append(entrance) | 
					
						
							|  |  |  |         entrance.connect(destination_region) | 
					
						
							|  |  |  |         if rule is not None: | 
					
						
							|  |  |  |             set_rule(entrance, rule) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_regions(self, source_name: str, destination_name: str, | 
					
						
							|  |  |  |                           source_region: Region, | 
					
						
							|  |  |  |                           destination_region: Region, rule=None) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect the `source_region` and the `destination_region` (two-way) | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_one_way_regions(source_name, destination_name, source_region, destination_region, rule) | 
					
						
							|  |  |  |         self.__connect_one_way_regions(destination_name, source_name, destination_region, source_region, rule) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_home_water_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around `home_water` | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Menu", "Verse Cave right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.menu, self.verse_cave_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Verse Cave left area", "Verse Cave right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.verse_cave_l, self.verse_cave_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Verse Cave", "Home Water", self.verse_cave_l, self.home_water) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Haija's home", self.home_water, self.naija_home) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Song Cave", self.home_water, self.song_cave) | 
					
						
							|  |  |  |         self.__connect_regions("Home Water", "Home Water, nautilus nest", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.home_water, self.home_water_nautilus, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player) and _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Home Water transturtle room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.home_water, self.home_water_transturtle) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Energy Temple first area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.home_water, self.energy_temple_1, | 
					
						
							|  |  |  |                                lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Energy Temple_altar", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.home_water, self.energy_temple_altar, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple first area", "Energy Temple second area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_1, self.energy_temple_2, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple first area", "Energy Temple idol room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_1, self.energy_temple_idol, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple idol room", "Energy Temple boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_idol, self.energy_temple_boss, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Energy Temple first area", "Energy Temple boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.energy_temple_1, self.energy_temple_boss, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Energy Temple boss area", "Energy Temple first area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.energy_temple_boss, self.energy_temple_1, | 
					
						
							|  |  |  |                                        lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple second area", "Energy Temple third area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_2, self.energy_temple_3, | 
					
						
							|  |  |  |                                lambda state: _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple boss area", "Energy Temple blaster room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_boss, self.energy_temple_blaster_room, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Energy Temple first area", "Energy Temple blaster room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.energy_temple_1, self.energy_temple_blaster_room, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Home Water", "Open Water top left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.home_water, self.openwater_tl) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_open_water_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around open water | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top left area", "Open Water top right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tl, self.openwater_tr) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top left area", "Open Water bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tl, self.openwater_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top left area", "forest bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tl, self.forest_br) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top right area", "Open Water top right area, turtle room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tr, self.openwater_tr_turtle, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top right area", "Open Water bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tr, self.openwater_br) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top right area", "Mithalas City", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tr, self.mithalas_city) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water top right area", "Veil bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_tr, self.veil_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Open Water top right area", "Veil bottom right", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.openwater_tr, self.veil_br, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Veil bottom right", "Open Water top right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.veil_br, self.openwater_tr, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water bottom left area", "Open Water bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_bl, self.openwater_br) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Open Water bottom left area", "Skeleton path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.openwater_bl, self.skeleton_path) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Abyss left area", "Open Water bottom left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.abyss_l, self.openwater_bl) | 
					
						
							|  |  |  |         self.__connect_regions("Skeleton path", "skeleton_path_sc", | 
					
						
							|  |  |  |                                self.skeleton_path, self.skeleton_path_sc, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Abyss right area", "Open Water bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.abyss_r, self.openwater_br) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Open Water bottom right area", "Arnassi", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.openwater_br, self.arnassi, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Arnassi", "Open Water bottom right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.arnassi, self.openwater_br) | 
					
						
							|  |  |  |         self.__connect_regions("Arnassi", "Arnassi path", | 
					
						
							|  |  |  |                                self.arnassi, self.arnassi_path) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Arnassi path", "Arnassi crab boss area", | 
					
						
							|  |  |  |                                        self.arnassi_path, self.arnassi_crab_boss, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_energy_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Arnassi crab boss area", "Arnassi path", | 
					
						
							|  |  |  |                                        self.arnassi_crab_boss, self.arnassi_path) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_mithalas_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around Mithalas | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Mithalas City", "Mithalas City top path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.mithalas_city, self.mithalas_city_top_path, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Mithalas City_top_path", "Mithalas City", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.mithalas_city_top_path, self.mithalas_city) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Mithalas City", "Mithalas City home with fishpass", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.mithalas_city, self.mithalas_city_fishpass, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Mithalas City", "Mithalas castle", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.mithalas_city, self.cathedral_l, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Mithalas City top path", "Mithalas castle, flower tube", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.mithalas_city_top_path, | 
					
						
							|  |  |  |                                        self.cathedral_l_tube, | 
					
						
							|  |  |  |                                        lambda state: _has_nature_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Mithalas castle, flower tube area", "Mithalas City top path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.cathedral_l_tube, | 
					
						
							|  |  |  |                                        self.mithalas_city_top_path, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_nature_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Mithalas castle flower tube area", "Mithalas castle, spirit crystals", | 
					
						
							|  |  |  |                                self.cathedral_l_tube, self.cathedral_l_sc, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Mithalas castle_flower tube area", "Mithalas castle", | 
					
						
							|  |  |  |                                self.cathedral_l_tube, self.cathedral_l, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Mithalas castle", "Mithalas castle, spirit crystals", | 
					
						
							|  |  |  |                                self.cathedral_l, self.cathedral_l_sc, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Mithalas castle", "Cathedral boss left area", | 
					
						
							|  |  |  |                                self.cathedral_l, self.cathedral_boss_l, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.__connect_regions("Mithalas castle", "Mithalas Cathedral underground", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.cathedral_l, self.cathedral_underground, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.__connect_regions("Mithalas castle", "Mithalas Cathedral", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.cathedral_l, self.cathedral_r, | 
					
						
							|  |  |  |                                lambda state: _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.__connect_regions("Mithalas Cathedral", "Mithalas Cathedral underground", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.cathedral_r, self.cathedral_underground, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.__connect_one_way_regions("Mithalas Cathedral underground", "Cathedral boss left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.cathedral_underground, self.cathedral_boss_r, | 
					
						
							|  |  |  |                                        lambda state: _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.__connect_one_way_regions("Cathedral boss left area", "Mithalas Cathedral underground", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.cathedral_boss_r, self.cathedral_underground, | 
					
						
							|  |  |  |                                        lambda state: _has_beast_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Cathedral boss right area", "Cathedral boss left area", | 
					
						
							|  |  |  |                                        self.cathedral_boss_r, self.cathedral_boss_l, | 
					
						
							|  |  |  |                                        lambda state: _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_energy_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_forest_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around the Kelp Forest | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom right", "Veil bottom left area", | 
					
						
							|  |  |  |                                self.forest_br, self.veil_bl) | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom right", "Forest bottom left area", | 
					
						
							|  |  |  |                                self.forest_br, self.forest_bl) | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom right", "Forest top right area", | 
					
						
							|  |  |  |                                self.forest_br, self.forest_tr) | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom left area", "Forest fish cave", | 
					
						
							|  |  |  |                                self.forest_bl, self.forest_fish_cave) | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom left area", "Forest top left area", | 
					
						
							|  |  |  |                                self.forest_bl, self.forest_tl) | 
					
						
							|  |  |  |         self.__connect_regions("Forest bottom left area", "Forest boss entrance", | 
					
						
							|  |  |  |                                self.forest_bl, self.forest_boss_entrance, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top left area", "Forest top left area, fish pass", | 
					
						
							|  |  |  |                                self.forest_tl, self.forest_tl_fp, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_fish_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top left area", "Forest top right area", | 
					
						
							|  |  |  |                                self.forest_tl, self.forest_tr) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top left area", "Forest boss entrance", | 
					
						
							|  |  |  |                                self.forest_tl, self.forest_boss_entrance) | 
					
						
							|  |  |  |         self.__connect_regions("Forest boss area", "Forest boss entrance", | 
					
						
							|  |  |  |                                self.forest_boss, self.forest_boss_entrance, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top right area", "Forest top right area fish pass", | 
					
						
							|  |  |  |                                self.forest_tr, self.forest_tr_fp, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top right area", "Forest sprite cave", | 
					
						
							|  |  |  |                                self.forest_tr, self.forest_sprite_cave) | 
					
						
							|  |  |  |         self.__connect_regions("Forest sprite cave", "Forest sprite cave flower tube", | 
					
						
							|  |  |  |                                self.forest_sprite_cave, self.forest_sprite_cave_tube, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Forest top right area", "Mermog cave", | 
					
						
							|  |  |  |                                self.forest_tr_fp, self.mermog_cave) | 
					
						
							|  |  |  |         self.__connect_regions("Fermog cave", "Fermog boss", | 
					
						
							|  |  |  |                                self.mermog_cave, self.mermog_boss, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_veil_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around The Veil | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_regions("Veil bottom left area", "Veil bottom left area, fish pass", | 
					
						
							|  |  |  |                                self.veil_bl, self.veil_bl_fp, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_damaging_item(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil bottom left area", "Veil bottom area spirit crystals path", | 
					
						
							|  |  |  |                                self.veil_bl, self.veil_b_sc, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil bottom area spirit crystals path", "Veil bottom right", | 
					
						
							|  |  |  |                                self.veil_b_sc, self.veil_br, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil bottom right", "Veil top left area", | 
					
						
							|  |  |  |                                self.veil_br, self.veil_tl, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil top left area", "Veil_top left area, fish pass", | 
					
						
							|  |  |  |                                self.veil_tl, self.veil_tl_fp, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil top left area", "Veil right of sun temple", | 
					
						
							|  |  |  |                                self.veil_tl, self.veil_tr_r) | 
					
						
							|  |  |  |         self.__connect_regions("Veil top left area", "Turtle cave", | 
					
						
							|  |  |  |                                self.veil_tl, self.turtle_cave) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Turtle cave", "Turtle cave Bubble Cliff", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.turtle_cave, self.turtle_cave_bubble, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Veil right of sun temple", "Sun Temple right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.veil_tr_r, self.sun_temple_r) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sun Temple right area", "Sun Temple left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sun_temple_r, self.sun_temple_l, | 
					
						
							|  |  |  |                                lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sun Temple left area", "Veil left of sun temple", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sun_temple_l, self.veil_tr_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sun Temple left area", "Sun Temple before boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sun_temple_l, self.sun_temple_boss_path) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sun Temple before boss area", "Sun Temple boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sun_temple_boss_path, self.sun_temple_boss, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Sun Temple boss area", "Veil left of sun temple", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.sun_temple_boss, self.veil_tr_l) | 
					
						
							|  |  |  |         self.__connect_regions("Veil left of sun temple", "Octo cave top path", | 
					
						
							|  |  |  |                                self.veil_tr_l, self.octo_cave_t, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_sun_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_beast_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Veil left of sun temple", "Octo cave bottom path", | 
					
						
							|  |  |  |                                self.veil_tr_l, self.octo_cave_b, | 
					
						
							|  |  |  |                                lambda state: _has_fish_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_abyss_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around The Abyss | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_regions("Abyss left area", "Abyss bottom of left area", | 
					
						
							|  |  |  |                                self.abyss_l, self.abyss_lb, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Abyss left bottom area", "Sunken City right area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.abyss_lb, self.sunken_city_r, | 
					
						
							|  |  |  |                                lambda state: _has_li(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Abyss left bottom area", "Body center area", | 
					
						
							|  |  |  |                                self.abyss_lb, self.body_c, | 
					
						
							|  |  |  |                                lambda state: _has_tongue_cleared(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("Body center area", "Abyss left bottom area", | 
					
						
							|  |  |  |                                self.body_c, self.abyss_lb) | 
					
						
							|  |  |  |         self.__connect_regions("Abyss left area", "King jellyfish cave", | 
					
						
							|  |  |  |                                self.abyss_l, self.king_jellyfish_cave, | 
					
						
							|  |  |  |                                lambda state: _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_beast_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Abyss left area", "Abyss right area", | 
					
						
							|  |  |  |                                self.abyss_l, self.abyss_r) | 
					
						
							|  |  |  |         self.__connect_regions("Abyss right area", "Inside the whale", | 
					
						
							|  |  |  |                                self.abyss_r, self.whale, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_sun_form(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_regions("Abyss right area", "First secret area", | 
					
						
							|  |  |  |                                self.abyss_r, self.first_secret, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_sun_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player) and | 
					
						
							|  |  |  |                                              _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Abyss right area", "Ice Cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.abyss_r, self.ice_cave, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Abyss right area", "Bubble Cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.ice_cave, self.bubble_cave, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Bubble Cave boss area", "Bubble Cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.bubble_cave, self.bubble_cave_boss, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player) and _has_bind_song(state, self.player) | 
					
						
							|  |  |  |                                ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_sunken_city_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect entrances of the different regions around The Sunken City | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sunken City right area", "Sunken City left area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sunken_city_r, self.sunken_city_l) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sunken City left area", "Sunken City bedroom", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sunken_city_l, self.sunken_city_l_bedroom, | 
					
						
							|  |  |  |                                lambda state: _has_spirit_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Sunken City left area", "Sunken City boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.sunken_city_l, self.sunken_city_boss, | 
					
						
							|  |  |  |                                lambda state: _has_beast_form(state, self.player) and | 
					
						
							| 
									
										
										
										
											2024-06-11 18:59:46 -04:00
										 |  |  |                                              _has_sun_form(state, self.player) and | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                              _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                              _has_bind_song(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_body_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         Connect entrances of the different regions around The Body | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_regions("Body center area", "Body left area", | 
					
						
							|  |  |  |                                self.body_c, self.body_l) | 
					
						
							|  |  |  |         self.__connect_regions("Body center area", "Body right area top path", | 
					
						
							|  |  |  |                                self.body_c, self.body_rt) | 
					
						
							|  |  |  |         self.__connect_regions("Body center area", "Body right area bottom path", | 
					
						
							|  |  |  |                                self.body_c, self.body_rb) | 
					
						
							|  |  |  |         self.__connect_regions("Body center area", "Body bottom area", | 
					
						
							|  |  |  |                                self.body_c, self.body_b, | 
					
						
							|  |  |  |                                lambda state: _has_dual_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Body bottom area", "Final Boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.body_b, self.final_boss_loby, | 
					
						
							|  |  |  |                                lambda state: _has_dual_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_regions("Before Final Boss", "Final Boss tube", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                self.final_boss_loby, self.final_boss_tube, | 
					
						
							|  |  |  |                                lambda state: _has_nature_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_one_way_regions("Before Final Boss", "Final Boss", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                        self.final_boss_loby, self.final_boss, | 
					
						
							|  |  |  |                                        lambda state: _has_energy_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_dual_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_sun_form(state, self.player) and | 
					
						
							|  |  |  |                                                      _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         self.__connect_one_way_regions("final boss third form area", "final boss end", | 
					
						
							|  |  |  |                                        self.final_boss, self.final_boss_end) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_transturtle(self, item_source: str, item_target: str, region_source: Region, region_target: Region, | 
					
						
							|  |  |  |                               rule=None) -> None: | 
					
						
							|  |  |  |         """Connect a single transturtle to another one""" | 
					
						
							|  |  |  |         if item_source != item_target: | 
					
						
							|  |  |  |             if rule is None: | 
					
						
							|  |  |  |                 self.__connect_one_way_regions(item_source, item_target, region_source, region_target, | 
					
						
							|  |  |  |                                                lambda state: state.has(item_target, self.player)) | 
					
						
							|  |  |  |             else: | 
					
						
							|  |  |  |                 self.__connect_one_way_regions(item_source, item_target, region_source, region_target, rule) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __connect_arnassi_path_transturtle(self, item_source: str, item_target: str, region_source: Region, | 
					
						
							|  |  |  |                                            region_target: Region) -> None: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         """Connect the Arnassi Ruins transturtle to another one""" | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.__connect_one_way_regions(item_source, item_target, region_source, region_target, | 
					
						
							|  |  |  |                                        lambda state: state.has(item_target, self.player) and | 
					
						
							|  |  |  |                                                      _has_fish_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def _connect_transturtle_to_other(self, item: str, region: Region) -> None: | 
					
						
							|  |  |  |         """Connect a single transturtle to all others""" | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Veil top left", region, self.veil_tl) | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Veil top right", region, self.veil_tr_l) | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Open Water top right", region, self.openwater_tr_turtle) | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Forest bottom left", region, self.forest_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_transturtle(item, "Transturtle Home Water", region, self.home_water_transturtle) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.__connect_transturtle(item, "Transturtle Abyss right", region, self.abyss_r) | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Final Boss", region, self.final_boss_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_transturtle(item, "Transturtle Simon Says", region, self.simon) | 
					
						
							|  |  |  |         self.__connect_transturtle(item, "Transturtle Arnassi Ruins", region, self.arnassi_path, | 
					
						
							|  |  |  |                                        lambda state: state.has("Transturtle Arnassi Ruins", self.player) and | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                                      _has_fish_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def _connect_arnassi_path_transturtle_to_other(self, item: str, region: Region) -> None: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         """Connect the Arnassi Ruins transturtle to all others""" | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Veil top left", region, self.veil_tl) | 
					
						
							|  |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Veil top right", region, self.veil_tr_l) | 
					
						
							|  |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Open Water top right", region, | 
					
						
							|  |  |  |                                                 self.openwater_tr_turtle) | 
					
						
							|  |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Forest bottom left", region, self.forest_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Home Water", region, self.home_water_transturtle) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Abyss right", region, self.abyss_r) | 
					
						
							|  |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Final Boss", region, self.final_boss_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.__connect_arnassi_path_transturtle(item, "Transturtle Simon Says", region, self.simon) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def __connect_transturtles(self) -> None: | 
					
						
							|  |  |  |         """Connect every transturtle with others""" | 
					
						
							|  |  |  |         self._connect_transturtle_to_other("Transturtle Veil top left", self.veil_tl) | 
					
						
							|  |  |  |         self._connect_transturtle_to_other("Transturtle Veil top right", self.veil_tr_l) | 
					
						
							|  |  |  |         self._connect_transturtle_to_other("Transturtle Open Water top right", self.openwater_tr_turtle) | 
					
						
							|  |  |  |         self._connect_transturtle_to_other("Transturtle Forest bottom left", self.forest_bl) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self._connect_transturtle_to_other("Transturtle Home Water", self.home_water_transturtle) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         self._connect_transturtle_to_other("Transturtle Abyss right", self.abyss_r) | 
					
						
							|  |  |  |         self._connect_transturtle_to_other("Transturtle Final Boss", self.final_boss_tube) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self._connect_transturtle_to_other("Transturtle Simon Says", self.simon) | 
					
						
							|  |  |  |         self._connect_arnassi_path_transturtle_to_other("Transturtle Arnassi Ruins", self.arnassi_path) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def connect_regions(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Connect every region (entrances and exits) | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__connect_home_water_regions() | 
					
						
							|  |  |  |         self.__connect_open_water_regions() | 
					
						
							|  |  |  |         self.__connect_mithalas_regions() | 
					
						
							|  |  |  |         self.__connect_forest_regions() | 
					
						
							|  |  |  |         self.__connect_veil_regions() | 
					
						
							|  |  |  |         self.__connect_abyss_regions() | 
					
						
							|  |  |  |         self.__connect_sunken_city_regions() | 
					
						
							|  |  |  |         self.__connect_body_regions() | 
					
						
							|  |  |  |         self.__connect_transturtles() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_event_location(self, region: Region, name: str, event_name: str) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add an event to the `region` with the name `name` and the item | 
					
						
							|  |  |  |         `event_name` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         location: AquariaLocation = AquariaLocation( | 
					
						
							|  |  |  |             self.player, name, None, region | 
					
						
							|  |  |  |         ) | 
					
						
							|  |  |  |         region.locations.append(location) | 
					
						
							|  |  |  |         location.place_locked_item(AquariaItem(event_name, | 
					
						
							|  |  |  |                                                ItemClassification.progression, | 
					
						
							|  |  |  |                                                None, | 
					
						
							|  |  |  |                                                self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_event_big_bosses(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every bit bosses (other than the creator) events to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__add_event_location(self.energy_temple_boss, | 
					
						
							|  |  |  |                                   "Beating Fallen God", | 
					
						
							|  |  |  |                                   "Fallen God beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.cathedral_boss_r, | 
					
						
							|  |  |  |                                   "Beating Mithalan God", | 
					
						
							|  |  |  |                                   "Mithalan God beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.forest_boss, | 
					
						
							|  |  |  |                                   "Beating Drunian God", | 
					
						
							|  |  |  |                                   "Drunian God beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.sun_temple_boss, | 
					
						
							|  |  |  |                                   "Beating Sun God", | 
					
						
							|  |  |  |                                   "Sun God beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.sunken_city_boss, | 
					
						
							|  |  |  |                                   "Beating the Golem", | 
					
						
							|  |  |  |                                   "The Golem beated") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_event_mini_bosses(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         Add every mini bosses (excluding Energy Statue and Simon Says) | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |         events to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__add_event_location(self.home_water_nautilus, | 
					
						
							|  |  |  |                                   "Beating Nautilus Prime", | 
					
						
							|  |  |  |                                   "Nautilus Prime beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.energy_temple_blaster_room, | 
					
						
							|  |  |  |                                   "Beating Blaster Peg Prime", | 
					
						
							|  |  |  |                                   "Blaster Peg Prime beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.mermog_boss, | 
					
						
							|  |  |  |                                   "Beating Mergog", | 
					
						
							|  |  |  |                                   "Mergog beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.cathedral_l_tube, | 
					
						
							|  |  |  |                                   "Beating Mithalan priests", | 
					
						
							|  |  |  |                                   "Mithalan priests beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.octo_cave_t, | 
					
						
							|  |  |  |                                   "Beating Octopus Prime", | 
					
						
							|  |  |  |                                   "Octopus Prime beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.arnassi_crab_boss, | 
					
						
							|  |  |  |                                   "Beating Crabbius Maximus", | 
					
						
							|  |  |  |                                   "Crabbius Maximus beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.bubble_cave_boss, | 
					
						
							|  |  |  |                                   "Beating Mantis Shrimp Prime", | 
					
						
							|  |  |  |                                   "Mantis Shrimp Prime beated") | 
					
						
							|  |  |  |         self.__add_event_location(self.king_jellyfish_cave, | 
					
						
							|  |  |  |                                   "Beating King Jellyfish God Prime", | 
					
						
							|  |  |  |                                   "King Jellyfish God Prime beated") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_event_secrets(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add secrets events to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-05-20 02:58:44 -04:00
										 |  |  |         self.__add_event_location(self.first_secret,  # Doit ajouter une région pour le "first secret" | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                   "First secret", | 
					
						
							|  |  |  |                                   "First secret obtained") | 
					
						
							|  |  |  |         self.__add_event_location(self.mithalas_city, | 
					
						
							|  |  |  |                                   "Second secret", | 
					
						
							|  |  |  |                                   "Second secret obtained") | 
					
						
							|  |  |  |         self.__add_event_location(self.sun_temple_l, | 
					
						
							|  |  |  |                                   "Third secret", | 
					
						
							|  |  |  |                                   "Third secret obtained") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def add_event_locations(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every event (locations and items) to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__add_event_mini_bosses() | 
					
						
							|  |  |  |         self.__add_event_big_bosses() | 
					
						
							|  |  |  |         self.__add_event_secrets() | 
					
						
							|  |  |  |         self.__add_event_location(self.sunken_city_boss, | 
					
						
							|  |  |  |                                   "Sunken City cleared", | 
					
						
							|  |  |  |                                   "Body tongue cleared") | 
					
						
							|  |  |  |         self.__add_event_location(self.sun_temple_r, | 
					
						
							|  |  |  |                                   "Sun Crystal", | 
					
						
							|  |  |  |                                   "Has sun crystal") | 
					
						
							|  |  |  |         self.__add_event_location(self.final_boss_end, "Objective complete", | 
					
						
							|  |  |  |                                   "Victory") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_urns_rules(self) -> None: | 
					
						
							|  |  |  |         """Since Urns need to be broken, add a damaging item to rules""" | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water top right area, first urn in the Mithalas exit", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water top right area, second urn in the Mithalas exit", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water top right area, third urn in the Mithalas exit", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, first urn in one of the homes", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, second urn in one of the homes", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, first urn in the city reserve", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, second urn in the city reserve", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, third urn in the city reserve", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-11 18:59:46 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, urn in the Castle flower tube entrance", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, urn in the bedroom", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, first urn of the single lamp path", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, second urn of the single lamp path", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, urn in the bottom room", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, first urn on the entrance path", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City Castle, second urn on the entrance path", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas City, urn inside a home fish pass", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_crates_rules(self) -> None: | 
					
						
							|  |  |  |         """Since Crate need to be broken, add a damaging item to rules""" | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Sunken City right area, crate close to the save crystal", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Sunken City right area, crate in the left bottom room", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Sunken City left area, crate in the little pipe room", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Sunken City left area, crate close to the save crystal", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Sunken City left area, crate before the bedroom", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_damaging_item(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_soup_rules(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Modify rules for location that need soup | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Turtle cave, Urchin Costume", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Sun Worm path, first cliff bulb", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Sun Worm path, second cliff bulb", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-11 18:59:46 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("The Veil top right area, bulb at the top of the waterfall", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_under_rock_location(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Modify rules implying bind song needed for bulb under rocks | 
					
						
							|  |  |  |         """
 | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Home Water, bulb under the rock in the left path from the Verse Cave", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Verse Cave left area, bulb under the rock at the end of the path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Naija's Home, bulb under the rock at the right of the main path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Song Cave, bulb under the rock in the path to the singing statues", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Song Cave, bulb under the rock close to the song door", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Energy Temple second area, bulb under the rock", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water top left area, bulb under the rock in the right path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water top left area, bulb under the rock in the left path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Kelp Forest top right area, bulb under the rock in the right path", | 
					
						
							|  |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("The Veil top left area, bulb under the rock in the top right path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Abyss right area, bulb behind the rock in the whale room", | 
					
						
							|  |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Abyss right area, bulb in the middle path", | 
					
						
							|  |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("The Veil top left area, bulb under the rock in the top right path", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_light_in_dark_place_rules(self) -> None: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Kelp Forest top right area, Black Pearl", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Kelp Forest bottom right area, Odd Container", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Veil top left to Transturtle Abyss right", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Open Water top right to Transturtle Abyss right", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Veil top right to Transturtle Abyss right", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Forest bottom left to Transturtle Abyss right", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Home Water to Transturtle Abyss right", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Final Boss to Transturtle Abyss right", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Simon Says to Transturtle Abyss right", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Transturtle Arnassi Ruins to Transturtle Abyss right", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Body center area to Abyss left bottom area", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_entrance("Veil left of sun temple to Octo cave top path", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Open Water bottom right area to Abyss right area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Open Water bottom left area to Abyss left area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Sun Temple left area to Sun Temple right area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player) or _has_sun_crystal(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Sun Temple right area to Sun Temple left area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player) or _has_sun_crystal(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_entrance("Veil left of sun temple to Sun Temple left area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_light(state, self.player) or _has_sun_crystal(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __adjusting_manual_rules(self) -> None: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Mithalas Cathedral, Mithalan Dress", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Open Water bottom left area, bulb inside the lowest fish pass", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_fish_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Kelp Forest bottom left area, Walker Baby", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_spirit_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("The Veil top left area, bulb hidden behind the blocking rock", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Turtle cave, Turtle Egg", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Abyss left area, bulb in the bottom fish pass", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_fish_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Song Cave, Anemone Seed", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_nature_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Song Cave, Verse Egg", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Verse Cave right area, Big Seed", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Arnassi Ruins, Song Plant Spore", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_beast_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Energy Temple first area, bulb in the bottom room blocked by a rock", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                          self.player), lambda state: _has_energy_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Home Water, bulb in the bottom left room", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Home Water, bulb in the path below Nautilus Prime", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_bind_song(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Naija's Home, bulb after the energy door", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_energy_form(state, self.player)) | 
					
						
							|  |  |  |         add_rule(self.multiworld.get_location("Abyss right area, bulb behind the rock in the whale room", self.player), | 
					
						
							|  |  |  |                  lambda state: _has_spirit_form(state, self.player) and | 
					
						
							|  |  |  |                                _has_sun_form(state, self.player)) | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         add_rule(self.multiworld.get_location("Arnassi Ruins, Arnassi Armor", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                  lambda state: _has_fish_form(state, self.player) and | 
					
						
							|  |  |  |                                _has_spirit_form(state, self.player)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __no_progression_hard_or_hidden_location(self) -> None: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Energy Temple boss area, Fallen God Tooth", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.multiworld.get_location("Mithalas boss area, beating Mithalan God", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Kelp Forest boss area, beating Drunian God", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Sun Temple boss area, beating Sun God", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Sunken City, bulb on top of the boss area", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Home Water, Nautilus Egg", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Energy Temple blaster room, Blaster Egg", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Mithalas City Castle, beating the Priests", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							|  |  |  |         self.multiworld.get_location("Mermog cave, Piranha Egg", | 
					
						
							|  |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Octopus Cave, Dumbo Egg", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("King Jellyfish Cave, bulb in the right path from King Jelly", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("King Jellyfish Cave, Jellyfish Costume", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Final Boss area, bulb in the boss third form room", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							|  |  |  |         self.multiworld.get_location("Sun Worm path, first cliff bulb", | 
					
						
							|  |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							|  |  |  |         self.multiworld.get_location("Sun Worm path, second cliff bulb", | 
					
						
							|  |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-11 18:59:46 -04:00
										 |  |  |         self.multiworld.get_location("The Veil top right area, bulb at the top of the waterfall", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Bubble Cave, bulb in the left cave wall", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Bubble Cave, bulb in the right cave wall (behind the ice crystal)", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Bubble Cave, Verse Egg", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							|  |  |  |         self.multiworld.get_location("Kelp Forest bottom left area, bulb close to the spirit crystals", | 
					
						
							|  |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-07-05 16:40:26 -04:00
										 |  |  |         self.multiworld.get_location("Kelp Forest bottom left area, Walker Baby", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Sun Temple, Sun Key", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("The Body bottom area, Mutant Costume", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Sun Temple, bulb in the hidden room of the right part", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |         self.multiworld.get_location("Arnassi Ruins, Arnassi Armor", | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                                      self.player).item_rule =\ | 
					
						
							|  |  |  |             lambda item: item.classification != ItemClassification.progression | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def adjusting_rules(self, options: AquariaOptions) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Modify rules for single location or optional rules | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__adjusting_urns_rules() | 
					
						
							|  |  |  |         self.__adjusting_crates_rules() | 
					
						
							|  |  |  |         self.__adjusting_soup_rules() | 
					
						
							|  |  |  |         self.__adjusting_manual_rules() | 
					
						
							|  |  |  |         if options.light_needed_to_get_to_dark_places: | 
					
						
							|  |  |  |             self.__adjusting_light_in_dark_place_rules() | 
					
						
							|  |  |  |         if options.bind_song_needed_to_get_under_rock_bulb: | 
					
						
							|  |  |  |             self.__adjusting_under_rock_location() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         if options.mini_bosses_to_beat.value > 0: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |             add_rule(self.multiworld.get_entrance("Before Final Boss to Final Boss", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                      lambda state: _has_mini_bosses(state, self.player)) | 
					
						
							|  |  |  |         if options.big_bosses_to_beat.value > 0: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |             add_rule(self.multiworld.get_entrance("Before Final Boss to Final Boss", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                      lambda state: _has_big_bosses(state, self.player)) | 
					
						
							|  |  |  |         if options.objective.value == 1: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |             add_rule(self.multiworld.get_entrance("Before Final Boss to Final Boss", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                      lambda state: _has_secrets(state, self.player)) | 
					
						
							|  |  |  |         if options.unconfine_home_water.value in [0, 1]: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |             add_rule(self.multiworld.get_entrance("Home Water to Home Water transturtle room", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                      lambda state: _has_bind_song(state, self.player)) | 
					
						
							|  |  |  |         if options.unconfine_home_water.value in [0, 2]: | 
					
						
							| 
									
										
										
										
											2024-06-01 07:09:34 -04:00
										 |  |  |             add_rule(self.multiworld.get_entrance("Home Water to Open Water top left area", self.player), | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  |                      lambda state: _has_bind_song(state, self.player) and _has_energy_form(state, self.player)) | 
					
						
							|  |  |  |         if options.early_energy_form: | 
					
						
							| 
									
										
										
										
											2024-05-20 02:58:44 -04:00
										 |  |  |             self.multiworld.early_items[self.player]["Energy form"] = 1 | 
					
						
							| 
									
										
										
										
											2024-05-17 06:29:00 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |         if options.no_progression_hard_or_hidden_locations: | 
					
						
							|  |  |  |             self.__no_progression_hard_or_hidden_location() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_home_water_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around home water to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.menu) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.verse_cave_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.verse_cave_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.home_water) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.home_water_nautilus) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.home_water_transturtle) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.naija_home) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.song_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_1) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_2) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_3) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_blaster_room) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.energy_temple_altar) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_open_water_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around open water to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.openwater_tl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.openwater_tr) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.openwater_tr_turtle) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.openwater_bl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.openwater_br) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.skeleton_path) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.skeleton_path_sc) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.arnassi) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.arnassi_path) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.arnassi_crab_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.simon) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_mithalas_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around Mithalas to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.mithalas_city) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.mithalas_city_top_path) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.mithalas_city_fishpass) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_l_tube) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_l_sc) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_underground) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_boss_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.cathedral_boss_r) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_forest_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around the kelp forest to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_tl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_tl_fp) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_tr) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_tr_fp) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_bl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_br) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_boss_entrance) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_sprite_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_sprite_cave_tube) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.mermog_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.mermog_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.forest_fish_cave) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_veil_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around the Veil to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_tl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_tl_fp) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_tr_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_tr_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_bl) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_b_sc) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_bl_fp) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.veil_br) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.octo_cave_t) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.octo_cave_b) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.turtle_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.turtle_cave_bubble) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sun_temple_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sun_temple_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sun_temple_boss_path) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sun_temple_boss) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_abyss_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around the Abyss to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.abyss_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.abyss_lb) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.abyss_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.ice_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.bubble_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.bubble_cave_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.king_jellyfish_cave) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.whale) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sunken_city_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sunken_city_r) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sunken_city_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.sunken_city_l_bedroom) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def __add_body_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region around the Body to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.body_c) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.body_l) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.body_rt) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.body_rb) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.body_b) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.final_boss_loby) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.final_boss_tube) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.final_boss) | 
					
						
							|  |  |  |         self.multiworld.regions.append(self.final_boss_end) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def add_regions_to_world(self) -> None: | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         Add every region to the `world` | 
					
						
							|  |  |  |         """
 | 
					
						
							|  |  |  |         self.__add_home_water_regions_to_world() | 
					
						
							|  |  |  |         self.__add_open_water_regions_to_world() | 
					
						
							|  |  |  |         self.__add_mithalas_regions_to_world() | 
					
						
							|  |  |  |         self.__add_forest_regions_to_world() | 
					
						
							|  |  |  |         self.__add_veil_regions_to_world() | 
					
						
							|  |  |  |         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 | 
					
						
							|  |  |  |         self.__create_home_water_area() | 
					
						
							|  |  |  |         self.__create_energy_temple() | 
					
						
							|  |  |  |         self.__create_openwater() | 
					
						
							|  |  |  |         self.__create_mithalas() | 
					
						
							|  |  |  |         self.__create_forest() | 
					
						
							|  |  |  |         self.__create_veil() | 
					
						
							|  |  |  |         self.__create_sun_temple() | 
					
						
							|  |  |  |         self.__create_abyss() | 
					
						
							|  |  |  |         self.__create_sunken_city() | 
					
						
							|  |  |  |         self.__create_body() |