# AI plane design for testing

HIP_fighter = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_fighter
	}

	priority = {
		factor = 1000
		modifier = {
			has_War = yes
			factor = 2
		}
	}

	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_4x
#				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 = canopy0	
			}
		}

		allowed_modules = {
			engine_1_1x
			radial_engine_1_1x
			light_mg_4x
		}
	}

	basic_fighter_default = {
		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 = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_2x heavy_mg_2x } }
#				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = drop_tanks
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = auto_extinguisher_system_small
				special_type_slot_6 = water_injection_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = { any_of = { canopy2 canopy1 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_1 reflex_gunsight_2 reflex_gunsight_1 } }	
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			radial_engine_2_1x
			fuel_tanks_small
			armor_plate_small
			drop_tanks
			water_injection_small
			fuel_tanks_small
			auto_extinguisher_system_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
			NACA_cowling
			reflex_gunsight_1
			reflex_gunsight_2
			canopy1
			canopy2
		}
	}

	improved_fighter_default = {
		priority = {
			factor = 100
			modifier = { 
				has_tech = advanced_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { aircraft_engine_mounted_cannon_2 aircraft_engine_mounted_cannon_1 }}
#				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = { any_of = { engine_4_1x engine_3_1x engine_2_1x } }
				special_type_slot_1 = pressurized_cockpit
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = drop_tanks
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = auto_extinguisher_system_small
				special_type_slot_6 = water_injection_small
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger early_turbocharger} }
				special_type_slot_8 = { any_of = { canopy3 canopy2 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_2 gyro_gunsight_1 reflex_gunsight_2 } }		
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			aircraft_cannon_1_2x
			aircraft_cannon_1_1x
			engine_3_1x
			radial_engine_3_1x
			fuel_tanks_small
			armor_plate_small
			drop_tanks
			water_injection_small
			fuel_tanks_small
			auto_extinguisher_system_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
			reflex_gunsight_1
			reflex_gunsight_2
			gyro_gunsight_1
			canopy2
			canopy3
		}
	}

	advanced_fighter_default = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				engine_type_slot = { any_of = { engine_4_1x engine_3_1x } }
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = drop_tanks
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = pressurized_cockpit
				special_type_slot_6 = water_injection_small
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
				special_type_slot_8 = { any_of = { canopy3 canopy2 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_2 gyro_gunsight_1 reflex_gunsight_2 } }	
			}
		}

		allowed_modules = { 
			drop_tanks
			heavy_mg_4x
			imp_heavy_mg_4x
			engine_4_1x
			radial_engine_4_1x
			fuel_tanks_small
			armor_plate_small
			drop_tanks
			water_injection_small
			fuel_tanks_small
			auto_extinguisher_system_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
			gyro_gunsight_1
			gyro_gunsight_2
			canopy2
			canopy3
		}
	}
	jet_fighter_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = small_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = { any_of = { aircraft_nose_cannon_2_2x aircraft_nose_cannon_1_2x }}
				fixed_auxiliary_weapon_slot_1 = nose_heavy_mg_2x
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = auto_extinguisher_system_small
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = pressurized_cockpit
#				special_type_slot_6 = empty
				special_type_slot_7 = { any_of = { improved_compressor compressor } }
				special_type_slot_8 = { any_of = { canopy3 canopy2 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_2 gyro_gunsight_1 reflex_gunsight_2 } }	
			}
		}

		allowed_modules = { 
			aircraft_nose_cannon_2_2x
			nose_heavy_mg_2x
			nose_heavy_mg_4x
			jet_engine_2x
			armor_plate_small
			drop_tanks
			fuel_tanks_small
			auto_extinguisher_system_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
			gyro_gunsight_2
			canopy3
			compressor
			improved_compressor
		}
	}
}

