

####################
# Brainslug Trait #
####################

leader_trait_brainslug = {
	inline_script = {
		script = trait/icon
		ICON = "GFX_leader_trait_brainslug"
		RARITY = common
		COUNCIL = triggered
		TIER = none
	}
	triggered_fleet_modifier = {
		potential = {
			is_ruler = no
			leader_class = commander
		}
		ship_fire_rate_mult = 0.05
		ship_evasion_mult = 0.05
	}
	triggered_modifier = {
		potential = {
			is_ruler = no
			leader_class = scientist
		}
		science_ship_survey_speed = 0.10
		ship_anomaly_research_speed_mult = 0.10
	}
	triggered_army_modifier = {
		potential = {
			is_ruler = no
			leader_class = commander
		}
		armies_upkeep_mult = -0.15
	}
	triggered_planet_modifier = {
		potential = {
			is_ruler = no
			leader_class = official
		}
		planet_building_build_speed_mult = 0.10
	}
	triggered_sector_modifier = {
		potential = {
			is_ruler = no
			leader_class = official
		}
		planet_building_build_speed_mult = 0.05
	}
	triggered_councilor_modifier = {
		potential = {
			is_ruler = yes
		}
		council_agenda_progress_speed = 0.10
		councilor_exp_gain = 0.15
	}
	self_modifier = {
		councilor_exp_gain = 0.15
		leader_trait_selection_options_add = 1
	}
	initial = no
	randomized = no

	leader_class = { commander official scientist }

	ai_weight = {
		weight = 0
	}
}

#####################
# Commander Traits	#
#####################

leader_trait_admiral_hells_heart = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = commander
		ICON = "GFX_leader_trait_hells_heart"
		RARITY = paragon
		COUNCIL = no
		TIER = none
	}
	fleet_modifier = {
		ship_fire_rate_mult = 0.10
		ship_weapon_damage = 0.10
		ship_speed_mult = 0.10
		ship_evasion_mult = -0.05
		ship_disengage_chance_mult = -0.33
	}
	custom_tooltip_with_modifiers = hells_heart_effect
	initial = no
	randomized = no

	leader_class = { commander }

	ai_weight = {
		weight = 0
	}
}

leader_trait_admiral_warform = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = commander
		ICON =  "GFX_leader_trait_warform"
		RARITY = paragon
		COUNCIL = yes
		TIER = none
	}
	councilor_modifier = {
		ship_armor_regen_add_perc = 0.05
		ship_armor_hardening_add = 0.15
		ship_sensor_range_add = 1
		ship_hyperlane_range_add = 2
	}
	initial = no
	randomized = no
	immortal_leaders = yes

	leader_class = { commander }

	ai_weight = {
		weight = 0
	}
}

leader_trait_admiral_warform_node = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = commander
		ICON =  "GFX_leader_trait_warform"
		RARITY = paragon
		COUNCIL = yes
		TIER = none
	}
	councilor_modifier = {
		ship_armor_regen_add_perc = 0.05
		ship_armor_hardening_add = 0.15
		ship_sensor_range_add = 1
		ship_hyperlane_range_add = 2
	}
	initial = no
	randomized = no
	immortal_leaders = yes

	leader_class = { commander }

	ai_weight = {
		weight = 0
	}
}

###################
# Official Traits #
###################

leader_trait_governor_gray = {
	cost = 0
	inline_script = {
		script = trait/icon_psionic
		CLASS = official
		ICON = "GFX_leader_trait_psionic_chosen_one"
		RARITY = paragon
		COUNCIL = no
		TIER = none
	}
	immortal_leaders = yes
	planet_modifier = {
		planet_buildings_cost_mult = -0.4
		planet_building_build_speed_mult = 0.4
		planet_jobs_energy_produces_mult = 0.15
		planet_jobs_minerals_produces_mult = 0.15
		deposit_blockers_cost_mult = -0.4
		planet_clear_blocker_speed_mult = 0.4
	}
	sector_modifier = {
		planet_buildings_cost_mult = -0.2
		planet_building_build_speed_mult = 0.2
		planet_jobs_energy_produces_mult = 0.075
		planet_jobs_minerals_produces_mult = 0.075
		deposit_blockers_cost_mult = -0.2
		planet_clear_blocker_speed_mult = 0.2
	}
	leader_class = { official }
	initial = no
	randomized = no
}

