# AI plane design for testing

ITA_fighter = {
	category = air

	available_for = { ITA }

	roles = {
		air_fighter
	}

	priority = {
		factor = 1000
	}

	great_war_fighter_default = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 1000
			type = small_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1
			}
		}

		allowed_modules = {
			radial_engine_2_1x
			light_mg_2x
			light_mg_4x
		}
	}
	basic_fighter_default = { #C.200 Saetta
		name = "C.200 Saetta"
	
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe 
				factor = 0 #let's not waste XP here
			}			
		}

		target_variant = {
			match_value = 2000
			
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = heavy_mg_2x
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty					
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = empty
				special_type_slot_6 = empty	
				special_type_slot_7 = early_supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = empty					
				
			}
		}		
		allowed_modules = {
			aircraft_engine_mounted_cannon_1
			light_mg_4x
			heavy_mg_2x
			heavy_mg_4x
			aircraft_cannon_1_2x
			radial_engine_2_1x			
			armor_plate_small
			drop_tanks
			water_injection_small
			high_octane_fuel_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
		}
	}
	basic_fighter_default = { #C.200bis
		name = "C.200bis Saetta"	
		priority = {
			factor = 100
			modifier = { 
				has_tech = improved_small_airframe 
				factor = 0 #let's not waste XP here
			}			
			modifier = { 
				has_tech = radial_engines_3
				factor = 20
			}
		}	
		target_variant = {
			match_value = 2000

			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = { any_of = { heavy_mg_2x light_mg_2x } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				fixed_auxiliary_weapon_slot_2 = empty					
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = empty
				special_type_slot_6 = empty	
				special_type_slot_7 = early_supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = reflex_gunsight_1			
				
			}
		}		
		allowed_modules = {
			light_mg_4x
			heavy_mg_2x
			heavy_mg_4x
			aircraft_cannon_1_2x
			radial_engine_3_1x
			armor_plate_small
			drop_tanks
			water_injection_small
			high_octane_fuel_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
		}
	}
	improved_fighter_basic = {
		name = "Re.2000 Falco"
		priority = {
			factor = 200
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 2500
			type = small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { heavy_mg_2x light_mg_2x } }
				fixed_auxiliary_weapon_slot_1 = light_mg_2x
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty	
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = empty
				special_type_slot_6 = empty	
				special_type_slot_7 = early_supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = reflex_gunsight_1		
			}
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x			
			heavy_mg_2x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x
			aircraft_cannon_2_2x
			aircraft_cannon_2_1x			
			engine_3_1x
			fuel_tanks_small
			drop_tanks
			water_injection_small
			high_octane_fuel_small
			pressurized_cockpit
			supercharger
			self_sealing_fuel_tanks_small	
			aircraft_lightweight_construction_small
		}
	}	
	improved_fighter_default = {
		name = "C.202 Folgore"
		priority = {
			factor = 200
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_2x heavy_mg_2x } }
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty	
				engine_type_slot = engine_3_1x
				special_type_slot_1 = drop_tanks
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_7 = early_supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = reflex_gunsight_1	
			}
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x			
			heavy_mg_2x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x
			aircraft_cannon_2_2x
			aircraft_cannon_2_1x			
			engine_3_1x
			fuel_tanks_small
			drop_tanks
			water_injection_small
			high_octane_fuel_small
			pressurized_cockpit
			supercharger
			self_sealing_fuel_tanks_small	
			aircraft_lightweight_construction_small
		}
	}
	improved_fighter_improved = {
		name = "C.205 Veltros"
		priority = {
			factor = 200
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = heavy_mg_2x
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty	
				engine_type_slot = engine_3_1x
				special_type_slot_1 = drop_tanks
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_4 = water_injection_small
				special_type_slot_5 = pressurized_cockpit
				special_type_slot_7 = supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = reflex_gunsight_1	
			}
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x			
			heavy_mg_2x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x
			aircraft_cannon_2_2x
			aircraft_cannon_2_1x			
			engine_3_1x
			fuel_tanks_small
			drop_tanks
			water_injection_small
			high_octane_fuel_small
			pressurized_cockpit
			supercharger
			self_sealing_fuel_tanks_small	
			aircraft_lightweight_construction_small
		}
	}
	advanced_fighter_default = { #G.55 Centauro
		priority = {
			factor = 300
		}

		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { aircraft_engine_mounted_cannon_2 aircraft_engine_mounted_cannon_1 } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = engine_3_1x
				special_type_slot_1 = pressurized_cockpit
				special_type_slot_2 = water_injection_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = empty
				special_type_slot_7 = supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = { any_of = { reflex_gunsight_2 reflex_gunsight_1 } }			
			}
		}
		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_2_1x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x			
			engine_4_1x
			armor_plate_small
			drop_tanks
			pressurized_cockpit
			supercharger
			water_injection_small
		}
	}
	advanced_fighter_improved = { #G.56 Centauro
		name = "G.56 Centauro"
		priority = {
			factor = 300
		}

		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { aircraft_engine_mounted_cannon_2 aircraft_engine_mounted_cannon_1 } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { imp_heavy_mg_2x heavy_mg_2x } }
				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = engine_4_1x
				special_type_slot_1 = pressurized_cockpit
				special_type_slot_2 = water_injection_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = empty
				special_type_slot_7 = supercharger
				special_type_slot_8 = canopy1
				special_type_slot_9 = { any_of = { reflex_gunsight_2 reflex_gunsight_1 } }		
			}
		}
		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_2_1x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x			
			engine_4_1x
			armor_plate_small
			drop_tanks
			pressurized_cockpit
			supercharger
			water_injection_small
		}
	}	
	jet_fighter = { #Me 262
		priority = {
			factor = 100
		}

		target_variant = {
			match_value = 4000
			type = small_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = aircraft_nose_cannon_2_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_2_2x
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = empty	
				special_type_slot_7 = compressor
				special_type_slot_8 = canopy2
				special_type_slot_9 = { any_of = { reflex_gunsight_2 reflex_gunsight_1 } }
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_2_2x
			jet_engine_2x
			armor_plate_small
		}
	}
}

