#####################

###  ##  #  # # #  ## 
 #  #  # ## # # # #   
 #  #### # ## ##   #  
 #  #  # #  # # #   # 
 #  #  # #  # # # ## 

 #################### 

AUS_ansaldo_organization = {
	name = AUS_ansaldo_organization
	include = generic_tank_organization
	icon = GFX_idea_AUS_ansaldo
	allowed = {
		original_TAG = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
	}
	available = {
		owner = { has_completed_focus = AUS_invite_foreign_tank_designers }
	}
}

#####################

 ## #  # ### ###   ## 
#   #  #  #  #  # #   
 #  ####  #  ###   #  
  # #  #  #  #      # 
##  #  # ### #    ##  
 
#####################

AUS_stabilimento_tecnico_triestino_organization = {
	name = AUS_stabilimento_tecnico_triestino_organization
	include = generic_battle_line_ship_organization
	icon = GFX_idea_AUS_stabilimento_tecnico_triestino
	allowed = {
		OR = {
			AND = {
				original_TAG = AUS
				has_dlc = "Arms Against Tyranny" 
				has_dlc = "Gotterdammerung"
			}
			AND = {
				tag = HUN 
				has_dlc = "Gotterdammerung"
			}
		}
	}

	visible = {
		IF = {
			limit = {
				FROM = { original_tag = HUN } 
			}
			FROM = { has_completed_focus = wuw_HUN_integrate_bohemian_and_austrian_industries }
		}
	}

	available = {
		IF = {
			limit = {
				FROM = { original_tag = AUS } 
			}
			FROM = { has_completed_focus = AUS_revive_stt }
		}
	}

	override_trait = {
		token = generic_mio_trait_combat_information_center
		
		position = { x=-1 y=2 }

		mutually_exclusive = { AUS_mio_trait_range_speed }

		all_parents = {  generic_mio_trait_secondary_fire_director_control }
		any_parent =  { generic_mio_trait_super_heavy_shells generic_mio_trait_semi_armor_piercing_shells generic_mio_trait_high_velocity_guns }

		production_bonus = {
			production_capacity_factor = 0.05
		}
		
	}

	add_trait = { 
		token = AUS_mio_trait_range_speed
		name = AUS_mio_trait_range_speed
		icon = GFX_generic_mio_department_icon_ship_capital_ship_quality
		special_trait_background = yes

		position = { x=2 y=0 }
		relative_position_id = generic_mio_trait_combat_information_center

		all_parents = { generic_mio_trait_secondary_fire_director_control }
		any_parent =  { generic_mio_trait_super_heavy_shells generic_mio_trait_semi_armor_piercing_shells generic_mio_trait_high_velocity_guns }

		mutually_exclusive = { generic_mio_trait_combat_information_center }

		equipment_bonus = {
			naval_speed = 0.05
			naval_range = 0.05
		}
	}

	add_trait = { 
		token = AUS_mio_trait_production_speed
		name = AUS_mio_trait_production_speed
		icon = GFX_generic_mio_department_icon_ship_capital_ship_production
		special_trait_background = yes

		position = { x=2 y=1 }
		relative_position_id = generic_mio_trait_hardened_critical_components

		all_parents = { generic_mio_trait_secondary_fire_director_control generic_mio_trait_hardened_critical_components }
		


		equipment_bonus = {
			build_cost_ic = -0.1		
		}
	}
}

