# This file must be evaluated after the file(s) defining the archetypes being duplicated.
# The equipment attributes alias, type, variant_name, and derived_variant_name are not duplicated.

duplicate_archetypes = {

	# small_plane

	small_plane_cas_airframe = {
		archetype = small_plane_airframe
		type = cas
		for_each = {
			air_ground_attack = { add = 1 }
			build_cost_ic = { add = 2 }
			maximum_speed = { add = -30 }
			thrust = { add = 4 }
			air_range = { add = 100 }
			air_defence = { add = 1 }
			air_agility = { add = -8 }
			air_superiority = { set = 0.8 }
		}
		picture = archetype_CAS_equipment
		variant_name = {
			small_plane_cas_airframe_1 = CAS_equipment_1
			small_plane_cas_airframe_2 = CAS_equipment_2
			small_plane_cas_airframe_3 = CAS_equipment_3
		}
		air_map_icon_frame = 2
		interface_overview_category_index = 0
		substitute = cv_small_plane_cas_airframe
	}
	cv_small_plane_cas_airframe = {
		archetype = cv_small_plane_airframe
		type = cas
		for_each = {
			air_ground_attack = { add = 1 }
			build_cost_ic = { add = 2 }
			maximum_speed = { add = -30 }
			thrust = { add = 4 }
			air_range = { add = 100 }
			air_defence = { add = 1 }
			air_agility = { add = -8 }
			air_superiority = { set = 0.8 }
		}
		#ai_type = cv_cas
		picture = archetype_CAS_equipment
		variant_name = {
			cv_small_plane_cas_airframe_1 = cv_CAS_equipment_1
			cv_small_plane_cas_airframe_2 = cv_CAS_equipment_3
			cv_small_plane_cas_airframe_3 = cv_CAS_equipment_2
		}
		air_map_icon_frame = 17
		interface_overview_category_index = 0
	}

	small_plane_naval_bomber_airframe = {
		archetype = small_plane_airframe
		type = naval_bomber
		for_each = {
			build_cost_ic = { add = 2 }
			maximum_speed = { add = -30 }
			thrust = { add = 3 }
			air_range = { add = 100 }
			air_agility = { add = -8 }
			air_defence = { add = 1 }
			surface_detection = { add = 2 }
			sub_detection = { add = 1 }
			air_superiority = { set = 0.8 }
		}
		picture = archetype_heavy_fighter_equipment
		variant_name = {
			small_plane_naval_bomber_airframe_1 = nav_bomber_equipment_1
			small_plane_naval_bomber_airframe_2 = nav_bomber_equipment_2
			small_plane_naval_bomber_airframe_3 = nav_bomber_equipment_3
		}
		air_map_icon_frame = 3
		interface_overview_category_index = 2
		substitute = cv_small_plane_naval_bomber_airframe
	}
	cv_small_plane_naval_bomber_airframe = {
		archetype = cv_small_plane_airframe
		type = naval_bomber
		for_each = {
			build_cost_ic = { add = 2 }
			maximum_speed = { add = -30 }
			thrust = { add = 3 }
			air_range = { add = 100 }
			air_agility = { add = -8 }
			air_defence = { add = 1 }
			surface_detection = { add = 2 }
			sub_detection = { add = 1 }
			air_superiority = { set = 0.8 }
		}
		#ai_type = cv_naval_bomber
		picture = archetype_heavy_fighter_equipment
		variant_name = {
			cv_small_plane_naval_bomber_airframe_1 = cv_nav_bomber_equipment_1
			cv_small_plane_naval_bomber_airframe_2 = cv_nav_bomber_equipment_2
			cv_small_plane_naval_bomber_airframe_3 = cv_nav_bomber_equipment_3
		}
		air_map_icon_frame = 18
		interface_overview_category_index = 2
		default_carrier_composition_weight = 1
	}

	small_plane_suicide_airframe = {
		archetype = small_plane_airframe
		type = suicide
		picture = archetype_rocket_interceptor_equipment
		variant_name = {
			small_plane_suicide_airframe_3 = rocket_suicide_equipment_1
		}
		for_each = {
			air_range = { add = 200 }
			air_superiority = { set = 0.25 }
		}	
		air_map_icon_frame = 15
		interface_overview_category_index = -1 # Do not include these in the intel or airforce overview.
		substitute = cv_small_plane_suicide_airframe
		forbid_mission_type = training
	}
	cv_small_plane_suicide_airframe = {
		archetype = cv_small_plane_airframe
		type = suicide
		#ai_type = cv_suicide
		picture = archetype_rocket_interceptor_equipment
		for_each = {
			air_range = { add = 200 }
			air_superiority = { set = 0.25 }
		}	
		air_map_icon_frame = 19
		interface_overview_category_index = -1 # Do not include these in the intel or airforce overview.
		forbid_mission_type = training
	}

	small_plane_scout_plane_airframe = {
		archetype = small_plane_airframe
		type = scout_plane
		for_each = {
			air_superiority = { set = 0 }
			thrust = { add = -6 }
			build_cost_ic = { add = -2 }
			air_defence = { add = 3 }
			maximum_speed = { add = -50 }
			air_range = { add = -50 }
			air_agility = { add = -5 }
			surface_detection = { add = 2 }
			sub_detection = { add = 1 }
		}
		sprite = scout_plane
		air_map_icon_frame = 13
		interface_overview_category_index = 7
	}

	# medium_plane

	medium_plane_fighter_airframe = {
		archetype = medium_plane_airframe
		type = fighter
		ai_type = heavy_fighter
		for_each = {
			air_attack = { add = 2 }
			air_superiority = { set = 1.5 }
			build_cost_ic = { add = -7 }
			maximum_speed = { add = +40 }
			thrust = { add = -6 }
			air_defence = { add = -4 }
			air_range = { add = -450 }
		}
		sprite = light_plane
		variant_name = {
			medium_plane_fighter_airframe_1 = heavy_fighter_equipment_1
			medium_plane_fighter_airframe_2 = heavy_fighter_equipment_2
			medium_plane_fighter_airframe_3 = heavy_fighter_equipment_3
		}
		air_map_icon_frame = 8
		interface_overview_category_index = 3
	}

	medium_plane_scout_plane_airframe = {
		archetype = medium_plane_airframe
		type = scout_plane
		for_each = {
			build_cost_ic = { add = -6 }
			thrust = { add = -8 }
			air_superiority = { set = 0 }
			air_range = { add = -350 }
			surface_detection = { add = 3 }
			sub_detection = { add = 1 }
		}
		sprite = scout_plane
		variant_name = {
			medium_plane_scout_plane_airframe_1 = scout_plane_equipment_1
			medium_plane_scout_plane_airframe_2 = scout_plane_equipment_2
		}
		air_map_icon_frame = 13
		interface_overview_category_index = 7
	}

	medium_plane_naval_bomber_airframe = {
		archetype = medium_plane_airframe
		type = naval_bomber
		for_each = {
			maximum_speed = { add = -20 }
			air_range = { add = -200 }
			surface_detection = { add = 3 }
			sub_detection = { add = 1 }
		}
		picture = archetype_heavy_fighter_equipment
		air_map_icon_frame = 3
		interface_overview_category_index = 2
	}

	# large_plane

	large_plane_maritime_patrol_plane_airframe = {
		archetype = large_plane_airframe
		type = maritime_patrol_plane
		for_each = {
			build_cost_ic = { add = -8 }
			maximum_speed = { add = -20 }
			thrust = { add = -6 }
			surface_detection = { add = 3 }
			sub_detection = { add = 2 }
		}
		air_map_icon_frame = 14
		interface_overview_category_index = 8
	}

	# Non-BBA archetypes

	jet_fighter_equipment = {
		only_duplicate_archetype = yes
		module_slots = none # Prevent this archetype from being identified as using the plane designer
		archetype = small_plane_airframe
		type = fighter
		sprite = jet_plane
		air_map_icon_frame = 4
	}

	rocket_interceptor_equipment = {
		only_duplicate_archetype = yes
		module_slots = none
		archetype = small_plane_airframe
		type = interceptor
		air_map_icon_frame = 5
		interface_overview_category_index = -1 # Do not include these in the intel or airforce overview.
	}

	jet_tac_bomber_equipment = {
		only_duplicate_archetype = yes
		module_slots = none
		archetype = medium_plane_airframe
		type = tactical_bomber
		air_map_icon_frame = 7
	}

	jet_strat_bomber_equipment = {
		only_duplicate_archetype = yes
		module_slots = none
		archetype = large_plane_airframe
		type = strategic_bomber
		air_map_icon_frame = 10
	}
}
