tr_diplomacy_adopt = {
	unlocks_agenda = agenda_build_relations
	custom_tooltip_with_modifiers = tr_diplomacy_adopt_desc
	modifier = {
		diplomacy_influence_cost_mult = -0.5
		diplomacy_influence_upkeep_mult = -0.5
	}
	triggered_modifier = {
		potential = {
			is_nomadic = no
		}
		country_border_friction_mult = -0.5
	}
	triggered_modifier = {
		potential = {
			is_nomadic = yes
		}
		unlicensed_waystations_scaling_mult = -0.5
	}
}

tr_diplomacy_finish = {
	modifier = {
		federation_experience_add = 2
		diplo_action_acceptance_add = 20
		diplo_weight_mult = 0.2
		ascension_perks_add = 1
	}
}

tr_diplomacy_the_federation = {

	modifier = {
		envoys_add = 1
		country_official_cap_add = 1
		cohesion_add = 1
	}

	on_enabled = {
		if = {
			limit = {
				NOT = {
					has_technology = tech_federation_code
				}
			}
			give_technology = { tech = tech_federation_code message = yes }
		}
	}

	ai_weight = {
		factor = 10000
	}
}

tr_diplomacy_entente_coordination = {
	possible = {
		has_tradition = tr_diplomacy_the_federation
	}

	modifier = {
		federation_naval_cap_contribution_mult = 1
		federation_fleet_cap_add = 50
	}
	
	#tradition_swap = {
		#inherit_name = yes
		#inherit_icon = yes
		#trigger = {
			#is_nomadic = yes
		#}

		#modifier = {
			#federation_naval_cap_contribution_mult = 1.00
			#nomadic_contract_value_mult = 0.25
		#}

		#weight = {
			#factor = 1
		#}
	#}

	ai_weight = {
		factor = 1000
	}
}

tr_diplomacy_diplomatic_networking = {
	custom_tooltip_with_modifiers = tr_diplomacy_diplomatic_networking_bt_desc
	#Effects in diplomacy_economy

	modifier = {
		first_contact_clues_add = 3
	}

	tradition_swap = {
		name = tr_diplomacy_diplomatic_networking_gestalt
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_gestalt = yes
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_diplomacy_direct_diplomacy = {
	possible = {
		has_tradition = tr_diplomacy_diplomatic_networking
	}

	modifier = {
		country_trust_cap_add = 50
		country_trust_growth = 0.5
	}

	ai_weight = {
		factor = 5000
	}
}

tr_diplomacy_eminent_diplomats = {
	possible = {
		has_tradition = tr_diplomacy_diplomatic_networking
	}

	custom_tooltip_with_modifiers = tr_diplomacy_eminent_diplomats_bt_desc

	modifier = {
		envoy_improve_relations_mult = 0.5
		# 2nd half is in action.325
	}

	tradition_swap = {
		name = tr_diplomacy_eminent_diplomats_gestalt
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_gestalt = yes
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}