AUS_ELIN_organization = {
	name = AUS_ELIN_organization
	include = generic_submarine_organization
	icon = GFX_idea_AUS_elin
	allowed = {
		OR = {
			AND = {
				original_TAG = AUS
				has_dlc = "Arms Against Tyranny" 
				has_dlc = "Gotterdammerung"
			}
			AND = {
				tag = HUN 
				has_dlc = "Gotterdammerung"
			}
		}
	}

	visible = {
		IF = {
			limit = {
				FROM = { original_tag = HUN } 
			}
			FROM = { has_completed_focus = wuw_HUN_integrate_bohemian_and_austrian_industries }
		}
	}

	available = {
		IF = {
			limit = {
				FROM = { original_tag = AUS } 
			}
			FROM = { has_completed_focus = AUS_elin }
		}
	}

	initial_trait = {
		name = AUS_mio_initial_trait_technologically_advanced_submarines

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		}
		equipment_bonus = {
			sub_visibility = -0.05
			surface_detection = -0.05
		}
	}

	override_trait = {
		token = generic_mio_trait_advanced_periscope
		
		position = { x=-1 y=1 }
		
	}

	override_trait = {
		token = generic_mio_trait_radar_warning_receiver
		
		position = { x=1 y=1 }
		
	}

	override_trait = {
		token = generic_mio_trait_crash_dive_flood_tanks

		position = { x = 0 y = 1}
	}

	add_trait = { 
		token = AUS_ELIN_mio_trait_production_speed
		name = AUS_mio_trait_production_speed
		icon = GFX_generic_mio_department_icon_ship_submarine_production
		special_trait_background = yes

		position = { x=0 y=1 }
		relative_position_id = generic_mio_trait_radar_warning_receiver

		all_parents = { generic_mio_trait_radar_warning_receiver }
		
		equipment_bonus = {
			build_cost_ic = -0.05
		}
	}

	add_trait = { 
		token = AUS_mio_trait_radar_improvements
		name = AUS_mio_trait_radar_improvements
		icon = GFX_generic_mio_department_icon_ship_submarine_survivability
		special_trait_background = yes

		position = { x=0 y=1 }
		relative_position_id = AUS_ELIN_mio_trait_production_speed

		all_parents = { AUS_ELIN_mio_trait_production_speed generic_mio_trait_experimental_anechoic_tiles }
		


		equipment_bonus = {
			surface_visibility = -0.05
			sub_visibility = -0.05
			surface_detection = 0.05
		}
	}
}


###########################

###  #    ##  #  # ###  ## 
#  # #   #  # ## # #   #   
###  #   #### # ## ##   #  
#    #   #  # #  # #     # 
#    ### #  # #  # ### ##  

###########################

AUS_phonix_fleugzeugwerke_organization = {
	name = AUS_phonix_fleugzeugwerke_organization
	include = generic_light_aircraft_organization
	icon = GFX_idea_AUS_phonix_fleugzeugwerke
	allowed = {
		original_TAG = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
	}

	equipment_type = {
		mio_cat_eq_all_small_plane
	}
	initial_trait = {
		name = AUS_mio_robust_light_aircraft

		equipment_bonus = {
			reliability = 0.05
			maximum_speed = 0.05
			air_attack = 0.05
		}
	}

	override_trait = {
		token = generic_mio_trait_liquid_cooled_engines
		
		position = { x=2 y=0 }
		
	}

	override_trait = {
		token = generic_mio_trait_advanced_aerodynamics
		
		position = { x=2 y=0 }
		
	}

	override_trait = {
		token = generic_mio_trait_ongoing_developmental_upgrades
		
		position = { x=1 y=1 }
		
	}

	override_trait = {
		token = generic_mio_trait_expanded_production_facilities
		
		position = { x=1 y=0 }
		
	}

	override_trait = {
		token = generic_mio_trait_fixed_tailwheels
		
		position = { x=0 y=1 }
		
	}

	override_trait = {
		token = generic_mio_trait_gun_pods
		
		position = { x=3 y=1 }
		
	}

	override_trait = {
		token = generic_mio_trait_maximum_wing_loads
		
		position = { x=1 y=1 }
		
	}

	override_trait = {
		token =  generic_mio_trait_heavier_airframe
		
		position = { x=-1 y=1 }
		
	}


	override_trait = {
		token = generic_mio_trait_removable_wings
		
		position = { x=-1 y=2 }
		relative_position_id = generic_mio_trait_fixed_tailwheels

		mutually_exclusive = { AUS_mio_trait_static_wings } 
	}


	add_trait = { 
		token = AUS_mio_trait_static_wings
		name = AUS_mio_trait_static_wings
		icon = GFX_generic_mio_department_icon_plane_fighter_production
		special_trait_background = yes

		position = { x=1 y=2 }
		relative_position_id = generic_mio_trait_fixed_tailwheels

		any_parent = { generic_mio_trait_fixed_tailwheels }

		mutually_exclusive = { generic_mio_trait_removable_wings }

		equipment_bonus = {
			air_agility = 0.05
		}

		production_bonus = {
			production_efficiency_gain_factor = 0.05
		}
	}

	add_trait = { 
		token = AUS_mio_trait_weight_optimization
		name = AUS_mio_trait_weight_optimization
		icon = GFX_generic_mio_trait_icon_air_agility
		special_trait_background = yes

		position = { x=0 y=1 }
		relative_position_id = AUS_mio_trait_static_wings

		any_parent = { AUS_mio_trait_static_wings }


		equipment_bonus = {
			air_agility = 0.05
			air_attack = 0.05
			maximum_speed = 0.03
		}
	}


	add_trait = { 
		token = AUS_mio_trait_structural_integrity
		name = AUS_mio_trait_structural_integrity
		icon = GFX_generic_mio_trait_icon_reliability
		special_trait_background = yes

		position = { x=0 y=1 }
		relative_position_id = generic_mio_trait_removable_wings

		any_parent = { generic_mio_trait_removable_wings }


		equipment_bonus = {
			reliability = 0.1
			air_defence = 0.1
		}
	}

	remove_trait = { generic_mio_trait_maritime_duties generic_mio_trait_fuselage_ordinance_rack }

}

