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

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

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

rt56rp_ITA_henschel_organization = {
	include = generic_infantry_tank_organization
	icon = GFX_idea_henschel
	
	allowed = {	
		OR = {
			original_tag = ITA
		}
	}
	
	visible = {
	}

	available = {
	}

	override_trait = {
		token = generic_mio_trait_light_tank_specialization

		position = { x=-1 y=1 }
		relative_position_id = GER_mio_trait_technical_superiority
		any_parent = { GER_mio_trait_technical_superiority }
	}

	override_trait = {
		token = generic_mio_trait_medium_tank_specialization

		position = { x=0 y=1 }
		relative_position_id = GER_mio_trait_technical_superiority
		any_parent = { GER_mio_trait_technical_superiority }
	}

	override_trait = {
		token = generic_mio_trait_heavy_tank_specialization

		position = { x=1 y=1 }
		relative_position_id = GER_mio_trait_technical_superiority
		any_parent = { GER_mio_trait_technical_superiority }
	}

	add_trait = {
		token = GER_mio_trait_hoesch_facilities
		name = GER_mio_trait_hoesch_facilities
		icon = GFX_generic_mio_trait_icon_production_capacity
		special_trait_background = yes

		position = { x=5 y=0 }  #RT56RPMITAKA changed this so it won't cause any bugs
		
		visible = {
			FROM = { original_tag = ITA }
		}

		available = {
		}

		on_complete = {
		}

		production_bonus = {
			production_capacity_factor = 0.05
		}

		ai_will_do = {
			base = 2
		}
	}

	add_trait = {
		token = GER_mio_trait_involve_henschel_in_special_projects
		name = GER_mio_trait_involve_henschel_in_special_projects
		icon = GFX_generic_mio_department_icon_facilities
		special_trait_background = yes

		position = { x=8 y=0 }

		visible = {
			FROM = { original_tag = ITA }
		}

		available = {
			has_mio_size > 4
		}

		on_complete = {
			custom_effect_tooltip = {
				localization_key = available_scientist_one_line_tt
				CHARACTER = GER_erwin_aders
			}
		}

		organization_modifier = {
			military_industrial_organization_research_bonus = 0.05
		}

		ai_will_do = {
			base = 2
		}
	}

	add_trait = {
		token = GER_mio_trait_steel_wheel_design
		name = GER_mio_trait_steel_wheel_design
		icon = GFX_generic_mio_department_icon_tank_heavy_tank_quality
		special_trait_background = yes

		limit_to_equipment_type = { mio_cat_eq_all_heavy_tank }

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

		any_parent = { generic_mio_trait_interleaved_track_wheels generic_mio_trait_overlapped_track_wheels }


		equipment_bonus = {
			reliability = 0.03
			breakthrough = 0.05
			armor_value = 0.05
		}

		production_bonus = {
			production_cost_factor = 0.03
		}
	}

	add_trait = {
		token = GER_mio_trait_telescopic_sight
		name = GER_mio_trait_telescopic_sight
		icon = GFX_generic_mio_trait_icon_hard_attack
		special_trait_background = yes

		limit_to_equipment_type = { mio_cat_eq_all_heavy_tank }

		position = { x=-0 y=1 }
		relative_position_id = generic_mio_trait_turret_sights

		any_parent = { generic_mio_trait_turret_sights }

		visible = {
			FROM = { original_tag = ITA }
		}

		equipment_bonus = {
			hard_attack = 0.05
			ap_attack = 0.05
			breakthrough = 0.05
		}

		production_bonus = {
			production_cost_factor = 0.03
		}
	}

	add_trait = {
		token = GER_mio_trait_technical_superiority
		name = GER_mio_trait_technical_superiority
		icon = GFX_generic_mio_department_icon_tank_general_quality
		special_trait_background = yes

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

		any_parent = { generic_mio_trait_adaptable_chassis }


		equipment_bonus = {
			defense = 0.05
			soft_attack = 0.05
			armor_value = 0.05
		}

		production_bonus = {
			production_cost_factor = 0.03
		}
	}
}

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

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


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


rt56rp_ITA_auto_union_organization = {
	include = generic_armored_car_organization
	icon = GFX_idea_GER_auto_union
	
	allowed = {	
		OR = {
			original_tag = ITA				
		}
 
		has_dlc = "La Resistance"
	}

	available = {
	}

	add_trait = {
		token = GER_mio_trait_racing_pedigree
		name = GER_mio_trait_racing_pedigree
		icon = GFX_generic_mio_department_icon_armored_car_engine
		special_trait_background = yes

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

		all_parents = { generic_mio_trait_simplified_suspension }

		equipment_bonus = {
			maximum_speed = 0.07
		}

		ai_will_do = {
			base = 2
		}
	}

	add_trait = {
		token = GER_mio_trait_military_exclusivity
		name = GER_mio_trait_military_exclusivity
		icon = GFX_generic_mio_department_icon_armored_car_line_efficiency
		special_trait_background = yes

		position = { x=0 y=3 }
		relative_position_id = GER_mio_trait_racing_pedigree

		all_parents = { GER_mio_trait_racing_pedigree generic_mio_trait_improved_tooling }

		production_bonus = {
			production_efficiency_gain_factor = 0.05
			production_efficiency_cap_factor = 0.05
		}

		ai_will_do = {
			base = 2
		}
	}

	add_trait = {
		token = GER_mio_trait_schwerer_panzerspahwagen
		name = GER_mio_trait_schwerer_panzerspahwagen
		icon = GFX_generic_mio_department_icon_armored_car_defense
		special_trait_background = yes

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

		all_parents = { generic_mio_trait_defensive_equipment }

		available = { 
		}

		equipment_bonus = {
			breakthrough = 0.03
			armor_value = 0.05
		}

		ai_will_do = {
			base = 2
		}
	}
}

rt56rp_ITA_helicopter_manufacturer = {
	include = generic_helicopter_organization
	icon = GFX_idea_GER_focke_achgelis

	allowed = {
		OR = {
			original_tag = ITA
		}
	}

	available = {
		
	}
}
