def inverted_aga_check(entrances_map, connections, potentials, enabled, world, player):
    if (world.mode[player] == 'inverted'):
        if (('Agahnims Tower' in entrances_map.keys()) or aga_tower_enabled(enabled)):
            for region in list(potentials.keys()):
                if (region.name == 'Hyrule Castle Ledge'):
                    for r_name in potentials[region]:
                        new_region = world.get_region(r_name, player)
                        enable_new_entrances(new_region, connections, potentials, enabled, world, player)
def inverted_aga_check(entrances_map, connections, potentials, enabled, world, player):
    if (world.mode[player] == 'inverted'):
        if (('Agahnims Tower' in entrances_map.keys()) or aga_tower_enabled(enabled)):
            for region in list(potentials.keys()):
                if (region.name == 'Hyrule Castle Ledge'):
                    for r_name in potentials[region]:
                        new_region = world.get_region(r_name, player)
                        enable_new_entrances(new_region, connections, potentials, enabled, world, player)