@cost = 56

tr_supremacy_adopt = {
	cost = { unity = @cost }
	modifier = {
		country_border_mult = 0.20
	}

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

		modifier = {
			country_border_mult = 0.20
		}

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_adopt_hive
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		modifier = {
			country_border_mult = 0.20
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 10
		modifier = {
			factor = 2
			has_ethic = ethic_militarist
		}
		modifier = {
			factor = 3
			has_ethic = ethic_fanatic_militarist
		}	
		modifier = {
			factor = 2
			has_ethic = ethic_xenophobe
		}
		modifier = {
			factor = 3
			has_ethic = ethic_fanatic_xenophobe
		}		
	}
}

tr_supremacy_finish = {
	modifier = {
		ship_fire_rate_mult = 0.15
		ascension_perks_add = 1
	}

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

		modifier = {
			ship_fire_rate_mult = 0.15
			ascension_perks_add = 1
		}

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_finish_hive
		inherit_effects = no
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		modifier = {
			ship_fire_rate_mult = 0.15
			ascension_perks_add = 1
		}

		weight = {
			factor = 1
		}
	}
}

tr_supremacy_great_game = {
	cost = { unity = @cost }
	possible = {
		has_tradition = tr_supremacy_overwhelming_force
		has_tradition = tr_supremacy_right_of_conquest
	}
	
	#implementation in the "should_apply_neighbor_rival_modifier" game rule

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

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_great_game_hive
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_supremacy_right_of_conquest = {
	cost = { unity = @cost }

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

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_right_of_conquest_hive
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_supremacy_master_shipwrights = {
	cost = { unity = @cost }
	modifier = {
		navy_size_mult = 0.2		
	}

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

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_master_shipwrights_hive
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_supremacy_war_games = {
	cost = { unity = @cost }
	possible = {
		has_tradition = tr_supremacy_master_shipwrights
		has_tradition = tr_supremacy_right_of_conquest
	}
	modifier = {
		admiral_skill_levels = 2
	}

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

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_war_games_hive
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}

tr_supremacy_overwhelming_force = {
	cost = { unity = @cost }
	
	modifier = {
		army_damage_mult = 0.25
	}

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

		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_supremacy_overwhelming_force_hive
		inherit_effects = yes
		inherit_icon = yes
		inherit_name = no
		trigger = {
			has_authority = auth_hive_mind
		}

		weight = {
			factor = 1
		}
	}
	
	ai_weight = {
		factor = 1000
	}
}
