tr_synchronicity_adopt = {
	custom_tooltip_with_modifiers = tr_synchronicity_adopt_bt_desc
	triggered_modifier = {
		potential = {
			is_wilderness_empire = no
			is_homicidal = no
		}
		planet_pops_upkeep_mult = -0.15
		refugee_attraction = 0.3
	}
	triggered_modifier = {
		potential = {
			is_wilderness_empire = no
			is_homicidal = yes
		}
		pop_cat_purge_bonus_workforce_mult = 0.25
		refugee_attraction = -0.5
	}
	triggered_modifier = {
		potential = {
			is_wilderness_empire = yes
			is_homicidal = no
		}
		planet_districts_upkeep_mult = -0.25
		refugee_attraction = 0.25
	}
	triggered_modifier = {
		potential = {
			is_wilderness_empire = yes
			is_homicidal = yes
		}
		planet_districts_upkeep_mult = -0.15
		pop_cat_purge_bonus_workforce_mult = 0.15
		refugee_attraction = -0.5
	}
}

tr_synchronicity_finish = {
	modifier = {
		planetary_ascension_effect_mult = 0.2
		planetary_ascension_cost_mult = -0.1
		ascension_perks_add = 1
	}

	tradition_swap = {
		name = tr_synchronicity_machine_finish
		custom_tooltip_with_modifiers = tr_synchronicity_machine_finish_desc1
		inherit_icon = yes
		inherit_name = yes
		trigger = {
			is_machine_empire = yes
		}
		modifier = { #also gain access to an edict
			planetary_ascension_effect_mult = 0.2
			planetary_ascension_cost_mult = -0.1
			ascension_perks_add = 1
		}
		weight = {
			factor = 1
		}
	}
}

tr_synchronicity_integrated_preservation = {

	tradition_swap = {
		name = tr_synchronicity_instinctive_synchronization
		custom_tooltip_with_modifiers = tr_synchronicity_instinctive_synchronization_desc
		inherit_icon = yes
		inherit_effects = no					   
		trigger = {
			is_hive_empire = yes
			is_wilderness_empire = no			
		}
		modifier = {
			planet_maintenance_drones_trade_produces_add = 0.5
			planet_resettlement_unemployed_mult = 0.25
		}
		weight = {
			factor = 1
		}
	}
	custom_tooltip_with_modifiers = tr_synchronicity_instinctive_synchronization_desc
	modifier = {
		planet_resettlement_unemployed_mult = 0.5
		pop_cat_maintenance_drone_bonus_workforce_mult = 0.05
	}
	tradition_swap = {
		custom_tooltip_with_modifiers = tr_synchronicity_instinctive_synchronization_desc
		inherit_icon = yes
		inherit_effects = no		
		trigger = {
			is_hive_empire = yes
			is_wilderness_empire = yes
		}
		modifier = {
			planet_traders_produces_mult = 0.15
		}
		weight = {
			factor = 1
		}
	}
	ai_weight = {
		factor = 1000
	}
}

tr_synchronicity_harmonious_directives = {
	modifier = {
		country_edict_fund_add = 50
		country_edict_fund_mult = 0.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
			country_edict_fund_mult = 0.1
		}

		weight = {
			factor = 1
		}
	}

	ai_weight = {
		factor = 5000
	}
}

tr_synchronicity_collective_reasoning = {
	possible = {
		has_tradition = tr_synchronicity_integrated_preservation
	}

	modifier = {
		planet_stability_add = 2.5
		planet_jobs_unity_produces_mult = 0.05
	}

	ai_weight = {
		factor = 5000
	}
}

tr_synchronicity_kinship_gestalt = {
	possible = {
		has_tradition = tr_synchronicity_harmonious_directives
		has_tradition = tr_synchronicity_cloned_organs
	}
	modifier = {
		empire_size_pops_mult = -0.05
		planet_amenities_no_happiness_mult = 0.05
	}

	tradition_swap = {
		name = tr_synchronicity_kinship_wilderness
		inherit_icon = yes
		trigger = {
			is_wilderness_empire = yes
		}
		modifier = {
			empire_size_districts_mult = -0.25
		}
	}

	ai_weight = {
		factor = 1000
	}
}

tr_synchronicity_cloned_organs = {
	modifier = {
		leader_lifespan_add = 10
		negative_traits_country = -1
		restored_node_bonus_skill = 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
		}
	}
}
