tr_est_order_adopt = {
	modifier = {
		pop_resettlement_cost_mult = -0.20
	}
	
	tradition_swap = {
		name = tr_est_order_adopt_egali
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			Or = {
				has_policy_flag = resettlement_not_allowed
				has_ethic = ethic_fanatic_egalitarian
				has_ethic = ethic_egalitarian
			}
		}
		modifier = {
			pop_government_ethic_attraction = 0.15
		}
		weight = { factor = 1 }
	}
}

tr_est_order_finish = {
	modifier = {	
		planet_pops_consumer_goods_upkeep_mult = -0.10
		pop_housing_usage_mult = -0.10
		ascension_perks_add = 1
	}
}


tr_est_order_1 = {
	custom_tooltip = tr_est_order_1_desc

	on_enabled = {
		every_pop_faction = {
			if = {
				limit = {
					has_modifier = suppressed_faction
				}
				add_modifier = {
					modifier = "mod_est_order_1_faction"
				}
				owner = {
					country_event = {
						id = est_order.2
					}
				}
			}
		}
	}
	
	modifier = {
		pop_government_ethic_attraction = 0.05
	}

	tradition_swap = {
		name = tr_est_order_1_AI
		trigger = {
			NOR = {
				has_ethic = ethic_fanatic_egalitarian
				has_ethic = ethic_egalitarian
				has_ethic = ethic_gestalt_consciousness
			}
			is_ai = yes
		}
		modifier = {
			pop_government_ethic_attraction = 0.10
			country_base_influence_produces_add = 0.5
		}
		weight = { factor = 1 }
	}

	tradition_swap = {
		name = tr_est_order_1_egali
		trigger = {
			OR = {
				has_ethic = ethic_fanatic_egalitarian
				has_ethic = ethic_egalitarian
			}
		}
		modifier = {
			planet_crime_mult = -0.10
			pop_ethic_egalitarian_attraction_mult = 0.15
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_order_2 = {
	custom_tooltip = tr_est_order_2_desc

	possible = { has_tradition = tr_est_order_1 }
	
	on_enabled = {
		every_pop_faction = {
			add_modifier = {
				modifier = "mod_est_order_2"
			}
		}
	}

	tradition_swap = {
		custom_tooltip = tr_est_order_2_egali_desc
	
		name = tr_est_order_2_egali
		trigger = {
			OR = {
				has_ethic = ethic_fanatic_egalitarian
				has_ethic = ethic_egalitarian
			}
		}
		on_enabled = {
			every_pop_faction = {
				add_modifier = {
					modifier = "mod_est_order_2_egali"
				}
			}
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_order_3 = {
	modifier = {
		planet_jobs_worker_food_produces_mult = 0.15
		planet_jobs_worker_minerals_produces_mult = 0.15
	}

	tradition_swap = {
		custom_tooltip = tr_est_order_3_slavery_desc
	
		name = tr_est_order_3_slavery
		inherit_icon = yes
		inherit_name = yes
		trigger = { has_policy_flag = slavery_allowed }
		modifier = {
			planet_jobs_slave_food_produces_mult = 0.15
			planet_jobs_slave_minerals_produces_mult = 0.15
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_order_4 = {
	possible = { has_tradition = tr_est_order_3 }
	
	modifier = { planet_jobs_upkeep_mult = -0.10 }

	tradition_swap = {
		name = tr_est_order_4_auth
		trigger = {
			OR = {
				has_ethic = ethic_fanatic_authoritarian
				has_ethic = ethic_authoritarian
			}
		}
		modifier = {
			pop_growth_speed = 0.20
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_order_5 = {
	modifier = {
		job_enforcer_per_pop = 0.02857
	}
	
	tradition_swap = {
		name = tr_est_order_5_egali
		trigger = {
			OR = {
				has_ethic = ethic_fanatic_egalitarian
				has_ethic = ethic_egalitarian
			}
		}
		modifier = {
			pop_cat_worker_happiness = 0.10
			country_naval_cap_mult = 0.10	
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}