ta_ap_supremacy_over_nature = {
	possible = {		
		custom_tooltip = {
			fail_text = "ta_requires_mastery_of_nature"
			has_ascension_perk = ap_mastery_of_nature
		}
		
	}
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_supremacy_over_nature 
		}
	}

	on_enabled = {
		custom_tooltip = "ta_ap_supremacy_over_nature_enabled"
		hidden_effect = {
			every_owned_planet = {
				every_tile = {
					limit = {
						OR = {
							has_blocker = "tb_mountain_range"
							has_blocker = "tb_active_volcano"
							has_blocker = "tb_dangerous_wildlife"
							has_blocker = "tb_dense_jungle"
							has_blocker = "tb_quicksand_basin"
							has_blocker = "tb_noxious_swamp"
							has_blocker = "tb_massive_glacier"
							has_blocker = "tb_toxic_kelp"
							has_blocker = "tb_deep_sinkhole"
						}
					}
					remove_blocker = yes
				}
			}
		}
	}
	ai_weight = {
		factor = 5
	}
}




ta_ap_precursorproduction = {

	possible = {		
		custom_tooltip = {
			fail_text = "ta_requires_ascension_perks_5"
			num_ascension_perks > 4
		}
	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_precursorproduction 
		}
	}

	on_enabled = {
		custom_tooltip = "ta_allow_precursor_power"
		custom_tooltip = "ta_allow_precursor_minerals"
		custom_tooltip = "ta_allow_precursor_food"
		custom_tooltip = "ta_allow_precursor_research"
		custom_tooltip = "ta_allow_precursor_unity"

	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_cityuponahill = {

	possible = {		
		custom_tooltip = {
			fail_text = "requires_ascension_perks_3"
			num_ascension_perks > 2
		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_galactic_administration"
			has_technology = tech_galactic_administration 
		}
		
	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_cityuponahill 
		}
	}

	modifier = {		# add civic slots
		country_government_civic_points_add = 2
	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_fasterthanftlwarp = {

	possible = {		
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_warp"
			has_technology = tech_warp_drive_1 
		}

	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_fasterthanftlwarp 
		}
		NOR = {
			has_technology = tech_hyper_drive_1
			has_technology = tech_wormhole_generation_1
		}
	}

	modifier = {		# vroom vroom
		ship_interstellar_speed_mult = 0.25
	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_fasterthanftlhyper = {

	possible = {		
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_hyper"
			has_technology = tech_hyper_drive_1
		}

	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_fasterthanftlhyper 
		}
		NOR = {
			has_technology = tech_warp_drive_1 
			has_technology = tech_wormhole_generation_1
		}
	}

	modifier = {		# vroom vroom
		ship_windup_mult = -0.25
	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_fasterthanftlworm = {

	possible = {		
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_worm"
			has_technology = tech_wormhole_generation_1

		}

	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_fasterthanftlworm 
		}
		NOR = {
			has_technology = tech_warp_drive_1 
			has_technology = tech_hyper_drive_1
		}
	}

	modifier = {		# vroom vroom
		ship_ftl_wormhole_speed_mult = 0.25
	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_fasterthanftljump = {

	possible = {		
		custom_tooltip = {
			fail_text = "ta_requires_ascension_perks_4"
			num_ascension_perks > 3
		}
		custom_tooltip = {
			fail_text = "ta_requires_ap_ftl_nonhyper"
			OR = {
				has_ascension_perk = ta_ap_fasterthanftlwarp
				has_ascension_perk = ta_ap_fasterthanftlworm
			}

		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_jump"
			OR = {
				has_technology = tech_jump_drive_1 
				has_technology = tech_psi_jump_drive_1 
			}

		}

	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_fasterthanftljumphyper	
			
		}
		NOT = {
			has_technology = tech_hyper_drive_1
		}
	}

	modifier = {		# vroom vroom
		ship_windup_mult = -0.5
		ship_winddown_mult = -0.25
		
	}
	
	ai_weight = {
		factor = 5
	}
}



ta_ap_fasterthanftljumphyper = {

	possible = {		
		custom_tooltip = {
			fail_text = "ta_requires_ascension_perks_4"
			num_ascension_perks > 3
		}
		custom_tooltip = {
			fail_text = "ta_requires_ap_ftl_hyper"
			has_ascension_perk = ta_ap_fasterthanftlhyper

		}
		custom_tooltip = {
			fail_text = "ta_requires_technology_jump"
			OR = {
				has_technology = tech_jump_drive_1 
				has_technology = tech_psi_jump_drive_1 
			}

		}

	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_fasterthanftljumphyper	
			
		}
		NOR = {
			has_technology = tech_warp_drive_1 
			has_technology = tech_wormhole_generation_1
		}
	}

	modifier = {		# vroom vroom
		ship_windup_mult = -0.25
		ship_winddown_mult = -0.25
		
	}
	
	ai_weight = {
		factor = 5
	}
}

ta_ap_synthetic_assimilation = {

	possible = {		
		custom_tooltip = {
			#fail_text = "ta_requires_ascension_perks_5"
			num_ascension_perks > 4
		}
		custom_tooltip = {
			#fail_text = "ta_requires_ap_synthetic_evolution"
			has_ascension_perk = ap_synthetic_evolution
		}
	}
	on_enabled = {
		custom_tooltip = "ta_allow_edict_assimilate"
		custom_tooltip = "ta_describe_edict_assimilate"
		custom_tooltip = "ta_allow_pol_assimilate"
		custom_tooltip = "ta_describe_pol_assimilate"
	}
	
	potential = {
		NOT = {
			has_ascension_perk = ta_ap_synthetic_assimilation 
		}
	}
	ai_weight = {
		factor = 10
	}
}