HIP_cas = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_cas
	}

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

		history = yes
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_0
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				engine_type_slot = engine_1_2x
#				special_type_slot_1 = empty
#				special_type_slot_2 = empty	
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy0
			}
		}

		allowed_modules = {
			engine_1_2x
			radial_engine_1_2x
			bomb_locks
		}
	}
	cas_1 = {
		priority = {
			factor = 100	
		}
		target_variant = {
			match_value = 1000
			type = small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = armor_plate_small
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			radial_engine_2_1x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}
	cas_2 = {
		priority = {
			factor = 200
		}
		history = yes
		target_variant = {
			match_value = 1500
			type = small_plane_cas_airframe_2
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				fixed_auxiliary_weapon_slot_2 = { any_of = { rocket_rails_2 rocket_rails } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { rocket_rails_2 rocket_rails } }
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				engine_type_slot = { any_of = { radial_engine_3_2x radial_engine_2_2x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_7 = { any_of = { turbocharger early_turbocharger } }
				special_type_slot_8 = canopy1
				special_type_slot_9 = { any_of = { cas_reflex_gunsight_2 cas_reflex_gunsight_1 } }				
			}
		}
		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			radial_engine_3_2x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}
	cas_2_improved = {
	name = "A-20 G"
		priority = {
			factor = 200
			modifier = { 
				has_tech = radial_engines_3
				factor = 100
			}			
		}
		target_variant = {
			match_value = 2000
			type = small_plane_cas_airframe_2
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				fixed_auxiliary_weapon_slot_2 = { any_of = { rocket_rails_2 rocket_rails } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { tank_buster_2 tank_buster_1 } }
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = armor_plate_small
				special_type_slot_6 = auto_extinguisher_system_small				
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
				special_type_slot_8 = canopy1
				special_type_slot_9 = { any_of = { cas_reflex_gunsight_2 cas_reflex_gunsight_1 } }
			}
		}
		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			radial_engine_3_2x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}	
	cas_3 = {
		priority = {
			factor = 200
		}
		history = yes
		target_variant = {
			match_value = 2500
			type = small_plane_cas_airframe_3
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				fixed_auxiliary_weapon_slot_2 = { any_of = { rocket_rails_2 rocket_rails } }
				fixed_auxiliary_weapon_slot_3 = { any_of = { tank_buster_2 tank_buster_1 } }
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				engine_type_slot = { any_of = { radial_engine_4_2x radial_engine_3_2x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = fuel_tanks_small
				special_type_slot_4 = auto_extinguisher_system_small
				special_type_slot_5 = armor_plate_small
				special_type_slot_6 = self_sealing_fuel_tanks_small
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
				special_type_slot_8 = canopy1
				special_type_slot_9 = { any_of = { cas_reflex_gunsight_2 cas_reflex_gunsight_1 } }				
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			tank_buster_2
			bomb_locks
			rocket_rails
			rocket_pods
			radial_engine_4_2x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
			turbosupercharger
		}
	}
	cas_4 = {
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}
		}
		history = yes
		target_variant = {
			match_value = 3000
			type = small_plane_cas_airframe_4
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = tank_buster_2
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				special_type_slot_2 = armor_plate_small	
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			rocket_rails
			rocket_pods
			engine_3_1x
			radial_engine_3_1x
			engine_4_1x
			radial_engine_4_1x
			jet_engine_2x
			tank_buster_1
			tank_buster_2
			hmg_defense_turret
			armor_plate_small
		}
	}
	cas_5 = {
		priority = {
			factor = 200
			modifier = { 
				is_special_project_completed = sp:sp_air_supersonic_jet 
				factor = 0 #let's not waste XP here
			}
		}
		history = yes
		target_variant = {
			match_value = 4000
			type = small_plane_cas_airframe_5
			modules = {
				fixed_main_weapon_slot = small_bomb_bay
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = tank_buster_3
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				special_type_slot_2 = armor_plate_small	
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			rocket_rails
			rocket_pods
			jet_engine_2x
			tank_buster_1
			tank_buster_2
			tank_buster_3
			hmg_defense_turret
			armor_plate_small
		}
	}
}

HIP_naval_bomber = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_naval_bomber
	}
	priority = {
		factor = 1
	}
	naval_bomber_0 = {
		priority = {
			factor = 10
			modifier = { 
				has_tech = basic_small_airframe
				factor = 0 #let's not waste XP here
			}
		}
		history = yes
		target_variant = {
			match_value = 1000
			type = small_plane_naval_bomber_airframe_0
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				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 = canopy0
			}
		}

		allowed_modules = {
			engine_1_1x
			radial_engine_1_1x
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
		}
	}
	naval_bomber_1 = {
		priority = {
			factor = 1
		}
		history = yes
		target_variant = {
			match_value = 1000
			type = small_plane_naval_bomber_airframe_1
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1
			}
		}
		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_2_1x
			radial_engine_2_1x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}
	naval_bomber_2 = {
		priority = {
			factor = 1
		}
		history = yes
		target_variant = {
			match_value = 1500
			type = small_plane_naval_bomber_airframe_2
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = radial_engine_2_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1	
			}
		}
		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
			lmg_defense_turret
			bomb_locks
			engine_2_2x
			radial_engine_2_2x
			armor_plate_small
			fuel_tanks_small
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}

	naval_bomber_3 = {
		priority = {
			factor = 1
		}
		history = yes
		target_variant = {
			match_value = 2000
			type = small_plane_naval_bomber_airframe_3
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				fixed_auxiliary_weapon_slot_1 = empty
#				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = radial_engine_3_1x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_small
				special_type_slot_3 = armor_plate_small
				special_type_slot_4 = self_sealing_fuel_tanks_small
				special_type_slot_5 = auto_extinguisher_system_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_3
			bomb_locks
			engine_3_1x
			radial_engine_3_1x
			lmg_defense_turret
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}
	naval_bomber_4 = {
		priority = {
			factor = 200
		}
		history = yes
		target_variant = {
			match_value = 2500
			type = small_plane_naval_bomber_airframe_4
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = bomb_locks
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_1x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = compressor
				special_type_slot_8 = canopy3
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			bomb_locks
			engine_3_1x
			radial_engine_3_1x
			jet_engine_1x
			hmg_defense_turret
			dive_brakes_small
		}
	}
	naval_bomber_5 = {
		priority = {
			factor = 200
			modifier = { 
				is_special_project_completed = sp:sp_air_supersonic_jet 
				factor = 0 #let's not waste XP here
			}
		}
		history = yes
		target_variant = {
			match_value = 2500
			type = small_plane_naval_bomber_airframe_5
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						guided_anti_ship_missile
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
#				fixed_auxiliary_weapon_slot_1 = empty
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_3_1x
			radial_engine_3_1x
			jet_engine_2x
			hmg_defense_turret
		}
	}
}

