tr_enmity_adopt = {
	custom_tooltip_with_modifiers = tr_enmity_adopt_desc
	unlocks_agenda = agenda_second_strike
	modifier = {
		max_rivalries = 1
	}
	tradition_swap = {
		inherit_name = yes
		inherit_effects = no
		inherit_icon = yes
		trigger = {
			is_nomadic = yes
		}
		custom_tooltip = tr_enmity_adopt_nomads_desc
		modifier = {
			max_rivalries = 1
		}
		triggered_modifier = {
			logistic_growth_mult = 0.03
			planet_pop_assembly_mult = 0.03
			mult = trigger:num_rivals
		}

		weight = {
			factor = 1
		}
	}
}

tr_enmity_finish = {
	custom_tooltip = tr_enmity_finish_desc
	modifier = {
		envoys_add = 1
		ascension_perks_add = 1
	}
}

tr_enmity_rise_to_the_occasion = {
	custom_tooltip = tr_enmity_rise_to_the_occasion_effect
	triggered_modifier = {
		potential = { always = yes }
		country_official_cap_add = 1
		country_commander_cap_add = 1
		country_scientist_cap_add = 1
		mult = value:rise_to_the_occasion_value
	}
	ai_weight = { factor = 1 }
}

tr_enmity_consumate_contrarian = {
	possible = { has_tradition = tr_enmity_rise_to_the_occasion }
	ai_weight = { factor = 1 }
	modifier = {
		diplo_weight_opposing_mult = 0.5
	}
}
tr_enmity_match = {
	ai_weight = { factor = 1 }
	custom_tooltip = tr_enmity_match_effect
	triggered_modifier = {
		potential = { is_rival_militarily_superior = yes }
		starbase_shipyard_build_speed_mult = 0.10
		starbase_shipyard_build_cost_mult = -0.05
	}
	triggered_modifier = {
		potential = { is_rival_technologically_superior = yes }
		planet_researchers_upkeep_mult = -0.15
		planet_building_research_lab_1_build_speed_mult = 1
		planet_building_research_lab_2_build_speed_mult = 1
		planet_building_research_lab_3_build_speed_mult = 1
	}
	triggered_modifier = {
		potential = { is_rival_economically_superior = yes }
		planet_jobs_worker_produces_mult = 0.10
		planet_jobs_simple_drone_produces_mult = 0.10
	}
}

tr_enmity_outpace = {
	possible = { has_tradition = tr_enmity_match }
	ai_weight = { factor = 1 }
	modifier = {
		damage_vs_rival_mult = 0.15
	}
}

tr_enmity_eclipse = {
	possible = { has_tradition = tr_enmity_outpace }
	ai_weight = { factor = 1 }
	custom_tooltip = tr_enmity_eclipse_effect
}
