#################
# ASCENSION PERKS BROADENED
#################
ap_fountain_of_youth = {
	possible = {
		custom_tooltip = {
			fail_text = "synthetic_empire_biological_ascension"
			NOT = {
				has_trait = trait_mechanical
			}
		}
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_technology_gene_tailoring"
			has_technology = tech_gene_tailoring
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ap_engineered_evolution"
			has_ascension_perk = ap_engineered_evolution
		}
	}
	on_enabled = {
		custom_tooltip = enable_fountain_of_youth_project
		custom_tooltip = describe_fountain_of_youth_project
		hidden_effect = {
			country_event = {
				id = fountain.100
			}
		}
	}
	modifier = {
		#country_leader_pool_size = 1
		BIOLOGICAL_species_trait_picks_add = 1
	}
	potential = {
		host_has_dlc = "Utopia"
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
		is_mechanical_empire = no
		NOT = {
			has_ascension_perk = ap_fountain_of_youth
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_big_dreams = {
	potential = {
		NOT = {
			has_ascension_perk = ap_big_dreams
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	on_enabled = {
		custom_tooltip = enable_big_dreams
		add_tech_progress = {
			tech = tech_mega_engineering
			progress = 0.25
		}
		add_tech_progress = {
			tech = tech_hyper_relays
			progress = 0.25
		}
	}
	modifier = {
		megastructure_build_speed_mult = 0.15
		country_megastructure_build_cap_add = 1
		megastructures_upkeep_mult = -0.15
		megastructures_cost_mult = -0.15
		megastructures_produces_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_optimised_refining = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	modifier = {
		country_resource_max_add = 100000
		country_resource_max_minor_artifacts_add = 10000
		country_resource_max_astral_threads_add = 10000
		country_astral_threads_produces_mult = 0.25
		country_minor_artifacts_produces_mult = 0.25
		country_sr_dark_matter_produces_mult = 0.25
		country_sr_zro_produces_mult = 0.25
		country_rare_crystals_produces_mult = 0.25
		country_exotic_gases_produces_mult = 0.25
		country_volatile_motes_produces_mult = 0.25
	}
	potential = {
		host_has_dlc = "Utopia"
		NOT = {
			has_ascension_perk = ap_optimised_refining
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_optimised_refining_tier_2 = {
	modifier = {
		country_resource_max_add = 300000
		country_resource_max_minor_artifacts_add = 30000
		country_resource_max_astral_threads_add = 30000
		country_astral_threads_produces_mult = 0.50
		country_minor_artifacts_produces_mult = 0.50
		country_sr_dark_matter_produces_mult = 0.50
		country_sr_zro_produces_mult = 0.50
		country_rare_crystals_produces_mult = 0.50
		country_exotic_gases_produces_mult = 0.50
		country_volatile_motes_produces_mult = 0.50
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_optimised_refining
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_optimised_refining_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_optimised_refining_tier_3 = {
	modifier = {
		country_resource_max_add = 500000
		country_resource_max_minor_artifacts_add = 50000
		country_resource_max_astral_threads_add = 50000
		country_astral_threads_produces_mult = 0.75
		country_minor_artifacts_produces_mult = 0.75
		country_sr_dark_matter_produces_mult = 0.75
		country_sr_zro_produces_mult = 0.75
		country_rare_crystals_produces_mult = 0.75
		country_exotic_gases_produces_mult = 0.75
		country_volatile_motes_produces_mult = 0.75
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_optimised_refining_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_optimised_refining_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_optimised_refining_tier_4 = {
	modifier = {
		country_resource_max_add = 700000
		country_resource_max_minor_artifacts_add = 70000
		country_resource_max_astral_threads_add = 70000
		country_astral_threads_produces_mult = 1
		country_minor_artifacts_produces_mult = 1
		country_sr_dark_matter_produces_mult = 1
		country_sr_zro_produces_mult = 1
		country_rare_crystals_produces_mult = 1
		country_exotic_gases_produces_mult = 1
		country_volatile_motes_produces_mult = 1
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_optimised_refining_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_optimised_refining_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_optimised_refining_tier_5 = {
	modifier = {
		country_resource_max_add = 900000
		country_resource_max_minor_artifacts_add = 90000
		country_resource_max_astral_threads_add = 90000
		country_astral_threads_produces_mult = 1.25
		country_minor_artifacts_produces_mult = 1.25
		country_sr_dark_matter_produces_mult = 1.25
		country_sr_zro_produces_mult = 1.25
		country_rare_crystals_produces_mult = 1.25
		country_exotic_gases_produces_mult = 1.25
		country_volatile_motes_produces_mult = 1.25
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_optimised_refining_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_optimised_refining_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_planet_expansion = {
	potential = {
		NOT = {
			has_ascension_perk = ap_planet_expansion
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		has_technology = tech_terrestrial_sculpting
	}
	modifier = {
		planet_max_buildings_add = 2
	}
	on_enabled = {
		custom_tooltip = ap_expand_planet_tooltip
	}
	ai_weight = {
		factor = 0
	}
}

ap_colonising_efforts = {
	potential = {
		NOT = {
			has_ascension_perk = ap_colonising_efforts
		}
	}
	modifier = {
		colony_start_num_pops_add = 2
		planet_colony_development_speed_mult = 0.50
	}
	ai_weight = {
		factor = 0
	}
}

ap_colonising_efforts_tier_2 = {
	potential = {
		has_ascension_perk = ap_colonising_efforts
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_colonising_efforts_tier_2
		}
	}
	modifier = {
		colony_start_num_pops_add = 3
		planet_colony_development_speed_mult = 0.75
	}
	ai_weight = {
		factor = 0
	}
}

ap_colonising_efforts_tier_3 = {
	potential = {
		has_ascension_perk = ap_colonising_efforts_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_colonising_efforts_tier_3
		}
	}
	modifier = {
		colony_start_num_pops_add = 4
		planet_colony_development_speed_mult = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_colonising_efforts_tier_4 = {
	potential = {
		has_ascension_perk = ap_colonising_efforts_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_colonising_efforts_tier_4
		}
	}
	modifier = {
		colony_start_num_pops_add = 5
		planet_colony_development_speed_mult = 1.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_colonising_efforts_tier_5 = {
	potential = {
		has_ascension_perk = ap_colonising_efforts_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_colonising_efforts_tier_5
		}
	}
	modifier = {
		colony_start_num_pops_add = 6
		planet_colony_development_speed_mult = 1.50
	}
	ai_weight = {
		factor = 0
	}
}

ap_scientific_discovery = {
	potential = {
		NOT = {
			has_ascension_perk = ap_scientific_discovery
		}
	}
	modifier = {
		science_ship_survey_speed = 0.25
		ship_anomaly_research_speed_mult = 0.25
		ship_anomaly_generation_chance_mult = 0.15
		ship_archaeological_site_excavation_speed_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_scientific_discovery_tier_2 = {
	potential = {
		has_ascension_perk = ap_scientific_discovery
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_scientific_discovery_tier_2
		}
	}
	modifier = {
		science_ship_survey_speed = 0.5
		ship_anomaly_research_speed_mult = 0.5
		ship_anomaly_generation_chance_mult = 0.3
		ship_archaeological_site_excavation_speed_mult = 0.5
	}
	ai_weight = {
		factor = 0
	}
}

ap_scientific_discovery_tier_3 = {
	potential = {
		has_ascension_perk = ap_scientific_discovery_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_scientific_discovery_tier_3
		}
	}
	modifier = {
		science_ship_survey_speed = 0.75
		ship_anomaly_research_speed_mult = 0.75
		ship_anomaly_generation_chance_mult = 0.45
		ship_archaeological_site_excavation_speed_mult = 0.75
	}
	ai_weight = {
		factor = 0
	}
}

ap_scientific_discovery_tier_4 = {
	potential = {
		has_ascension_perk = ap_scientific_discovery_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_scientific_discovery_tier_4
		}
	}
	modifier = {
		science_ship_survey_speed = 1
		ship_anomaly_research_speed_mult = 1
		ship_anomaly_generation_chance_mult = 0.60
		ship_archaeological_site_excavation_speed_mult = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_scientific_discovery_tier_5 = {
	potential = {
		has_ascension_perk = ap_scientific_discovery_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_scientific_discovery_tier_5
		}
	}
	modifier = {
		science_ship_survey_speed = 1.25
		ship_anomaly_research_speed_mult = 1.25
		ship_anomaly_generation_chance_mult = 0.75
		ship_archaeological_site_excavation_speed_mult = 1.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_influential_leaders = {
	potential = {
		NOT = {
			has_ascension_perk = ap_influential_leaders
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		country_traditions_influence_produces_add = 0.5
		country_influence_produces_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_influential_leaders_tier_2 = {
	potential = {
		has_ascension_perk = ap_influential_leaders
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_influential_leaders_tier_2
		}
	}
	modifier = {
		country_traditions_influence_produces_add = 0.75
		country_influence_produces_mult = 0.20
	}
	ai_weight = {
		factor = 0
	}
}

ap_influential_leaders_tier_3 = {
	potential = {
		has_ascension_perk = ap_influential_leaders_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_influential_leaders_tier_3
		}
	}
	modifier = {
		country_traditions_influence_produces_add = 1
		country_influence_produces_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_influential_leaders_tier_4 = {
	potential = {
		has_ascension_perk = ap_influential_leaders_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_influential_leaders_tier_4
		}
	}
	modifier = {
		country_traditions_influence_produces_add = 1.25
		country_influence_produces_mult = 0.30
	}
	ai_weight = {
		factor = 0
	}
}

ap_influential_leaders_tier_5 = {
	potential = {
		has_ascension_perk = ap_influential_leaders_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_influential_leaders_tier_5
		}
	}
	modifier = {
		country_traditions_influence_produces_add = 1.50
		country_influence_produces_mult = 0.35
	}
	ai_weight = {
		factor = 0
	}
}

ap_focused_placation = {
	potential = {
		NOT = {
			has_ascension_perk = ap_focused_placation
		}
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
	}
	modifier = {
		planet_amenities_add = 10
		planet_stability_add = 5
		pop_happiness = 0.05
		planet_crime_add = -10
		#job_entertainer_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_focused_placation_tier_2 = {
	potential = {
		has_ascension_perk = ap_focused_placation
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_focused_placation_tier_2
		}
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
	}
	modifier = {
		planet_amenities_add = 15
		planet_stability_add = 7.5
		pop_happiness = 0.075
		planet_crime_add = -15
		#job_entertainer_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_focused_placation_tier_3 = {
	potential = {
		has_ascension_perk = ap_focused_placation_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_focused_placation_tier_3
		}
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
	}
	modifier = {
		planet_amenities_add = 20
		planet_stability_add = 10
		pop_happiness = 0.1
		planet_crime_add = -20
		#job_entertainer_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_focused_placation_tier_4 = {
	potential = {
		has_ascension_perk = ap_focused_placation_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_focused_placation_tier_4
		}
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
	}
	modifier = {
		planet_amenities_add = 25
		planet_stability_add = 12.5
		pop_happiness = 0.125
		planet_crime_add = -25
		#job_entertainer_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_focused_placation_tier_5 = {
	potential = {
		has_ascension_perk = ap_focused_placation_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_focused_placation_tier_5
		}
		NOT = {
			has_authority = "auth_machine_intelligence"
		}
	}
	modifier = {
		planet_amenities_add = 30
		planet_stability_add = 15
		pop_happiness = 0.15
		planet_crime_add = -30
		#job_entertainer_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_job_productivity = {
	potential = {
		NOT = {
			has_ascension_perk = ap_job_productivity
		}
		#NOR = {
		#	has_ethic = ethic_gestalt_consciousness
		#	has_valid_civic = civic_fanatic_purifiers
		#}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.15
		planet_jobs_worker_produces_mult = 0.15
		planet_jobs_ruler_produces_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_job_productivity_tier_2 = {
	potential = {
		has_ascension_perk = ap_job_productivity
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_job_productivity_tier_2
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.20
		planet_jobs_worker_produces_mult = 0.20
		planet_jobs_ruler_produces_mult = 0.20
	}
	ai_weight = {
		factor = 0
	}
}

ap_job_productivity_tier_3 = {
	potential = {
		has_ascension_perk = ap_job_productivity_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_job_productivity_tier_3
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.25
		planet_jobs_worker_produces_mult = 0.25
		planet_jobs_ruler_produces_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_job_productivity_tier_4 = {
	potential = {
		has_ascension_perk = ap_job_productivity_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_job_productivity_tier_4
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.30
		planet_jobs_worker_produces_mult = 0.30
		planet_jobs_ruler_produces_mult = 0.30
	}
	ai_weight = {
		factor = 0
	}
}

ap_job_productivity_tier_5 = {
	potential = {
		has_ascension_perk = ap_job_productivity_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_job_productivity_tier_5
		}
	}
	modifier = {
		planet_jobs_specialist_produces_mult = 0.35
		planet_jobs_worker_produces_mult = 0.35
		planet_jobs_ruler_produces_mult = 0.35
	}
	ai_weight = {
		factor = 0
	}
}


ap_navy_enhancement = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_navy_enhancement
		}
	}
	modifier = {
		ship_jumpdrive_cooldown_mult = -0.1
		ship_ftl_jumpdrive_range_mult = 0.1
		ship_starting_experience_add = 100
		ship_experience_gain_mult = 0.25
		ship_corvette_cost_mult = -0.05
		country_ship_upgrade_cost_mult = -0.1
		shipsize_corvette_build_speed_mult = 0.15
		shipsize_offspring_corvette_build_speed_mult = 0.15
		shipsize_frigate_build_speed_mult = 0.15
		ship_destroyer_cost_mult = -0.05
		shipsize_destroyer_build_speed_mult = 0.15
		shipsize_offspring_destroyer_build_speed_mult = 0.15
		ship_cruiser_cost_mult = -0.05
		shipsize_cruiser_build_speed_mult = 0.15
		shipsize_offspring_cruiser_build_speed_mult = 0.15
		ship_battleship_cost_mult = -0.05
		shipsize_battleship_build_speed_mult = 0.15
		shipsize_offspring_battleship_build_speed_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_navy_enhancement_tier_2 = {
	potential = {
		has_ascension_perk = ap_navy_enhancement
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_navy_enhancement_tier_2
		}
	}
	modifier = {
		ship_jumpdrive_cooldown_mult = -0.15
		ship_ftl_jumpdrive_range_mult = 0.15
		ship_starting_experience_add = 200
		ship_experience_gain_mult = 0.5
		ship_corvette_cost_mult = -0.1
		country_ship_upgrade_cost_mult = -0.15
		shipsize_corvette_build_speed_mult = 0.3
		shipsize_offspring_corvette_build_speed_mult = 0.3
		shipsize_frigate_build_speed_mult = 0.3
		ship_destroyer_cost_mult = -0.1
		shipsize_destroyer_build_speed_mult = 0.3
		shipsize_offspring_destroyer_build_speed_mult = 0.3
		ship_cruiser_cost_mult = -0.1
		shipsize_cruiser_build_speed_mult = 0.3
		shipsize_offspring_cruiser_build_speed_mult = 0.3
		ship_battleship_cost_mult = -0.1
		shipsize_battleship_build_speed_mult = 0.3
		shipsize_offspring_battleship_build_speed_mult = 0.3
	}
	ai_weight = {
		factor = 0
	}
}

ap_navy_enhancement_tier_3 = {
	potential = {
		has_ascension_perk = ap_navy_enhancement_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_navy_enhancement_tier_3
		}
	}
	modifier = {
		ship_jumpdrive_cooldown_mult = -0.20
		ship_ftl_jumpdrive_range_mult = 0.20
		ship_starting_experience_add = 300
		ship_experience_gain_mult = 1
		ship_corvette_cost_mult = -0.15
		country_ship_upgrade_cost_mult = -0.20
		shipsize_corvette_build_speed_mult = 0.45
		shipsize_offspring_corvette_build_speed_mult = 0.45
		shipsize_frigate_build_speed_mult = 0.45
		ship_destroyer_cost_mult = -0.15
		shipsize_destroyer_build_speed_mult = 0.45
		shipsize_offspring_destroyer_build_speed_mult = 0.45
		ship_cruiser_cost_mult = -0.15
		shipsize_cruiser_build_speed_mult = 0.45
		shipsize_offspring_cruiser_build_speed_mult = 0.45
		ship_battleship_cost_mult = -0.15
		shipsize_battleship_build_speed_mult = 0.45
		shipsize_offspring_battleship_build_speed_mult = 0.45
	}
	ai_weight = {
		factor = 0
	}
}

ap_navy_enhancement_tier_4 = {
	potential = {
		has_ascension_perk = ap_navy_enhancement_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_navy_enhancement_tier_4
		}
	}
	modifier = {
		ship_jumpdrive_cooldown_mult = -0.25
		ship_ftl_jumpdrive_range_mult = 0.25
		ship_starting_experience_add = 400
		ship_experience_gain_mult = 1
		ship_corvette_cost_mult = -0.20
		country_ship_upgrade_cost_mult = -0.25
		shipsize_corvette_build_speed_mult = 0.60
		shipsize_offspring_corvette_build_speed_mult = 0.60
		shipsize_frigate_build_speed_mult = 0.60
		ship_destroyer_cost_mult = -0.20
		shipsize_destroyer_build_speed_mult = 0.60
		shipsize_offspring_destroyer_build_speed_mult = 0.60
		ship_cruiser_cost_mult = -0.20
		shipsize_cruiser_build_speed_mult = 0.60
		shipsize_offspring_cruiser_build_speed_mult = 0.60
		ship_battleship_cost_mult = -0.20
		shipsize_battleship_build_speed_mult = 0.60
		shipsize_offspring_battleship_build_speed_mult = 0.60
	}
	ai_weight = {
		factor = 0
	}
}

ap_navy_enhancement_tier_5 = {
	potential = {
		has_ascension_perk = ap_navy_enhancement_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_navy_enhancement_tier_5
		}
	}
	modifier = {
		ship_jumpdrive_cooldown_mult = -0.30
		ship_ftl_jumpdrive_range_mult = 0.30
		ship_starting_experience_add = 500
		ship_experience_gain_mult = 1.25
		ship_corvette_cost_mult = -0.25
		country_ship_upgrade_cost_mult = -0.30
		shipsize_corvette_build_speed_mult = 0.75
		shipsize_offspring_corvette_build_speed_mult = 0.75
		shipsize_frigate_build_speed_mult = 0.75
		ship_destroyer_cost_mult = -0.25
		shipsize_destroyer_build_speed_mult = 0.75
		shipsize_offspring_destroyer_build_speed_mult = 0.75
		ship_cruiser_cost_mult = -0.25
		shipsize_cruiser_build_speed_mult = 0.75
		shipsize_offspring_cruiser_build_speed_mult = 0.75
		ship_battleship_cost_mult = -0.25
		shipsize_battleship_build_speed_mult = 0.75
		shipsize_offspring_battleship_build_speed_mult = 0.75
	}
	ai_weight = {
		factor = 0
	}
}

ap_shattering_flight = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 2
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_shattering_flight
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.1
		ship_fire_rate_mult = 0.1
		ship_hull_regen_add_perc = 0.01
		ship_shield_regen_add_perc = 0.01
		ship_armor_regen_add_perc = 0.01
		ship_accuracy_mult = 0.05
		ship_evasion_mult = 0.05
		ship_cloaking_detection_add = 1
		ship_cloaking_strength_add = 1
		ship_speed_mult = 0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_shattering_flight_tier_2 = {
	potential = {
		has_ascension_perk = ap_shattering_flight
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_shattering_flight_tier_2
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.15
		ship_fire_rate_mult = 0.15
		ship_hull_regen_add_perc = 0.015
		ship_shield_regen_add_perc = 0.015
		ship_armor_regen_add_perc = 0.015
		ship_accuracy_mult = 0.10
		ship_evasion_mult = 0.10
		ship_cloaking_detection_add = 2
		ship_cloaking_strength_add = 2
		ship_speed_mult = 0.10
	}
	ai_weight = {
		factor = 0
	}
}

ap_shattering_flight_tier_3 = {
	potential = {
		has_ascension_perk = ap_shattering_flight_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_shattering_flight_tier_3
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.20
		ship_fire_rate_mult = 0.20
		ship_hull_regen_add_perc = 0.02
		ship_shield_regen_add_perc = 0.02
		ship_armor_regen_add_perc = 0.02
		ship_accuracy_mult = 0.15
		ship_evasion_mult = 0.15
		ship_cloaking_detection_add = 3
		ship_cloaking_strength_add = 3
		ship_speed_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_shattering_flight_tier_4 = {
	potential = {
		has_ascension_perk = ap_shattering_flight_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_shattering_flight_tier_4
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.25
		ship_fire_rate_mult = 0.25
		ship_hull_regen_add_perc = 0.025
		ship_shield_regen_add_perc = 0.025
		ship_armor_regen_add_perc = 0.025
		ship_accuracy_mult = 0.20
		ship_evasion_mult = 0.20
		ship_cloaking_detection_add = 4
		ship_cloaking_strength_add = 4
		ship_speed_mult = 0.20
	}
	ai_weight = {
		factor = 0
	}
}

ap_shattering_flight_tier_5 = {
	potential = {
		has_ascension_perk = ap_shattering_flight_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_shattering_flight_tier_5
		}
	}
	modifier = {
		ship_weapon_range_mult = 0.30
		ship_fire_rate_mult = 0.30
		ship_hull_regen_add_perc = 0.03
		ship_shield_regen_add_perc = 0.03
		ship_armor_regen_add_perc = 0.03
		ship_accuracy_mult = 0.25
		ship_evasion_mult = 0.25
		ship_cloaking_detection_add = 5
		ship_cloaking_strength_add = 5
		ship_speed_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

#ap_job_creation = {
#	potential = {
#		NOT = { has_ascension_perk = ap_job_creation }
#		NOR = {
#			has_ethic = ethic_gestalt_consciousness
#			has_valid_civic = civic_fanatic_purifiers
#		}
#	}
#	possible = {
#		custom_tooltip = {
#			fail_text = "requires_ascension_perks_2"
#			num_ascension_perks > 1
#		}
#	}
#	modifier = {
#		per_technician_per_pop = 0.02
#		per_miner_per_pop = 0.02
#		per_farmer_per_pop = 0.02
#		job_bureaucrat_per_pop = 0.02
#		job_soldier_per_pop = 0.02
#		job_merchant_per_pop = 0.02
#		job_foundry_per_pop = 0.02
#		job_artisan_per_pop = 0.02
#		job_clerk_per_pop = 0.02
#		job_culture_worker_per_pop = 0.02
#		job_enforcer_per_pop = 0.02
#		job_researcher_per_pop = 0.02
#		job_healthcare_per_pop = 0.02
#	}
#	ai_weight = {
#		factor = 0
#	}
#}
#ap_job_creation_tier_2 = {
#	potential = {
#		has_ascension_perk = ap_job_creation
#		NOT = { has_global_flag = apb_tier_locked }
#		NOT = { has_ascension_perk = ap_job_creation_tier_2 }
#		NOR = {
#			has_ethic = ethic_gestalt_consciousness
#			has_valid_civic = civic_fanatic_purifiers
#		}
#	}
#	possible = {
#		custom_tooltip = {
#			fail_text = "requires_ascension_perks_2"
#			num_ascension_perks > 1
#		}
#	}
#	modifier = {
#		per_technician_per_pop = 0.03
#		per_miner_per_pop = 0.03
#		per_farmer_per_pop = 0.03
#		job_bureaucrat_per_pop = 0.03
#		job_soldier_per_pop = 0.03
#		job_merchant_per_pop = 0.03
#		job_foundry_per_pop = 0.03
#		job_artisan_per_pop = 0.03
#		job_clerk_per_pop = 0.03
#		job_culture_worker_per_pop = 0.03
#		job_enforcer_per_pop = 0.03
#		job_researcher_per_pop = 0.03
#		job_healthcare_per_pop = 0.03
#	}
#	ai_weight = {
#		factor = 0
#	}
#}
#ap_job_creation_tier_3 = {
#	potential = {
#		has_ascension_perk = ap_job_creation_tier_2
#		NOT = { has_global_flag = apb_tier_locked }
#		NOT = { has_ascension_perk = ap_job_creation_tier_3 }
#		NOR = {
#			has_ethic = ethic_gestalt_consciousness
#			has_valid_civic = civic_fanatic_purifiers
#		}
#	}
#	possible = {
#		custom_tooltip = {
#			fail_text = "requires_ascension_perks_2"
#			num_ascension_perks > 1
#		}
#	}
#	modifier = {
#		per_technician_per_pop = 0.04
#		per_miner_per_pop = 0.04
#		per_farmer_per_pop = 0.04
#		job_bureaucrat_per_pop = 0.04
#		job_soldier_per_pop = 0.04
#		job_merchant_per_pop = 0.04
#		job_foundry_per_pop = 0.04
#		job_artisan_per_pop = 0.04
#		job_clerk_per_pop = 0.04
#		job_culture_worker_per_pop = 0.04
#		job_enforcer_per_pop = 0.04
#		job_researcher_per_pop = 0.04
#		job_healthcare_per_pop = 0.04
#	}
#	ai_weight = {
#		factor = 0
#	}
#}
ap_planetary_development = {
	potential = {
		NOT = {
			has_ascension_perk = ap_planetary_development
		}
	}
	modifier = {
		planet_max_buildings_add = 2
		planet_non_artificial_max_districts_add = 3
		planet_building_build_speed_mult = 0.25
		planet_clear_blocker_time_mult = -0.20
		planet_buildings_cost_mult = -0.20
		planet_districts_cost_mult = -0.20
		planet_decision_enact_speed_mult = 0.20
		planet_structures_upkeep_mult = -0.1
		planet_housing_mult = 0.10
		planet_jobs_produces_mult = 0.05
		planet_army_build_speed_mult = 0.10
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetary_development_tier_2 = {
	potential = {
		has_ascension_perk = ap_planetary_development
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_planetary_development_tier_2
		}
	}
	modifier = {
		planet_max_buildings_add = 3
		planet_non_artificial_max_districts_add = 4
		planet_building_build_speed_mult = 0.30
		planet_clear_blocker_time_mult = -0.40
		planet_buildings_cost_mult = -0.40
		planet_districts_cost_mult = -0.40
		planet_decision_enact_speed_mult = 0.40
		planet_structures_upkeep_mult = -0.15
		planet_housing_mult = 0.15
		planet_jobs_produces_mult = 0.10
		planet_army_build_speed_mult = 0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetary_development_tier_3 = {
	potential = {
		has_ascension_perk = ap_planetary_development_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_planetary_development_tier_3
		}
	}
	modifier = {
		planet_max_buildings_add = 4
		planet_non_artificial_max_districts_add = 5
		planet_building_build_speed_mult = 0.35
		planet_clear_blocker_time_mult = -0.60
		planet_buildings_cost_mult = -0.60
		planet_districts_cost_mult = -0.60
		planet_decision_enact_speed_mult = 0.60
		planet_structures_upkeep_mult = -0.20
		planet_housing_mult = 0.20
		planet_jobs_produces_mult = 0.15
		planet_army_build_speed_mult = 0.20
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetary_development_tier_4 = {
	potential = {
		has_ascension_perk = ap_planetary_development_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_planetary_development_tier_4
		}
	}
	modifier = {
		planet_max_buildings_add = 5
		planet_non_artificial_max_districts_add = 6
		planet_building_build_speed_mult = 0.40
		planet_clear_blocker_time_mult = -0.80
		planet_buildings_cost_mult = -0.80
		planet_districts_cost_mult = -0.80
		planet_decision_enact_speed_mult = 0.80
		planet_structures_upkeep_mult = -0.25
		planet_housing_mult = 0.25
		planet_jobs_produces_mult = 0.20
		planet_army_build_speed_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetary_development_tier_5 = {
	potential = {
		has_ascension_perk = ap_planetary_development_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_planetary_development_tier_5
		}
	}
	modifier = {
		planet_max_buildings_add = 6
		planet_non_artificial_max_districts_add = 7
		planet_building_build_speed_mult = 0.45
		planet_clear_blocker_time_mult = -1
		planet_buildings_cost_mult = -1
		planet_districts_cost_mult = -1
		planet_decision_enact_speed_mult = 1
		planet_structures_upkeep_mult = -0.30
		planet_housing_mult = 0.30
		planet_jobs_produces_mult = 0.25
		planet_army_build_speed_mult = 0.30
	}
	ai_weight = {
		factor = 0
	}
}



#################
# VANILLA PERKS EXPANDED
#################
ap_our_true_vision = {
	modifier = {
		country_unity_produces_mult = 0.20
		pop_amenities_usage_mult = -0.1
		country_leader_cap_add = 1
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_one_vision"
			has_ascension_perk = ap_one_vision
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_our_true_vision
			has_authority = "auth_machine_intelligence"
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_our_true_vision_tier_2 = {
	modifier = {
		country_unity_produces_mult = 0.25
		pop_amenities_usage_mult = -0.2
		country_leader_cap_add = 2
	}
	potential = {
		has_ascension_perk = ap_our_true_vision
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_our_true_vision_tier_2
			has_authority = "auth_machine_intelligence"
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_our_true_vision_tier_3 = {
	modifier = {
		country_unity_produces_mult = 0.30
		pop_amenities_usage_mult = -0.30
		country_leader_cap_add = 3
	}
	potential = {
		has_ascension_perk = ap_our_true_vision_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_our_true_vision_tier_3
			has_authority = "auth_machine_intelligence"
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_our_true_vision_tier_4 = {
	modifier = {
		country_unity_produces_mult = 0.35
		pop_amenities_usage_mult = -0.35
		country_leader_cap_add = 4
	}
	potential = {
		has_ascension_perk = ap_our_true_vision_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_our_true_vision_tier_4
			has_authority = "auth_machine_intelligence"
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_our_true_vision_tier_5 = {
	modifier = {
		country_unity_produces_mult = 0.40
		pop_amenities_usage_mult = -0.40
		country_leader_cap_add = 5
	}
	potential = {
		has_ascension_perk = ap_our_true_vision_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_our_true_vision_tier_5
			has_authority = "auth_machine_intelligence"
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_technological_revolution = {
	modifier = {
		all_technology_research_speed = 0.20
		num_tech_alternatives_add = 1
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_technological_ascendancy"
			has_ascension_perk = ap_technological_ascendancy
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_technological_revolution
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_technological_revolution_tier_2 = {
	modifier = {
		all_technology_research_speed = 0.25
		num_tech_alternatives_add = 1
	}
	potential = {
		has_ascension_perk = ap_technological_revolution
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_technological_revolution_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_technological_revolution_tier_3 = {
	modifier = {
		all_technology_research_speed = 0.30
		num_tech_alternatives_add = 2
	}
	potential = {
		has_ascension_perk = ap_technological_revolution_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_technological_revolution_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_technological_revolution_tier_4 = {
	modifier = {
		all_technology_research_speed = 0.35
		num_tech_alternatives_add = 2
	}
	potential = {
		has_ascension_perk = ap_technological_revolution_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_technological_revolution_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_technological_revolution_tier_5 = {
	modifier = {
		all_technology_research_speed = 0.40
		num_tech_alternatives_add = 3
	}
	potential = {
		has_ascension_perk = ap_technological_revolution_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_technological_revolution_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_fortify_our_grasp = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_grasp_the_void"
			has_ascension_perk = ap_grasp_the_void
		}
	}
	modifier = {
		country_starbase_capacity_add = 10
		station_gatherers_produces_mult = 0.1
		station_researchers_produces_mult = 0.1
		starbase_upgrade_cost_mult = -0.10
		starbase_upgrade_speed_mult = 0.20
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_fortify_our_grasp
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_fortify_our_grasp_tier_2 = {
	modifier = {
		country_starbase_capacity_add = 15
		station_gatherers_produces_mult = 0.15
		station_researchers_produces_mult = 0.15
		starbase_upgrade_cost_mult = -0.15
		starbase_upgrade_speed_mult = 0.25
	}
	potential = {
		has_ascension_perk = ap_fortify_our_grasp
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_fortify_our_grasp_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_fortify_our_grasp_tier_3 = {
	modifier = {
		country_starbase_capacity_add = 20
		station_gatherers_produces_mult = 0.20
		station_researchers_produces_mult = 0.20
		starbase_upgrade_cost_mult = -0.20
		starbase_upgrade_speed_mult = 0.30
	}
	potential = {
		has_ascension_perk = ap_fortify_our_grasp_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_fortify_our_grasp_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_fortify_our_grasp_tier_4 = {
	modifier = {
		country_starbase_capacity_add = 25
		station_gatherers_produces_mult = 0.25
		station_researchers_produces_mult = 0.25
		starbase_upgrade_cost_mult = -0.25
		starbase_upgrade_speed_mult = 0.35
	}
	potential = {
		has_ascension_perk = ap_fortify_our_grasp_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_fortify_our_grasp_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_fortify_our_grasp_tier_5 = {
	modifier = {
		country_starbase_capacity_add = 30
		station_gatherers_produces_mult = 0.30
		station_researchers_produces_mult = 0.30
		starbase_upgrade_cost_mult = -0.30
		starbase_upgrade_speed_mult = 0.40
	}
	potential = {
		has_ascension_perk = ap_fortify_our_grasp_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_fortify_our_grasp_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_galactic_control_force = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_galactic_force_projection"
			has_ascension_perk = ap_galactic_force_projection
		}
	}
	modifier = {
		country_naval_cap_add = 250
		command_limit_add = 100
		country_commander_cap_add = 2
		ships_upkeep_mult = -0.10
		country_naval_cap_mult = 0.10
		country_command_limit_mult = 0.10
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_galactic_control_force
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_galactic_control_force_tier_2 = {
	modifier = {
		country_naval_cap_add = 500
		command_limit_add = 150
		ships_upkeep_mult = -0.15
		country_naval_cap_mult = 0.15
		country_command_limit_mult = 0.15
	}
	potential = {
		has_ascension_perk = ap_galactic_control_force
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_galactic_control_force_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_galactic_control_force_tier_3 = {
	modifier = {
		country_naval_cap_add = 750
		command_limit_add = 200
		ships_upkeep_mult = -0.20
		country_naval_cap_mult = 0.20
		country_command_limit_mult = 0.20
	}
	potential = {
		has_ascension_perk = ap_galactic_control_force_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_galactic_control_force_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_galactic_control_force_tier_4 = {
	modifier = {
		country_naval_cap_add = 1000
		command_limit_add = 250
		ships_upkeep_mult = -0.25
		country_naval_cap_mult = 0.25
		country_command_limit_mult = 0.25
	}
	potential = {
		has_ascension_perk = ap_galactic_control_force_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_galactic_control_force_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_galactic_control_force_tier_5 = {
	modifier = {
		country_naval_cap_add = 1250
		command_limit_add = 300
		ships_upkeep_mult = -0.30
		country_naval_cap_mult = 0.30
		country_command_limit_mult = 0.30
	}
	potential = {
		has_ascension_perk = ap_galactic_control_force_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_galactic_control_force_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_executive_overhaul = {
	modifier = {
		country_edict_fund_add = 150
		planet_districts_upkeep_mult = -0.1
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_3"
			num_ascension_perks > 2
		}
		custom_tooltip = {
			fail_text = "requires_ap_executive_vigor"
			OR = {
				has_ascension_perk = ap_executive_vigor
				has_ascension_perk = ap_esap_gov_1
				has_ascension_perk = ap_esap_gov_GC_1
			}
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_executive_overhaul
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_executive_overhaul_tier_2 = {
	modifier = {
		country_edict_fund_add = 200
		planet_districts_upkeep_mult = -0.15
	}
	potential = {
		has_ascension_perk = ap_executive_overhaul
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_executive_overhaul_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_executive_overhaul_tier_3 = {
	modifier = {
		country_edict_fund_add = 250
		planet_districts_upkeep_mult = -0.20
	}
	potential = {
		has_ascension_perk = ap_executive_overhaul_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_executive_overhaul_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_executive_overhaul_tier_4 = {
	modifier = {
		country_edict_fund_add = 300
		planet_districts_upkeep_mult = -0.25
	}
	potential = {
		has_ascension_perk = ap_executive_overhaul_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_executive_overhaul_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_executive_overhaul_tier_5 = {
	modifier = {
		country_edict_fund_add = 350
		planet_districts_upkeep_mult = -0.30
	}
	potential = {
		has_ascension_perk = ap_executive_overhaul_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_executive_overhaul_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_neural_design = {
	modifier = {
		country_scientist_cap_add = 2
		species_leader_exp_gain = 0.75
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_3"
			num_ascension_perks > 2
		}
		#custom_tooltip = {
		#fail_text = "requires_ap_transcendent_learning"
		#has_ascension_perk = ap_transcendent_learning
		#}
		custom_tooltip = {
			fail_text = "requires_ap_transcendent_learning"
			OR = {
				has_ascension_perk = ap_transcendent_learning
				has_ascension_perk = ap_esap_gov_2
				has_ascension_perk = ap_esap_gov_GC_2
			}
		}
	}
	potential = {
		NOT = {
			has_ascension_perk = ap_neural_design
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_neural_design_tier_2 = {
	modifier = {
		country_scientist_cap_add = 3
		species_leader_exp_gain = 1
	}
	potential = {
		has_ascension_perk = ap_neural_design
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_neural_design_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_neural_design_tier_3 = {
	modifier = {
		country_scientist_cap_add = 4
		species_leader_exp_gain = 1.25
	}
	potential = {
		has_ascension_perk = ap_neural_design_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_neural_design_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_neural_design_tier_4 = {
	modifier = {
		country_scientist_cap_add = 5
		species_leader_exp_gain = 1.50
	}
	potential = {
		has_ascension_perk = ap_neural_design_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_neural_design_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_neural_design_tier_5 = {
	modifier = {
		country_scientist_cap_add = 5
		species_leader_exp_gain = 1.75
	}
	potential = {
		has_ascension_perk = ap_neural_design_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_neural_design_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_prioritised_diplomacy = {
	modifier = {
		envoys_add = 5
		#subject_integration_influence_cost_mult = -0.35
		country_subject_trust_cap_add = 100
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_shared_destiny"
			has_ascension_perk = ap_shared_destiny
		}
	}
	potential = {
		NOR = {
			has_valid_civic = civic_fanatic_purifiers
			has_valid_civic = civic_hive_devouring_swarm
			has_valid_civic = civic_inwards_perfection
			has_valid_civic = civic_machine_terminator
		}
		NOT = {
			has_ascension_perk = ap_prioritised_diplomacy
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineering_paradigm_shift = {
	possible = {
		custom_tooltip = {
			fail_text = "requires_ap_master_builders"
			has_ascension_perk = ap_master_builders
		}
		custom_tooltip = {
			fail_text = "requires_ascension_perks_3"
			num_ascension_perks > 2
		}
	}
	modifier = {
		megastructure_build_speed_mult = 2
		country_megastructure_build_cap_add = 2
		megastructures_upkeep_mult = -0.20
		megastructures_cost_mult = -0.15
		megastructures_produces_mult = 0.20
	}
	potential = {
		host_has_dlc = "Utopia"
		NOT = {
			has_ascension_perk = ap_engineering_paradigm_shift
		}
	}
	ai_weight = {
		factor = 10
		modifier = {
			factor = 2
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 3
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_galactic_wonders = yes
		}
	}
}

ap_engineering_paradigm_shift_tier_2 = {
	modifier = {
		megastructure_build_speed_mult = 3
		country_megastructure_build_cap_add = 3
		megastructures_upkeep_mult = -0.25
		megastructures_cost_mult = -0.20
		megastructures_produces_mult = 0.40
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineering_paradigm_shift
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_engineering_paradigm_shift_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineering_paradigm_shift_tier_3 = {
	modifier = {
		megastructure_build_speed_mult = 4
		country_megastructure_build_cap_add = 4
		megastructures_upkeep_mult = -0.30
		megastructures_cost_mult = -0.25
		megastructures_produces_mult = 0.60
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineering_paradigm_shift_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_engineering_paradigm_shift_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineering_paradigm_shift_tier_4 = {
	modifier = {
		megastructure_build_speed_mult = 5
		country_megastructure_build_cap_add = 5
		megastructures_upkeep_mult = -0.35
		megastructures_cost_mult = -0.30
		megastructures_produces_mult = 0.80
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineering_paradigm_shift_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_engineering_paradigm_shift_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineering_paradigm_shift_tier_5 = {
	modifier = {
		megastructure_build_speed_mult = 6
		country_megastructure_build_cap_add = 6
		megastructures_upkeep_mult = -0.40
		megastructures_cost_mult = -0.35
		megastructures_produces_mult = 1
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineering_paradigm_shift_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_engineering_paradigm_shift_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_enhanced_defences = {
	modifier = {
		starbase_upgrade_cost_mult = -0.15
		starbase_upgrade_speed_mult = 0.15
		starbase_defense_platform_capacity_mult = 0.1
		starbases_upkeep_mult = -0.15
		country_commander_cap_add = 2
		shipclass_starbase_damage_mult = 0.2
		shipclass_starbase_hull_mult = 0.2
		shipclass_military_station_damage_mult = 0.2
		starbase_defense_platform_capacity_add = 10
	}
	potential = {
		has_ascension_perk = ap_eternal_vigilance
		NOT = {
			has_ascension_perk = ap_enhanced_defences
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_enhanced_defences_tier_2 = {
	modifier = {
		starbase_upgrade_cost_mult = -0.20
		starbase_upgrade_speed_mult = 0.20
		starbase_defense_platform_capacity_mult = 0.2
		starbases_upkeep_mult = -0.2
		country_commander_cap_add = 3
		shipclass_starbase_damage_mult = 0.3
		shipclass_starbase_hull_mult = 0.3
		shipclass_military_station_damage_mult = 0.3
		starbase_defense_platform_capacity_add = 15
	}
	potential = {
		has_ascension_perk = ap_enhanced_defences
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_enhanced_defences_tier_2
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_enhanced_defences_tier_3 = {
	modifier = {
		starbase_upgrade_cost_mult = -0.25
		starbase_upgrade_speed_mult = 0.25
		starbase_defense_platform_capacity_mult = 0.30
		starbases_upkeep_mult = -0.30
		country_commander_cap_add = 4
		shipclass_starbase_damage_mult = 0.30
		shipclass_starbase_hull_mult = 0.30
		shipclass_military_station_damage_mult = 0.30
		starbase_defense_platform_capacity_add = 20
	}
	potential = {
		has_ascension_perk = ap_enhanced_defences_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_enhanced_defences_tier_3
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_enhanced_defences_tier_4 = {
	modifier = {
		starbase_upgrade_cost_mult = -0.30
		starbase_upgrade_speed_mult = 0.30
		starbase_defense_platform_capacity_mult = 0.35
		starbases_upkeep_mult = -0.35
		country_commander_cap_add = 4
		shipclass_starbase_damage_mult = 0.35
		shipclass_starbase_hull_mult = 0.35
		shipclass_military_station_damage_mult = 0.35
		starbase_defense_platform_capacity_add = 25
	}
	potential = {
		has_ascension_perk = ap_enhanced_defences_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_enhanced_defences_tier_4
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_enhanced_defences_tier_5 = {
	modifier = {
		starbase_upgrade_cost_mult = -0.35
		starbase_upgrade_speed_mult = 0.35
		starbase_defense_platform_capacity_mult = 0.40
		starbases_upkeep_mult = -0.40
		country_commander_cap_add = 5
		shipclass_starbase_damage_mult = 0.40
		shipclass_starbase_hull_mult = 0.40
		shipclass_military_station_damage_mult = 0.40
		starbase_defense_platform_capacity_add = 30
	}
	potential = {
		has_ascension_perk = ap_enhanced_defences_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_enhanced_defences_tier_5
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_imperial_basis = {
	modifier = {
		country_government_civic_points_add = 1
		diplo_weight_mult = 0.10
	}
	potential = {
		has_ascension_perk = ap_imperial_prerogative
		NOT = {
			has_ascension_perk = ap_imperial_basis
		}
		NOT = {
			has_authority = auth_corporate
		}
	}
	ai_weight = {
		factor = 0
	}
	on_enabled = {
		run_ai_strategic_data = yes
	}
}

ap_imperial_basis_tier_2 = {
	modifier = {
		country_government_civic_points_add = 1
		diplo_weight_mult = 0.15
	}
	potential = {
		has_ascension_perk = ap_imperial_basis
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_imperial_basis_tier_2
		}
		NOT = {
			has_authority = auth_corporate
		}
	}
	ai_weight = {
		factor = 0
	}
	on_enabled = {
		run_ai_strategic_data = yes
	}
}

ap_imperial_basis_tier_3 = {
	modifier = {
		country_government_civic_points_add = 1
		diplo_weight_mult = 0.20
	}
	potential = {
		has_ascension_perk = ap_imperial_basis_tier_2
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_imperial_basis_tier_3
		}
		NOT = {
			has_authority = auth_corporate
		}
	}
	ai_weight = {
		factor = 0
	}
	on_enabled = {
		run_ai_strategic_data = yes
	}
}

ap_imperial_basis_tier_4 = {
	modifier = {
		country_government_civic_points_add = 1
		diplo_weight_mult = 0.25
	}
	potential = {
		has_ascension_perk = ap_imperial_basis_tier_3
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_imperial_basis_tier_4
		}
		NOT = {
			has_authority = auth_corporate
		}
	}
	ai_weight = {
		factor = 0
	}
	on_enabled = {
		run_ai_strategic_data = yes
	}
}

ap_imperial_basis_tier_5 = {
	modifier = {
		country_government_civic_points_add = 1
		diplo_weight_mult = 0.30
	}
	potential = {
		has_ascension_perk = ap_imperial_basis_tier_4
		NOT = {
			has_global_flag = apb_tier_locked
		}
		NOT = {
			has_ascension_perk = ap_imperial_basis_tier_5
		}
		NOT = {
			has_authority = auth_corporate
		}
	}
	ai_weight = {
		factor = 0
	}
	on_enabled = {
		run_ai_strategic_data = yes
	}
}

#################
# VANILLA PERKS EXPANDED - ASCENSION PATHS
#################
ap_engineered_excellency = {
	possible = {
		custom_tooltip = {
			fail_text = "synthetic_empire_biological_ascension"
			NOT = {
				has_trait = trait_mechanical
			}
		}
		custom_tooltip = {
			fail_text = "requires_ap_evolutionary_mastery"
			has_ascension_perk = ap_engineered_evolution
		}
	}
	modifier = {
		BIOLOGICAL_species_trait_points_add = 5
		modify_species_cost_mult = -0.5
		BIOLOGICAL_species_trait_picks_add = 2
	}
	potential = {
		host_has_dlc = "Utopia"
		NOT = {
			has_ascension_perk = ap_engineered_excellency
			has_authority = "auth_machine_intelligence"
		}
		is_mechanical_empire = no
		#is_cyborg_empire = no
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineered_excellency_tier_2 = {
	modifier = {
		BIOLOGICAL_species_trait_points_add = 10
		modify_species_cost_mult = -0.5
		BIOLOGICAL_species_trait_picks_add = 3
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineered_excellency
		NOT = {
			has_ascension_perk = ap_engineered_excellency_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineered_excellency_tier_3 = {
	modifier = {
		BIOLOGICAL_species_trait_points_add = 15
		BIOLOGICAL_species_trait_picks_add = 4
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineered_excellency_tier_2
		NOT = {
			has_ascension_perk = ap_engineered_excellency_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineered_excellency_tier_4 = {
	modifier = {
		BIOLOGICAL_species_trait_points_add = 20
		BIOLOGICAL_species_trait_picks_add = 5
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineered_excellency_tier_3
		NOT = {
			has_ascension_perk = ap_engineered_excellency_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	ai_weight = {
		factor = 0
	}
}

ap_engineered_excellency_tier_5 = {
	modifier = {
		BIOLOGICAL_species_trait_points_add = 25
		BIOLOGICAL_species_trait_picks_add = 6
	}
	potential = {
		host_has_dlc = "Utopia"
		has_ascension_perk = ap_engineered_excellency_tier_4
		NOT = {
			has_ascension_perk = ap_engineered_excellency_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	ai_weight = {
		factor = 0
	}
}