# species_potential_add = {}
# show the trait to add to species when genemodding or randomizing traits.
# Scopes are this = species, from = country performing the modification.
# default = always=yes

# species_possible_remove = {}
# allow to remove the trait when genemodding.
# Scopes are this = species, from = country performing the modification.
# default = always=yes

trait_hive_mind = {
	cost = 0
	sorting_priority = 20

	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	tags = { organic leader special }

	modifier = {}

	leader_age_min = 10
	leader_age_max = 20

	allowed_archetypes = { BIOLOGICAL LITHOID }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_ruler_hive_mind.dds"
}

trait_machine_unit = {
	cost = 0
	sorting_priority = 20
	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}

	icon = "gfx/interface/icons/traits/trait_machine_unit.dds"
	allowed_archetypes = { MACHINE ROBOT }
	tags = { machine positive habitability leader special }

	immortal_leaders = no

	modifier = {
		pc_machine_habitability = 1
		leader_lifespan_add = 20
		habitability_floor_add = 0.5
	}

	resources = {
		category = planet_pops_traits
		# Energy Upkeep
		upkeep = {
			trigger = {
				is_being_purged = no
				is_sapient = yes
			}
			energy = @living_standard_energy_normal
		}
	}

	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = owner
			owner = {
				has_active_tradition = tr_nanotech_adopt
			}
		}
		pc_nanotech_habitability = 1
	}

	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = planet
			planet = {
				is_planet_class = pc_volcanic
			}
		}
		habitability_floor_add = -0.25
	}

	leader_age_min = 5
	leader_age_max = 10

	custom_tooltip_with_modifiers = TRAIT_MACHINE_UNIT_EFFECT
}

trait_mechanical = {
	cost = 0
	sorting_priority = 20

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

	immortal_leaders = no

	allowed_archetypes = { ROBOT MACHINE}
	tags = { machine positive leader special }

	leader_age_min = 1
	leader_age_max = 10

	custom_tooltip_with_modifiers = TRAIT_MECHANICAL_UNIT_EFFECT

	modifier = {
		pc_machine_habitability = 1
		habitability_floor_add = 0.5
	}

	resources = {
		category = planet_pops_traits
		# Energy Upkeep
		upkeep = {
			trigger = {
				is_being_purged = no
				is_sapient = yes
			}
			energy = @living_standard_energy_normal
		}
	}

	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = planet
			planet = {
				is_planet_class = pc_volcanic
			}
		}
		habitability_floor_add = -0.25
	}
}

trait_syncretic_proles = {
	cost = 1
	opposites = { "trait_intelligent" "trait_erudite" "trait_natural_engineers" "trait_natural_physicists" "trait_natural_sociologists" "trait_machine_unit" "trait_talented" "trait_quick_learners" "trait_slow_learners" "trait_enduring" "trait_venerable" "trait_fleeting" "trait_fleeting_lithoid" "trait_humanoid_jinxed" "trait_decadent" "trait_elevated_synapses" "trait_gene_mentorship" "trait_artificial_intelligence" }
	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		can_remove_presapient_genetic_traits = yes
	}
	species_possible_merge_remove = {
		always = yes
	}
	species_possible_merge_add = {
		always = no
	}
	icon = "gfx/interface/icons/traits/trait_primitive.dds"

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive happiness production blocks_leaders special }

	custom_tooltip_with_modifiers = TRAIT_SYNCRETIC_PROLES_EFFECT
	modifier = {
		pop_happiness = 0.10
		worker_and_simple_drone_cat_bonus_workforce_mult = 0.10
	}
	slave_cost = {
		trade = 500
	}
}

