tr_aptitude_adopt = {
#	custom_tooltip = tr_aptitude_adopt_desc
	unlocks_agenda = agenda_leadership_conditioning
	modifier = {
		leaders_upkeep_mult = -0.25
		leaders_cost_mult = -0.25
	}
}

tr_aptitude_finish = {
	modifier = {
		country_leader_cap_add = 1
		leader_initial_skill = 1
	}
	triggered_modifier = {
		potential = {
			always = yes
		}
		ascension_perks_add = 1
	}
}

tr_aptitude_the_empire_needs_you = {
	modifier = {
		leader_skill_add = 1		
		country_leader_pool_size = 1
	}
	ai_weight = { factor = 1000 }

	inline_script = {
		script = paragon/tradition_swap_desc_hive
		tradition = tr_aptitude_the_empire_needs_you
	}
	inline_script = {
		script = paragon/tradition_swap_desc_machine
		tradition = tr_aptitude_the_empire_needs_you
	}
}

tr_aptitude_specialist_training = {
	custom_tooltip = tr_aptitude_specialist_training_tt

	ai_weight = { factor = 1000 }

	tradition_swap = {
		name = tr_aptitude_specialist_training_hive
		inherit_icon = yes
		trigger = { is_hive_empire = yes }
		custom_tooltip = tr_aptitude_specialist_training_gestalt_tt
		modifier = {
		}
	}

	tradition_swap = {
		name = tr_aptitude_specialist_training_machine
		inherit_icon = yes
		trigger = { is_machine_empire = yes }
		custom_tooltip = tr_aptitude_specialist_training_gestalt_tt
		modifier = {
		}
	}
}

tr_aptitude_psychological_profiling = {
	possible = { has_tradition = tr_aptitude_the_empire_needs_you }
	modifier = {
		species_leader_exp_gain = 0.35
	}
	ai_weight = { factor = 1000 }

	inline_script = {
		script = paragon/tradition_swap_desc_hive
		tradition = tr_aptitude_psychological_profiling
					
					   
						 
	}
	inline_script = {
		script = paragon/tradition_swap_desc_machine
									   
		tradition = tr_aptitude_psychological_profiling
					
					   
						 
	}
}

tr_aptitude_healthcare_program = {
	custom_tooltip = BLANK_STRING	# Since the Modifier uses only a scripted modifier, we'll get an error without a custom tooltip.
	possible = { has_tradition = tr_aptitude_the_empire_needs_you }
	modifier = {
		leader_lifespan_mult = 0.15
		negative_traits_country = -1
	}
	ai_weight = { factor = 1000 }

	tradition_swap = {
		custom_tooltip = BLANK_STRING	# Since the Modifier uses only a scripted modifier, we'll get an error without a custom tooltip.
		trigger = { is_hive_empire = yes }
		name = tr_aptitude_healthcare_program_hive
		inherit_icon = yes
		modifier = {
			leader_lifespan_mult = 0.15
			negative_traits_country = -1
			restored_node_bonus_skill = 1	
		}
		weight = { factor = 1 }
	}

	tradition_swap = {
		custom_tooltip = BLANK_STRING	# Since the Modifier uses only a scripted modifier, we'll get an error without a custom tooltip.
		trigger = { is_machine_empire = yes }
		name = tr_aptitude_healthcare_program_machine
		inherit_icon = yes
		modifier = {
			leader_lifespan_mult = 0.15
			negative_traits_country = -1
			restored_node_bonus_skill = 1	
		}
		weight = { factor = 1 }
	}
}

tr_aptitude_champions_of_the_empire = {
	possible = { has_tradition = tr_aptitude_specialist_training }
	custom_tooltip_with_modifiers = tr_aptitude_adopt_desc
	on_enabled = {
		hidden_effect = {
			every_owned_leader = {
				add_trait = {
					trait = random_common
					show_message = no
				}
			}
			every_pool_leader = {
				add_trait = {
					trait = random_common
					show_message = no
				}
			}
		}
	}
	
	modifier = {
		leader_trait_selection_options_add = 1
	}
	
	ai_weight = { factor = 1000 }

	inline_script = {
		script = paragon/tradition_swap_desc_hive
		tradition = tr_aptitude_champions_of_the_empire
	}
	inline_script = {
		script = paragon/tradition_swap_desc_machine
		tradition = tr_aptitude_champions_of_the_empire
	}
}
