def _area_name(world_list: WorldList, pickup_node: PickupNode, hide_world: bool) -> str: area = world_list.nodes_to_area(pickup_node) if hide_world: return area.name else: return world_list.area_name(area)
def _name_for_location(world_list: WorldList, location: AreaIdentifier) -> str: loc = location.as_tuple if loc in prime1_elevators.RANDOM_PRIME_CUSTOM_NAMES and loc != ( "Frigate Orpheon", "Exterior Docking Hangar"): return prime1_elevators.RANDOM_PRIME_CUSTOM_NAMES[loc] else: return world_list.area_name(world_list.area_by_area_location(location), separator=":")
def _get_elevator_or_area_name(custom_names_to_use: dict[RandovaniaGame, dict[tuple[str, str], str]], game: RandovaniaGame, world_list: WorldList, area_location: AreaIdentifier, include_world_name: bool) -> str: custom_names_by_game = custom_names_to_use.get(game, {}) area_loc = area_location.as_tuple if area_loc in custom_names_by_game: return custom_names_by_game[area_loc] else: area = world_list.area_by_area_location(area_location) if include_world_name: return world_list.area_name(area) else: return area.name