tr_synchronicity_adopt = {
	custom_tooltip = tr_synchronicity_adopt_desc
	triggered_modifier = {
		potential = {
			is_wilderness_empire = no
		}
		planet_pops_upkeep_mult = -0.10
	}
	triggered_modifier = {
		potential = {
			is_wilderness_empire = yes
		}
		planet_districts_upkeep_mult = -0.10
	}
}

tr_synchronicity_finish = {
	modifier = {
		planetary_ascension_effect_mult = 0.25
		ascension_perks_add = 1
	}

	tradition_swap = {
		name = tr_synchronicity_machine_finish
		custom_tooltip = tr_synchronicity_machine_finish_desc
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_machine_empire = yes
		}
		modifier = { #also gain access to an edict
			planetary_ascension_effect_mult = 0.25
			ascension_perks_add = 1
		}
		weight = {
			factor = 1
		}
	}
}

tr_synchronicity_integrated_preservation = {

	tradition_swap = {
		name = tr_synchronicity_instinctive_synchronization
		custom_tooltip = tr_synchronicity_instinctive_synchronization_desc
		inherit_icon = yes
		inherit_effects = yes
		trigger = {
			is_hive_empire = yes
		}
		weight = {
			factor = 1
		}
	}
	custom_tooltip_with_modifiers = tr_synchronicity_instinctive_synchronization_desc
	modifier = {
		planet_resettlement_unemployed_mult = 0.3
	}
	ai_weight = {
		factor = 1000
	}
}

tr_synchronicity_kinship_gestalt = {
	modifier = {
		leaders_upkeep_mult = -0.20
		empire_size_pops_mult = -0.05
		refugee_attraction = 0.20
	}

	tradition_swap = {
		name = tr_synchronicity_kinship_wilderness
		inherit_icon = yes
		inherit_effects = yes
	}

	ai_weight = {
		factor = 1000
	}
}

tr_synchronicity_collective_reasoning = {
	possible = {
		has_tradition = tr_synchronicity_integrated_preservation
	}

	modifier = {
		planet_stability_add = 3
		planetary_ascension_cost_mult = -0.1
	}

	ai_weight = {
		factor = 5000
	}
}

tr_synchronicity_harmonious_directives = {
	possible = {
		has_tradition = tr_synchronicity_kinship_gestalt
		has_tradition = tr_synchronicity_cloned_organs
	}

	modifier = {
		country_edict_fund_add = 50
		restored_node_bonus_skill = 1
	}

	tradition_swap = {
		name = tr_synchronicity_harmonious_directives_machine
		inherit_effects = no
		inherit_icon = yes
		trigger = {
			is_machine_empire = yes
		}

		modifier = {
			country_edict_fund_add = 50
			restored_node_bonus_skill = 1
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_synchronicity_cloned_organs = {
	modifier = {
		leader_lifespan_add = 10
		negative_traits_country = -1
	}

	tradition_swap = {
		name = tr_synchronicity_self_preservation
		inherit_effects = yes
		trigger = {
			is_machine_empire = yes
		}
		weight = {
			factor = 1
		}
	}

	tradition_swap = {
		name = tr_synchronicity_unity_of_mind
		# gain unity per pop necrophaged
		custom_tooltip = tr_synchronicity_unity_of_mind_desc
		trigger = {
			has_origin = origin_necrophage
		}
		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 1000
		modifier = {
			factor = 10
			has_origin = origin_necrophage
		}
	}
}