trait_organic = {
	cost = 0
	opposites = { "trait_infernal" }
	sorting_priority = 20

	initial = yes
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	immortal_leaders = no

	allowed_archetypes = { BIOLOGICAL PRESAPIENT }
	tags = { organic positive special }
	ai_weight = {
		weight = 0
	}

	resources = {
		category = planet_pops_traits
		# Food Upkeep
		upkeep = {
			trigger = {
				is_phototrophic = no
				NOT = { has_trait = trait_voidling }
				is_being_purged = no
				is_sapient = yes
			}
			food = @living_standard_food_normal
		}
		upkeep = {
			trigger = {
				is_phototrophic = yes
				NOT = { has_trait = trait_voidling }
				is_being_purged = no
				is_sapient = yes
			}
			food = @living_standard_phototrophic_normal
		}
		upkeep = {
			trigger = {
				has_trait = trait_cybernetic
				is_being_purged = no
				is_sapient = yes
			}
			food = @living_standard_food_cyborg_reduction
		}
	}

	icon = "gfx/interface/icons/traits/trait_organic.dds"

	custom_tooltip_with_modifiers = TRAIT_ORGANIC_EFFECT
}

trait_lithoid = {
	cost = 0

	sorting_priority = 20

	initial = yes
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	immortal_leaders = no

	leader_age_min = 27
	leader_age_max = 38

	allowed_archetypes = { LITHOID PRESAPIENT }
	tags = { organic positive habitability leader army lithoid special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/trait_lithoid.dds"

	resources = {
		category = planet_pops_traits
		# Mineral Upkeep
		upkeep = {
			trigger = {
				is_phototrophic = no
				NOT = { has_trait = trait_voidling }
				is_being_purged = no
				is_sapient = yes
			}
			minerals = @living_standard_food_normal
		}

		upkeep = {
			trigger = {
				is_phototrophic = yes
				NOT = { has_trait = trait_voidling }
				is_being_purged = no
				is_sapient = yes
			}
			minerals = @living_standard_phototrophic_normal
		}
		upkeep = {
			trigger = {
				has_trait = trait_cybernetic
				is_being_purged = no
				is_sapient = yes
			}
			minerals = @living_standard_food_cyborg_reduction
		}
	}

	custom_tooltip_with_modifiers = TRAIT_LITHOID_EFFECT
	modifier = {
		logistic_growth_mult = -0.25
		bonus_pop_growth_mult = -0.25
		pop_environment_tolerance = 0.5
		army_health = 0.5
		leader_lifespan_add = 50
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = planet
			planet = {
				OR = {
					has_modifier = lithoid_crater
					has_deposit = d_lithoid_crater
				}
			}
		}
		pop_environment_tolerance = 0.5
	}
}

trait_aquatic = {
	cost = 2
	host_has_dlc = "Aquatics Species Pack"
	sorting_priority = 20

	random_weight = {
		AQUATIC = 100
		MOL = 10
		HUM = 2
		MAM = 2
		LITHOID = 0.5
	}

	allowed_planet_classes = {
		pc_ocean
	}

	allowed_planet_classes_override = {
		hidden_trigger = {
			can_add_auto_preference_traits = yes
			can_add_or_remove_phenotype_traits = yes
		}
	}

	species_possible_remove = {
		if = {
			limit = {
				exists = from
			}
			if = {
				limit = { NOT = { from = { has_ascension_perk = ap_hydrocentric } } }
				OR = {
					can_remove_beneficial_genetic_traits = yes
					can_add_or_remove_phenotype_traits = yes
				}
			}
			else = {
				custom_tooltip = {
					fail_text = trait_aquatic_remove_hydrocentric
					always = no
				}
			}
		}
	}
	species_potential_add = {
		OR = {
			can_do_advanced_gene_modding = yes
			can_add_or_remove_phenotype_traits = yes
		}
	}
	initial = yes

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive production habitability drawbacks special }

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOR = {
				has_trait = trait_pc_ocean_preference
				has_trait = trait_cyborg_climate_adjustment_wet
			}
		}
	}

	custom_tooltip_with_modifiers = trait_aquatic_tooltip
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
			}
		}
		pop_housing_usage_mult = -0.1
		worker_and_simple_drone_cat_bonus_workforce_mult = 0.1
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
				exists = owner
				owner = { has_ascension_perk = ap_hydrocentric }
			}
		}
		pop_housing_usage_mult = -0.05
		worker_and_simple_drone_cat_bonus_workforce_mult = 0.05
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
				is_ideal = no
			}
		}
		pop_housing_usage_mult = 0.3
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				exists = owner
				owner = { has_ascension_perk = ap_hydrocentric }
				is_ideal = no
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
			}
		}
		pop_housing_usage_mult = 0.15
	}
	# To make it be able to evaluate habitability of planet it has not settled yet. Only applies to this species
	triggered_planet_growth_habitability_modifier = {
		potential = {
			NOR = {
				has_climate = wet
				has_modifier = flooded_habitat
			}
			is_ideal = no
		}
		pop_environment_tolerance = -0.2
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			NOR = {
				has_climate = wet
				has_modifier = flooded_habitat
			}
			is_ideal = no
			exists = owner
			owner = { has_ascension_perk = ap_hydrocentric }
		}
		pop_environment_tolerance = -0.1
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			has_modifier = flooded_habitat
		}
		pop_environment_tolerance = 0.2
	}
	modifier = {
		pc_ocean_habitability = 0.2
	}

	icon = "gfx/interface/icons/traits/trait_aquatic.dds"

	assembly_score = {
		modifier = {
			add = 1
			from = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
			}
		}

		modifier = {
			subtract = 1
			from = {
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
				is_ideal = no
			}
		}
	}
}