HIP_cv_fighter = {
	category = air

	#blocked_for = {  ENG HIP FRA JAP }

	available_for = {HIP WIN}

	roles = {
		air_cv_fighter
	}

	priority = {
		factor = 1000
		modifier = {
			has_navy_size = {
				unit = carrier
 	  			size < 1
			}
			factor = 0
		}
		modifier = {
			has_war_with = WNG
			factor = 2
		}
	}

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

		history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = light_mg_4x
#				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = 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 = canopy0
#				special_type_slot_9 = empty		
			}
		}

		allowed_modules = {
			engine_1_1x
			radial_engine_1_1x
			light_mg_4x
			early_supercharger
		}
	}

	basic_cv_fighter_default = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = cv_small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = heavy_mg_2x
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
#				special_type_slot_2 = empty
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = { any_of = { canopy2 canopy1 } }
				special_type_slot_9 = { any_of = { reflex_gunsight_2 reflex_gunsight_1 } }	
			}
		}

		allowed_modules = {
			light_mg_4x
			heavy_mg_2x
			heavy_mg_4x
			radial_engine_3_1x
			armor_plate_small
			reflex_gunsight_1
			auto_extinguisher_system_small
			self_sealing_fuel_tanks_small
		}
	}

	improved_cv_fighter_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = cv_small_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_2x heavy_mg_2x } }
				engine_type_slot = { any_of = { radial_engine_4_1x radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				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_7 = { any_of = { turbosupercharger turbocharger early_turbocharger } }
				special_type_slot_8 = { any_of = {canopy3 canopy2 canopy1 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_2 gyro_gunsight_1 reflex_gunsight_2 } }
			}
		}

		allowed_modules = {
			heavy_mg_4x
			heavy_mg_2x
			radial_engine_3_1x
			radial_engine_4_1x
			reflex_gunsight_2
			turbocharger
			auto_extinguisher_system_small
			water_injection_small
			pressurized_cockpit
		}
	}

	advanced_cv_fighter_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				engine_type_slot = { any_of = { radial_engine_4_1x radial_engine_3_1x } }
				special_type_slot_1 = NACA_cowling
				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 = auto_extinguisher_system_small
				special_type_slot_6 = pressurized_cockpit
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
				special_type_slot_8 = { any_of = { canopy3 canopy2 } }
				special_type_slot_9 = { any_of = { gyro_gunsight_2 gyro_gunsight_1 reflex_gunsight_2 } }
			}
		}

		allowed_modules = { 
			aircraft_cannon_1_2x
			rocket_rails
			rocket_pods
			bomb_locks
			drop_tanks
			radial_engine_4_1x
			gyro_gunsight_1
			gyro_gunsight_2
			turbosupercharger
			auto_extinguisher_system_small
		}
	}
	jet_cv_fighter_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = cv_small_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = aircraft_nose_cannon_1_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_1_2x
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = auto_extinguisher_system_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
#				special_type_slot_4 = empty
				special_type_slot_5 = pressurized_cockpit
#				special_type_slot_6 = empty
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
				special_type_slot_9 = gyro_gunsight_2	
			}
		}

		allowed_modules = { 
			aircraft_nose_cannon_2_2x
			nose_heavy_mg_2x
			nose_heavy_mg_4x
			jet_engine_2x
			armor_plate_small
			drop_tanks
			fuel_tanks_small
			auto_extinguisher_system_small
			pressurized_cockpit
			self_sealing_fuel_tanks_small
			gyro_gunsight_2
			canopy3
			compressor
			improved_compressor
		}
	}
	jet_cv_fighter_default_2 = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 6000
			type = cv_small_plane_airframe_5
			modules = {
				fixed_main_weapon_slot = aircraft_cannon_2_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_2_2x
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = armor_plate_small
				special_type_slot_2 = drop_tanks	
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}
		}

		allowed_modules = { 
			aircraft_cannon_2_2x
			aircraft_cannon_3_2x
			jet_engine_2x
			armor_plate_small
			drop_tanks
		}
	}
}

