###########################
# Tiered perks, series 2 (added 2026-11). Each tier stacks on the previous ones.
# Cost/upkeep totals stay at -80% or less including the vanilla bonus they stack with (costs clamp at -90%),
# so a few tiers are lower than the design table: Planetfall upkeep T4, Common Cause resolutions T5,
# Menagerie snare T4, Orbital Commons habitat cost T4, Chains of Industry slave market T5.
###########################

ap_planetfall_doctrine = {
	potential = {
		NOT = {
			has_ascension_perk = ap_planetfall_doctrine
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		army_damage_mult = 0.15
		army_health = 0.1
		army_morale = 0.1
		army_starting_experience_add = 100
		armies_cost_mult = -0.1
		armies_upkeep_mult = -0.1
		ship_orbital_bombardment_mult = 0.1
		army_collateral_damage_mult = -0.1
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			OR = {
				is_militarist = yes
				is_homicidal = yes
			}
		}
		modifier = {
			factor = 0.25
			is_pacifist = yes
		}
	}
}

ap_planetfall_doctrine_tier_2 = {
	potential = {
		has_ascension_perk = ap_planetfall_doctrine
		NOT = {
			has_ascension_perk = ap_planetfall_doctrine_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		army_damage_mult = 0.15
		army_health = 0.1
		army_morale = 0.1
		armies_cost_mult = -0.1
		armies_upkeep_mult = -0.15
		ship_orbital_bombardment_mult = 0.1
		army_collateral_damage_mult = -0.1
		planet_defense_armies_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetfall_doctrine_tier_3 = {
	potential = {
		has_ascension_perk = ap_planetfall_doctrine_tier_2
		NOT = {
			has_ascension_perk = ap_planetfall_doctrine_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		army_damage_mult = 0.2
		army_health = 0.15
		army_morale = 0.15
		army_starting_experience_add = 100
		armies_cost_mult = -0.15
		armies_upkeep_mult = -0.15
		ship_orbital_bombardment_mult = 0.15
		army_collateral_damage_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetfall_doctrine_tier_4 = {
	potential = {
		has_ascension_perk = ap_planetfall_doctrine_tier_3
		NOT = {
			has_ascension_perk = ap_planetfall_doctrine_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		army_damage_mult = 0.2
		army_health = 0.15
		army_morale = 0.15
		armies_cost_mult = -0.15
		armies_upkeep_mult = -0.15
		ship_orbital_bombardment_mult = 0.15
		army_collateral_damage_mult = -0.1
		planet_defense_armies_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_planetfall_doctrine_tier_5 = {
	potential = {
		has_ascension_perk = ap_planetfall_doctrine_tier_4
		NOT = {
			has_ascension_perk = ap_planetfall_doctrine_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		army_damage_mult = 0.3
		army_health = 0.25
		army_morale = 0.25
		army_starting_experience_add = 200
		armies_cost_mult = -0.2
		armies_upkeep_mult = -0.2
		ship_orbital_bombardment_mult = 0.25
		army_collateral_damage_mult = -0.1
		planet_defense_armies_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_long_war = {
	potential = {
		is_homicidal = no
		NOT = {
			has_ascension_perk = ap_long_war
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		country_claim_influence_cost_mult = -0.1
		country_war_exhaustion_mult = -0.1
		country_war_exhaustion_inflicted_mult = 0.05
		damage_vs_rival_mult = 0.05
		rivalries_influence_produces_mult = 0.1
		rivalries_unity_produces_add = 2
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			num_rivals > 0
		}
		modifier = {
			factor = 1.5
			OR = {
				is_militarist = yes
				is_authoritarian = yes
			}
		}
		modifier = {
			factor = 0
			is_pacifist = yes
		}
	}
}

ap_long_war_tier_2 = {
	potential = {
		has_ascension_perk = ap_long_war
		NOT = {
			has_ascension_perk = ap_long_war_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_claim_influence_cost_mult = -0.1
		country_war_exhaustion_mult = -0.1
		country_war_exhaustion_inflicted_mult = 0.05
		damage_vs_rival_mult = 0.05
		rivalries_influence_produces_mult = 0.1
		rivalries_unity_produces_add = 2
		max_rivalries = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_long_war_tier_3 = {
	potential = {
		has_ascension_perk = ap_long_war_tier_2
		NOT = {
			has_ascension_perk = ap_long_war_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_claim_influence_cost_mult = -0.1
		country_war_exhaustion_mult = -0.1
		country_war_exhaustion_inflicted_mult = 0.1
		damage_vs_rival_mult = 0.05
		rivalries_influence_produces_mult = 0.15
		rivalries_unity_produces_add = 3
	}
	ai_weight = {
		factor = 0
	}
}

ap_long_war_tier_4 = {
	potential = {
		has_ascension_perk = ap_long_war_tier_3
		NOT = {
			has_ascension_perk = ap_long_war_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_claim_influence_cost_mult = -0.15
		country_war_exhaustion_mult = -0.15
		country_war_exhaustion_inflicted_mult = 0.1
		damage_vs_rival_mult = 0.1
		rivalries_influence_produces_mult = 0.15
		rivalries_unity_produces_add = 3
	}
	ai_weight = {
		factor = 0
	}
}

ap_long_war_tier_5 = {
	potential = {
		has_ascension_perk = ap_long_war_tier_4
		NOT = {
			has_ascension_perk = ap_long_war_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_claim_influence_cost_mult = -0.15
		country_war_exhaustion_mult = -0.15
		country_war_exhaustion_inflicted_mult = 0.15
		damage_vs_rival_mult = 0.1
		rivalries_influence_produces_mult = 0.25
		rivalries_unity_produces_add = 5
		max_rivalries = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_suzerains_due = {
	potential = {
		has_overlord_dlc = yes
		is_homicidal = no
		NOT = {
			has_ascension_perk = ap_suzerains_due
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "apb_requires_shared_destiny_or_subject"
			OR = { has_ascension_perk = ap_shared_destiny is_overlord = yes }
		}
	}
	modifier = {
		monthly_loyalty_from_subjects = 0.5
		country_naval_capacity_contribution_from_subjects_mult = 0.1
		country_subject_acceptance_add = 10
		subjects_unity_produces_add = 2
		specialist_subject_conversion_time_mult = -0.1
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			is_overlord = yes
		}
	}
}

ap_suzerains_due_tier_2 = {
	potential = {
		has_ascension_perk = ap_suzerains_due
		NOT = {
			has_ascension_perk = ap_suzerains_due_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		monthly_loyalty_from_subjects = 0.5
		country_naval_capacity_contribution_from_subjects_mult = 0.1
		country_subject_acceptance_add = 10
		subjects_unity_produces_add = 2
		specialist_subject_conversion_time_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_suzerains_due_tier_3 = {
	potential = {
		has_ascension_perk = ap_suzerains_due_tier_2
		NOT = {
			has_ascension_perk = ap_suzerains_due_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		monthly_loyalty_from_subjects = 0.5
		country_naval_capacity_contribution_from_subjects_mult = 0.15
		country_subject_acceptance_add = 10
		subjects_unity_produces_add = 3
		specialist_subject_conversion_time_mult = -0.1
		subject_holding_owner_max_buildings_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_suzerains_due_tier_4 = {
	potential = {
		has_ascension_perk = ap_suzerains_due_tier_3
		NOT = {
			has_ascension_perk = ap_suzerains_due_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		monthly_loyalty_from_subjects = 1
		country_naval_capacity_contribution_from_subjects_mult = 0.15
		country_subject_acceptance_add = 15
		subjects_unity_produces_add = 3
		specialist_subject_conversion_time_mult = -0.15
	}
	ai_weight = {
		factor = 0
	}
}

ap_suzerains_due_tier_5 = {
	potential = {
		has_ascension_perk = ap_suzerains_due_tier_4
		NOT = {
			has_ascension_perk = ap_suzerains_due_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		monthly_loyalty_from_subjects = 1
		country_naval_capacity_contribution_from_subjects_mult = 0.2
		country_subject_acceptance_add = 15
		subjects_unity_produces_add = 5
		specialist_subject_conversion_time_mult = -0.15
		subject_holding_owner_max_buildings_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_common_cause = {
	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_common_cause
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		federation_experience_add = 1
		envoy_improve_relations_mult = 0.15
		country_trust_growth = 0.25
		country_trust_cap_add = 10
		resolutions_cost_mult = -0.1
		diplomacy_upkeep_mult = -0.1
		diplomacy_influence_cost_mult = -0.05
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			has_federation = yes
		}
		modifier = {
			factor = 1.5
			OR = {
				is_xenophile = yes
				is_pacifist = yes
			}
		}
	}
}

ap_common_cause_tier_2 = {
	potential = {
		has_ascension_perk = ap_common_cause
		NOT = {
			has_ascension_perk = ap_common_cause_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		federation_experience_add = 1
		envoy_improve_relations_mult = 0.15
		country_trust_growth = 0.25
		country_trust_cap_add = 10
		resolutions_cost_mult = -0.1
		diplomacy_upkeep_mult = -0.1
		diplomacy_influence_cost_mult = -0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_common_cause_tier_3 = {
	potential = {
		has_ascension_perk = ap_common_cause_tier_2
		NOT = {
			has_ascension_perk = ap_common_cause_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		federation_experience_add = 2
		envoy_improve_relations_mult = 0.2
		country_trust_growth = 0.25
		country_trust_cap_add = 15
		resolutions_cost_mult = -0.15
		diplomacy_upkeep_mult = -0.15
		diplomacy_influence_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_common_cause_tier_4 = {
	potential = {
		has_ascension_perk = ap_common_cause_tier_3
		NOT = {
			has_ascension_perk = ap_common_cause_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		federation_experience_add = 2
		envoy_improve_relations_mult = 0.2
		country_trust_growth = 0.5
		country_trust_cap_add = 15
		resolutions_cost_mult = -0.15
		diplomacy_upkeep_mult = -0.15
		diplomacy_influence_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_common_cause_tier_5 = {
	potential = {
		has_ascension_perk = ap_common_cause_tier_4
		NOT = {
			has_ascension_perk = ap_common_cause_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		federation_experience_add = 3
		envoy_improve_relations_mult = 0.3
		country_trust_growth = 0.5
		country_trust_cap_add = 25
		resolutions_cost_mult = -0.1
		diplomacy_upkeep_mult = -0.2
		diplomacy_influence_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_living_creed = {
	potential = {
		has_force_of_will_dlc = yes
		ideologies_enabled = yes
		NOT = {
			has_ascension_perk = ap_living_creed
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
		custom_tooltip = {
			fail_text = "apb_requires_ideology"
			exists = ideology
		}
	}
	modifier = {
		ideological_reach_mult = 0.05
		ideological_push_mult = 0.05
		ideological_resistance_mult = 0.1
		adopted_ideology_upkeep_mult = -0.05
		ideological_strength_bonus_mult = 0.1
		damage_vs_ideological_rival_mult = 0.05
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			ideology? = {
				is_ideology_custodian = root
			}
		}
		modifier = {
			factor = 0
			NOT = { exists = ideology }
		}
	}
}

ap_living_creed_tier_2 = {
	potential = {
		has_ascension_perk = ap_living_creed
		NOT = {
			has_ascension_perk = ap_living_creed_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		ideological_reach_mult = 0.05
		ideological_push_mult = 0.05
		ideological_resistance_mult = 0.1
		adopted_ideology_upkeep_mult = -0.05
		ideological_strength_bonus_mult = 0.1
		damage_vs_ideological_rival_mult = 0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_living_creed_tier_3 = {
	potential = {
		has_ascension_perk = ap_living_creed_tier_2
		NOT = {
			has_ascension_perk = ap_living_creed_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		ideological_reach_mult = 0.1
		ideological_push_mult = 0.1
		ideological_resistance_mult = 0.1
		adopted_ideology_upkeep_mult = -0.1
		ideological_strength_bonus_mult = 0.15
		damage_vs_ideological_rival_mult = 0.05
		additional_tenet_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_living_creed_tier_4 = {
	potential = {
		has_ascension_perk = ap_living_creed_tier_3
		NOT = {
			has_ascension_perk = ap_living_creed_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		ideological_reach_mult = 0.1
		ideological_push_mult = 0.1
		ideological_resistance_mult = 0.15
		adopted_ideology_upkeep_mult = -0.1
		ideological_strength_bonus_mult = 0.15
		damage_vs_ideological_rival_mult = 0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_living_creed_tier_5 = {
	potential = {
		has_ascension_perk = ap_living_creed_tier_4
		NOT = {
			has_ascension_perk = ap_living_creed_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		ideological_reach_mult = 0.15
		ideological_push_mult = 0.15
		ideological_resistance_mult = 0.15
		adopted_ideology_upkeep_mult = -0.15
		ideological_strength_bonus_mult = 0.25
		damage_vs_ideological_rival_mult = 0.1
		additional_tenet_add = 1
	}
	ai_weight = {
		factor = 0
	}
}

ap_menagerie = {
	potential = {
		has_grand_archive_dlc = yes
		NOT = {
			has_ascension_perk = ap_menagerie
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		space_fauna_ship_damage_mult = 0.1
		space_fauna_ship_hull_mult = 0.1
		space_fauna_growth_rate_mult = 0.05
		space_fauna_ship_upkeep_mult = -0.1
		country_vivarium_max_capacity_add = 10
		gravity_snare_cooldown_mult = -0.1
		space_fauna_culling_reward_mult = 0.2
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			OR = {
				is_beastmasters_empire = yes
				count_used_naval_cap = {
					limit = { is_space_fauna = yes }
					value >= 40
				}
			}
		}
	}
}

ap_menagerie_tier_2 = {
	potential = {
		has_ascension_perk = ap_menagerie
		NOT = {
			has_ascension_perk = ap_menagerie_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		space_fauna_ship_damage_mult = 0.1
		space_fauna_ship_hull_mult = 0.1
		space_fauna_growth_rate_mult = 0.05
		space_fauna_ship_upkeep_mult = -0.1
		country_vivarium_max_capacity_add = 10
		gravity_snare_cooldown_mult = -0.1
		space_fauna_culling_reward_mult = 0.2
	}
	ai_weight = {
		factor = 0
	}
}

ap_menagerie_tier_3 = {
	potential = {
		has_ascension_perk = ap_menagerie_tier_2
		NOT = {
			has_ascension_perk = ap_menagerie_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		space_fauna_ship_damage_mult = 0.15
		space_fauna_ship_hull_mult = 0.15
		space_fauna_growth_rate_mult = 0.1
		space_fauna_ship_upkeep_mult = -0.15
		country_vivarium_max_capacity_add = 15
		gravity_snare_cooldown_mult = -0.1
		space_fauna_culling_reward_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_menagerie_tier_4 = {
	potential = {
		has_ascension_perk = ap_menagerie_tier_3
		NOT = {
			has_ascension_perk = ap_menagerie_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		space_fauna_ship_damage_mult = 0.15
		space_fauna_ship_hull_mult = 0.15
		space_fauna_growth_rate_mult = 0.1
		space_fauna_ship_upkeep_mult = -0.15
		country_vivarium_max_capacity_add = 15
		gravity_snare_cooldown_mult = -0.1
		space_fauna_culling_reward_mult = 0.25
	}
	ai_weight = {
		factor = 0
	}
}

ap_menagerie_tier_5 = {
	potential = {
		has_ascension_perk = ap_menagerie_tier_4
		NOT = {
			has_ascension_perk = ap_menagerie_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		space_fauna_ship_damage_mult = 0.25
		space_fauna_ship_hull_mult = 0.25
		space_fauna_growth_rate_mult = 0.15
		space_fauna_ship_upkeep_mult = -0.2
		country_vivarium_max_capacity_add = 25
		gravity_snare_cooldown_mult = -0.15
		space_fauna_culling_reward_mult = 0.35
	}
	ai_weight = {
		factor = 0
	}
}

ap_orbital_commons = {
	potential = {
		is_nomadic = no
		NOT = {
			has_ascension_perk = ap_orbital_commons
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "requires_ap_voidborn"
			is_void_dweller_empire = yes
		}
	}
	modifier = {
		habitat_max_districts_add = 1
		megastructures_habitat_cost_mult = -0.1
		megastructures_habitat_alloys_upkeep_mult = -0.1
		habitat_stability_add = 1
		pc_habitat_habitability = 0.05
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 3
			has_void_dweller_origin = yes
		}
	}
}

ap_orbital_commons_tier_2 = {
	potential = {
		has_ascension_perk = ap_orbital_commons
		NOT = {
			has_ascension_perk = ap_orbital_commons_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		habitat_max_districts_add = 1
		megastructures_habitat_cost_mult = -0.1
		megastructures_habitat_alloys_upkeep_mult = -0.1
		habitat_stability_add = 1
		pc_habitat_habitability = 0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_orbital_commons_tier_3 = {
	potential = {
		has_ascension_perk = ap_orbital_commons_tier_2
		NOT = {
			has_ascension_perk = ap_orbital_commons_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		habitat_max_districts_add = 1
		megastructures_habitat_cost_mult = -0.1
		megastructures_habitat_alloys_upkeep_mult = -0.1
		habitat_stability_add = 2
		pc_habitat_habitability = 0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_orbital_commons_tier_4 = {
	potential = {
		has_ascension_perk = ap_orbital_commons_tier_3
		NOT = {
			has_ascension_perk = ap_orbital_commons_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		habitat_max_districts_add = 1
		megastructures_habitat_cost_mult = -0.1
		megastructures_habitat_alloys_upkeep_mult = -0.15
		habitat_stability_add = 2
		pc_habitat_habitability = 0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_orbital_commons_tier_5 = {
	potential = {
		has_ascension_perk = ap_orbital_commons_tier_4
		NOT = {
			has_ascension_perk = ap_orbital_commons_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		habitat_max_districts_add = 2
		megastructures_habitat_cost_mult = -0.15
		megastructures_habitat_alloys_upkeep_mult = -0.15
		habitat_stability_add = 3
		pc_habitat_habitability = 0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_chains_of_industry = {
	potential = {
		allows_slavery = yes
		is_gestalt = no
		NOT = {
			has_ascension_perk = ap_chains_of_industry
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.05
		planet_pops_enslaved_upkeep_mult = -0.1
		pop_slave_happiness = 0.05
		pop_slave_political_power = -0.1
		slave_market_cost_mult = -0.1
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			is_authoritarian = yes
		}
		modifier = {
			factor = 2
			count_owned_pop_amount = {
				limit = { is_enslaved = yes }
				count >= 2000
			}
		}
	}
}

ap_chains_of_industry_tier_2 = {
	potential = {
		has_ascension_perk = ap_chains_of_industry
		NOT = {
			has_ascension_perk = ap_chains_of_industry_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.05
		planet_pops_enslaved_upkeep_mult = -0.1
		pop_slave_happiness = 0.05
		pop_slave_political_power = -0.1
		slave_market_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_chains_of_industry_tier_3 = {
	potential = {
		has_ascension_perk = ap_chains_of_industry_tier_2
		NOT = {
			has_ascension_perk = ap_chains_of_industry_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.1
		planet_pops_enslaved_upkeep_mult = -0.15
		pop_slave_happiness = 0.05
		pop_slave_political_power = -0.1
		slave_market_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_chains_of_industry_tier_4 = {
	potential = {
		has_ascension_perk = ap_chains_of_industry_tier_3
		NOT = {
			has_ascension_perk = ap_chains_of_industry_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.1
		planet_pops_enslaved_upkeep_mult = -0.15
		pop_slave_happiness = 0.05
		pop_slave_political_power = -0.1
		slave_market_cost_mult = -0.1
	}
	ai_weight = {
		factor = 0
	}
}

ap_chains_of_industry_tier_5 = {
	potential = {
		has_ascension_perk = ap_chains_of_industry_tier_4
		NOT = {
			has_ascension_perk = ap_chains_of_industry_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		pop_slave_bonus_workforce_mult = 0.15
		planet_pops_enslaved_upkeep_mult = -0.2
		pop_slave_happiness = 0.1
		pop_slave_political_power = -0.1
		slave_market_cost_mult = -0.05
	}
	ai_weight = {
		factor = 0
	}
}

ap_rift_delvers = {
	potential = {
		has_astral_planes_dlc = yes
		NOT = {
			has_ascension_perk = ap_rift_delvers
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_1"
			num_ascension_perks > 0
		}
	}
	modifier = {
		country_astral_rift_speed_mult = 0.1
		country_astral_rift_fail_mult = -0.1
		country_base_astral_threads_produces_add = 2
	}
	ai_weight = {
		factor = 2
		modifier = {
			factor = 2
			has_country_flag = has_started_exploring_rifts
		}
	}
}

ap_rift_delvers_tier_2 = {
	potential = {
		has_ascension_perk = ap_rift_delvers
		NOT = {
			has_ascension_perk = ap_rift_delvers_tier_2
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_astral_rift_speed_mult = 0.1
		country_astral_rift_fail_mult = -0.1
		ship_astral_rift_clues_add = 1
		country_base_astral_threads_produces_add = 2
	}
	ai_weight = {
		factor = 0
	}
}

ap_rift_delvers_tier_3 = {
	potential = {
		has_ascension_perk = ap_rift_delvers_tier_2
		NOT = {
			has_ascension_perk = ap_rift_delvers_tier_3
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_astral_rift_speed_mult = 0.15
		country_astral_rift_fail_mult = -0.15
		country_base_astral_threads_produces_add = 3
	}
	ai_weight = {
		factor = 0
	}
}

ap_rift_delvers_tier_4 = {
	potential = {
		has_ascension_perk = ap_rift_delvers_tier_3
		NOT = {
			has_ascension_perk = ap_rift_delvers_tier_4
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_astral_rift_speed_mult = 0.15
		country_astral_rift_fail_mult = -0.15
		ship_astral_rift_clues_add = 1
		country_base_astral_threads_produces_add = 3
	}
	ai_weight = {
		factor = 0
	}
}

ap_rift_delvers_tier_5 = {
	potential = {
		has_ascension_perk = ap_rift_delvers_tier_4
		NOT = {
			has_ascension_perk = ap_rift_delvers_tier_5
			has_global_flag = apb_tier_locked
		}
	}
	modifier = {
		country_astral_rift_speed_mult = 0.25
		country_astral_rift_fail_mult = -0.2
		ship_astral_rift_clues_add = 1
		country_base_astral_threads_produces_add = 5
	}
	ai_weight = {
		factor = 0
	}
}