trait_robot_aquatic = {
	cost = 2
	host_has_dlc = "Aquatics Species Pack"

	sorting_priority = 20

	allowed_planet_classes = {
		pc_ocean
	}

	species_possible_remove = {
		if = {
			limit = {
				exists = from
			}
			if = {
				limit = { NOT = { from = { has_ascension_perk = ap_hydrocentric } } }
				always = yes
			}
			else = {
				custom_tooltip = {
					fail_text = trait_aquatic_remove_hydrocentric
					always = no
				}
			}
		}
	}
	species_potential_add = {
		always = yes
	}
	initial = yes

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

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			NOT = { has_trait = trait_pc_ocean_preference }
		}
	}

	custom_tooltip_with_modifiers = trait_robot_aquatic_tooltip
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
			}
		}
		pop_housing_usage_mult = -0.1
		worker_and_simple_drone_cat_bonus_workforce_mult = 0.1
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
				exists = owner
				owner = { has_ascension_perk = ap_hydrocentric }
			}
		}
		pop_housing_usage_mult = -0.05
		worker_and_simple_drone_cat_bonus_workforce_mult = 0.05
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
				is_ideal = no
			}
		}
		pop_housing_usage_mult = 0.3
	}
	triggered_pop_group_modifier = {
		potential = {
			exists = planet
			planet = {
				exists = owner
				owner = { has_ascension_perk = ap_hydrocentric }
				is_ideal = no
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
			}
		}
		pop_housing_usage_mult = 0.15
	}
	# To make it be able to evaluate habitability of planet it has not settled yet. Only applies to this species
	triggered_planet_growth_habitability_modifier = {
		potential = {
			NOR = {
				has_climate = wet
				has_modifier = flooded_habitat
			}
			is_ideal = no
		}
		pop_environment_tolerance = -0.2
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			NOR = {
				has_climate = wet
				has_modifier = flooded_habitat
			}
			is_ideal = no
			exists = owner
			owner = { has_ascension_perk = ap_hydrocentric }
		}
		pop_environment_tolerance = -0.1
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			has_modifier = flooded_habitat
		}
		pop_environment_tolerance = 0.2
	}
	modifier = {
		pc_ocean_habitability = 0.2
	}

	icon = "gfx/interface/icons/traits/trait_robot_aquatic.dds"

	assembly_score = {
		modifier = {
			add = 1
			from = {
				OR = {
					is_planet_class = pc_ocean
					has_modifier = flooded_habitat
				}
			}
		}

		modifier = {
			subtract = 1
			from = {
				NOR = {
					has_climate = wet
					has_modifier = flooded_habitat
				}
				is_ideal = no
			}
		}
	}
}