HIP_cv_cas = {
	category = air

	#blocked_for = { ENG HIP FRA JAP }

	available_for = {HIP WIN}

	roles = {
		air_cv_cas
	}

	priority = {
		factor = 100
		modifier = {
			has_navy_size = {
				unit = carrier
 	  			size < 1
			}
			factor = 0
		}
	}
	cv_cas_0 = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_cas_airframe_0
			modules = {
				fixed_main_weapon_slot = bomb_locks
#				fixed_auxiliary_weapon_slot_1 = empty
				engine_type_slot = engine_2_1x
				special_type_slot_1 = dive_brakes_small
#				special_type_slot_2 = empty	
				special_type_slot_7 = normally_aspirated_engine
				special_type_slot_8 = canopy0
			}
			
		}

		allowed_modules = {
			bomb_locks
			engine_2_1x
			radial_engine_2_1x
			dive_brakes_small
		}
	}
	cv_cas_1 = {
		priority = {
			factor = 100
			
		}

		history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_cas_airframe_1
			modules = {
				fixed_main_weapon_slot = bomb_locks
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = dive_brakes_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1	
			}
			
		}

		allowed_modules = {
			bomb_locks
			dive_brakes_small
		}
	}
	cv_cas_2 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 1500
			type = cv_small_plane_cas_airframe_2
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
#				fixed_auxiliary_weapon_slot_2 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = dive_brakes_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_4 = armor_plate_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1		
			}
		}

		allowed_modules = {
			bomb_locks
			dive_brakes_small
		}
	}
	cv_cas_3 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 2500
			type = cv_small_plane_cas_airframe_3
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = bomb_locks
				fixed_auxiliary_weapon_slot_3 = bomb_locks
				fixed_auxiliary_weapon_slot_4 = bomb_locks
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = dive_brakes_small
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_4 = armor_plate_small
				special_type_slot_5 = auto_extinguisher_system_small
				special_type_slot_7 = turbocharger
				special_type_slot_8 = canopy1		
			}
		}

		allowed_modules = {
			bomb_locks
			dive_brakes_small
		}
	}
	cv_cas_4 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = cv_small_plane_cas_airframe_4
			modules = {
				fixed_main_weapon_slot = bomb_locks
				fixed_auxiliary_weapon_slot_1 = bomb_locks
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_1x
				special_type_slot_1 = dive_brakes_small
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}
		}

		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			engine_4_1x
			radial_engine_4_1x
			jet_engine_1x
			dive_brakes_small
		}
	}
	cv_cas_5 = {
		priority = {
			factor = 200
			modifier = { 
				has_tech = modern_small_airframe_2
				factor = 0 #let's not waste XP here
			}
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = cv_small_plane_cas_airframe_5
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						guided_air_to_surface_missile
						small_bomb_bay
						bomb_locks
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						hardpoint
						small_bomb_bay
						bomb_locks
					}
				}
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				special_type_slot_1 = dive_brakes_small
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}
		}
		allowed_modules = {
			small_bomb_bay
			small_bomb_bay_2
			bomb_locks
			engine_4_1x
			radial_engine_4_1x
			jet_engine_1x
			dive_brakes_small
		}
	}
}

HIP_cv_naval_bomber = {
	category = air

	#blocked_for = {  ENG HIP FRA JAP }

	available_for = {HIP WIN}

	roles = {
		air_cv_naval_bomber
	}

	priority = {
		factor = 500
		modifier = {
			has_navy_size = {
				unit = carrier
 	  			size < 1
			}
			factor = 0
		}
	}
	cv_naval_bomber_0 = {
		priority = {
			factor = 1
			modifier = { 
				has_tech = basic_small_airframe 
				factor = 0 #let's not waste XP here
			}
		}

		history = yes
		target_variant = {
			match_value = 1000
			type = cv_small_plane_naval_bomber_airframe_0
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				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 = canopy0
			}
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_1_1x
			radial_engine_1_1x
		}
	}
	cv_naval_bomber_1 = {
		priority = {
			factor = 100
			
		}

		target_variant = {
			match_value = 1000
			type = cv_small_plane_naval_bomber_airframe_1
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = armor_plate_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1		
			}
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
			engine_2_1x
			radial_engine_2_1x
		}
	}
	cv_naval_bomber_2 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 1500
			type = cv_small_plane_naval_bomber_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
#				special_type_slot_2 = empty
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_4 = armor_plate_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			bomb_locks
			engine_3_1x
			radial_engine_3_1x
			lmg_defense_turret
		}
	}

	cv_naval_bomber_3 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = cv_small_plane_naval_bomber_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_2 torpedo_mounting } }
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_4 = asv_radar
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_1x radial_engine_2_1x } }
				special_type_slot_1 = NACA_cowling
#				special_type_slot_2 = empty
				special_type_slot_3 = self_sealing_fuel_tanks_small
				special_type_slot_4 = armor_plate_small
				special_type_slot_5 = auto_extinguisher_system_small
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy1	
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			lmg_defense_turret
		}
	}
	cv_naval_bomber_4 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 2500
			type = cv_small_plane_naval_bomber_airframe_4
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
				fixed_auxiliary_weapon_slot_1 = bomb_locks
				fixed_auxiliary_weapon_slot_2 = { any_of = { rocket_rails bomb_locks } }
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_1x
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = compressor
				special_type_slot_8 = canopy3
			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			bomb_locks
			engine_3_1x
			radial_engine_3_1x
			engine_4_1x
			radial_engine_4_1x
			jet_engine_1x
			lmg_defense_turret
			dive_brakes_small
			rocket_rails
			rocket_pods
		}
	}
	cv_naval_bomber_5 = {
		priority = {
			factor = 150
			
		}
		history = yes
		target_variant = {
			match_value = 2500
			type = cv_small_plane_naval_bomber_airframe_5
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						guided_anti_ship_missile
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
#				fixed_auxiliary_weapon_slot_1 = empty
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = jet_engine_2x
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3

			}

		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_3_1x
			radial_engine_3_1x
			engine_4_1x
			radial_engine_4_1x
			jet_engine_1x
			lmg_defense_turret
		}
	}
}

