### skill Traits

## Admiral Traits

mod_trait_skill_pioneer_of_oceanic_engineering = {
	type = skill
	# texture = "gfx/interface/icons/character_trait_icons/experienced_naval_commander.dds"
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_skill_pioneer_of_oceanic_engineering.dds"
	
	character_modifier = {
		character_popularity_add = 10
	}

	command_modifier = {
		unit_offense_mult = 0.20
		unit_defense_mult = 0.20
		unit_recovery_rate_add = 0.2
		character_battle_condition_careful_maneuver_mult = 0.8
		character_battle_condition_rough_waters_mult = -0.4
		character_battle_condition_strong_winds_mult = -0.4
	}

	country_modifier = {
		building_ocean_mining_operation_throughput_mult = 0.01
		building_submerged_farm_throughput_mult = 0.01
	}
	
	possible = {
		has_role = admiral
		NOT = {
			has_trait = mod_trait_skill_born_in_the_waves
		}
		owner = {
			has_technology_researched = permanant_ocean_structures
		}
	}
	
	weight = {
		value = 35
		if = {
			limit = {
				owner = {
					has_technology_researched = ocean_based_mega_structures
				}
			}
			multiply = 3
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = seabed_cracking_device
				}
			}
			multiply = 2
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = atomic_powered_battlecruiser 
				}
			}
			add = 5
		}
	}	
	value = 1
}

mod_trait_skill_born_in_the_waves = {
	type = skill
	# texture = "gfx/interface/icons/character_trait_icons/expert_naval_commander.dds"
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_skill_born_in_the_waves.dds"

	character_modifier = {
		character_popularity_add = 15
	}

	command_modifier = {
		unit_offense_mult = 0.30
		unit_defense_mult = 0.30
		unit_recovery_rate_add = 0.3
		character_battle_condition_careful_maneuver_mult = 0.8
		character_battle_condition_rough_waters_mult = -0.6
		character_battle_condition_strong_winds_mult = -0.6
	}

	country_modifier = {
		building_shipyards_throughput_mult = 0.01
		building_ocean_mining_operation_throughput_mult = 0.01
		building_submerged_farm_throughput_mult = 0.01
	}
	
	possible = {
		has_role = admiral
		has_trait = mod_trait_skill_pioneer_of_oceanic_engineering
		owner = {
			has_technology_researched = seabed_cracking_device
		}
	}
	
	weight = {
		value = 40
		if = {
			limit = {
				owner = {
					has_technology_researched = ocean_based_mega_structures
				}
			}
			multiply = 3
		}
	}	
	
	replace = {
		mod_trait_skill_pioneer_of_oceanic_engineering
	}
	
	value = 2
}

## Land Skill Traits
mod_trait_skill_survivor_of_apocalypse = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_skill_survivor_of_apocalypse.dds"
	
	character_modifier = {
		character_popularity_add = 15
		character_health_add = 0.1
	}

	command_modifier = {
		unit_defense_mult = 0.25
		unit_recovery_rate_add = 0.2
		character_battle_condition_dug_in_mult = 2
		character_battle_condition_camouflaged_mult = 1
		character_battle_condition_surprise_maneuver_mult = 0.4
	}
	
	possible = {
		has_role = general
		NOT = {
			has_trait = mod_trait_skill_planner_of_apocalypse
		}
		owner = {
			has_technology_researched = dirty_bombs
		}
	}
	
	weight = {
		value = 25
		if = {
			limit = {
				owner = {
					has_technology_researched = nuclear_artillery
				}
			}
			multiply = 3
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = ballistic_computers 
				}
			}
			multiply = 2
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = land_based_mega_structures
				}
			}
			add = 5
		}
	}	
	value = 1
}

mod_trait_skill_planner_of_apocalypse = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_skill_planner_of_apocalypse.dds"

	command_modifier = {
		unit_offense_mult = 0.25
		unit_defense_mult = 0.15
		unit_recovery_rate_add = 0.1
		unit_kill_rate_add = 0.2
		character_battle_condition_dug_in_mult = 2
		character_battle_condition_camouflaged_mult = 1
		character_battle_condition_surprise_maneuver_mult = 0.6
		character_battle_condition_mud_mult = -0.2
	}
	
	possible = {
		has_role = general
		has_trait = mod_trait_skill_survivor_of_apocalypse
		owner = {
			has_technology_researched = nuclear_artillery
		}
	}
	
	weight = {
		value = 50
		if = {
			limit = {
				owner = {
					has_technology_researched = ballistic_computers 
				}
			}
			multiply = 2
		}
	}	
	
	replace = {
		mod_trait_skill_survivor_of_apocalypse
	}
	
	value = 2
}

### Cybernetics Traits
mod_trait_augmented_limbs = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_augmented_limbs.dds"

	character_modifier = {
		character_health_add = 0.1
	}

	command_modifier = {
		unit_offense_add = 20
		unit_defense_add = 10
		character_battle_condition_aggressive_maneuver_mult = 3
		character_battle_condition_surprise_maneuver_mult = 2
	}

	country_modifier = {	
		country_engineers_pol_str_mult = 0.05
		country_mechanists_pol_str_mult = 0.05
	}
	
	possible = {
		has_role = general
		NOT = {
			has_trait = mod_trait_integrated_exoskeleton
		}
		owner = {
			has_technology_researched = cybernetics_circuitry
		}

	}
	
	weight = {
		value = 15
		if = {
			limit = {
				OR = {
					has_trait = mod_trait_personality_transhumanist
					has_trait = mod_trait_personality_programmed_personality 
				}
			}
			multiply = 4
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = military_grade_implant
				}
			}
			multiply = 1.5
		}
	}	
	value = 1
}

