# ### Written by Kanthier & Doolittle
# generic_light_mr_fighter = { #Is changeable
# 	category = air #I think this is the production tab
#  #nobody when empty
# 	available_for = { USA } #everybody when empty
# 	roles = { #Equipment role when deployed
# 		light_mr_fighter
# 	}
# 	priority = {
# 		factor = 2 #equipment build choice weight
# 	}
# 	generic_mr_light_fighter_default = { #Is changeable
# 		priority = {
# 			factor = 1 #this specific design's weight
# 			modifier = {
# 				has_tech = gen_3_light #name of tech
# 				factor = 0 #zero weight if has any technology to build light aircraft
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000 #additional weight on matching design
# 			type = small_plane_airframe_0 #role-specific equipment type
# 			modules = { # [slot name] = [module name or category], newest in category preferred
# 				fixed_main_weapon_slot = plane_fighter_weapons #any_of can be used here, see below for format
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_jet_single
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 2
# 				plane_bba_radar_upgrade = {
# 					base = 1
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		#requirements = { #REQUIRED modules among slots that aren't specified above
# 		#	module = {
# 		#	}
# 		#}
# 		allowed_modules = { #allowed modules and/or module categories for slots not specified above
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_3.5_light_mr = { #next generation design
# 		priority = {
# 			factor = 10 #slightly increased weight over previous design
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = small_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = weap_mp_light_hardpoint_1
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_light_single
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_light_mr = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = small_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_redundant_systems
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	gen_5_light_mr = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = small_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	gen_6_light_mr = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = small_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_thrust_vectoring
# 		}
# 	}
# }
# generic_light_as_fighter = { #Is changeable
# 	category = air #I think this is the production tab
#  #nobody when empty
# 	available_for = { USA } #everybody when empty
# 	roles = { #Equipment role when deployed
# 		light_as_fighter
# 	}
# 	priority = {
# 		factor = 150 #equipment build choice weight
# 	}
# 	gen_3_light_as_default = { #Is changeable
# 		priority = {
# 			factor = 1 #this specific design's weight
# 			modifier = {
# 				has_tech = gen_3_light #name of tech
# 				factor = 0 #zero weight if has any technology to build light aircraft
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000 #additional weight on matching design
# 			type = small_plane_airframe_0 #role-specific equipment type
# 			modules = { # [slot name] = [module name or category], newest in category preferred
# 				fixed_main_weapon_slot = plane_intercept_weapons #any_of can be used here, see below for format
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_jet_single
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		#any_of example:
# 		#fixed_main_weapon_slot = {
# 		# 	any_of = {
# 		# 		some modules
# 		# 		or categories
# 		# 		listed here
# 		# 	}
# 		# }
# 		# > or < (instead of = ) allow any module in the parent chain given to be used, preferring highest or lowest tier respectively
# 		#requirements = { #REQUIRED modules among slots that aren't specified above, used like above
# 		#	module = {
# 		#	}
# 		#}
# 		allowed_modules = { #allowed modules and/or module categories for slots not specified above
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_3.5_light_as = { #next generation design
# 		priority = {
# 			factor = 10 #slightly increased weight over previous design
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = small_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_light_single
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_light_as = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = small_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	gen_5_light_as = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = small_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	gen_6_light_as = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = small_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_thrust_vectoring
# 		}
# 	}
# }
# generic_light_cas = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		light_cas
# 	}
# 	priority = {
# 		factor = 100
# 	}
# 	gen_3_light_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = small_plane_cas_airframe_1
# 			modules = {
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	gen_4_light_cas = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = small_plane_cas_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	gen_5_light_cas = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2500
# 			type = small_plane_cas_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	gen_6_light_cas = {
# 		priority = {
# 			factor = 500
# 		}
# 		target_variant = {
# 			match_value = 3500
# 			type = small_plane_cas_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# }
# generic_light_naval_bomber = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		light_naval_bomber
# 	}
# 	priority = {
# 		factor = 500
# 	}
# 	gen_3_light_nav_bomber = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = small_plane_naval_bomber_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_light_nav_bomber = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = small_plane_naval_bomber_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_light_nav_bomber = {
# 		priority = {
# 			factor = 300
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = small_plane_naval_bomber_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_light_nav_bomber = {
# 		priority = {
# 			factor = 400
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = small_plane_naval_bomber_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_drone = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		light_drone
# 	}
# 	priority = {
# 		factor = 500
# 	}
# 	atk_drone_1 = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = small_plane_suicide_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 						plane_light_single
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	atk_drone_2 = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = small_plane_suicide_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 						plane_light_single
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	atk_drone_3 = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = small_plane_suicide_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 						plane_light_single
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	atk_drone_4 = {
# 		priority = {
# 			factor = 200
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = small_plane_suicide_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 						plane_light_single
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_thrust_vectoring
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_cv_light_mr_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_light_mr_fighter
# 	}
# 	priority = {
# 		factor = 1000
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_generic_mr_light_fighter_default = { #Is changeable
# 		priority = {
# 			factor = 1 #this specific design's weight
# 			modifier = {
# 				has_tech = gen_3_light #name of tech
# 				factor = 0 #zero weight if has any technology to build light aircraft
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000 #additional weight on matching design
# 			type = cv_small_plane_airframe_0 #role-specific equipment type
# 			modules = { # [slot name] = [module name or category], newest in category preferred
# 				fixed_main_weapon_slot = plane_fighter_weapons #any_of can be used here, see below for format
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_jet_double
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		#requirements = { #REQUIRED modules among slots that aren't specified above
# 		#	module = {
# 		#	}
# 		#}
# 		allowed_modules = { #allowed modules and/or module categories for slots not specified above
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_3.5_light_mr = { #next generation design
# 		priority = {
# 			factor = 10 #slightly increased weight over previous design
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_small_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = weap_mp_light_hardpoint_1
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_light_single
# 				special_slot_type_1 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_4_light_mr = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_small_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	cv_gen_5_light_mr = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_small_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	cv_gen_6_light_mr = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_small_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_fighter_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_fighter_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_thrust_vectoring
# 		}
# 	}
# }
# generic_cv_light_as_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_light_as_fighter
# 	}
# 	priority = {
# 		factor = 1000
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_light_as_default = { #Is changeable
# 		priority = {
# 			factor = 1 #this specific design's weight
# 			modifier = {
# 				has_tech = gen_3_light #name of tech
# 				factor = 0 #zero weight if has any technology to build light aircraft
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000 #additional weight on matching design
# 			type = cv_small_plane_airframe_0 #role-specific equipment type
# 			modules = { # [slot name] = [module name or category], newest in category preferred
# 				fixed_main_weapon_slot = plane_intercept_weapons #any_of can be used here, see below for format
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_jet_double
# 				special_slot_type_1 > empty
# 			}
# 		}
# 		#any_of example:
# 		#fixed_main_weapon_slot = {
# 		# 	any_of = {
# 		# 		some modules
# 		# 		or categories
# 		# 		listed here
# 		# 	}
# 		# }
# 		# > or < (instead of = ) allow any module in the parent chain given to be used, preferring highest or lowest tier respectively
# 		#requirements = { #REQUIRED modules among slots that aren't specified above, used like above
# 		#	module = {
# 		#	}
# 		#}
# 		allowed_modules = { #allowed modules and/or module categories for slots not specified above
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_3.5_light_as = { #next generation design
# 		priority = {
# 			factor = 10 #slightly increased weight over previous design
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_small_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				engine_type_slot = plane_light_double
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_4_light_as = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_small_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	cv_gen_5_light_as = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_small_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 		}
# 	}
# 	cv_gen_6_light_as = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_small_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_fighter_weapons
# 			plane_thrust_vectoring
# 		}
# 	}
# }
# generic_cv_light_cas = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_light_cas
# 	}
# 	priority = {
# 		factor = 100
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_light_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_small_plane_cas_airframe_1
# 			modules = {
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	cv_gen_4_light_cas = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = cv_small_plane_cas_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_countermeasures
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	cv_gen_5_light_cas = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2500
# 			type = cv_small_plane_cas_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# 	cv_gen_6_light_cas = {
# 		priority = {
# 			factor = 500
# 		}
# 		target_variant = {
# 			match_value = 3500
# 			type = cv_small_plane_cas_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_light_single
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 = plane_protective_materials
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_multipurpose_gun
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_protective_materials
# 			plane_refueling_systems
# 			plane_redundant_systems
# 			plane_guided_bombs
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_fighter_weapons
# 			plane_nav_weapons
# 		}
# 	}
# }
# generic_cv_light_naval_bomber = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_light_naval_bomber
# 	}
# 	priority = {
# 		factor = 500
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_light_nav_bomber = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_small_plane_naval_bomber_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_4_light_nav_bomber = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = cv_small_plane_naval_bomber_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_5_light_nav_bomber = {
# 		priority = {
# 			factor = 300
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_small_plane_naval_bomber_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_gen_6_light_nav_bomber = {
# 		priority = {
# 			factor = 400
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_small_plane_naval_bomber_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_light_double
# 						plane_prop_double
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_1 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		requirements = {
# 			module = plane_asw_systems
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_cv_drone = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_light_drone
# 	}
# 	priority = {
# 		factor = 500
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_atk_drone_1 = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_small_plane_suicide_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_atk_drone_2 = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = cv_small_plane_suicide_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_atk_drone_3 = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_light
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_small_plane_suicide_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	cv_atk_drone_4 = {
# 		priority = {
# 			factor = 200
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_small_plane_suicide_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_drone_systems
# 				avionics_type_slot = plane_avionics
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_light_double
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_thrust_vectoring
# 			plane_cas_weapons
# 			plane_guided_bombs
# 			plane_fighter_weapons
# 			plane_recon_tgp_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 			plane_refueling_systems
# 		}
# 	}
# }
# #Medium Fighter Designs
# generic_medium_mr_fighter = {	#MR medium fighters
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		medium_mr_fighter
# 	}
# 	priority = {
# 		factor = 2000
# 		modifier = {
# 			num_of_military_factories < 100	#middling countries build a little
# 			factor = 0.5
# 		}
# 		modifier = {
# 			num_of_military_factories < 50	#poor countries don't build heavy fighters
# 			factor = 0
# 		}
# 	}
# 	gen_3_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = medium_plane_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_3.5_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_4_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_5_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_6_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_3 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_as_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		medium_as_fighter
# 	}
# 	priority = {
# 		factor = 500
# 	}
# 	gen_3_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = medium_plane_fighter_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_3.5_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_fighter_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_4_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_fighter_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_5_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_fighter_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_6_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_fighter_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_3 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_cas_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		medium_cas_fighter
# 	}
# 	priority = {
# 		factor = 500
# 	}
# 	gen_3_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = medium_plane_cas_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_3.5_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_cas_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_4_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_cas_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_5_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_cas_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_6_med_cas = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_cas_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_maritime_patrol = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		medium_naval_bomber
# 	}
# 	priority = {
# 		factor = 500
# 	}
# 	gen_3_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = medium_plane_maritime_patrol_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_3.5_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_maritime_patrol_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_4_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = medium_plane_maritime_patrol_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_5_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_maritime_patrol_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	gen_6_med_mpa = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = medium_plane_maritime_patrol_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# # generic_medium_transport = {	#land mediums can't transport
# # 	category = air
# # 	blocked_for = { USA }
# # 	available_for = {}
# # 	roles = {
# # 		medium_transport
# # 	}
# # 	priority = {
# # 		factor = 500
# # 	}
# # 	gen_3_med_transport = {
# # 		priority = {
# # 			factor = 100
# # 		}
# # 		target_variant = {
# # 			match_value = 1000
# # 			type = medium_plane_air_transport_airframe_1
# # 			modules = {
# # 				fixed_main_weapon_slot = weap_buff_transport
# # 				engine_type_slot = {
# # 					any_of = {
# # 						plane_jet_single
# # 						plane_jet_double
# # 						plane_prop_single
# # 						plane_prop_double
# # 					}
# # 				}
# # 				avionics_type_slot = plane_avionics
# # 				wingform_type_slot = {
# # 					any_of = {
# # 						wing_straight
# # 						wing_swept
# # 					}
# # 				}
# # 			}
# # 		}
# # 		allowed_modules = {
# # 			plane_countermeasures
# # 			plane_stealth_shape
# # 			plane_stealth_materials
# # 			plane_refueling_systems
# # 			plane_protective_materials
# # 			plane_redundant_systems
# # 		}
# # 	}
# # 	gen_4_med_transport = {
# # 		priority = {
# # 			factor = 200
# # 		}
# # 		target_variant = {
# # 			match_value = 2000
# # 			type = medium_plane_air_transport_airframe_2
# # 			modules = {
# # 				fixed_main_weapon_slot = weap_buff_transport
# # 				engine_type_slot = {
# # 					any_of = {
# # 						plane_jet_single
# # 						plane_jet_double
# # 						plane_prop_single
# # 						plane_prop_double
# # 					}
# # 				}
# # 				avionics_type_slot = plane_avionics
# # 				wingform_type_slot = {
# # 					any_of = {
# # 						wing_straight
# # 						wing_swept
# # 					}
# # 				}
# # 			}
# # 		}
# # 		allowed_modules = {
# # 			plane_countermeasures
# # 			plane_stealth_shape
# # 			plane_stealth_materials
# # 			plane_refueling_systems
# # 			plane_protective_materials
# # 			plane_redundant_systems
# # 		}
# # 	}
# # 	gen_5_med_transport = {
# # 		priority = {
# # 			factor = 300
# # 		}
# # 		target_variant = {
# # 			match_value = 3000
# # 			type = medium_plane_air_transport_airframe_3
# # 			modules = {
# # 				fixed_main_weapon_slot = weap_buff_transport
# # 				engine_type_slot = {
# # 					any_of = {
# # 						plane_jet_single
# # 						plane_jet_double
# # 						plane_prop_single
# # 						plane_prop_double
# # 					}
# # 				}
# # 				avionics_type_slot = plane_avionics
# # 				wingform_type_slot = {
# # 					any_of = {
# # 						wing_straight
# # 						wing_swept
# # 					}
# # 				}
# # 			}
# # 		}
# # 		allowed_modules = {
# # 			plane_countermeasures
# # 			plane_stealth_shape
# # 			plane_stealth_materials
# # 			plane_refueling_systems
# # 			plane_protective_materials
# # 			plane_redundant_systems
# # 		}
# # 	}
# # 	gen_6_med_transport = {
# # 		priority = {
# # 			factor = 400
# # 		}
# # 		target_variant = {
# # 			match_value = 4000
# # 			type = medium_plane_air_transport_airframe_4
# # 			modules = {
# # 				fixed_main_weapon_slot = weap_buff_transport
# # 				engine_type_slot = {
# # 					any_of = {
# # 						plane_jet_single
# # 						plane_jet_double
# # 						plane_prop_single
# # 						plane_prop_double
# # 					}
# # 				}
# # 				avionics_type_slot = plane_avionics
# # 				wingform_type_slot = {
# # 					any_of = {
# # 						wing_straight
# # 						wing_swept
# # 					}
# # 				}
# # 			}
# # 		}
# # 		allowed_modules = {
# # 			plane_countermeasures
# # 			plane_stealth_shape
# # 			plane_stealth_materials
# # 			plane_refueling_systems
# # 			plane_protective_materials
# # 			plane_redundant_systems
# # 		}
# # 	}
# # }
# generic_medium_cv_mr_fighter = {	#MR medium fighters
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_medium_mr_fighter
# 	}
# 	priority = {
# 		factor = 2000
# 		modifier = {
# 			num_of_military_factories < 100	#middling countries build a little
# 			factor = 0.6
# 		}
# 		modifier = {
# 			num_of_factories < 50	#poor countries don't build medium fighters (much)
# 			factor = 0.1
# 		}
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_3.5_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_4_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_5_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_6_med_mr_fighter = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_3 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_cv_as_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_medium_as_fighter
# 	}
# 	priority = {
# 		factor = 500
# 		modifier = {
# 			num_of_military_factories < 100	#middling countries build a little
# 			factor = 0.5
# 		}
# 		modifier = {
# 			num_of_factories < 50	#poor countries don't build medium fighters
# 			factor = 0
# 		}
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_fighter_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_3.5_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_fighter_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_4_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_fighter_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_5_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_fighter_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_6_med_as_fighter = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_fighter_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_intercept_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_3 = plane_guided_bombs
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_cv_cas_fighter = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_cas_fighter
# 	}
# 	priority = {
# 		factor = 400
# 		modifier = {
# 			num_of_military_factories < 100	#middling countries build a little
# 			factor = 0.5
# 		}
# 		modifier = {
# 			num_of_factories < 50	#poor countries don't build medium cas
# 			factor = 0
# 		}
# 		modifier = {				#if no carriers, no carrier planes
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_cas_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_3.5_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_cas_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_4_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_cas_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_5_med_cas = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_cas_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_6_med_cas = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_cas_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_cas_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_cv_maritime_patrol = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_medium_naval_bomber
# 	}
# 	priority = {
# 		factor = 500
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	cv_gen_3_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_3_medium
# 				factor = 0 #let's not waste XP here
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_maritime_patrol_airframe_0
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_3.5_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_4_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_maritime_patrol_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_4_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_maritime_patrol_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_guided_bombs
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_5_med_mpa = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				#dont build if you have better tech
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_maritime_patrol_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# 	cv_gen_6_med_mpa = {
# 		priority = {
# 			factor = 100
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_maritime_patrol_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_heavy_nav_weapons
# 				fixed_gun_slot = plane_multipurpose_gun
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_intercept_weapons
# 			plane_guided_bombs
# 			plane_cas_weapons
# 			plane_nav_weapons
# 			plane_fighter_weapons
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_asw_systems
# 			plane_redundant_systems
# 			plane_heavy_nav_weapons
# 		}
# 	}
# }
# generic_medium_cv_transport = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_medium_transport
# 	}
# 	priority = {
# 		factor = 300
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	gen_3_cv_med_trans = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_4_medium
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_medium_plane_air_transport_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_cv_med_trans = {
# 		priority = {
# 			factor = 150
# 			modifier = {
# 				has_tech = gen_5_medium
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1500
# 			type = cv_medium_plane_air_transport_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_cv_med_trans = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				has_tech = gen_6_medium
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_air_transport_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_single
# 						plane_jet_double
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_cv_med_trans = {
# 		priority = {
# 			factor = 250
# 			modifier = {
# 				has_tech = gen_6_medium
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2500
# 			type = cv_medium_plane_air_transport_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_medium_cv_awacs = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		cv_medium_awacs
# 	}
# 	priority = {
# 		factor = 500
# 		modifier = {
# 			has_navy_size = {
# 				unit = carrier
#  	  			size < 1
# 			}
# 			factor = 0
# 		}
# 	}
# 	gen_3_cv_med_awacs = {
# 		priority = {
# 			factor = 100
# 			modifier = {
# 				has_tech = gen_4_medium
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = cv_medium_plane_scout_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_cv_med_awacs = {
# 		priority = {
# 			factor = 200
# 			modifier = {
# 				has_tech = gen_5_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = cv_medium_plane_scout_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_single
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_cv_med_awacs = {
# 		priority = {
# 			factor = 300
# 			modifier = {
# 				has_tech = gen_6_medium
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = cv_medium_plane_scout_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_cv_med_awacs = {
# 		priority = {
# 			factor = 400
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = cv_medium_plane_scout_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_straight
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# }
# #Large Plane Designs
# generic_large_awacs = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		large_awacs
# 	}
# 	priority = {
# 		factor = 200
# 		modifier = {
# 			num_of_military_factories < 75 #wealthy kids only
# 			factor = 0
# 		}
# 	}
# 	gen_3_large_awacs = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_4_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_awacs_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = wing_swept
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_refueling_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_large_awacs = {
# 		priority = {
# 			factor = 20
# 			modifier = {
# 				has_tech = gen_5_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = large_plane_awacs_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_flyingwing
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_refueling_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_large_awacs = {
# 		priority = {
# 			factor = 30
# 			modifier = {
# 				has_tech = gen_6_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = large_plane_awacs_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_flyingwing
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_large_awacs = {
# 		priority = {
# 			factor = 40
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = large_plane_awacs_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_awacs_module
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_flyingwing
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_strategic_bomber = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		large_strat_bomber
# 	}
# 	priority = {
# 		factor = 200
# 		modifier = {
# 			num_of_military_factories < 100	#wealthy kids only
# 			factor = 0
# 		}
# 	}
# 	gen_3_strat = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_4_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_bomb_bay
# 				fixed_gun_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_quad
# 						plane_jet_six
# 						plane_jet_eight
# 						plane_prop_six
# 						plane_prop_eight
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 9
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_strat = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_5_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = large_plane_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_bomb_bay
# 				fixed_gun_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_quad
# 						plane_jet_six
# 						plane_jet_eight
# 						plane_prop_six
# 						plane_prop_eight
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 9
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_strat = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_6_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = large_plane_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_bomb_bay
# 				fixed_gun_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_six
# 						plane_jet_quad
# 						plane_jet_eight
# 						plane_prop_six
# 						plane_prop_eight
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_strat = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = large_plane_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_bomb_bay
# 				fixed_gun_slot = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_1 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_cas_weapons
# 				fixed_auxiliary_weapon_slot_4 = plane_cas_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_quad
# 						plane_jet_six
# 						plane_jet_eight
# 						plane_prop_six
# 						plane_prop_eight
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 				special_slot_type_5 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_internal_bays
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_gunship = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		large_gunship
# 	}
# 	priority = {
# 		factor = 100
# 		modifier = {
# 			num_of_military_factories < 100	#no poor kids allowed
# 			factor = 0
# 		}
# 	}
# 	gen_3_gunship = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_4_large
# 				factor = 0
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_cas_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_gunship_modules
# 				fixed_gun_slot = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_1 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_2 = plane_gunship_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_gunship_modules
# 			plane_guided_bombs
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_4_gunship = {
# 		priority = {
# 			factor = 20
# 			modifier = {
# 				has_tech = gen_5_large
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = large_plane_cas_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_gunship_modules
# 				fixed_gun_slot = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_1 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_2 = plane_gunship_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_straight
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_gunship_modules
# 			plane_guided_bombs
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_stealth_shape
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_5_gunship = {
# 		priority = {
# 			factor = 30
# 			modifier = {
# 				has_tech = gen_6_large
# 				factor = 0.1
# 			}
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = large_plane_cas_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_gunship_modules
# 				fixed_gun_slot = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_1 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_2 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_3 = plane_gunship_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_delta
# 						wing_diamond
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_gunship_modules
# 			plane_guided_bombs
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_redundant_systems
# 		}
# 	}
# 	gen_6_gunship = {
# 		priority = {
# 			factor = 40
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = large_plane_cas_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_gunship_modules
# 				fixed_gun_slot = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_1 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_2 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_3 = plane_gunship_modules
# 				fixed_auxiliary_weapon_slot_4 = plane_gunship_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 						plane_jet_quad
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_diamond
# 						wing_delta
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 				special_slot_type_5 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_gunship_modules
# 			plane_guided_bombs
# 			plane_countermeasures
# 			plane_refueling_systems
# 			plane_protective_materials
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_redundant_systems
# 		}
# 	}
# }
# generic_maritime_patrol = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		large_maritime_patrol
# 	}
# 	priority = {
# 		factor = 200
# 		modifier = {
# 			num_of_military_factories < 100
# 			factor = 0
# 		}
# 		modifier = {
# 			all_owned_state = {
# 				is_coastal = no
# 			}
# 			factor = 0
# 		}
# 	}
# 	gen_3_large_mpa = {
# 		priority = {
# 			factor = 10
# 			modifier = {
# 				has_tech = gen_4_large
# 				factor = 0.2
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_maritime_patrol_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = empty
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 			plane_refueling_systems
# 			plane_protective_materials
# 		}
# 	}
# 	gen_4_large_mpa = {
# 		priority = {
# 			factor = 20
# 			modifier = {
# 				has_tech = gen_5_large
# 				factor = 0.2
# 			}
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = large_plane_maritime_patrol_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = empty
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_heavy_nav_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_3 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = 1
# 				plane_bba_radar_upgrade = {
# 					base = 3
# 					modifier = {
# 						add = 1
# 						has_war = yes
# 					}
# 				}
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_countermeasures
# 			plane_redundant_systems
# 			plane_refueling_systems
# 			plane_protective_materials
# 		}
# 	}
# 	gen_5_large_mpa = {
# 		priority = {
# 			factor = 30
# 			modifier = {
# 				has_tech = gen_6_large
# 				factor = 0.2
# 			}
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_maritime_patrol_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = empty
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_heavy_nav_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_redundant_systems
# 			plane_refueling_systems
# 			plane_protective_materials
# 		}
# 	}
# 	gen_6_large_mpa = {
# 		priority = {
# 			factor = 40
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = large_plane_maritime_patrol_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = plane_heavy_nav_weapons
# 				fixed_gun_slot = empty
# 				fixed_auxiliary_weapon_slot_1 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_2 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_3 = plane_heavy_nav_weapons
# 				fixed_auxiliary_weapon_slot_4 = plane_heavy_nav_weapons
# 				engine_type_slot = {
# 					any_of = {
# 						plane_prop_double
# 						plane_prop_quad
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_asw_systems
# 				special_slot_type_2 = plane_countermeasures
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 				special_slot_type_5 > empty
# 			}
# 			upgrades = {
# 				plane_bba_engine_upgrade = {
# 					base = 5
# 					modifier = {
# 						add = 5
# 						has_war = yes
# 					}
# 				}
# 				plane_bba_radar_upgrade = 5
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_nav_weapons
# 			plane_nav_weapons
# 			plane_asw_systems
# 			plane_countermeasures
# 			plane_stealth_shape
# 			plane_stealth_materials
# 			plane_redundant_systems
# 			plane_refueling_systems
# 			plane_protective_materials
# 		}
# 	}
# }
# generic_air_transport = {
# 	category = air
# 	available_for = { USA }
# 	roles = {
# 		large_transport
# 	}
# 	priority = {
# 		factor = 100
# 		modifier = {
# 			num_of_factories < 50
# 			factor = 0
# 		}
# 	}
# 	gen_3_large_transport = {
# 		priority = {
# 			factor = 10
# 		}
# 		target_variant = {
# 			match_value = 1000
# 			type = large_plane_air_transport_airframe_1
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				fixed_gun_slot = plane_heavy_strike_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_strike_modules
# 			plane_countermeasures
# 			plane_redundant_systems
# 			plane_refueling_systems
# 		}
# 	}
# 	gen_4_large_transport = {
# 		priority = {
# 			factor = 20
# 		}
# 		target_variant = {
# 			match_value = 2000
# 			type = large_plane_air_transport_airframe_2
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				fixed_gun_slot = plane_heavy_strike_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_strike_modules
# 			plane_countermeasures
# 			plane_redundant_systems
# 			plane_refueling_systems
# 		}
# 	}
# 	gen_5_large_transport = {
# 		priority = {
# 			factor = 30
# 		}
# 		target_variant = {
# 			match_value = 3000
# 			type = large_plane_air_transport_airframe_3
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				fixed_gun_slot = plane_heavy_strike_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_flyingwing
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_strike_modules
# 			plane_countermeasures
# 			plane_stealth_materials
# 			plane_stealth_shape
# 			plane_redundant_systems
# 			plane_refueling_systems
# 		}
# 	}
# 	gen_6_large_transport = {
# 		priority = {
# 			factor = 40
# 		}
# 		target_variant = {
# 			match_value = 4000
# 			type = large_plane_air_transport_airframe_4
# 			modules = {
# 				fixed_main_weapon_slot = weap_buff_transport
# 				fixed_gun_slot = plane_heavy_strike_modules
# 				engine_type_slot = {
# 					any_of = {
# 						plane_jet_double
# 						plane_prop_double
# 					}
# 				}
# 				avionics_type_slot = plane_avionics
# 				wingform_type_slot = {
# 					any_of = {
# 						wing_blended
# 						wing_flyingwing
# 						wing_swept
# 						wing_straight
# 					}
# 				}
# 				special_slot_type_1 = plane_countermeasures
# 				special_slot_type_2 > empty
# 				special_slot_type_3 > empty
# 				special_slot_type_4 > empty
# 				special_slot_type_5 > empty
# 			}
# 		}
# 		allowed_modules = {
# 			plane_heavy_strike_modules
# 			plane_countermeasures
# 			plane_stealth_materials
# 			plane_stealth_shape
# 			plane_redundant_systems
# 			plane_refueling_systems
# 		}
# 	}
# }