@cost = 56

tr_plentiful_faith_adopt = {
#	cost = { unity = @cost }
	custom_tooltip_with_modifiers = tr_plentiful_faith_adopt_desc
	modifier = {
#		pop_government_ethic_attraction = 0.15
	}
	
	tradition_swap = {
		name = tr_plentiful_faith_adopt_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			OR = {
				has_authority = auth_machine_intelligence
				has_authority = auth_hive_mind
			}
		}
# Event
		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 10
		modifier = {
			factor = 2
			has_ethic = ethic_spiritualist
		}
		modifier = {
			factor = 3
			has_ethic = ethic_fanatic_spiritualist
		}			
	}
}

tr_plentiful_faith_finish = {
	modifier = {
# temple
		country_base_influence_produces_add = 1
		ascension_perks_add = 1
	}
	
	tradition_swap = {
		name = tr_plentiful_faith_finish_machine
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			OR = {
				has_authority = auth_machine_intelligence
				has_authority = auth_hive_mind
			}
		}
		
		modifier = {
			country_base_influence_produces_add = 1
			ascension_perks_add = 1
		}
		
		weight = {
			factor = 1
		}
	}
}

tr_plentiful_faith_1 = {
#	cost = { unity = @cost }
	modifier = {
		planet_sensor_range_add = 2
		ship_sensor_range_add = 2
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_faith_2 = {
#	cost = { unity = @cost }
	possible = {
		has_tradition = tr_plentiful_faith_3
	}
	modifier = {
		country_edict_fund_add = 50
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_faith_3 = {
#	cost = { unity = @cost }
	
	modifier = {
		edicts_cost_mult = -0.15
		edicts_upkeep_mult = -0.15
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_faith_4 = {
#	cost = { unity = @cost }
	custom_tooltip_with_modifiers = tr_plentiful_faith_4_desc
	possible = {
		has_tradition = tr_plentiful_faith_1
		has_tradition = tr_plentiful_faith_5
	}
	modifier = {
		planet_jobs_minerals_produces_mult = 0.1
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_plentiful_faith_5 = {
#	cost = { unity = @cost }
	modifier = {
		defensive_war_influence_gain_add = 0.5
	}
	
	ai_weight = {
		factor = 1000
	}
}