ITA_cas = {
	category = air

	available_for = {ITA}

	roles = {
		air_cas
	}

	priority = {
		factor = 900
	}
	cas_0 = { 
		priority = {
			factor = 10
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}

		target_variant = {
			match_value = 500
			type = small_plane_cas_airframe_0
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = engine_1_1x
				special_type_slot_1 = empty
				special_type_slot_2 = empty
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_1_1x
			armor_plate_small
			fuel_tanks_small
		}
	}
	cas_1 = { 
		priority = {
			factor = 100
			modifier = { 
				has_tech = engines_3 
				factor = 10
			}			
		}
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_6 = { any_of = { hmg_defense_turret lmg_defense_turret } }
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_4 = armor_plate_small
				special_type_slot_5 = dive_brakes_small
				special_type_slot_6 = empty
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1			
			}
			
		}
		allowed_modules = {
			bomb_locks
			hmg_defense_turret
			radial_engine_2_1x
			armor_plate_small
			fuel_tanks_small
			lmg_defense_turret
			dive_brakes_small
			drop_tanks
			self_sealing_fuel_tanks_small
			aircraft_lightweight_construction_small
			rocket_rails
		}
	}	
	cas_2 = { 
		priority = {
			factor = 2000
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}			
		}
		target_variant = {
			match_value = 1500
			type = small_plane_cas_airframe_2
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = { any_of = { rocket_rails small_bomb_bay } }
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty	
				fixed_auxiliary_weapon_slot_6 = { any_of = { hmg_defense_turret lmg_defense_turret } }				
				engine_type_slot = radial_engine_2_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = dive_brakes_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = drop_tanks
				special_type_slot_5 = self_sealing_fuel_tanks_small
				special_type_slot_6 = empty
				special_type_slot_7 = early_supercharger
				special_type_slot_8 = canopy1					
			}
		}

		allowed_modules = {
			small_bomb_bay
			hmg_defense_turret
			bomb_locks
			tank_buster_1
			engine_3_1x
			armor_plate_small
			fuel_tanks_small
			lmg_defense_turret
			dive_brakes_small
			drop_tanks
			self_sealing_fuel_tanks_small
			aircraft_lightweight_construction_small
			rocket_rails			
		}
	}
	cas_3 = { 
		priority = {
			factor = 200
			
		}
		target_variant = {
			match_value = 2500
			type = small_plane_cas_airframe_3
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = { any_of = { rocket_rails small_bomb_bay } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { rocket_rails bomb_locks } }
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_6 = { any_of = { hmg_defense_turret lmg_defense_turret } }
				engine_type_slot = engine_3_1x
				special_type_slot_1 = empty
				special_type_slot_2 = dive_brakes_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = drop_tanks
				special_type_slot_5 = self_sealing_fuel_tanks_small	
				special_type_slot_7 = turbocharger
				special_type_slot_8 = canopy1			
			}
		}

		allowed_modules = {
			tank_buster_2
			bomb_locks
			engine_2_2x
			engine_3_1x
			armor_plate_small
			fuel_tanks_small
			lmg_defense_turret
			dive_brakes_small
			drop_tanks
			self_sealing_fuel_tanks_small			
		}
	}
}

