trait_extsynth_synthetic = {
	cost = 0
	sorting_priority = 10
	initial = no
	randomized = no
	improves_leaders = yes
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}

	icon = "gfx/interface/icons/traits/trait_robotic_3.dds"
	allowed_archetypes = { EXTSYNTH MACHINE }
#	custom_tooltip_with_modifiers = EXTSYNTH_START_AT_3
#	custom_tooltip = trait_extsynth_synthetic_effect

	modifier = {
#		pop_category_robot_rulers_nanites_produces_add = 0.02
#		pop_category_robot_specialists_nanites_produces_add = 0.02
#		pop_category_robot_workers_nanites_produces_add = 0.02
	}
	
	slave_cost = {
		energy = 1000
	}
}

leader_trait_extsynth_psionic_synth = {
	is_councilor_trait_for_ruler = yes
	inline_script = {
		script = trait/icon_psionic
		CLASS = leader
		ICON = "GFX_leader_trait_synthetic"
		RARITY = common
		COUNCIL = triggered
		TIER = none
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = admiral
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		ship_fire_rate_mult = 0.10
		ship_armor_hardening_add = 0.10
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = general
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		army_damage_mult = 0.05
		army_collateral_damage_mult = 0.10
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = scientist
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		ship_anomaly_research_speed_mult = 0.15
	}
	triggered_self_modifier = {
		potential = {
			is_ruler = no
			leader_class = scientist
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		leader_scientists_physics_research_produces_add = 2.5
		leader_scientists_society_research_produces_add = 2.5
		leader_scientists_engineering_research_produces_add = 2.5
		mult = trigger:has_total_skill
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = governor
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		planet_jobs_worker_produces_mult = 0.05
	}
	triggered_modifier = {
		potential = {
			is_ruler = yes
			OR = {
				has_trait = leader_trait_psionic
				has_trait = leader_trait_chosen
				has_trait = leader_trait_eater_chosen
				has_trait = leader_trait_composer_chosen
				has_trait = leader_trait_instrument_chosen
				has_trait = leader_trait_whisperers_chosen
			}	
		}
		planet_pop_assembly_add = 1
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = admiral
			has_trait = leader_trait_synthetic
		}
		ship_weapon_damage = 0.1
		ship_shield_hardening_add = 0.10
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = general
			has_trait = leader_trait_synthetic
		}
		army_morale = 0.15
		army_morale_damage_mult = 0.15
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = scientist
			has_trait = leader_trait_synthetic
		}
		science_ship_survey_speed = 0.25
		ship_archaeological_site_clues_add = 1
	}
	triggered_self_modifier = {
		potential = {
			is_ruler = no
			leader_class = scientist
			has_trait = leader_trait_synthetic
		}
		leader_scientists_physics_research_produces_add = 2.5
		leader_scientists_society_research_produces_add = 3.334
		leader_scientists_engineering_research_produces_add = 2.5
		mult = trigger:has_total_skill
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = governor
			has_trait = leader_trait_synthetic
		}
		planet_jobs_unity_produces_mult = 0.10
	}
	triggered_modifier = {
		potential = {
			is_ruler = yes
			has_trait = leader_trait_synthetic
		}
		pop_government_ethic_attraction = 0.10
		country_ruler_influence_produces_add = 0.5
		category_psionics_research_speed_mult = 0.10
	}
	leader_class = { admiral scientist general governor }
	opposites = {
		leader_trait_cyborg
	}
	initial = no
	randomized = no
	notify_on_gained = no
}