def _elevator_area_name(world_list: WorldList, area_location: AreaLocation, include_world_name: bool, ) -> str: if area_location.area_asset_id in _CUSTOM_NAMES_FOR_ELEVATORS: return _CUSTOM_NAMES_FOR_ELEVATORS[area_location.area_asset_id] else: world = world_list.world_by_area_location(area_location) area = world.area_by_asset_id(area_location.area_asset_id) if include_world_name: return world_list.area_name(area, distinguish_dark_aether=True, separator=" - ") else: return area.name
def elevator_area_name( world_list: WorldList, area_location: AreaLocation, include_world_name: bool, ) -> str: if area_location.area_asset_id in _CUSTOM_NAMES_FOR_ELEVATORS: return _CUSTOM_NAMES_FOR_ELEVATORS[area_location.area_asset_id] else: world = world_list.world_by_area_location(area_location) area = world.area_by_asset_id(area_location.area_asset_id) if include_world_name: return world_list.area_name(area) else: return area.name
def _name_for_location(world_list: WorldList, location: AreaLocation) -> str: if location in prime1_elevators.CUSTOM_NAMES: return prime1_elevators.CUSTOM_NAMES[location] else: return world_list.area_name(world_list.area_by_area_location(location), separator=":")