tr_est_industry_adopt = {
	custom_tooltip = tr_est_industry_adopt_robots_desc
	unlocks_agenda = agenda_est_industry

	modifier = {
		district_mining_max_add = 2
	}
	
	tradition_swap = {
		custom_tooltip = tr_est_industry_adopt_robots_desc
		name = tr_est_industry_adopt_robots
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			est_uses_robots = yes
			has_technology = tech_robomodding
		}
		modifier = {
			district_mining_max_add = 2
		}
		weight = { factor = 1 }
	}
	tradition_swap = {
		name = tr_est_industry_adopt_no_robots
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			has_policy_flag = robots_outlawed
		}
		modifier = {
			district_mining_max_add = 2
		}
		weight = { factor = 1 }
	}
	
	tradition_swap = {
		name = tr_est_industry_adopt_hive
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_hive_empire = yes
		}
		modifier = {
			district_mining_max_add = 2
		}
		weight = { factor = 1 }
	}

	tradition_swap = {
		custom_tooltip = tr_est_industry_adopt_machines_desc
	
		name = tr_est_industry_adopt_machines
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_machine_empire = yes
		}
		modifier = {
			district_mining_max_add = 2
		}
		weight = { factor = 1 }
	}
}

tr_est_industry_finish = {
	modifier = {
		planet_metallurgists_upkeep_mult = -0.25
		planet_artisans_upkeep_mult = -0.25
		ascension_perks_add = 1
	}
	
	tradition_swap = {
		name = tr_est_industry_finish_GC
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			has_ethic = ethic_gestalt_consciousness
		}
		modifier = {
			planet_metallurgists_upkeep_mult = -0.25
			planet_artisans_upkeep_mult = -0.25
			ascension_perks_add = 1
		}
		weight = { factor = 1 }
	}
}


tr_est_industry_1 = {
	modifier = {
		station_gatherers_minerals_produces_mult = 0.20
	}
	
	ai_weight = { factor = 2000 }
}

tr_est_industry_2 = {
	custom_tooltip = tr_est_industry_2_desc

	possible = { has_tradition = tr_est_industry_1 }
	
	modifier = {
		category_industry_research_speed_mult = 0.15
	}
	
	ai_weight = { factor = 3000 }
}

tr_est_industry_3 = {
	custom_tooltip = tr_est_industry_3_desc

	possible = { has_tradition = tr_est_industry_2 }	
	
	ai_weight = { factor = 4000 }
}

tr_est_industry_4 = {
	modifier = { 
		starbase_shipyard_build_speed_mult = 0.1
		planet_building_build_speed_mult = 0.20
	}

	tradition_swap = {
		name = tr_est_industry_4_robots
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			OR = {
				est_uses_robots = yes
				is_machine_empire = yes
			}

		}
		modifier = {
			planet_building_build_speed_mult = 0.1
			planet_pop_assembly_mult = 0.20
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = { factor = 1000 }
}

tr_est_industry_5 = {
	custom_tooltip = tr_est_industry_5_desc

	possible = {
		has_tradition = tr_est_industry_3
		has_tradition = tr_est_industry_4
	}

	tradition_swap = {
		custom_tooltip = tr_est_industry_5_GC_desc
	
		name = tr_est_industry_5_GC
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_hive_empire = yes
			Not = { has_global_flag = esap_mod_in_use }
		}
		weight = { factor = 1 }
	}
	tradition_swap = {
		custom_tooltip = tr_est_industry_5_machines_desc
	
		name = tr_est_industry_5_machines
		inherit_effects = no
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_machine_empire = yes
			Not = { has_global_flag = esap_mod_in_use }
		}
		weight = { factor = 1 }
	}
	tradition_swap = {
		custom_tooltip = tr_est_industry_5_esap_desc
	
		name = tr_est_industry_5_esap
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_global_flag = esap_mod_in_use
			Not = { has_ethic = ethic_gestalt_consciousness }
		}
		modifier = {
			planet_chemists_minerals_upkeep_mult = -0.50
			planet_translucers_minerals_upkeep_mult = -0.50
			planet_refiners_minerals_upkeep_mult = -0.50
		}
		weight = { factor = 1 }
	}
	tradition_swap = {
		custom_tooltip = tr_est_industry_5_esap_GC_desc
	
		name = tr_est_industry_5_esap_GC
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_global_flag = esap_mod_in_use
			has_ethic = ethic_gestalt_consciousness
		}
		modifier = {
			planet_chemists_minerals_upkeep_mult = -0.50
			planet_translucers_minerals_upkeep_mult = -0.50
			planet_refiners_minerals_upkeep_mult = -0.50
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}