#@cost = 56

tr_plentiful_mysticism_adopt = {
#	cost = { unity = @cost }
	on_enabled = {
		give_technology = { message = no tech = tech_plentiful_traditions_orbital_c_r_s }
	}
	modifier = {
		species_leader_exp_gain = 0.2
	}
	name = tr_plentiful_mysticism_finish_machine
	
	tradition_swap = {
		name = tr_plentiful_mysticism_adopt
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}
		on_enabled = {
			give_technology = { message = no tech = tech_plentiful_traditions_orbital_c_r_s }
		}
		
		modifier = {
			species_leader_exp_gain = 0.2
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 5
		modifier = {
			factor = 1
			has_ethic = ethic_pacifist
		}
		modifier = {
			factor = 2
			has_ethic = ethic_fanatic_pacifist
		}
		modifier = {
			factor = 2
			has_ethic = ethic_spiritualist
		}
		modifier = {
			factor = 3
			has_ethic = ethic_fanatic_spiritualist
		}
	}
}

tr_plentiful_mysticism_finish = {
	modifier = {
		ascension_perks_add = 1
	}
# Unity pedict
	tradition_swap = {
		name = tr_plentiful_mysticism_finish_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}
		
		modifier = {
			ascension_perks_add = 1
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_mysticism_1 = {
#	cost = { unity = @cost }
	modifier = {
		leader_age = 20
	}
#Obelisk1
		custom_tooltip_with_modifiers = tr_plentiful_mysticism_1_desc
	ai_weight = {
		factor = 1000
	}
	
	tradition_swap = {
		name = tr_plentiful_mysticism_1_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}

		modifier = {
			category_field_manipulation_research_speed_mult = 0.2
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_mysticism_2 = {
#	cost = { unity = @cost }
	modifier = {
		planet_structures_cost_mult = -0.1
	}
#Obelisk2
		custom_tooltip_with_modifiers = tr_plentiful_mysticism_2_desc
	ai_weight = {
		factor = 1000
	}

	tradition_swap = {
		name = tr_plentiful_mysticism_2_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}

		modifier = {
			planet_structures_cost_mult = -0.1
			shipclass_research_station_build_cost_mult = -0.33
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_mysticism_3 = {
#	cost = { unity = @cost }
	modifier = {
		pc_nuked_habitability = 0.05
	}
#Obelisk3
		custom_tooltip_with_modifiers = tr_plentiful_mysticism_3_desc
	ai_weight = {
		factor = 1000
	}
	
	tradition_swap = {
		name = tr_plentiful_mysticism_3_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}

		modifier = {
			leaders_upkeep_mult = -0.25
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_mysticism_4 = {
#	cost = { unity = @cost }
	possible = {
		has_tradition = tr_plentiful_mysticism_1
		has_tradition = tr_plentiful_mysticism_2
		has_tradition = tr_plentiful_mysticism_3
	}
	modifier = {
		country_unity_produces_mult = 0.05
		damage_vs_country_type_drone_mult = 0.15
	}
	
	tradition_swap = {
		name = tr_plentiful_mysticism_4_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}

		modifier = {
			country_unity_produces_mult = 0.05
			damage_vs_country_type_drone_mult = 0.15
		}
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_mysticism_5 = {
#	cost = { unity = @cost }
	possible = {
		has_tradition = tr_plentiful_mysticism_4
	}
	modifier = {
	damage_vs_country_type_ai_empire_mult = 0.15
	custom_tooltip_with_modifiers = tr_plentiful_mysticism_5_desc
#Sanctum of Keys/Collective
	}
	
	tradition_swap = {
		name = tr_plentiful_mysticism_5_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_machine_intelligence
		}
		
		modifier = {
			damage_vs_country_type_ai_empire_mult = 0.15
		}
		custom_tooltip_with_modifiers = tr_plentiful_mysticism_5_machine_desc
		
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}