AUS_osterreichische_fleugzeugfabrik_organization = {
	name = AUS_osterreichische_fleugzeugfabrik_organization
	include = generic_cas_aircraft_organization
	icon = GFX_idea_AUS_osterreichische_fleugzeugfabrik_ag
	allowed = {
		OR = {
			AND = {
				original_TAG = AUS
				has_dlc = "Arms Against Tyranny" 
				has_dlc = "Gotterdammerung"
			}
			AND = {
				tag = HUN 
				has_dlc = "Gotterdammerung"
			}
		}
	}

	visible = {
	}

	add_trait = { 
		token = AUS_mio_trait_speed_up_production
		name = AUS_mio_trait_production_speed
		icon = GFX_generic_mio_department_icon_plane_cas_line_efficiency
		special_trait_background = yes

		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_selectional_construction 

		all_parents = { generic_mio_trait_selectional_construction }


		production_bonus = {
			production_efficiency_gain_factor = 0.1
		}
	}

	add_trait = {
		token = AUS_mio_trait_cutting_corners
		name = AUS_mio_trait_cutting_corners
		icon = GFX_generic_mio_trait_icon_build_cost_ic
		special_trait_background = yes

		position = { x=0 y=2 }
		relative_position_id = AUS_mio_trait_speed_up_production

		all_parents = { AUS_mio_trait_speed_up_production }

		mutually_exclusive = { AUS_mio_trait_solid_construction }

		equipment_bonus = {
			build_cost_ic = -0.1
			reliability = -0.07
		}
	}

	add_trait = { 
		token = AUS_mio_trait_solid_construction
		name = AUS_mio_trait_thorough_construction
		icon = GFX_generic_mio_department_icon_plane_cas_quality
		special_trait_background = yes

		position = { x=2 y=2 }
		relative_position_id = AUS_mio_trait_speed_up_production

		all_parents = { AUS_mio_trait_speed_up_production }

		mutually_exclusive = { AUS_mio_trait_cutting_corners }


		equipment_bonus = {
			reliability = 0.15
			build_cost_ic = 0.05
		}
	}
}



################################### 

#   #  ##  ### ### ###  ### ### #   
## ## #  #  #  #   #  #  #  #   #   
# # # ####  #  ##  ###   #  ##  #   
#   # #  #  #  #   #  #  #  #   #   
#   # #  #  #  ### #  # ### ### ### 


###################################

AUS_hirtenberger_organization = {
	name = AUS_hirtenberger_organization
	include = generic_artillery_organization
	icon = GFX_idea_generic_artillery_manufacturer_2
	allowed = {
		original_TAG = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
	}

	add_trait = { 
		token = AUS_mio_standardize_piercing_ammunition
		name = AUS_mio_standardize_piercing_ammunition
		icon = GFX_generic_mio_trait_icon_breakthrough
		special_trait_background = yes

		position = { x=-1 y=1 }
		relative_position_id = generic_mio_trait_sliding_breech_block

		mutually_exclusive = { AUS_mio_standardize_cheaper_ammunition }

		all_parents = { generic_mio_trait_sliding_breech_block generic_mio_trait_gun_mass_production generic_mio_trait_super_charges }


		equipment_bonus = {
			hard_attack = 0.1
			breakthrough = 0.05
		}
	}

	add_trait = { 
		token = AUS_mio_standardize_cheaper_ammunition
		name = AUS_mio_standardize_cheaper_ammunition
		icon = GFX_generic_mio_trait_icon_build_cost_ic
		special_trait_background = yes

		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_sliding_breech_block

		mutually_exclusive = { AUS_mio_standardize_piercing_ammunition }

		all_parents = { generic_mio_trait_sliding_breech_block generic_mio_trait_gun_mass_production generic_mio_trait_super_charges }


		equipment_bonus = {
			
			build_cost_ic = -0.1
		}
	}
	
}


