tr_domination_adopt = {
	unlocks_agenda = agenda_civil_exclusion
	modifier = {
		planet_jobs_worker_produces_mult = 0.05
		pop_slave_bonus_workforce_mult = 0.05
		pop_slave_political_power = -0.25
	}

	tradition_swap = {
		inherit_icon = yes
		inherit_name = yes
		unlocks_agenda = agenda_confidence_in_variance
		trigger = {
			is_gestalt = yes
		}
		modifier = {
			pop_amenities_usage_no_happiness_mult = -0.15
		}
		weight = {
			factor = 1
		}
	}
}

tr_domination_finish = {
	modifier = {
		empire_size_pops_mult = -0.05
		ascension_perks_add = 1
	}

	tradition_swap = {
		name = tr_domination_federations_finish
		inherit_icon = yes
		inherit_name = yes
		custom_tooltip = tr_domination_federations_finish_desc
		trigger = {
			has_federations_dlc = yes
			is_wilderness_empire = no
		}
		modifier = {
			empire_size_pops_mult = -0.05
			ascension_perks_add = 1
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		inherit_icon = yes
		name = tr_domination_federations_wilderness_finish
		inherit_effects = no
		custom_tooltip = tr_domination_finish_wilderness_desc
		trigger = {
			is_wilderness_empire = yes
			has_federations_dlc = yes
		}
		modifier = {
			empire_size_districts_mult = -0.05
			ascension_perks_add = 1
		}
	}

	tradition_swap = {
		inherit_icon = yes
		inherit_name = yes
		inherit_effects = no
		trigger = {
			is_wilderness_empire = yes
			has_federations_dlc = no
		}
		modifier = {
			empire_size_districts_mult = -0.05
			ascension_perks_add = 1
		}
	}
}

tr_domination_colonial_viceroys = {
	modifier = {
		country_traditions_influence_produces_add = 0.5
		country_official_cap_add = 1
		official_initial_skill = 1
	}

	tradition_swap = {
		name = tr_domination_colonial_viceroys_machine
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_machine_empire = yes
		}

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_colonial_viceroys_hive
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 1000
	}
}

tr_domination_imperious_architecture = {
	# Effects implemented in inline_scripts\buildings\on_all_capital_buildings.txt
	custom_tooltip = tr_domination_imperious_architecture_desc

	tradition_swap = {
		name = tr_domination_imperious_architecture_worker_coop
		custom_tooltip = tr_domination_imperious_architecture_worker_coop_desc
		inherit_icon = yes
		trigger = {
			is_worker_coop_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_synaptic_extensions
		custom_tooltip = tr_domination_synaptic_extensions_desc
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
			is_wilderness_empire = no
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_imperious_architecture_wilderness
		custom_tooltip = tr_domination_imperious_architecture_wilderness_desc
		inherit_icon = yes
		trigger = {
			is_wilderness_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_modular_depot
		inherit_icon = yes
		trigger = {
			is_machine_empire = yes
		}
		modifier = {
			empire_size_districts_mult = -0.15
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 10
	}
}

tr_domination_grand_council = {
	possible = {
		has_tradition = tr_domination_imperious_architecture
		has_tradition = tr_domination_colonial_viceroys
	}

	modifier = {
		councilor_exp_gain = 0.2
		country_edict_fund_add = 50
	}

	tradition_swap = {
		name = tr_domination_multi_thread
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_machine_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_synaptic_network
		inherit_effects = yes
		inherit_icon = yes
		trigger = {
			is_hive_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 10
	}
}

tr_domination_judgment_corps = {

	custom_tooltip_with_modifiers = tr_domination_judgment_corps_desc
	modifier = {
		planet_enforcers_unity_produces_add = 1
	}

	triggered_modifier = {
		potential = {
			has_psi_corps_tradition = yes
		}
		planet_telepaths_unity_produces_add = 0.5
	}

	tradition_swap = {
		name = tr_domination_trust_officers
		inherit_effects = yes
		inherit_icon = yes
		custom_tooltip = tr_domination_trust_officers_desc
		trigger = {
			is_regular_empire = yes
			OR = {
				is_egalitarian = yes
				AND = {
					is_authoritarian = no
					is_xenophobe = no
				}
			}
		}
		weight = {
			factor = 1
		}
	}

	# effect implemented in jobs file

	tradition_swap = {
		name = tr_domination_deviancy_protocols
		trigger = {
			is_machine_empire = yes
		}
		modifier = {
			planet_crime_no_happiness_add = -10
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_domination_divergence_supression
		trigger = {
			is_hive_empire = yes
		}
		modifier = {
			planet_crime_no_happiness_add = -10
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 10
	}
}

tr_domination_workplace_motivators = {
	possible = {
		has_tradition = tr_domination_judgment_corps
	}

	custom_tooltip_with_modifiers = tr_domination_workplace_motivators_desc
	modifier = {
		planet_jobs_worker_produces_mult = 0.05
		pop_slave_bonus_workforce_mult = 0.05
	}

	tradition_swap = {
		name = tr_domination_drone_network
		trigger = {
			is_gestalt = yes
			is_wilderness_empire = no
		}
		custom_tooltip_with_modifiers = tr_domination_drone_network_desc
		modifier = {
			planet_jobs_simple_drone_produces_mult = 0.05
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = "tr_domination_wilderness_network"
		inherit_effects = no
		inherit_icon = yes

		trigger = {
			is_wilderness_empire = yes
		}
		custom_tooltip_with_modifiers = tr_domination_wilderness_network_effect
		modifier = {
			planet_jobs_simple_drone_produces_mult = 0.05
		}
	}

	ai_weight = {
		factor = 10
	}
}