trait_necrophage = {
	cost = 0
	opposites = { "trait_plantoid_budding" "trait_lithoid_budding" "trait_tiyanki" }
	sorting_priority = 20

	initial = no
	randomized = no
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	immortal_leaders = no

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive production leader drawbacks special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/trait_necrophage.dds"

	modifier = {
		leader_lifespan_add = 80
		logistic_growth_mult = -0.5
		bonus_pop_growth_mult = -0.5
		planet_pops_organics_food_upkeep_mult = -0.5
		planet_pops_organics_minerals_upkeep_mult = -0.5
		planet_pops_organics_energy_upkeep_mult = -0.5
		planet_pops_organics_alloys_upkeep_mult = -0.5
		pop_cat_ruler_bonus_workforce_mult = 0.05
		pop_cat_specialist_bonus_workforce_mult = 0.05
		pop_cat_worker_bonus_workforce_mult = -0.1
	}

	custom_tooltip_with_modifiers = trait_necrophage_gestalt_tooltip
}

trait_clone_soldier_infertile = {
	cost = 0
	opposites = { "trait_fertile" "trait_slow_breeders" "trait_rapid_breeders" "trait_clone_soldier_infertile_full_potential" "trait_clone_soldier_fertile" "trait_plantoid_budding" "trait_lithoid_budding" "trait_tiyanki" "trait_humanoid_psychological_infertility" "trait_humanoid_existential_iteroparity" "trait_egg_laying" "trait_incubator" }
	sorting_priority = 20

	initial = no
	randomized = no
	improves_leaders = yes
	species_potential_add = {
		can_add_cloning_traits = yes
		hidden_trigger = {
			exists = from
			from = {
				has_country_flag = clone_army_full_potential
			}
		}
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		can_add_cloning_traits = yes
		hidden_trigger = {
			exists = from
			from = {
				has_country_flag = clone_army_full_potential
			}
		}
	}
	immortal_leaders = no
	infertile = yes

	leader_age_min = 5
	leader_age_max = 20

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive army ethic_attraction drawbacks special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_clone_soldier.dds"

	modifier = {
		# Pop modifiers
		pop_government_ethic_attraction = 0.50

		# Leader modifiers
		leader_lifespan_add = -40
		army_damage_mult = 0.5
		planet_pops_organics_food_upkeep_mult = 0.25
		planet_pops_organics_minerals_upkeep_mult = 0.25
		planet_pops_organics_alloys_upkeep_mult = 0.25
	}
}

trait_clone_soldier_infertile_full_potential = {
	cost = 0
	opposites = { "trait_fertile" "trait_slow_breeders" "trait_rapid_breeders" "trait_clone_soldier_infertile" "trait_clone_soldier_fertile" "trait_plantoid_budding" "trait_lithoid_budding" "trait_tiyanki" "trait_humanoid_psychological_infertility" "trait_humanoid_existential_iteroparity" "trait_egg_laying" "trait_incubator" }
	sorting_priority = 20

	initial = no
	randomized = no
	improves_leaders = yes
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	immortal_leaders = no
	infertile = yes

	leader_age_min = 5
	leader_age_max = 20

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive army ethic_attraction production drawbacks special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_clone_soldier_ascendant.dds"

	modifier = {
		# Pop modifiers
		pop_government_ethic_attraction = 0.50
		pop_environment_tolerance = 0.20
		pop_cat_ruler_bonus_workforce_mult = 0.4
		specialist_and_complex_drone_cat_bonus_workforce_mult = 0.25
		planet_pops_organics_food_upkeep_mult = 0.30
		planet_pops_organics_minerals_upkeep_mult = 0.30
		planet_pops_organics_alloys_upkeep_mult = 0.30

		# Leader modifiers
		army_damage_mult = 0.75
		army_health = 0.25
	}
	slave_cost = {
		trade = 500
	}
}