AUS_steyr_organization = {
	name = AUS_steyr_organization
	include = generic_infantry_equipment_organization
	icon = GFX_idea_AUS_steyr
	allowed = {
		original_TAG = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
	}

	add_trait = { 
		token = AUS_mio_trait_innovative_riflemaking
		name = AUS_mio_trait_innovative_riflemaking
		icon = GFX_generic_mio_trait_icon_build_cost_ic
		special_trait_background = yes

		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_advanced_barrel_forging


		all_parents = { generic_mio_trait_advanced_barrel_forging }


		organization_modifier = {
			
			military_industrial_organization_research_bonus = 0.1
		}

		equipment_bonus = {
			build_cost_ic = -0.05
		}
	}

}
AUS_graf_and_stift_organization = {
	name = AUS_graf_and_stift_organization
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_AUS_graf_and_stift
	allowed = {
		original_tag = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
	}
	available = {
		owner = { has_completed_focus = AUS_graf_und_stift_focus }
	}

	visible = {
		owner = { NOT = { has_completed_focus = AUS_saurerwerke } }
	}

	initial_trait = {
		name = AUS_graf_und_stift_initial_mio_trait_speed_focused_organization

		equipment_bonus = {
			maximum_speed = 0.05
		}
	}

	override_trait = {
		token = generic_mio_trait_medium_machinegun_mounts

		name = AUS_mio_trait_improved_suspensions

		equipment_bonus = {
			maximum_speed = 0.05
		}
	}

	override_trait = {
		token = generic_mio_trait_attached_wood_gas_generator

		name = AUS_mio_trait_fuel_effeicient_engines

		position = { x=-1 y=2 }
		relative_position_id = generic_mio_trait_medium_machinegun_mounts

		all_parents = { generic_mio_trait_medium_machinegun_mounts }
	}

	override_trait = {
		token = generic_mio_trait_high_powered_engine

		position = { x=1 y=2 }
		relative_position_id = generic_mio_trait_medium_machinegun_mounts

		all_parents = { generic_mio_trait_medium_machinegun_mounts }
	}

	override_trait = {
		token = generic_mio_trait_advanced_artillery_racks

		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_attached_wood_gas_generator

		any_parent = { generic_mio_trait_attached_wood_gas_generator generic_mio_trait_high_powered_engine }
	}

	override_trait = {
		token = generic_mio_trait_heavy_machinegun_mount

		position = { x=2 y=2 }
		relative_position_id = generic_mio_trait_attached_wood_gas_generator

		any_parent = { generic_mio_trait_attached_wood_gas_generator generic_mio_trait_high_powered_engine }
	}

	add_trait = {
		token = AUS_mio_trait_thorough_construction
		name = AUS_mio_trait_thorough_construction
		icon = GFX_generic_mio_trait_icon_hardness
		special_trait_background = yes

		mutually_exclusive = { AUS_mio_trait_modular_construction }

		position = {x=-1 y=2}
		relative_position_id = generic_mio_trait_all_wheel_drive

		all_parents = { generic_mio_trait_all_wheel_drive }

		equipment_bonus = {
			hardness = 0.05
			reliability = 0.05
			build_cost_ic = 0.05
		}

	}

	add_trait = {
		token = AUS_mio_trait_modular_construction
		name = AUS_mio_trait_modular_construction
		icon = GFX_generic_mio_trait_icon_build_cost_ic
		special_trait_background = yes

		mutually_exclusive = { AUS_mio_trait_thorough_construction }

		position = {x=1 y=2}
		relative_position_id = generic_mio_trait_all_wheel_drive

		all_parents = { generic_mio_trait_all_wheel_drive }

		equipment_bonus = {
			build_cost_ic = -0.15
			reliability = -0.07
		}

	}

	remove_trait = { generic_mio_trait_armored_pulpit_mount }
}