HIP_medium_naval_bomber = {
	category = air

	available_for = {HIP WIN}

	roles = {
		air_naval_bomber
	}

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

		history = yes
		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 = torpedo_mounting
				fixed_auxiliary_weapon_slot_2 = medium_bomb_bay
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret_2x
				engine_type_slot = { any_of = { radial_engine_3_2x radial_engine_2_2x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = flying_boat_medium
				special_type_slot_3 = { any_of = { sonobuoy magnetic_anomaly_detector leigh_light } }
				special_type_slot_7 = { any_of = { turbocharger early_turbocharger } }
			}
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_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 = hmg_defense_turret_2x
				engine_type_slot = radial_engine_3_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = flying_boat_medium
				special_type_slot_3 = fuel_tanks_medium
				special_type_slot_4 = auto_extinguisher_system_medium
				special_type_slot_5 = { any_of = { sonobuoy magnetic_anomaly_detector leigh_light } }
				special_type_slot_6 = asv_radar					
				special_type_slot_7 = turbocharger
			}
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_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 = radial_engine_3_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = flying_boat_medium
				special_type_slot_3 = fuel_tanks_medium
				special_type_slot_4 = auto_extinguisher_system_medium
				special_type_slot_5 = { any_of = { sonobuoy magnetic_anomaly_detector leigh_light } }
				special_type_slot_6 = asv_radar				
				special_type_slot_7 = turbocharger
			}
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
		}
	}	
}

HIP_tactical_bomber = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_tactical_bomber
	}

	priority = {
		factor = 2000
		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
			}
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = medium_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
#				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_5 = lmg_defense_turret
				engine_type_slot = radial_engine_1_2x
				special_type_slot_1 = NACA_cowling
#				special_type_slot_2 = empty
				special_type_slot_7 = normally_aspirated_engine
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			engine_1_2x
			radial_engine_1_2x
			
		}
	}

	tac_bomber_1_default = {
		priority = {
			factor = 100
	
		}

		target_variant = {
			match_value = 3000
			type = medium_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				engine_type_slot = radial_engine_2_2x
				special_type_slot_1 = NACA_cowling
#				special_type_slot_2 = empty
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }		
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			engine_2_2x
			radial_engine_2_2x
		}
	}
	tac_bomber_2_default = {
		priority = {
			factor = 100
	
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = medium_plane_airframe_2
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
				fixed_auxiliary_weapon_slot_2 = small_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_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 = self_sealing_fuel_tanks_medium
				special_type_slot_4 = auto_extinguisher_system_medium
				special_type_slot_5 = armor_plate_medium
				special_type_slot_6 = fuel_tanks_medium
				special_type_slot_7 = turbocharger	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			engine_3_2x
			radial_engine_3_2x
			hmg_defense_turret_2x
			hmg_defense_turret
		}
	}

	tac_bomber_3_default = {
		priority = {
			factor = 100
		}

		history = yes
		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_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				engine_type_slot = radial_engine_4_2x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = air_ground_radar_2
				special_type_slot_3 = self_sealing_fuel_tanks_medium
				special_type_slot_4 = auto_extinguisher_system_medium
				special_type_slot_5 = armor_plate_medium
				special_type_slot_6 = fuel_tanks_medium
				special_type_slot_7 = turbosupercharger	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
		}
	}
	jet_tac_bomber_default = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = medium_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = medium_bomb_bay
				fixed_auxiliary_weapon_slot_1 = small_bomb_bay
#				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = jet_engine_2x
#				special_type_slot_1 = empty
				fixed_auxiliary_weapon_slot_5 = remote_control_turret_system
				special_type_slot_3 = self_sealing_fuel_tanks_medium
				special_type_slot_4 = auto_extinguisher_system_medium
				special_type_slot_5 = armor_plate_medium
#				special_type_slot_6 = empty
				special_type_slot_7 = compressor	
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			jet_engine_2x
			improved_compressor
		}
	}
	jet_tac_bomber_default_2 = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 7000
			type = medium_plane_airframe_5
			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_4 = empty
				engine_type_slot = {
					any_of = {
						jet_engine_2_3x
						jet_engine_3x
					}
				}
				special_type_slot_1 = armor_plate_medium
				fixed_auxiliary_weapon_slot_5 = cannon_defense_turret_2x	
				special_type_slot_3 = fuel_tanks_medium
#				special_type_slot_4 = empty
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3
			}
			
		}

		allowed_modules = {
			medium_bomb_bay
			medium_bomb_bay_2
			bomb_locks
			fuel_tanks_medium
			armor_plate_medium
			jet_engine_2x
			hmg_defense_turret_2x
			cannon_defense_turret_2x
		}
	}
}