ITA_naval_bomber = {
	category = air

	blocked_for = {}

	available_for = {ITA}

	roles = {
		air_naval_bomber
	}
	priority = {
		factor = 1
	}
	naval_bomber_1 = {
		priority = {
			factor = 1
		}
		target_variant = {
			match_value = 1000
			type = small_plane_naval_bomber_airframe_1
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = empty				
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = floats
				special_type_slot_3 = empty				
				special_type_slot_4 = empty
				special_type_slot_5 = empty	
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1				
			}
		}
		allowed_modules = {
			torpedo_mounting
			radial_engine_2_1x
			lmg_defense_turret
			floats
			self_sealing_fuel_tanks_small
			armor_plate_small
			drop_tanks
		}
	}
	naval_bomber_2 = {
		priority = {
			factor = 1
		}
		target_variant = {
			match_value = 1500
			type = small_plane_naval_bomber_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty				
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = floats
				special_type_slot_3 = empty				
				special_type_slot_4 = empty
				special_type_slot_5 = empty
				special_type_slot_6 = empty
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1			
			}
		}
		allowed_modules = {
			torpedo_mounting
			radial_engine_3_1x
			lmg_defense_turret
			floats
			self_sealing_fuel_tanks_small
			armor_plate_small
			drop_tanks				
		}
	}

	naval_bomber_3 = {
		priority = {
			factor = 1
		}
		target_variant = {
			match_value = 2000
			type = small_plane_naval_bomber_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty				
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = floats
				special_type_slot_3 = empty				
				special_type_slot_4 = empty
				special_type_slot_5 = empty
				special_type_slot_6 = empty
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy1			
			}

		}

		allowed_modules = {
			torpedo_mounting
			radial_engine_4_1x
			lmg_defense_turret
			floats
			self_sealing_fuel_tanks_small
			armor_plate_small
			drop_tanks
			
		}
	}
}

ITA_medium_naval_bomber = {
	category = air

	available_for = {ITA}

	roles = {
		air_naval_bomber
	}

	priority = {
		factor = 500
	}
	medium_naval_bomber_1 = {
		priority = {
			factor = 100
			
		}

		target_variant = {
			match_value = 1000
			type = medium_plane_naval_bomber_airframe_1
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_3x radial_engine_2_3x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = leigh_light
				special_type_slot_7 = normally_aspirated_engine
			}
		}

		allowed_modules = {
			torpedo_mounting_2
		}
	}
	medium_naval_bomber_2 = {
		priority = {
			factor = 100
			
		}

		target_variant = {
			match_value = 1000
			type = medium_plane_naval_bomber_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret_2x
				engine_type_slot = { any_of = { radial_engine_3_3x radial_engine_2_3x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = leigh_light
				special_type_slot_4 = empty
				special_type_slot_5 = empty
				special_type_slot_6 = empty				
				special_type_slot_7 = normally_aspirated_engine
			}
		}

		allowed_modules = {
			torpedo_mounting_2
		}
	}
	medium_naval_bomber_3 = {
		priority = {
			factor = 100
			
		}

		target_variant = {
			match_value = 1000
			type = medium_plane_naval_bomber_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				engine_type_slot = engine_3_2x
				special_type_slot_1 = auto_extinguisher_system_medium
				special_type_slot_2 = { any_of = { magnetic_anomaly_detector leigh_light } }
				special_type_slot_3 = empty
				special_type_slot_4 = empty
				special_type_slot_5 = empty
				special_type_slot_6 = empty				
				special_type_slot_7 = supercharger
			}
		}

		allowed_modules = {
			torpedo_mounting_2
		}
	}	
}