AUS_osterreichische_saurerwerke_organization = {
	name = AUS_osterreichische_saurerwerke_organization
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_AUS_saurer
	allowed = {
		original_tag = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
		has_dlc = "La Resistance"

	}
	available = {
		owner = { has_completed_focus = AUS_saurerwerke }
	}

	visible = {
		owner = { NOT = { has_completed_focus = AUS_graf_und_stift_focus } }
	}

	equipment_type = {
		motorized_equipment
		mechanized_equipment
		armored_car_equipment
	}

	initial_trait = {
		name = AUS_saurerwerke_initial_mio_trait_attack_focused_organization

		equipment_bonus = {
			soft_attack = 0.03
			breakthrough = 0.03
		}
	}

	tree_header_text = {
		text = mio_header_motorized
		x = 1
	}

	tree_header_text = {
		text = mio_header_armored_cars
		x = 4
	}

	tree_header_text = {
		text = mio_header_mechanized
		x = 7
	}

	override_trait = {
		token = generic_mio_trait_composite_cargo_bed

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_steel_cargo_bed

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_all_wheel_drive

		limit_to_equipment_type = { motorized_equipment armored_car_equipment }
	}

	override_trait = {
		token = generic_mio_trait_attached_wood_gas_generator

		limit_to_equipment_type = { motorized_equipment armored_car_equipment }
	}

	override_trait = {
		token = generic_mio_trait_high_powered_engine

		limit_to_equipment_type = { motorized_equipment armored_car_equipment }
	}

	override_trait = {
		token = generic_mio_trait_armored_pulpit_mount

		position = { x=-1 y=2 }
		relative_position_id = generic_mio_trait_medium_machinegun_mounts
	}

	override_trait = {
		token = generic_mio_trait_heavy_machinegun_mount

		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_armored_pulpit_mount

		mutually_exclusive = { generic_mio_trait_mounted_light_anti_tank_gun }
	}


	override_trait = {
		token = generic_mio_trait_mounted_light_anti_tank_gun

		position = { x=3 y=0 }

		mutually_exclusive = { generic_mio_trait_heavy_machinegun_mount }
	}

	add_trait = {
		token = AUS_mio_trait_improved_armaments
		name = AUS_mio_trait_improved_armaments
		icon = GFX_generic_mio_department_icon_armored_car_offense
		special_trait_background = yes

		position = { x=1 y=1 }
		relative_position_id = generic_mio_trait_medium_machinegun_mounts

		all_parents = { generic_mio_trait_medium_machinegun_mounts }

		limit_to_equipment_type = { armored_car_equipment }

		equipment_bonus = {
			soft_attack = 0.05
		}
	}

	add_trait = {

		token = AUS_mio_trait_high_quality_mass_production
		name = AUS_mio_trait_high_quality_mass_production
		icon = GFX_generic_mio_trait_icon_build_cost_ic
		special_trait_background = yes
	
		position = {x=0 y=1}
		relative_position_id = AUS_mio_trait_improved_armaments
	
		all_parents = { AUS_mio_trait_improved_armaments }

		limit_to_equipment_type = { armored_car_equipment }
	
		equipment_bonus = {
			build_cost_ic = -0.05
			reliability = 0.03
			maximum_speed = 0.03
		}
	}
	
	remove_trait = { generic_mio_trait_advanced_artillery_racks }
}

AUS_osterreichische_saurerwerke_organization_no_lar = {
	name = AUS_osterreichische_saurerwerke_organization
	include = generic_motorized_mechanized_organization
	icon = GFX_idea_AUS_saurer 
	allowed = {
		original_tag = AUS
		has_dlc = "Arms Against Tyranny" 
		has_dlc = "Gotterdammerung"
		NOT = { has_dlc = "La Resistance" } 
	}
	available = {
		owner = { has_completed_focus = AUS_saurerwerke }
	}

	equipment_type = {
		motorized_equipment
		mechanized_equipment
	}

	initial_trait = {
		name = AUS_saurerwerke_initial_mio_trait_attack_focused_organization

		equipment_bonus = {
			soft_attack = 0.03
			breakthrough = 0.03
		}
	}

	tree_header_text = {
		text = mio_header_motorized
		x = 1
	}

	tree_header_text = {
		text = mio_header_mechanized
		x = 7
	}

	override_trait = {
		token = generic_mio_trait_composite_cargo_bed

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_steel_cargo_bed

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_all_wheel_drive

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_attached_wood_gas_generator

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_high_powered_engine

		limit_to_equipment_type = { motorized_equipment  }
	}

	override_trait = {
		token = generic_mio_trait_armored_pulpit_mount

		position = { x=-1 y=2 }
		relative_position_id = generic_mio_trait_medium_machinegun_mounts
	}

	override_trait = {
		token = generic_mio_trait_heavy_machinegun_mount

		position = { x=0 y=2 }
		relative_position_id = generic_mio_trait_armored_pulpit_mount

		mutually_exclusive = { generic_mio_trait_mounted_light_anti_tank_gun }

	}


	override_trait = {
		token = generic_mio_trait_mounted_light_anti_tank_gun

		position = { x=3 y=0 }

		mutually_exclusive = { generic_mio_trait_heavy_machinegun_mount }
	}

	remove_trait = { generic_mio_trait_advanced_artillery_racks }

}