HIP_heavy_fighter = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_heavy_fighter
	}

	priority = {
		factor = 10
		
	}
	heavy_fighter_0 = {
		priority = {
			factor = 10
			modifier = { 
				has_tech = basic_medium_airframe
				factor = 0 #let's not waste XP here
			}
		}
		

		history = yes
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_0
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = {
					any_of = {
						engine_3_2x
						radial_engine_3_2x
						engine_2_2x
						radial_engine_2_2x
						engine_1_2x
						radial_engine_1_2x
					}
				}
#				special_type_slot_1 = empty
#				special_type_slot_2 = empty	
#				special_type_slot_3 = empty	
#				special_type_slot_4 = empty	
				special_type_slot_7 = { any_of = { supercharger early_supercharger } }
				special_type_slot_8 = canopy0
			}
			
		}

		allowed_modules = {
			light_mg_4x
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_3_2x
			radial_engine_3_2x
			engine_2_2x
			radial_engine_2_2x
			engine_1_2x
			radial_engine_1_2x
		}
	}
	heavy_fighter_1 = {
		priority = {
			factor = 100
		}
		

		history = yes
		target_variant = {
			match_value = 1000
			type = medium_plane_fighter_airframe_1
			modules = {
				fixed_main_weapon_slot = heavy_mg_4x
				fixed_auxiliary_weapon_slot_1 = aircraft_nose_cannon_1_2x
#				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = engine_2_2x
				special_type_slot_1 = armor_plate_medium
#				special_type_slot_2 = empty
				special_type_slot_3 = self_sealing_fuel_tanks_medium
#				special_type_slot_4 = empty
#				special_type_slot_5 = empty
#				special_type_slot_6 = empty
				special_type_slot_7 = early_supercharger	
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			engine_2_2x
			radial_engine_2_2x
		}
	}

	heavy_fighter_2 = {
		priority = {
			factor = 200
		}

		history = yes
		target_variant = {
			match_value = 1500
			type = medium_plane_fighter_airframe_2
			modules = {
				fixed_main_weapon_slot = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { imp_heavy_mg_4x heavy_mg_4x } }
#				fixed_auxiliary_weapon_slot_2 = empty
				engine_type_slot = { any_of = { radial_engine_4_1x radial_engine_3_1x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = drop_tanks_medium
				special_type_slot_4 = water_injection_medium
				special_type_slot_5 = fuel_tanks_medium
#				special_type_slot_6 = empty
				special_type_slot_7 = { any_of = { turbosupercharger supercharger } }
			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			aircraft_cannon_1_2x
			armor_plate_medium
			fuel_tanks_medium
			engine_3_2x
			radial_engine_3_2x
			high_octane_fuel_medium
		}
	}

	heavy_fighter_3 = {
		priority = {
			factor = 200
			
		}

		history = yes
		target_variant = {
			match_value = 2000
			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 = { imp_heavy_mg_4x heavy_mg_4x } }
				engine_type_slot = { any_of = { engine_4_2x engine_3_2x } }
				special_type_slot_1 = water_injection_medium
				special_type_slot_2 = self_sealing_fuel_tanks_medium
				special_type_slot_3 = auto_extinguisher_system_medium
				special_type_slot_4 = fuel_tanks_medium
				special_type_slot_5 = drop_tanks_medium
				special_type_slot_6 = { any_of = { air_air_radar_2 air_air_radar_1 } }
				special_type_slot_7 = { any_of = { turbosupercharger supercharger } }
			}
			
		}

		allowed_modules = {
			aircraft_cannon_2_2x
			aircraft_cannon_2_2x
			engine_4_2x
			radial_engine_4_2x
			air_air_radar_1
			turbocharger
			supercharger
			armor_plate_medium
			fuel_tanks_medium
		}
	}
	heavy_fighter_4 = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_4
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
#				fixed_auxiliary_weapon_slot_3 = empty
#				fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = {
					any_of = {
						jet_engine_2_2x
						jet_engine_2x
					}
				}
				special_type_slot_1 = {
					any_of = {
						air_air_radar_4
						air_air_radar_3
					}
				}
#				special_type_slot_2 = empty	
#				special_type_slot_3 = empty	
#				special_type_slot_4 = empty	
#				special_type_slot_5 = empty	
				special_type_slot_7 = compressor
				special_type_slot_8 = canopy3

			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			light_mg_4x
			aircraft_cannon_3_2x
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2_2x
			jet_engine_3x
		}
	}

	heavy_fighter_5 = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = medium_plane_fighter_airframe_5
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						aircraft_cannon_4_2x
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						aircraft_cannon_4_2x
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						aircraft_cannon_4_2x
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
				fixed_auxiliary_weapon_slot_3 = {
					any_of = {
						aircraft_cannon_4_2x
						aircraft_cannon_3_2x
						aircraft_cannon_2_2x
						aircraft_cannon_1_2x
						heavy_mg_4x
						light_mg_4x
					}
				}
#				fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = {
					any_of = {
						jet_engine_2_3x
						jet_engine_4x
					}
				}
				special_type_slot_1 = {
					any_of = {
						air_air_radar_4
						air_air_radar_3
					}
				}
#				special_type_slot_2 = empty	
#				special_type_slot_3 = empty	
#				special_type_slot_4 = empty	
#				special_type_slot_5 = empty	
				special_type_slot_7 = improved_compressor
				special_type_slot_8 = canopy3

			}
			
		}

		allowed_modules = {
			heavy_mg_4x
			light_mg_4x
			aircraft_cannon_3_2x
			aircraft_cannon_2_2x
			aircraft_cannon_1_2x
			jet_engine_2_2x
			jet_engine_3x
		}
	}
}