leader_trait_govenor_caretaker = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = official
		ICON =  "GFX_leader_trait_caretaker"
		RARITY = paragon
		COUNCIL = yes
		TIER = none
	}

	triggered_councilor_modifier = {
		potential = { trait_is_gestalt_check = no }
		founder_species_growth_mult = 0.1
	}
	triggered_planet_modifier = {
		potential = { trait_is_gestalt_check = no }
		planet_jobs_consumer_goods_upkeep_mult = -0.10
	}
	triggered_planet_modifier = {
		potential = { trait_is_gestalt_check = yes }
		pop_amenities_usage_no_happiness_mult = -0.10
	}
	triggered_sector_modifier = {
		potential = { trait_is_gestalt_check = no }
		planet_jobs_consumer_goods_upkeep_mult = -0.05
	}
	triggered_sector_modifier = {
		potential = { trait_is_gestalt_check = yes }
		pop_amenities_usage_no_happiness_mult = -0.05
	}
	initial = no
	randomized = no
	immortal_leaders = yes

	leader_class = { official }

	ai_weight = {
		weight = 0
	}
}

leader_trait_govenor_caretaker_node = {
	leader_trait_type = destiny
	inline_script = {
		script = trait/icon
		CLASS = official
		ICON =  "GFX_leader_trait_caretaker"
		RARITY = paragon
		COUNCIL = yes
		TIER = none
	}

	councilor_modifier = {
		founder_species_growth_mult = 0.05
		pop_amenities_usage_no_happiness_mult = -0.05
		all_technology_research_speed = 0.05
	}
	initial = no
	randomized = no
	immortal_leaders = yes

	leader_class = { official }

	ai_weight = {
		weight = 0
	}
}

################
# Pop Traits #
################

trait_brainslug = {
	cost = 0
	icon = "gfx/interface/icons/traits/trait_brainslugged.dds"
	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive pop_output research unity pop_growth special }

	modifier = {
		researcher_jobs_bonus_workforce_mult = 0.10
		bureaucrat_jobs_bonus_workforce_mult = 0.10
		logistic_growth_mult = -0.25
	}
}

trait_nivlac = {
	cost = 2
	icon = "gfx/interface/icons/traits/trait_extremely_adaptive.dds"
	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}

	allowed_archetypes = { BIOLOGICAL }
	tags = { organic positive habitability pop_growth special }

	modifier = {
		pop_environment_tolerance = 0.50
		logistic_growth_mult = 0.15
	}
	slave_cost = {
		trade = 100
	}
}

trait_robot_notofthisworld = {
	cost = 0
	icon = "gfx/interface/icons/traits/trait_notofthisworld.dds"
	initial = no
	randomized = no

	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}

	allowed_archetypes = { ROBOT MACHINE }
	tags = { machine positive production upkeep special }

	custom_tooltip_with_modifiers = TRAIT_NOTOFTHISWORLD_EFFECT
	modifier = {
		planet_pops_upkeep_mult = 0.10
	}

	resources = {
		category = planet_pops
		produces = {
			trigger = {
				is_slave_or_better = yes
			}
			physics_research = 0.5
		}
	}
}

trait_notofthisworld = {
	cost = 0
	icon = "gfx/interface/icons/traits/trait_notofthisworld.dds"
	initial = no
	randomized = no

	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive production upkeep leader special }

	custom_tooltip_with_modifiers = TRAIT_NOTOFTHISWORLD_EFFECT
	modifier = {
		leader_lifespan_add = -10
		planet_pops_upkeep_mult = 0.10
	}

	resources = {
		category = planet_pops
		produces = {
			trigger = {
				is_slave_or_better = yes
			}
			physics_research = 0.5
		}
	}
}