mod_trait_integrated_exoskeleton = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_integrated_exoskeleton.dds"

	character_modifier = {
		character_health_add = -0.1
	}

	command_modifier = {
		unit_offense_add = 25
		unit_defense_add = 20
		unit_kill_rate_add = 0.25
		character_battle_condition_aggressive_maneuver_mult = 3
		character_battle_condition_surprise_maneuver_mult = 2
	}

	country_modifier = {	
		country_engineers_pol_str_mult = 0.08
		country_mechanists_pol_str_mult = 0.08
	}

	possible = {
		has_role = general
		has_trait = mod_trait_augmented_limbs
		owner = {
			has_technology_researched = powered_exoskeletons
		}

	}
	
	weight = {
		value = 20
		if = {
			limit = {
				OR = {
					has_trait = mod_trait_personality_transhumanist
					has_trait = mod_trait_personality_programmed_personality 
				}
			}
			multiply = 4
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = military_grade_implant
				}
			}
			multiply = 2
		}
	}	

	replace = {
		mod_trait_augmented_limbs
	}
	value = 2
}



mod_trait_brain_wiring = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_brain_wiring.dds"

	character_modifier = {
		character_health_add = -0.10
		character_popularity_add = 5
	}

	command_modifier = {
		unit_offense_mult = 0.1
		unit_defense_mult = 0.1
		character_battle_condition_surprise_maneuver_mult = 1.5
		character_battle_condition_blunder_mult = -0.6
		character_battle_condition_rough_waters_mult = -0.2
		character_battle_condition_strong_winds_mult = -0.2
	}
	
	country_modifier = {	
		country_bureaucracy_mult = 0.05
		country_institution_size_change_speed_mult = 0.10
		country_diplomatic_play_maneuvers_add = 10
	}

	interest_group_modifier = {
		interest_group_pol_str_mult = 0.15
		interest_group_pop_attraction_mult = 0.15
	}	

	possible = {
		NOT = {
			has_trait = mod_trait_integrated_electronic_processors
		}
		owner = {
			has_technology_researched = cybernetics_circuitry
		}

	}
	
	weight = {
		value = 30
		if = {
			limit = {
				OR = {
					has_trait = mod_trait_personality_transhumanist
					has_trait = mod_trait_personality_programmed_personality 
				}
			}
			multiply = 2.5
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = human_ego_programming
				}
			}
			multiply = 2
		}
	}	
	value = 1
}

mod_trait_integrated_electronic_processors = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_integrated_electronic_processors.dds"

	character_modifier = {
		character_health_add = -0.05
		character_popularity_add = 20
	}

	command_modifier = {
		unit_offense_mult = 0.15
		unit_defense_mult = 0.15
		unit_kill_rate_add = 0.20
		character_battle_condition_surprise_maneuver_mult = 1.5
		character_battle_condition_blunder_mult = -0.8
		character_battle_condition_rough_waters_mult = -0.4
		character_battle_condition_strong_winds_mult = -0.4
		character_battle_condition_good_visibility_mult = 1
	}
	
	country_modifier = {	
		country_bureaucracy_mult = 0.10
		country_institution_size_change_speed_mult = 0.20
		country_diplomatic_play_maneuvers_add = 20
	}

	interest_group_modifier = {
		interest_group_pol_str_mult = 0.25
		interest_group_pop_attraction_mult = 0.20
	}	

	possible = {
		has_trait = mod_trait_brain_wiring
		owner = {
			has_technology_researched = consumer_electronics
		}

	}
	
	weight = {
		value = 30
		if = {
			limit = {
				OR = {
					has_trait = mod_trait_personality_transhumanist
					has_trait = mod_trait_personality_programmed_personality 
				}
			}
			multiply = 2.5
		}
		if = {
			limit = {
				owner = {
					has_technology_researched = human_ego_programming
				}
			}
			multiply = 2
		}
	}	

	replace = {
		mod_trait_brain_wiring
	}
	value = 2
}


### Various Random Traits
mod_trait_vat_grown = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_vat_grown.dds"

	character_modifier = {
		character_health_add = 0.1
	}

	command_modifier = {
		unit_recovery_rate_add = 0.25
		unit_morale_loss_mult = -0.25
	}

	country_modifier = {	
		country_clergymen_pol_str_mult = -0.05
		country_engineers_pol_str_mult = 0.01
	}
	
	possible = {
		owner = {
			has_technology_researched = radiation_assisted_bio_engineering
		}
	}
	
	weight = {
		value = 20
		if = {
			limit = {
				OR = {
					has_trait = mod_trait_personality_transhumanist
					has_trait = mod_trait_personality_programmed_personality 
				}
			}
			multiply = 1.5
		}
	}	
	value = 2
}

mod_trait_aviator = {
	type = skill
	texture = "gfx/interface/icons/Mod_Nuclear_Character_Trait_Icons/mod_trait_aviator.dds"

	character_modifier = {
		character_popularity_add = 20
	}

	command_modifier = {
		battle_offense_owned_province_mult = 0.3
		battle_defense_owned_province_mult = 0.3
		character_battle_condition_charted_terrain_mult = 4
		character_battle_condition_good_visibility_mult = 4
		character_battle_condition_rough_waters_mult = -0.8
		character_battle_condition_strong_winds_mult = -0.8
	}

	country_modifier = {	
		country_prestige_mult = 0.05
	}
	
	interest_group_modifier = {
		interest_group_pop_attraction_mult = 0.05
	}

	possible = {
		owner = {
			has_technology_researched = advanced_nuclear_ramjet
		}
	}
	
	weight = {
		value = 20
		if = {
			limit = {
				owner = {
					has_technology_researched = general_aviation
				}
			}
			multiply = 2
		}
	}	
	
	
	value = 2
}