HIP_strategic_bomber = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_strategic_bomber
	}

	priority = {
		factor = 200
		modifier = {
			date > "1940.1.1"
			factor = 5
		}
		modifier = {
			has_war = yes
			factor = 2
		}
	}

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

		history = yes
		target_variant = {
			match_value = 750
			type = large_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = large_bomb_bay
#				fixed_auxiliary_weapon_slot_1 = empty
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = engine_1_4x
#				special_type_slot_1 = empty
#				special_type_slot_2 = empty
#				special_type_slot_3 = empty
#				special_type_slot_4 = empty
#				special_type_slot_5 = empty
				special_type_slot_7 = normally_aspirated_engine
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_1_4x
			radial_engine_1_4x
			engine_2_4x
			radial_engine_2_4x
			lmg_defense_turret_2x
			lmg_defense_turret
		}
	}

	strat_bomber_1_default = {
		priority = {
			factor = 100
		}

		history = yes
		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 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_7 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_8 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_3_4x radial_engine_2_4x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = bomb_sights_1
				special_type_slot_3 = radio_navigation_1
				special_type_slot_7 = { any_of = { turbocharger early_turbocharger } }
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_2_4x
			radial_engine_2_4x
			lmg_defense_turret_2x
			lmg_defense_turret
		}
	}

	strat_bomber_2_default = {
		priority = {
			factor = 100
		}

		history = yes
		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
				fixed_auxiliary_weapon_slot_7 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_8 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_4_4x radial_engine_3_4x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = bomb_sights_2
				special_type_slot_3 = radio_navigation_2
				special_type_slot_4 = armor_plate_large
				special_type_slot_5 = auto_extinguisher_system_large
				special_type_slot_6 = fuel_tanks_large
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_3_4x
			radial_engine_3_4x
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
			hmg_defense_turret_2x
		}
	}

	strat_bomber_3_default = {
		priority = {
			factor = 10
		}

		history = yes
		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_3 = large_bomb_bay
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret_2x
				fixed_auxiliary_weapon_slot_7 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_8 = hmg_defense_turret
				engine_type_slot = { any_of = { radial_engine_4_4x radial_engine_3_4x } }
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = bomb_sights_2
				special_type_slot_3 = radio_navigation_2
				special_type_slot_4 = armor_plate_large
				special_type_slot_5 = auto_extinguisher_system_large
				special_type_slot_6 = fuel_tanks_large
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_4_4x
			radial_engine_4_4x
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
		}
	}

	strat_bomber_4_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 4000
			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 = large_bomb_bay
				fixed_auxiliary_weapon_slot_3 = large_bomb_bay
				fixed_auxiliary_weapon_slot_4 = large_bomb_bay
				fixed_auxiliary_weapon_slot_5 = cannon_defense_turret
				fixed_auxiliary_weapon_slot_6 = cannon_defense_turret
				fixed_auxiliary_weapon_slot_7 = cannon_defense_turret
				fixed_auxiliary_weapon_slot_8 = cannon_defense_turret
				engine_type_slot = radial_engine_4_6x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = bomb_sights_2
				special_type_slot_3 = radio_navigation_2
				special_type_slot_4 = remote_control_turret_system
				special_type_slot_5 = fuel_tanks_large
				special_type_slot_6 = fuel_tanks_large
				special_type_slot_7 = { any_of = { turbosupercharger turbocharger } }
			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_4_4x
			radial_engine_4_4x
			jet_engine_4x
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			armor_plate_large
			fuel_tanks_large
			air_ground_radar_2
			air_ground_radar_1
			fuel_tanks_large
			bomb_sights_2
			bomb_sights_1
			cannon_defense_turret_2x
			hmg_defense_turret_2x
		}
	}
	strat_bomber_5_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 5000
			type = large_plane_airframe_5
			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_3 = large_bomb_bay
#				fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = {
					any_of = {
						jet_engine_2_6x
						jet_engine_6x
					}
				}
				special_type_slot_1 = {
					any_of = {
						cannon_defense_turret_2x
						hmg_defense_turret_2x
						lmg_defense_turret_2x
					}
				}
				special_type_slot_2 = {
					any_of = {
						cannon_defense_turret_2x
						hmg_defense_turret_2x
						lmg_defense_turret_2x
					}
				}
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = fuel_tanks_large
				special_type_slot_5 = {
					any_of = {
						air_ground_radar_2
						air_ground_radar_1
						bomb_sights_2
						bomb_sights_1
					}
				}
#				special_type_slot_6 = empty
				special_type_slot_7 = improved_compressor

			}
			
		}

		allowed_modules = {
			large_bomb_bay
			large_bomb_bay_2
			engine_4_4x
			radial_engine_4_4x
			jet_engine_4x
			jet_engine_6x
			cannon_defense_turret_2x
			armor_plate_large
			fuel_tanks_large
			air_ground_radar_2
			air_ground_radar_1
			bomb_sights_2
			bomb_sights_1
		}
	}	
}

