#Written by Doolittle
#Base airframes for BBA aircraft. All sub_aircraft originate from these
equipments = {
	#Small Plane Airframe
	#Archetype
	small_plane_airframe = {
		year = 1960
		is_archetype = yes
		is_convertable = yes
		picture = archetype_fighter_equipment
		is_buildable = no
		#set base type & mission
		type = { fighter }
		type_override = fixed_main_weapon_slot
		allowed_types = {
			fighter
			cas
			naval_bomber
			suicide
			tactical_bomber
		}
		allow_mission_type = training

		group_by = archetype
		sprite = small_plane
		air_map_icon_frame = 1
		interface_category = interface_category_air
		substitute = cv_small_plane_airframe

		interface_overview_category_index = 1

		#set base combat/equipment stats
		air_superiority = 1
		reliability = 1
		naval_strike_attack = 1
		naval_strike_targetting = 1

		#lend lease / manpower / fuel
		lend_lease_cost = 8
		manpower = 20
		fuel_consumption = 0.05

		#construction costs
		build_cost_ic = 8
		resources = {
			aluminium = 2
			rubber = 1
		}

		#module slot settings
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
		#set all module limits
		module_count_limit = {
			category = plane_multipurpose_gun
			count < 2
		}
		module_count_limit = {
			module = weap_multi_at_1
			count < 1
		}
		module_count_limit = {
			module = weap_multi_at_2
			count < 1
		}
		# module_count_limit = {
		# 	module = avionics_drone_suicide
		# 	count < 1
		# }
		module_count_limit = {
			category = plane_refueling_systems
			count < 4
		}
		module_count_limit = {
			module = spec_refuel_3
			count < 2
		}
		module_count_limit = {
			category = plane_recon_tgp_systems
			count < 2
		}
		module_count_limit = {
			category = plane_redundant_systems
			count < 2
		}
		module_count_limit = {
			category = plane_protective_materials
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_shape
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_materials
			count < 2
		}
		module_count_limit = {
			category = plane_countermeasures
			count < 2
		}
		module_count_limit = {
			category = plane_thrust_vectoring
			count < 2
		}
		module_count_limit = {
			category = plane_intercept_weapons
			count < 2
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			engine_type_slot = engine_light_single_1
			avionics_type_slot = avionics_manned_1
			wingform_type_slot = empty
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
		}
	}
	#base small plane
	small_plane_airframe_0 = {
		abbreviation = "spa0"
		year = 1960
		archetype = small_plane_airframe
		module_slots = inherit
		is_buildable = no
		priority = 5

		can_convert_from = { small_plane_airframe_0 }

		air_range = 500
		maximum_speed = 0
		air_agility = 1
		air_defence = 1.25
		weight = 3
		naval_strike_attack = 0
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
	#Gen 3 Small Airframe (1965)
	small_plane_airframe_1 = {
		abbreviation = "spa1"
        derived_variant_name = spa_equipment_1
		year = 1965
		archetype = small_plane_airframe
		parent = small_plane_airframe_0
		priority = 5

		can_convert_from = { small_plane_airframe_0 small_plane_airframe_1 }

		#set basic stats here
		maximum_speed = 0
		air_range = 795
		weight = 1
		air_agility = 56
		air_defence = 28.1
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 12.5
		resources = {
			aluminium = 1
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 4 Light Airframe (1985)
	small_plane_airframe_2 = {
		abbreviation = "spa2"
        derived_variant_name = spa_equipment_2
		year = 1985
		archetype = small_plane_airframe
		parent = small_plane_airframe_1
		priority = 5

		can_convert_from = { small_plane_airframe_0 small_plane_airframe_1 small_plane_airframe_2 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1073	 #multiplied by 1.35 per generation
		weight = 4		  #multiplied by 1.5 per generation
		air_agility = 67	 #multiplied by 1.2 per generation
		air_defence = 37.1	 #multiplied by 1.3 per generation
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 13.75 #multiplied by 1.1 per generation
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_nuclear_consent
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 5 Light Airframe (2015)
	small_plane_airframe_3 = {
		abbreviation = "spa3"
        derived_variant_name = spa_equipment_3
		year = 2015
		archetype = small_plane_airframe
		parent = small_plane_airframe_2
		priority = 5

		can_convert_from = { small_plane_airframe_0 small_plane_airframe_1 small_plane_airframe_2 small_plane_airframe_3 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1449
		weight = 6
		air_agility = 80
		air_defence = 48.4
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.2

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 15
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 6 Light Airframe (2035)
	small_plane_airframe_4 = {
		abbreviation = "spa4"
        derived_variant_name = spa_equipment_4
		year = 2035
		archetype = small_plane_airframe
		parent = small_plane_airframe_3
		priority = 5

		can_convert_from = { small_plane_airframe_0 small_plane_airframe_1 small_plane_airframe_2 small_plane_airframe_3 small_plane_airframe_4 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1956
		weight = 10
		air_agility = 96
		air_defence = 63
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.3

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 16.5
		resources = {
			aluminium = 3
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons

					plane_cas_weapons

					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Carrier Small Plane Airframe
	#Archetype
	cv_small_plane_airframe = {
		year = 1960
		is_archetype = yes
		is_convertable = yes
		carrier_capable = yes
		default_carrier_composition_weight = 1
		picture = archetype_fighter_equipment
		is_buildable = no
		#set base type & mission
		type = { fighter }
		ai_type = cv_fighter
		type_override = fixed_main_weapon_slot
		allowed_types = {
			fighter
			interceptor
			cas
			naval_bomber
			suicide
			tactical_bomber
		}
		allow_mission_type = training

		group_by = archetype
		sprite = small_plane
		air_map_icon_frame = 1
		interface_category = interface_category_air

		interface_overview_category_index = 1

		#set base combat/equipment stats
		air_superiority = 1
		reliability = 1
		naval_strike_attack = 1
		naval_strike_targetting = 1

		#lend lease / manpower / fuel
		lend_lease_cost = 8
		manpower = 20
		fuel_consumption = 0.05

		#construction costs
		build_cost_ic = 8
		resources = {
			aluminium = 2
			rubber = 1
		}

		#module slot settings
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
		#set all module limits
		module_count_limit = {
			category = plane_multipurpose_gun
			count < 2
		}
		module_count_limit = {
			module = weap_multi_at_1
			count < 1
		}
		module_count_limit = {
			module = weap_multi_at_2
			count < 1
		}
		# module_count_limit = {	#not in use
		# 	module = avionics_drone_suicide
		# 	count < 1
		# }
		module_count_limit = {
			category = plane_refueling_systems
			count < 4
		}
		module_count_limit = {
			module = spec_refuel_3
			count < 2
		}
		module_count_limit = {
			category = plane_recon_tgp_systems
			count < 2
		}
		module_count_limit = {
			category = plane_redundant_systems
			count < 2
		}
		module_count_limit = {
			category = plane_protective_materials
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_shape
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_materials
			count < 2
		}
		module_count_limit = {
			category = plane_countermeasures
			count < 2
		}
		module_count_limit = {
			category = plane_thrust_vectoring
			count < 2
		}
		module_count_limit = {
			category = plane_intercept_weapons
			count < 2
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			engine_type_slot = engine_light_single_1
			avionics_type_slot = avionics_manned_1
			wingform_type_slot = empty
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
		}
	}
	#base small carrier plane
	cv_small_plane_airframe_0 = {
		abbreviation = "cspa0"
		year = 1960
		archetype = cv_small_plane_airframe
		module_slots = inherit
		is_buildable = no
		priority = 5

		can_convert_from = { cv_small_plane_airframe_0 }

		air_range = 500
		maximum_speed = 0
		air_agility = 1
		air_defence = 1.25
		weight = 3
		naval_strike_attack = 0
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
	#Gen 3 Small Carrier Airframe (1965)
	#Carrier aircraft receive a 5% debuff to range, agility stats
	#Carrier aircraft receive a 5% buff to air defense stat
	#Weight and build cost increased to account for sturdier airframe
	cv_small_plane_airframe_1 = {
		abbreviation = "cspa1"
		year = 1965
		archetype = cv_small_plane_airframe
		parent = cv_small_plane_airframe_0
		priority = 5

		can_convert_from = { cv_small_plane_airframe_0 cv_small_plane_airframe_1 }

		#set basic stats here
		maximum_speed = 0
		air_range = 755
		weight = 2
		air_agility = 53
		air_defence = 29.25
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 13.5
		resources = {
			aluminium = 1
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 4 Light Carrier Airframe (1985)
	cv_small_plane_airframe_2 = {
		abbreviation = "cspa2"
		year = 1985
		archetype = cv_small_plane_airframe
		parent = cv_small_plane_airframe_1
		priority = 5

		can_convert_from = { cv_small_plane_airframe_0 cv_small_plane_airframe_1 cv_small_plane_airframe_2 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1019	 #multiplied by 1.35 per generation
		weight = 5		  #multiplied by 1.5 per generation
		air_agility = 64	 #multiplied by 1.2 per generation
		air_defence = 38.25	 #multiplied by 1.3 per generation
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 14.5 #multiplied by 1.1 per generation
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 5 Light Carrier Airframe (2015)
	cv_small_plane_airframe_3 = {
		abbreviation = "cspa3"
		year = 2015
		archetype = cv_small_plane_airframe
		parent = cv_small_plane_airframe_2
		priority = 5

		can_convert_from = { cv_small_plane_airframe_0 cv_small_plane_airframe_1 cv_small_plane_airframe_2 cv_small_plane_airframe_3 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1376
		weight = 7
		air_agility = 77
		air_defence = 49.5
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.2

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 16
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 6 Light Carrier Airframe (2035)
	cv_small_plane_airframe_4 = {
		abbreviation = "cspa4"
		year = 2035
		archetype = cv_small_plane_airframe
		parent = cv_small_plane_airframe_3
		priority = 5

		can_convert_from = { cv_small_plane_airframe_0 cv_small_plane_airframe_1 cv_small_plane_airframe_2 cv_small_plane_airframe_3 cv_small_plane_airframe_4 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1858
		weight = 11
		air_agility = 92
		air_defence = 64.1
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.3

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 17.5
		resources = {
			aluminium = 3
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_drone_systems
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_light_single
					plane_light_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Medium Plane Airframe
	#Archetype
	medium_plane_airframe = {
		year = 1960
		#set base info
		is_archetype = yes
		is_convertable = yes
		picture = archetype_strat_bomber_equipment
		is_buildable = no
		#set base type and missions
		type = {
			tactical_bomber
		}
		ai_type = heavy_fighter
		type_override = fixed_main_weapon_slot
		allowed_types = {
			tactical_bomber
			cas
			fighter
			interceptor
			scout_plane
			suicide
			naval_bomber
		}
		allow_mission_type = training
		group_by = archetype
		sprite = medium_plane
		air_map_icon_frame = 6
		interface_category = interface_category_air

		interface_overview_category_index = 4
		#set base combat stats
		air_superiority = 1
		reliability = 1
		naval_strike_attack = 0
		naval_strike_targetting = 0
		air_ground_attack = 1
		air_bombing = 1
		air_attack = 1
		manpower = 20
		fuel_consumption = 0.05
		#construction costs
		build_cost_ic = 9
		resources = {
			aluminium = 2
			rubber = 1
		}
		#modules
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_4 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
		#set all module limits
		module_count_limit = {
			category = plane_multipurpose_gun
			count < 2
		}
		module_count_limit = {
			category = plane_refueling_systems
			count < 4
		}
		module_count_limit = {
			module = spec_refuel_3
			count < 2
		}
		module_count_limit = {
			category = plane_recon_tgp_systems
			count < 2
		}
		module_count_limit = {
			category = plane_redundant_systems
			count < 2
		}
		module_count_limit = {
			category = plane_protective_materials
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_shape
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_materials
			count < 2
		}
		module_count_limit = {
			category = plane_countermeasures
			count < 2
		}
		module_count_limit = {
			category = plane_thrust_vectoring
			count < 2
		}
		module_count_limit = {
			category = plane_asw_systems
			count < 2
		}
		module_count_limit = {
			category = plane_intercept_weapons
			count < 3
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_jet_double_1
			avionics_type_slot = avionics_manned_1
			wingform_type_slot = empty
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
			special_slot_type_4 = empty
		}
	}
	#base medium airframe
	medium_plane_airframe_0 = {
		abbreviation = "mpa0"
		year = 1960

		can_convert_from = { medium_plane_airframe_0 }

		archetype = medium_plane_airframe
		module_slots = inherit
		priority = 5
		air_range = 1200
		maximum_speed = 0
		air_agility = 0
		air_defence = 0
		air_attack = 1
		weight = 2
		naval_strike_attack = 0
		naval_strike_targetting = 0
		air_ground_attack = 1
		air_bombing = 1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
	#Gen 3 Medium Airframe (1965)
	medium_plane_airframe_1 = {
		abbreviation = "mpa1"
        derived_variant_name = mpa_equipment_1
		year = 1965
		archetype = medium_plane_airframe
		parent = medium_plane_airframe_0
		priority = 5

		can_convert_from = { medium_plane_airframe_0 medium_plane_airframe_1 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1026
		weight = 12
		air_agility = 50
		air_defence = 50.6
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 27
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
	}
	#Gen 4 Medium Airframe (1985)
	medium_plane_airframe_2 = {
		abbreviation = "mpa2"
        derived_variant_name = mpa_equipment_2
		year = 1985
		archetype = medium_plane_airframe
		parent = medium_plane_airframe_1
		priority = 5

		can_convert_from = { medium_plane_airframe_0 medium_plane_airframe_1 medium_plane_airframe_2 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1385		 #multiplied by 1.35 per generation
		weight = 16			  #multiplied by 1.35 per generation
		air_agility = 60		 #multiplied by 1.2 per generation
		air_defence = 66.3		 #multiplied by 1.3 per generation
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 30	 #multiplied by 1.1 per generation
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 5 Medium Airframe (2015)
	medium_plane_airframe_3 = {
		abbreviation = "mpa3"
        derived_variant_name = mpa_equipment_3
		year = 2015
		archetype = medium_plane_airframe
		parent = medium_plane_airframe_2
		priority = 5

		can_convert_from = { medium_plane_airframe_0 medium_plane_airframe_1 medium_plane_airframe_2 medium_plane_airframe_3 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1870
		weight = 20
		air_agility = 72
		air_defence = 86.6
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.2

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 33
		resources = {
			aluminium = 3
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 6 Medium Airframe (2035)
	medium_plane_airframe_4 = {
		abbreviation = "mpa4"
        derived_variant_name = mpa_equipment_4
		year = 2035
		archetype = medium_plane_airframe
		parent = medium_plane_airframe_3
		priority = 5

		can_convert_from = { medium_plane_airframe_0 medium_plane_airframe_1 medium_plane_airframe_2 medium_plane_airframe_3 medium_plane_airframe_4 }

		#set basic stats here
		maximum_speed = 0
		air_range = 2525
		weight = 24
		air_agility = 86
		air_defence = 112
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.3

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 36
		resources = {
			aluminium = 4
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
	}
	#Medium Plane Carrier Airframe
	#Archetype
	cv_medium_plane_airframe = {
		year = 1960
		#set base info
		is_archetype = yes
		is_convertable = yes
		carrier_capable = yes
		default_carrier_composition_weight = 1
		picture = archetype_strat_bomber_equipment
		is_buildable = no
		#set base type and missions
		type = {
			tactical_bomber
		}
		ai_type = heavy_fighter
		type_override = fixed_main_weapon_slot
		allowed_types = {
			tactical_bomber
			cas
			fighter
			scout_plane
			naval_bomber
			suicide
		}
		allow_mission_type = training
		group_by = archetype
		sprite = medium_plane
		air_map_icon_frame = 6
		interface_category = interface_category_air

		interface_overview_category_index = 4
		#set base combat stats
		air_superiority = 1
		reliability = 1
		naval_strike_attack = 0
		naval_strike_targetting = 0
		air_ground_attack = 1
		air_bombing = 1
		air_attack = 1
		manpower = 20
		fuel_consumption = 0.05
		#construction costs
		build_cost_ic = 9
		resources = {
			aluminium = 2
			rubber = 1
		}
		#modules
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_heavy_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_4 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
		#set all module limits
		module_count_limit = {
			category = plane_multipurpose_gun
			count < 2
		}
		module_count_limit = {
			category = plane_refueling_systems
			count < 4
		}
		module_count_limit = {
			module = spec_refuel_3
			count < 2
		}
		module_count_limit = {
			category = plane_recon_tgp_systems
			count < 2
		}
		module_count_limit = {
			category = plane_redundant_systems
			count < 2
		}
		module_count_limit = {
			category = plane_protective_materials
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_shape
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_materials
			count < 2
		}
		module_count_limit = {
			category = plane_countermeasures
			count < 2
		}
		module_count_limit = {
			category = plane_thrust_vectoring
			count < 2
		}
		module_count_limit = {
			category = plane_asw_systems
			count < 2
		}
		module_count_limit = {
			category = plane_heavy_modules
			count < 2
		}
		module_count_limit = {
			category = plane_intercept_weapons
			count < 3
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_jet_double_1
			avionics_type_slot = avionics_manned_1
			wingform_type_slot = empty
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
			special_slot_type_4 = empty
		}
	}
	#base medium airframe
	cv_medium_plane_airframe_0 = {
		abbreviation = "cmpa0"
		year = 1960

		can_convert_from = { cv_medium_plane_airframe_0 }

		archetype = cv_medium_plane_airframe
		module_slots = inherit
		priority = 5
		air_range = 1200
		maximum_speed = 0
		air_agility = 0
		air_defence = 0
		air_ground_attack = 1
		air_bombing = 1
		air_attack = 1
		weight = 2
		naval_strike_attack = 0
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
	#Gen 3 Medium Carrier Airframe (1965)
	#Carrier aircraft receive a 5% debuff to range, agility stats
	#Carrier aircraft receive a 5% buff to air defense stat
	#Weight and build cost increased to account for sturdier airframe
	cv_medium_plane_airframe_1 = {
		abbreviation = "cmpa1"
		year = 1965
		archetype = cv_medium_plane_airframe
		parent = cv_medium_plane_airframe_0
		priority = 5

		can_convert_from = { cv_medium_plane_airframe_0 cv_medium_plane_airframe_1 }

		#set basic stats here
		maximum_speed = 0
		air_range = 975
		weight = 13
		air_agility = 48
		air_defence = 52.8
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 28
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_awacs_module
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
					plane_solar_single
					plane_solar_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
	}
	#Gen 4 Medium Carrier Airframe (1985)
	cv_medium_plane_airframe_2 = {
		abbreviation = "cmpa2"
		year = 1985
		archetype = cv_medium_plane_airframe
		parent = cv_medium_plane_airframe_1
		priority = 5

		can_convert_from = { cv_medium_plane_airframe_0 cv_medium_plane_airframe_1 cv_medium_plane_airframe_2 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1316		 #multiplied by 1.35 per generation
		weight = 17			  #multiplied by 1.35 per generation
		air_agility = 58		 #multiplied by 1.2 per generation
		air_defence = 68.6		 #multiplied by 1.3 per generation
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.1

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 32	 #multiplied by 1.1 per generation
		resources = {
			aluminium = 2
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_awacs_module
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_nuclear_consent
					plane_thrust_vectoring
				}
			}
		}
	}
	#Gen 5 Medium Carrier Airframe (2015)
	cv_medium_plane_airframe_3 = {
		abbreviation = "cmpa3"
		year = 2015
		archetype = cv_medium_plane_airframe
		parent = cv_medium_plane_airframe_2
		priority = 5

		can_convert_from = { cv_medium_plane_airframe_0 cv_medium_plane_airframe_1 cv_medium_plane_airframe_2 cv_medium_plane_airframe_3 }

		#set basic stats here
		maximum_speed = 0
		air_range = 1777
		weight = 21
		air_agility = 70
		air_defence = 88.7
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.2

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 35
		resources = {
			aluminium = 3
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_heavy_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons

					plane_cas_weapons

					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 6 Medium Carrier Airframe (2035)
	cv_medium_plane_airframe_4 = {
		abbreviation = "cmpa4"
		year = 2035
		archetype = cv_medium_plane_airframe
		parent = cv_medium_plane_airframe_3
		priority = 5

		can_convert_from = { cv_medium_plane_airframe_0 cv_medium_plane_airframe_1 cv_medium_plane_airframe_2 cv_medium_plane_airframe_3 cv_medium_plane_airframe_4 }

		#set basic stats here
		maximum_speed = 0
		air_range = 2399
		weight = 25
		air_agility = 84
		air_defence = 116.2
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.3

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		#construction costs/materials
		build_cost_ic = 38.5
		resources = {
			aluminium = 4
			rubber = 1
		}
		#module breakdown
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_heavy_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_multipurpose_gun
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_fighter_weapons
					plane_stealth_weapons
					plane_stealth_mr_weapons
					plane_stealth_cas_weapons
					plane_intercept_weapons
					plane_cas_weapons
					plane_guided_bombs
					plane_nav_weapons
					plane_heavy_nav_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_single
					plane_jet_double
					plane_prop_single
					plane_prop_double
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	large_plane_airframe = {
		year = 1960
		is_archetype = yes
		is_convertable = yes
		picture = archetype_strat_bomber_equipment
		is_buildable = no
		#set type / missions
		type = strategic_bomber
		type_override = fixed_main_weapon_slot
		allowed_types = {
			strategic_bomber
			naval_bomber
			scout_plane
			air_transport
			cas
			suicide
		}
		allow_mission_type = training
		group_by = archetype
		sprite = large_plane
		air_map_icon_frame = 11
		interface_category = interface_category_air
		interface_overview_category_index = 5
		#set base combat stats
		air_superiority = 0.01
		reliability = 100
		naval_strike_attack = 0
		naval_strike_targetting = 0
		air_bombing = 2
		#construction / production costs
		manpower = 80
		lend_lease_cost = 10
		fuel_consumption = 0.10
		build_cost_ic = 19
		resources = {
			aluminium = 2
			rubber = 2
		}
		#modules
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
					plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_gunship_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = { }
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
					plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
					plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
					plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_4 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
					plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_double
					plane_jet_quad
					plane_jet_six
					plane_jet_eight
					plane_prop_double
					plane_prop_quad
					plane_prop_six
					plane_prop_eight
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
		#set all module limits
		module_count_limit = {
			category = plane_awacs_module
			count < 2
		}
		module_count_limit = {
			category = plane_refueling_systems
			count < 4
		}
		module_count_limit = {
			module = spec_refuel_3
			count < 2
		}
		module_count_limit = {
			category = plane_redundant_systems
			count < 2
		}
		module_count_limit = {
			category = plane_protective_materials
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_shape
			count < 2
		}
		module_count_limit = {
			category = plane_stealth_materials
			count < 2
		}
		module_count_limit = {
			category = plane_countermeasures
			count < 2
		}
		module_count_limit = {
			category = plane_asw_systems
			count < 2
		}
		module_count_limit = {
			module = weap_ag_gunship_2
			count < 2
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			fixed_auxiliary_weapon_slot_4 = empty
			engine_type_slot = engine_jet_quad_1
			avionics_type_slot = avionics_manned_1
			wingform_type_slot = wing_straight
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
			special_slot_type_4 = empty
			special_slot_type_5 = empty
		}
	}
	#base large plane
	large_plane_airframe_0 = {
		abbreviation = "lpa0"
		year = 1960
		archetype = large_plane_airframe
		module_slots = inherit
		priority = 5
		can_convert_from = { large_plane_airframe_0 }
		is_buildable = no
		#base stats
		air_range = 2000
		maximum_speed = 0
		air_agility = 0
		air_defence = 0
		weight = 20
		naval_strike_attack = 0
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
	#Gen 3 Large Plane Airframe (1965)
	large_plane_airframe_1 = {
		abbreviation = "lpa1"
        derived_variant_name = lpa_equipment_1
		year = 1965
		archetype = large_plane_airframe
		parent = large_plane_airframe_0

		can_convert_from = { large_plane_airframe_0 large_plane_airframe_1 }

		#combat stats
		air_range = 2514
		maximum_speed = 0
		weight = 30
		air_agility = 40
		air_defence = 78
		reliability = 1
		naval_strike_attack = 0
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}

		build_cost_ic = 45
		resources = {
			aluminium = 3
			rubber = 2
		}
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_gunship_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_double
					plane_jet_quad
					plane_jet_six
					plane_jet_eight
					plane_prop_double
					plane_prop_quad
					plane_prop_six
					plane_prop_eight
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_heavy_special_design
					plane_nuclear_consent
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 4 Large Plane Airframe (1985)
	large_plane_airframe_2 = {
		abbreviation = "lpa2"
        derived_variant_name = lpa_equipment_2
		year = 1985
		archetype = large_plane_airframe
		parent = large_plane_airframe_1

		can_convert_from = { large_plane_airframe_0 large_plane_airframe_1 large_plane_airframe_2 }

		#combat stats
		air_range = 3018	   #multiplied by 1.2 per generation
		maximum_speed = 0
		weight = 34			#multiplied by 1.25 per generation
		air_agility = 46	   #multiplied by 1.2 per generation
		air_defence = 88.1	   #multiplied by 1.12 per generation
		naval_strike_attack = 0
		reliability = 1.1
		naval_strike_targetting = 0

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		build_cost_ic = 48	 #multiplied by 1.1 per generation
		resources = {
			aluminium = 4
			rubber = 2
		}
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_gunship_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_double
					plane_jet_quad
					plane_jet_six
					plane_jet_eight
					plane_prop_double
					plane_prop_quad
					plane_prop_six
					plane_prop_eight
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_heavy_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 5 Large Plane Airframe (2015)
	large_plane_airframe_3 = {
		abbreviation = "lpa3"
        derived_variant_name = lpa_equipment_3
		year = 2015
		archetype = large_plane_airframe
		parent = large_plane_airframe_2

		can_convert_from = { large_plane_airframe_0 large_plane_airframe_1 large_plane_airframe_2 large_plane_airframe_3 }

		#combat stats
		air_range = 3620
		maximum_speed = 0
		weight = 38
		air_agility = 58
		air_defence = 98.1
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.2

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		build_cost_ic = 53
		resources = {
			aluminium = 5
			rubber = 2
		}
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_gunship_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_double
					plane_jet_quad
					plane_jet_six
					plane_jet_eight
					plane_prop_double
					plane_prop_quad
					plane_prop_six
					plane_prop_eight
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_heavy_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
	#Gen 6 Large Plane Airframe (2035)
	large_plane_airframe_4 = {
		abbreviation = "lpa4"
        derived_variant_name = lpa_equipment_4
		year = 2035
		archetype = large_plane_airframe
		parent = large_plane_airframe_3

		can_convert_from = { large_plane_airframe_0 large_plane_airframe_1 large_plane_airframe_2 large_plane_airframe_3 large_plane_airframe_4 }

		#combat stats
		air_range = 4344
		maximum_speed = 0
		weight = 42
		air_agility = 62
		air_defence = 109.4
		naval_strike_attack = 0
		naval_strike_targetting = 0
		reliability = 1.3

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
		build_cost_ic = 58
		resources = {
			aluminium = 6
			rubber = 2
		}
		module_slots = {
			fixed_main_weapon_slot = {
				required = yes
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_awacs_module
					plane_gunship_modules
				}
			}
			fixed_gun_slot = {
				required = no
				allowed_module_categories = {
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_1 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_3 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			fixed_auxiliary_weapon_slot_4 = {
				required = no
				allowed_module_categories = {
					plane_heavy_modules
					plane_bomb_bay
				   plane_bomb_bay_stealth
					plane_nav_weapons
					plane_heavy_nav_weapons
					plane_gunship_modules
					plane_cas_weapons
				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_jet_double
					plane_jet_quad
					plane_jet_six
					plane_jet_eight
					plane_prop_double
					plane_prop_quad
					plane_prop_six
					plane_prop_eight
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
					plane_heavy_special_design
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_asw_systems
					plane_refueling_systems
					plane_recon_tgp_systems
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
					plane_thrust_vectoring
					plane_nuclear_consent
				}
			}
		}
	}
    
    mothership_equipment = {
		year = 1960
		is_archetype = yes
		is_convertable = yes
		picture = archetype_fighter_equipment
		is_buildable = no
		#set base type & mission
		type = { fighter }
		type_override = fixed_primary_command_operations
		allowed_types = {
			fighter
		}
		allow_mission_type = training

		group_by = archetype
		sprite = mothership
		air_map_icon_frame = 1
		interface_category = interface_category_air

		interface_overview_category_index = 1

		#set base combat/equipment stats
		air_superiority = 0
		reliability = 0.75
		naval_strike_attack = 0
		naval_strike_targetting = 0
		air_range = 15000

		#lend lease / manpower / fuel
		lend_lease_cost = 8
		manpower = 15
		fuel_consumption = 0

		#construction costs
		build_cost_ic = 500
		resources = {
			aluminium = 6
			rubber = 2
		}

		#module slot settings
		module_slots = {
			fixed_primary_command_operations = {
				required = yes
				allowed_module_categories = {

				}
			}
			fixed_drone_doc_slot_1 = {
				required = no
				allowed_module_categories = {

				}
			}
			fixed_drone_doc_slot_2 = {
				required = no
				allowed_module_categories = {

				}
			}
			fixed_drone_doc_slot_3 = {
				required = no
				allowed_module_categories = {

				}
			}
			fixed_drone_doc_slot_4 = {
				required = no
				allowed_module_categories = {

				}
			}
			fixed_drone_doc_slot_5 = {
				required = no
				allowed_module_categories = {

				}
			}
			engine_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_nuclear_eight
				}
			}
			avionics_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_avionics
				}
			}
			wingform_type_slot = {
				required = yes
				allowed_module_categories = {
					plane_wingforms
				}
			}
			special_slot_type_1 = {
				required = no
				allowed_module_categories = {
					plane_countermeasures
				}
			}
			special_slot_type_2 = {
				required = no
				allowed_module_categories = {
					plane_heavy_special_design_arsenal
				}
			}
			special_slot_type_3 = {
				required = no
				allowed_module_categories = {
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
				}
			}
			special_slot_type_4 = {
				required = no
				allowed_module_categories = {
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
				}
			}
			special_slot_type_5 = {
				required = no
				allowed_module_categories = {
					plane_redundant_systems
					plane_protective_materials
					plane_stealth_shape
					plane_stealth_materials
				}
			}
		}
		#set default starting modules
		default_modules = {
			fixed_main_weapon_slot = empty
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			engine_type_slot = empty
			avionics_type_slot = empty
			wingform_type_slot = empty
			special_slot_type_1 = empty
			special_slot_type_2 = empty
			special_slot_type_3 = empty
		}
	}

	mothership_equipment_1 = {
		abbreviation = "spa0"
		year = 1960
		archetype = mothership_equipment
		module_slots = inherit
		is_buildable = yes
		priority = 5

		upgrades = {
			plane_bba_radar_upgrade
			plane_bba_engine_upgrade
		}
	}
}