trait_clone_soldier_fertile = {
	cost = 0
	opposites = { "trait_vat_grown" "trait_clone_soldier_infertile" "trait_clone_soldier_infertile_full_potential" }
	sorting_priority = 20

	initial = no
	randomized = no
	improves_leaders = yes
	species_potential_add = {
		always = no
	}
	species_possible_remove = {
		always = no
	}
	species_possible_merge_add = {
		always = no
	}
	immortal_leaders = no
	infertile = no

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive army ethic_attraction special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_clone_soldier_descendant.dds"

	modifier = {
		# Pop modifiers
		pop_government_ethic_attraction = 0.20

		# Leader modifiers
		army_damage_mult = 0.2
		planet_pops_organics_food_upkeep_mult = 0.1
		planet_pops_organics_minerals_upkeep_mult = 0.1
		planet_pops_organics_alloys_upkeep_mult = 0.1
	}
	slave_cost = {
		trade = 1000
	}
}

trait_cave_dweller = {
	cost = 0
	opposites = { "trait_plantoid_phototrophic" }
	sorting_priority = 20

	initial = no
	randomized = no
	immortal_leaders = no

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

	allowed_archetypes = { BIOLOGICAL LITHOID }
	tags = { organic positive habitability mineral production interesting special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/trait_cave_dweller.dds"
	custom_tooltip_with_modifiers = trait_cave_dweller_tooltip
	modifier = {
		habitability_floor_add = 0.5
		miner_jobs_bonus_workforce_mult = 0.15
		species_empire_size_mult = 0.10
	}
	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = from
			from = {
				is_archetype = BIOLOGICAL
			}
		}
		logistic_growth_mult = -0.1
	}
	slave_cost = {
		trade = 500
	}
	assembly_score = {
		modifier = {
			add = 1.5
			from = { has_mining_designation = yes }
		}
		modifier = {
			add = 0.5
			from = { has_rural_designation = yes }
		}
	}
}

trait_robot_cave_dweller = {
	cost = 0
	sorting_priority = 20

	initial = no
	randomized = no

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

	allowed_archetypes = { MACHINE ROBOT }
	tags = { machine positive habitability mineral production special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/trait_robot_cave_dweller.dds"
	custom_tooltip_with_modifiers = trait_robot_cave_dweller_tooltip
	modifier = {
		habitability_floor_add = 0.5
		miner_jobs_bonus_workforce_mult = 0.15
		species_empire_size_mult = 0.10
	}
	triggered_planet_growth_habitability_modifier = {
		planet_pop_assembly_mult = -0.1
	}
	slave_cost = {
		trade = 500
	}
	assembly_score = {
		modifier = {
			add = 1.5
			from = { has_mining_designation = yes }
		}
		modifier = {
			add = 0.5
			from = { has_rural_designation = yes }
		}
	}
}

trait_shroud_forged = {
	cost = 0
	sorting_priority = 20

	initial = no
	randomized = no

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

	allowed_archetypes = { ROBOT }

	# custom_tooltip_with_modifiers = trait_shroud_forged_tooltip
	modifier = {
		specialist_and_complex_drone_cat_bonus_workforce_mult = 0.25
		worker_and_simple_drone_cat_bonus_workforce_mult = -0.25
		shroud_forged_consumer_goods_upkeep = @living_standard_luxuries_high # Does nothing: fixes missing tooltips
	}

	triggered_planet_growth_habitability_modifier = {
		potential = {
			exists = planet
		}
		planet_crime_no_happiness_add = 1
	}

	assembly_score = {
		modifier = {
			add = 2
			from = {
				exists = owner
				owner = {
					has_origin = origin_shroud_forged
					has_country_flag = finish_shroud_forged_liberation_flag
				}
			}
		}
	}
}

trait_perfected_genes = {
	cost = 0
	opposites = { trait_fleeting trait_weak }
	sorting_priority = 20

	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 leader drawbacks special }
	ai_weight = {
		weight = 0
	}

	icon = "gfx/interface/icons/traits/trait_perfected_genes.dds"

	modifier = {
		leader_lifespan_add = 25
		species_leader_exp_gain = -0.20
	}
}