HIP_maritime_patrol = {
	category = air

	blocked_for = {}

	available_for = {HIP WIN}

	roles = {
		air_maritime_patrol
	}

	priority = {
		factor = 200
		modifier = {
			has_war_with = JAP
			factor = 2
		}
	}

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

		history = yes
		target_variant = {
			match_value = 1000
			type = large_plane_maritime_patrol_plane_airframe_0
			modules = {
				fixed_main_weapon_slot = torpedo_mounting
#				fixed_auxiliary_weapon_slot_1 = empty
#				fixed_auxiliary_weapon_slot_2 = empty
#				fixed_auxiliary_weapon_slot_3 = empty
				engine_type_slot = engine_1_4x
				fixed_auxiliary_weapon_slot_6 = lmg_defense_turret_2x
				special_type_slot_2 = fuel_tanks_large
				special_type_slot_3 = flying_boat_large
#				special_type_slot_4 = empty
#				special_type_slot_5 = empty
				special_type_slot_7 = normally_aspirated_engine
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_1_4x
			radial_engine_1_4x
			fuel_tanks_large
			flying_boat_large
			lmg_defense_turret
		}
	}
	
	maritime_patrol_1_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 1000
			type = large_plane_maritime_patrol_plane_airframe_1
			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 = empty
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_7 = lmg_defense_turret
				fixed_auxiliary_weapon_slot_8 = lmg_defense_turret
				engine_type_slot = radial_engine_2_4x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_large
				special_type_slot_3 = flying_boat_large
				special_type_slot_7 = early_turbocharger
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			engine_1_6x
			radial_engine_1_6x
			engine_2_4x
			radial_engine_2_4x
			fuel_tanks_large
			flying_boat_large
			lmg_defense_turret
			hmg_defense_turret
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
		}
	}

	maritime_patrol_2_default = {
		priority = {
			factor = 10
			
		}

		history = yes
		target_variant = {
			match_value = 2000
			type = large_plane_maritime_patrol_plane_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 = { any_of = { torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_7 = lmg_defense_turret
				fixed_auxiliary_weapon_slot_8 = lmg_defense_turret
				engine_type_slot = radial_engine_3_4x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_large
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = flying_boat_large
				special_type_slot_5 = armor_plate_large
				special_type_slot_7 = turbocharger
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_2
			engine_2_4x
			radial_engine_2_4x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_3_default = {
		priority = {
			factor = 10
		}

		history = yes
		target_variant = {
			match_value = 4000
			type = large_plane_maritime_patrol_plane_airframe_3
			modules = {
				fixed_main_weapon_slot = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_1 = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_2 = { any_of = { torpedo_mounting_3 torpedo_mounting_2 torpedo_mounting } }
				fixed_auxiliary_weapon_slot_5 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_6 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_7 = hmg_defense_turret
				fixed_auxiliary_weapon_slot_8 = hmg_defense_turret
				engine_type_slot = radial_engine_4_4x
				special_type_slot_1 = NACA_cowling
				special_type_slot_2 = fuel_tanks_large
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = flying_boat_large
				special_type_slot_5 = armor_plate_large
				special_type_slot_6 = asv_radar
				special_type_slot_7 = turbosupercharger
			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4_3
			radial_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
		}
	}
	maritime_patrol_4_default = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = large_plane_maritime_patrol_plane_airframe_4
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
#				fixed_auxiliary_weapon_slot_3 = empty
#				fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = jet_engine_6x
				special_type_slot_1 = {
					any_of = {
						cannon_defense_turret_2x
						hmg_defense_turret_2x
						lmg_defense_turret_2x
					}
				}
				special_type_slot_2 = { 
					any_of = {
						air_ground_radar_4
						air_ground_radar_3
						air_ground_radar_2
						air_ground_radar_1
						recon_camera
						hmg_defense_turret_2x 
						lmg_defense_turret_2x
					}
				}
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = flying_boat_large
#				special_type_slot_5 = empty
#				special_type_slot_6 = empty
				special_type_slot_7 = compressor

			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			jet_engine_4x
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			air_ground_radar_2
			air_ground_radar_1
			recon_camera
			fuel_tanks_large
			flying_boat_large
		}
	}

	maritime_patrol_5_default = {
		priority = {
			factor = 100
		}

		history = yes
		target_variant = {
			match_value = 3000
			type = large_plane_maritime_patrol_plane_airframe_5
			modules = {
				fixed_main_weapon_slot = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
				fixed_auxiliary_weapon_slot_1 = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
				fixed_auxiliary_weapon_slot_2 = {
					any_of = {
						torpedo_mounting_4
						torpedo_mounting_3
						torpedo_mounting_2
						torpedo_mounting
					}
				}
#				fixed_auxiliary_weapon_slot_3 = empty
#				fixed_auxiliary_weapon_slot_4 = empty
				engine_type_slot = {
					any_of = {
						jet_engine_2_6x
						jet_engine_6x
					}
				}
				special_type_slot_1 = {
					any_of = {
						cannon_defense_turret_2x
						hmg_defense_turret_2x
						lmg_defense_turret_2x
					}
				}
				special_type_slot_2 = { 
					any_of = {
						air_ground_radar_4
						air_ground_radar_3
						air_ground_radar_2
						air_ground_radar_1
						recon_camera
						hmg_defense_turret_2x 
						lmg_defense_turret_2x
					}
				}
				special_type_slot_3 = fuel_tanks_large
				special_type_slot_4 = flying_boat_large
#				special_type_slot_5 = empty
#				special_type_slot_6 = empty
				special_type_slot_7 = improved_compressor

			}
			
		}

		allowed_modules = {
			torpedo_mounting
			torpedo_mounting_2
			torpedo_mounting_3
			torpedo_mounting_4
			jet_engine_4x
			cannon_defense_turret_2x
			hmg_defense_turret_2x
			lmg_defense_turret_2x
			air_ground_radar_2
			air_ground_radar_1
			recon_camera
			fuel_tanks_large
			flying_boat_large
		}
	}
}

