############################
# Extreme Frontiers Traits #
############################

leader_trait_altered_metabolism = {
	inline_script = {
		script = trait/icon
		CLASS = leader
		ICON = "GFX_leader_trait_altered_metabolism"
		RARITY = veteran
		COUNCIL = no
		TIER = 3
	}

	leader_class = { scientist }

	self_modifier = {
		leader_lifespan_add = 15
	}

	initial = no
	randomized = no
}

leader_trait_hardened_survivalist = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = leader
		ICON = "GFX_leader_trait_hardened_survivalist"
		RARITY = paragon
		COUNCIL = no
		TIER = none
	}

	leader_class = { scientist }

	self_modifier = {
		leader_lifespan_add = 25
		leader_lifespan_mult = 0.25
		negative_traits_leader = -2
	}

	modifier = {
		science_ship_survey_speed_uninhabitable = 0.25
		ship_anomaly_research_speed_mult_uninhabitable = 0.25
		ship_anomaly_generation_chance_mult_uninhabitable = 0.25
	}

	initial = no
	randomized = no
}

leader_trait_judicial_subjugation = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = leader
		ICON = "GFX_leader_trait_judicial_subjugation"
		RARITY = paragon
		COUNCIL = no
		TIER = none
	}

	leader_class = { official }

	sector_modifier = {
		planet_crime_add = -15
		planet_stability_add = 2
	}
	triggered_sector_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		pop_happiness = -0.05
	}

	planet_modifier = {
		planet_crime_add = -30
		planet_stability_add = 5
	}
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		pop_happiness = -0.10
	}

	initial = no
	randomized = no
}

leader_trait_judicial_execution = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = leader
		ICON = "GFX_leader_trait_judicial_execution"
		RARITY = paragon
		COUNCIL = no
		TIER = none
	}

	leader_class = { commander }

	custom_tooltip = leader_trait_judicial_execution_effect

	initial = no
	randomized = no
}

trait_slimeborn = {
	cost = 0
	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	allowed_archetypes = { BIOLOGICAL }

	modifier = {
		logistic_growth_mult = 0.1
		planet_pops_upkeep_mult = -0.1
	}

	ai_weight = {
		weight = 0
	}
}