ITA_tactical_bomber = {
	category = air

	available_for = {ITA}

	roles = {
		air_tactical_bomber
	}

	priority = {
		factor = 800
		modifier = {
			num_of_factories < 100
			factor = 0.5
		}
		modifier = {
			num_of_factories < 50
			factor = 0
		}
	}

	gw_tac_bomber_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = basic_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = engine_1_2x
				special_type_slot_1 = empty
				special_type_slot_2 = empty	
				special_type_slot_7 = normally_aspirated_engine				
			}
		}

		allowed_modules = {
			medium_bomb_bay
			engine_1_2x
		}
	}

	tac_bomber_1_default = {
		priority = {
			factor = 500
			modifier = { 
				has_tech = improved_medium_airframe
				factor = 0
			}			
		}
		target_variant = {
			match_value = 3000
			type = medium_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_5 = { any_of = { hmg_defense_turret_2x lmg_defense_turret_2x } }				
				engine_type_slot = radial_engine_2_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = non_strategic_materials_medium
				special_type_slot_5 = empty
				special_type_slot_6 = empty	
				special_type_slot_7 = normally_aspirated_engine				
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			torpedo_mounting
			bomb_locks
			radial_engine_2_3x
			dive_brakes_medium
			lmg_defense_turret
			hmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret_2x
			self_sealing_fuel_tanks_medium
			fuel_tanks_medium
			rocket_rails
			water_injection_medium
			high_octane_fuel_medium
			supercharger 
			turbocharger
			armor_plate_medium
			non_strategic_materials_medium
		}
	}
	tac_bomber_2_default = { #Z.1007bis «Alcione»
		priority = {
			factor = 1000
			modifier = { 
				has_tech = advanced_medium_airframe
				factor = 0
			}			
		}
		target_variant = {
			match_value = 3000
			
			type = medium_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = { any_of = { hmg_defense_turret_2x lmg_defense_turret_2x } }					
				engine_type_slot = radial_engine_2_3x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = non_strategic_materials_medium
				special_type_slot_5 = radio_navigation_1
				special_type_slot_6 = empty
				special_type_slot_7 = normally_aspirated_engine			
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			torpedo_mounting
			bomb_locks
			radial_engine_2_3x
			lmg_defense_turret
			hmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret_2x
			self_sealing_fuel_tanks_medium
			fuel_tanks_medium
			rocket_rails
			water_injection_medium
			high_octane_fuel_medium
			supercharger 
			turbocharger
			armor_plate_medium
			air_ground_radar_1
			air_ground_radar_2
			non_strategic_materials_medium
		}
	}

	tac_bomber_3_default = {
		priority = {
			factor = 200
		}

		target_variant = {
			match_value = 4000
			type = medium_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay	
				fixed_auxiliary_weapon_slot_3 = small_bomb_bay
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = { any_of = { hmg_defense_turret_2x lmg_defense_turret_2x } }	
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = non_strategic_materials_medium
				special_type_slot_5 = radio_navigation_1
				special_type_slot_6 = empty
				special_type_slot_7 = normally_aspirated_engine				
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			torpedo_mounting
			radial_engine_3_2x
			lmg_defense_turret
			hmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret_2x
			self_sealing_fuel_tanks_medium
			fuel_tanks_medium
			bomb_locks
			rocket_rails
			water_injection_medium
			high_octane_fuel_medium
			supercharger 
			turbocharger
			armor_plate_medium
			air_ground_radar_1
			air_ground_radar_2
			non_strategic_materials_medium
		}
	}
	jet_tac_bomber_default = { #Ar 234
		priority = {
			factor = 100
		}

		target_variant = {
			match_value = 4000
			type = medium_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_2 = bomb_locks
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = fuel_tanks_medium
				special_type_slot_2 = empty
				special_type_slot_7 = compressor				
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
		}
	}
}

