tr_est_subminds_adopt = {
	unlocks_agenda = agenda_est_subminds
	modifier = {
		empire_size_districts_mult =  -0.20
	}
}

tr_est_subminds_finish = {
	modifier = {	
		leaders_upkeep_mult = -0.15
		country_leader_pool_size = 2
		ascension_perks_add = 1
	}
}


tr_est_subminds_1 = {	
	modifier = {
		leaders_cost_mult = -0.20
		leader_officials_cost_mult = -0.30
	}

	ai_weight = { factor = 5000 }
}

tr_est_subminds_2 = {
	possible = { has_tradition = tr_est_subminds_1 }

	modifier = {
		empire_size_pops_mult = -0.15
	}

	modifier = {
		country_base_influence_produces_add = 1.0
	}

	ai_weight = { factor = 5000 }
}

tr_est_subminds_3 = {
	custom_tooltip = tr_est_subminds_3_desc

	possible = { has_tradition = tr_est_subminds_2 }

	on_enabled = {
		if = {
			limit = {
				Not = {
					has_global_flag = est_subminds_3_picked_flag
				}
			}
			set_global_flag = est_subminds_3_picked_flag
		}
	}
	
	tradition_swap = {
		custom_tooltip = tr_est_subminds_3_machines_desc
	
		name = tr_est_subminds_3_machines
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			NOR = {
				is_hive_empire = yes
				has_civic = civic_machine_servitor
			}
			is_ai = no
		}	
		on_enabled = {
			if = {
				limit = {
					Not = { has_global_flag = est_subminds_3_picked_flag }
				}
				set_global_flag = est_subminds_3_picked_flag
			}
		}
		weight = { factor = 1 }
	}
	
	tradition_swap = {
		name = tr_est_subminds_3_AI
		inherit_icon = yes
		inherit_name = yes
		trigger = { is_ai = yes }	
		modifier = {
			planet_jobs_energy_produces_mult = 0.05
			planet_jobs_minerals_produces_mult = 0.05
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_subminds_4 = {
	custom_tooltip = tr_est_subminds_4_desc

	possible = { has_tradition = tr_est_subminds_1 }

	modifier = {
		planet_jobs_minerals_produces_mult = 0.05
		army_damage_mult = 0.10
		planet_building_build_speed_mult = 0.15
	}
	
	tradition_swap = {
		name = tr_est_subminds_4_machines
		inherit_icon = yes
		inherit_name = yes
		trigger = { is_machine_empire = yes }	
		modifier = {
			planet_jobs_minerals_produces_mult = 0.05
			army_damage_mult = 0.10
			planet_building_build_speed_mult = 0.15
		}
		weight = { factor = 1 }
	}

	ai_weight = { factor = 5000 }
}

tr_est_subminds_5 = {
#	custom_tooltip = tr_est_subminds_5_desc

	possible = { has_tradition = tr_est_subminds_1 }
	
	modifier = {
#		starbase_outpost_upkeep_mult = -0.5 #(Ben_D): Depricated by Paradox
		starbases_upkeep_mult = -0.2 #(Ben_D): Added
		stations_upkeep_mult = -0.1 #(Ben_D): Added
	}

	ai_weight = { factor = 5000 }
}