ITA_heavy_fighter = {
	category = air

	available_for = {ITA}

	roles = {
		air_heavy_fighter
	}

	priority = {
		factor = 500
	}
	heavy_fighter_1 = {
		priority = {
			factor = 100	
		}
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_1
			modules = {
				fixed_main_weapon_slot = nose_light_mg_4x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_1_2x
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = empty	
				fixed_auxiliary_weapon_slot_6 = empty				
				engine_type_slot = engine_2_2x
				special_type_slot_1 = armor_plate_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = empty
				special_type_slot_4 = empty
				special_type_slot_5 = empty
				special_type_slot_6 = empty
				special_type_slot_7 = early_supercharger
			}
			
		}
		allowed_modules = {
			light_mg_4x
			aircraft_cannon_1_2x
			heavy_mg_4x
			heavy_mg_2x
			engine_2_2x			
			self_sealing_fuel_tanks_medium
			high_octane_fuel_medium
			armor_plate_medium
			lmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret
			hmg_defense_turret_2x
			air_air_radar_1
			air_air_radar_2
		}
	}		
	heavy_fighter_1 = {
		priority = {
			factor = 100
			modifier = {			
				has_tech = centimetric_radar
				factor = 10
			}			
		}		
		target_variant = {
			match_value = 1000			
			type = medium_plane_fighter_airframe_1
			modules = {
				fixed_main_weapon_slot = nose_light_mg_4x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_1_2x
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = empty	
				fixed_auxiliary_weapon_slot_6 = empty				
				engine_type_slot = engine_2_2x
				special_type_slot_1 = armor_plate_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = empty
				special_type_slot_4 = { any_of = { air_air_radar_1 air_air_radar_2} }
				special_type_slot_5 = empty
				special_type_slot_6 = empty
				special_type_slot_7 = early_supercharger
			}
			
		}
		allowed_modules = {
			light_mg_4x
			aircraft_cannon_1_2x
			heavy_mg_4x
			heavy_mg_2x
			engine_2_2x			
			self_sealing_fuel_tanks_medium
			high_octane_fuel_medium
			armor_plate_medium
			lmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret
			hmg_defense_turret_2x
			air_air_radar_1
			air_air_radar_2
		}
	}
	heavy_fighter_2 = {
		priority = {
			factor = 200
			modifier = {			
				has_tech = centimetric_radar
				factor = 10
			}			
		}
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				fixed_main_weapon_slot = aircraft_nose_cannon_1_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_1_2x
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = { any_of = { lmg_defense_turret_2x lmg_defense_turret hmg_defense_turret_2x hmg_defense_turret } }
				fixed_auxiliary_weapon_slot_6 = empty				
				engine_type_slot = engine_3_2x
				special_type_slot_1 = water_injection_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = armor_plate_medium
				special_type_slot_4 = empty
				special_type_slot_5 = { any_of = { air_air_radar_1 air_air_radar_2} }
				special_type_slot_6 = empty 
			    special_type_slot_7 = supercharger
			}
			
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_2x			
			self_sealing_fuel_tanks_medium
			lmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret
			hmg_defense_turret_2x
			air_air_radar_1
			water_injection_medium
			high_octane_fuel_medium
			air_air_radar_1
			air_air_radar_2			
		}
	}
	heavy_fighter_2 = {
		priority = {
			factor = 200		
		}
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { aircraft_nose_cannon_2_2x aircraft_nose_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_nose_cannon_2_2x aircraft_nose_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_5 = { any_of = { lmg_defense_turret_2x lmg_defense_turret hmg_defense_turret_2x hmg_defense_turret } }
				fixed_auxiliary_weapon_slot_6 = empty								
				engine_type_slot = engine_3_2x
				special_type_slot_1 = water_injection_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = armor_plate_medium
				special_type_slot_4 = empty
				special_type_slot_5 = { any_of = { air_air_radar_1 air_air_radar_2} }
				special_type_slot_6 = empty 
			    special_type_slot_7 = supercharger
			}
			
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_2x			
			self_sealing_fuel_tanks_medium
			lmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret
			hmg_defense_turret_2x
			air_air_radar_1
			water_injection_medium
			high_octane_fuel_medium
		}
	}

	heavy_fighter_3 = {
		priority = {
			factor = 200
			modifier = {			
				has_tech = centimetric_radar
				factor = 10
			}			
		}
		target_variant = {
			match_value = 1000			
			type = medium_plane_fighter_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { aircraft_nose_cannon_2_2x aircraft_nose_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_nose_cannon_2_2x aircraft_nose_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { aircraft_cannon_2_2x aircraft_cannon_1_2x } }
				fixed_auxiliary_weapon_slot_3 = empty
				fixed_auxiliary_weapon_slot_4 = empty
				fixed_auxiliary_weapon_slot_5 = empty
				fixed_auxiliary_weapon_slot_6 = empty				
				engine_type_slot = engine_3_2x
				special_type_slot_1 = water_injection_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = armor_plate_medium
				special_type_slot_4 = empty
				special_type_slot_5 = { any_of = { air_air_radar_1 air_air_radar_2} }
				special_type_slot_6 = empty 
			    special_type_slot_7 = supercharger
			}
			
		}
		allowed_modules = {
			light_mg_4x
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			engine_3_2x						
			self_sealing_fuel_tanks_medium
			lmg_defense_turret
			lmg_defense_turret_2x
			hmg_defense_turret
			air_air_radar_1
			air_air_radar_2
			high_octane_fuel_medium
			water_injection_medium
		}
	}
}


ITA_strategic_bomber = {
	category = air

	available_for = {ITA}

	roles = {
		air_strategic_bomber
	}

	priority = {
		factor = 200
		modifier = {
			num_of_factories < 100
			factor = 0
		}
		modifier = { #beat the Soviets already
			has_War = yes
			SOV = {
				OR = {
					exists = no
					is_subject_of = ITA
				}
			}
			factor = 4
		}
	}

	strat_bomber_1_default = {
		priority = {
			factor = 10	
		}

		target_variant = {
			match_value = 1000
			type = large_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = empty				
				engine_type_slot = engine_2_4x
				special_type_slot_1 = empty
				special_type_slot_2 = empty
			    special_type_slot_7 = normally_aspirated_engine				
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret
		}
	}

	strat_bomber_2_default = {
		priority = {
			factor = 10
			
		}

		target_variant = {
			match_value = 2000
			type = large_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x					
				engine_type_slot = engine_3_4x
				special_type_slot_1 = empty
				special_type_slot_2 = empty
			    special_type_slot_7 = normally_aspirated_engine
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_3_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
		}
	}

	strat_bomber_3_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 4000
			type = large_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = large_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x				
				engine_type_slot = engine_3_4x
				special_type_slot_1 = empty
				special_type_slot_2 = empty
			    special_type_slot_7 = normally_aspirated_engine
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			engine_4_4x
			cannon_defense_turret_2x
			hmg_defense_turret_2x
		}
	}
	jet_strat_bomber_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 5000
			type = large_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = large_bomb_bay
				fixed_auxiliary_weapon_slot_1 = large_bomb_bay
				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = jet_engine_6x
				special_type_slot_1 = cannon_defense_turret_2x
				special_type_slot_2 = hmg_defense_turret_2x
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = fuel_tanks_large #amerikabomber time
			    special_type_slot_7 = compressor			
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			jet_engine_6x
			fuel_tanks_large
			cannon_defense_turret_2x
			hmg_defense_turret_2x
		}
	}
}

ITA_maritime_patrol = {
	category = air

	available_for = {ITA}

	roles = {
		air_maritime_patrol
	}

	priority = {
		factor = 200
		modifier = {
			num_of_factories < 50
			factor = 0
		}
	}

	maritime_patrol_1_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 1000
			type = large_plane_maritime_patrol_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret_2x				
				engine_type_slot = engine_1_4x
				special_type_slot_1 = flying_boat_large
				special_type_slot_2 = empty
				special_type_slot_3 = empty
			    special_type_slot_7 = normally_aspirated_engine				
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_1_4x
			fuel_tanks_large
			flying_boat_large
			lmg_defense_turret
		}
	}

	maritime_patrol_2_default = {
		priority = {
			factor = 10
			
		}

		target_variant = {
			match_value = 2000
			type = large_plane_maritime_patrol_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = torpedo_mounting
				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret_2x				
				engine_type_slot = engine_2_4x
				special_type_slot_1 = flying_boat_large
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = empty
				special_type_slot_7 = normally_aspirated_engine	
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_3_default = {
		priority = {
			factor = 10
		}

		target_variant = {
			match_value = 4000
			type = large_plane_maritime_patrol_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = torpedo_mounting
				fixed_auxiliary_weapon_slot_2 = torpedo_mounting
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x				
				engine_type_slot = engine_3_4x
				special_type_slot_1 = flying_boat_large
				special_type_slot_2 = empty
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = empty
				special_type_slot_7 = normally_aspirated_engine	
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			engine_4_4x
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			air_ground_radar_2
			air_ground_radar_1
			recon_camera
			fuel_tanks_large
			flying_boat_large
		}
	}
}

