technologies = {

	# MM: This constants are here because I am not a **** savage
	@transport_plane_x = 1
	@mothership_x_bba = 5
	@mothership_x = 3

	bba_early_transport_plane = {

		allow_branch = {
			always = no
		}

		enable_equipments = {
			transport_plane_equipment_1
		}
	
		path = {
			leads_to_tech = bba_improved_transport_plane
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1933

		folder = {
			name = bba_air_techs_folder
			position = { x = @transport_plane_x y = 2 } 
		}
		
		categories = {
			air_equipment
			transport_planes_cat
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 2
				is_major = yes
			}
		}
	}

	bba_improved_transport_plane = {

		enable_equipments = {
			transport_plane_equipment_2
		}
	
		path = {
			leads_to_tech = bba_strategic_airlifter
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1940
		
		folder = {
			name = bba_air_techs_folder
			position = { x = @transport_plane_x y = 6 } 
		}
		
		categories = {
			air_equipment
			transport_planes_cat
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 2
				is_major = yes
			}
		}
	}

	bba_strategic_airlifter = {

		enable_equipments = {
			transport_plane_equipment_3
		}
		
		research_cost = 2
		start_year = 1945
		
		folder = {
			name = bba_air_techs_folder
			position = { x = @transport_plane_x y = 12 } 
		}
		
		categories = {
			air_equipment
			transport_planes_cat
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 2
				is_major = yes
			}
		}
	}
	
	iw_small_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_0
			small_plane_cas_airframe_0
			small_plane_naval_bomber_airframe_0
			small_plane_suicide_airframe_0
			cv_small_plane_airframe_0
			cv_small_plane_cas_airframe_0
			cv_small_plane_naval_bomber_airframe_0
			cv_small_plane_suicide_airframe_0
		}
		
	
		path = {
			leads_to_tech = basic_small_airframe
			research_cost_coeff = 1
		}
		
		
		research_cost = 2
		start_year = 1926
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			naval_air
			naval_bomber
			air_equipment
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		
		ai_will_do = {
			factor = 5
			
			modifier = {
				factor = 2
				is_major = yes
			}

			modifier = {
				num_of_military_factories < 7
				factor = 0.1
			}
		}
	}
	
	basic_small_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_1
			small_plane_cas_airframe_1
			small_plane_naval_bomber_airframe_1
			small_plane_suicide_airframe_1
			cv_small_plane_airframe_1
			cv_small_plane_cas_airframe_1
			cv_small_plane_naval_bomber_airframe_1
			cv_small_plane_suicide_airframe_1
		}
		dependencies = {
			air_engine = 1
		}		
		path = {
			leads_to_tech = improved_small_airframe
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1935

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 4 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			naval_air
			naval_bomber
			air_equipment
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 2
			
			modifier = {
				factor = 2
				is_major = yes
			}
			
			modifier = {
				factor = 1.2
				date > "1937.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1938.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1939.1.1"
			}
			
			modifier = {
				factor = 5
				date > "1940.1.1"
			}
		}
	}
	improved_small_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_2
			small_plane_cas_airframe_2
			small_plane_naval_bomber_airframe_2
			small_plane_suicide_airframe_2
			cv_small_plane_airframe_2
			cv_small_plane_cas_airframe_2
			cv_small_plane_naval_bomber_airframe_2
			cv_small_plane_suicide_airframe_2
		}
	
		path = {
			leads_to_tech = advanced_small_airframe
			research_cost_coeff = 1
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_jet_engine	
			}
		}				

		research_cost = 2
		start_year = 1939
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			naval_air
			naval_bomber
			air_equipment
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 2
			
			modifier = {
				factor = 4
				is_major = yes
			}

			modifier = {
				factor = 0
				original_tag = GER
				date < "1940.6.1"
			}

			modifier = {
				factor = 1.2
				date > "1941.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1942.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1943.1.1"
			}
			
			modifier = {
				factor = 5
				date > "1944.1.1"
			}
		}
	}
	advanced_small_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_3
			small_plane_cas_airframe_3
			small_plane_naval_bomber_airframe_3
			small_plane_suicide_airframe_3
			cv_small_plane_airframe_3
			cv_small_plane_cas_airframe_3
			cv_small_plane_naval_bomber_airframe_3
			cv_small_plane_suicide_airframe_3
		}
		
		path = {
			leads_to_tech = modern_small_airframe
			research_cost_coeff = 1
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_axial_jet_engine	
			}
		}		
		research_cost = 2
		start_year = 1942

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 8 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			naval_air
			naval_bomber
			air_equipment
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 2
			
			modifier = {
				factor = 4
				is_major = yes
			}
			
			modifier = {
				factor = 1.2
				date > "1945.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1946.1.1"
			}
			
			modifier = {
				factor = 1.2
				date > "1947.1.1"
			}
			
			modifier = {
				factor = 5
				date > "1948.1.1"
			}
		}
	}
	modern_small_airframe = {
		show_equipment_icon = yes
		enable_equipments = {
			small_plane_airframe_4
			small_plane_cas_airframe_4
			small_plane_naval_bomber_airframe_4
			small_plane_suicide_airframe_4
			cv_small_plane_airframe_4
			cv_small_plane_cas_airframe_4
			cv_small_plane_naval_bomber_airframe_4
			cv_small_plane_suicide_airframe_4
		}

		path = {
			leads_to_tech = supersonic_small_airframe
			research_cost_coeff = 1
		}
		research_cost = 2
		start_year = 1945

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 12 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			air_equipment
			naval_air
			naval_bomber
			jet_technology
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				tag = GER
				factor = 2
			}
		}
	}
	supersonic_small_airframe = { #supersonic
		show_equipment_icon = yes

		allow = { 	 		
			ROOT = {
				is_special_project_completed = sp:sp_air_supersonic_jet
			} 
		}

		is_special_project_tech = yes
		enable_equipments = {
			small_plane_airframe_5
			small_plane_cas_airframe_5
			small_plane_naval_bomber_airframe_5
			small_plane_suicide_airframe_5
			small_plane_scout_plane_airframe_5
			cv_small_plane_airframe_5
			cv_small_plane_cas_airframe_5
			cv_small_plane_naval_bomber_airframe_5
			cv_small_plane_suicide_airframe_5
		}	
		path = {
			leads_to_tech = tech_small_airframe_6
			research_cost_coeff = 1
		}
		research_cost = 2
		start_year = 1950
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 14 }
		}
		categories = {
			light_air
			light_fighter
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	tech_small_airframe_6 = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_6
			small_plane_cas_airframe_6
			small_plane_naval_bomber_airframe_6
			small_plane_suicide_airframe_6
			small_plane_scout_plane_airframe_6
			cv_small_plane_airframe_6
			cv_small_plane_cas_airframe_6
			cv_small_plane_naval_bomber_airframe_6
			cv_small_plane_suicide_airframe_6
		}

		path = {
			leads_to_tech = tech_small_airframe_7
			research_cost_coeff = 1
		}
		
		dependencies = {
			jet_engines = 1
		}
		
		research_cost = 2
		start_year = 1955

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 16 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			air_equipment
			naval_air
			naval_bomber
			jet_technology
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				tag = GER
				factor = 2
			}
		}
	}

	tech_small_airframe_7 = {
		show_equipment_icon = yes

		enable_equipments = {
			small_plane_airframe_7
			small_plane_cas_airframe_7
			small_plane_naval_bomber_airframe_7
			small_plane_suicide_airframe_7
			small_plane_scout_plane_airframe_7
			cv_small_plane_airframe_7
			cv_small_plane_cas_airframe_7
			cv_small_plane_naval_bomber_airframe_7
			cv_small_plane_suicide_airframe_7
		}
		
		dependencies = {
			jet_engines = 1
		}
		
		research_cost = 2
		start_year = 1960

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 18 }
		}
		
		categories = {
			light_air
			light_fighter
			cas_bomber
			air_equipment
			naval_air
			naval_bomber
			jet_technology
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				tag = GER
				factor = 2
			}
		}
	}

	iw_medium_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_0
			medium_plane_fighter_airframe_0
			medium_plane_scout_plane_airframe_0
		}

		path = {
			leads_to_tech = basic_medium_airframe
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1926
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 2 }
		}
		
		categories = {
			medium_air
			tactical_bomber
			cat_heavy_fighter
			air_equipment
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			base = 1

			modifier = {
				num_of_military_factories < 15
				factor = 0.1
			}
		}
	}
	
	basic_medium_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_1
			medium_plane_fighter_airframe_1
			medium_plane_scout_plane_airframe_1
		}
		dependencies = {
			air_engine = 1
		}		
		path = {
			leads_to_tech = improved_medium_airframe
			research_cost_coeff = 1
		}

		research_cost = 2
		start_year = 1935

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 4 }
		}
		
		categories = {
			medium_air
			tactical_bomber
			cat_heavy_fighter
			air_equipment
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1936.1.1"
			}
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = tactical_bomber
				}
				factor = 2
			}
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1938.1.1"
			}
			
			modifier = {
				factor = 5
				is_major = yes
				date > "1940.1.1"
			}
		}
	}
	
	improved_medium_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_2
			medium_plane_fighter_airframe_2
			medium_plane_scout_plane_airframe_2
		}
	
		path = {
			leads_to_tech = advanced_medium_airframe
			research_cost_coeff = 1
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_jet_engine	
			}
		}		
		research_cost = 2
		start_year = 1940
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 6 }
		}
		
		categories = {
			medium_air
			tactical_bomber
			cat_heavy_fighter
			air_equipment
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1940.1.1"
			}
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = tactical_bomber
				}
				factor = 2
			}
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1941.1.1"
			}
			
			modifier = {
				factor = 5
				is_major = yes
				date > "1944.1.1"
			}
		}
	}
	
	advanced_medium_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_3
			medium_plane_fighter_airframe_3
			medium_plane_scout_plane_airframe_3
		}
		
		path = {
			leads_to_tech = modern_medium_airframe
			research_cost_coeff = 1
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_axial_jet_engine	
			}
		}
		research_cost = 2
		start_year = 1942
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 8 }
		}
		
		categories = {
			medium_air
			tactical_bomber
			cat_heavy_fighter
			air_equipment
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1944.1.1"
			}
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = tactical_bomber
				}
				factor = 2
			}
			modifier = {
				factor = 1.2
				is_major = yes
				date > "1945.1.1"
			}
		}
	}
	
	modern_medium_airframe = {
		show_equipment_icon = yes
		enable_equipments = {
			medium_plane_airframe_4
			medium_plane_fighter_airframe_4
			medium_plane_scout_plane_airframe_4
		}
		
		path = {
			leads_to_tech = tech_medium_airframe_5
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1945
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 12 }
		}
		
		categories = {
			medium_air
			jet_technology
			cat_heavy_fighter
			tactical_bomber
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	tech_medium_airframe_5 = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_5
			medium_plane_fighter_airframe_5
			medium_plane_scout_plane_airframe_5
		}
		
		path = {
			leads_to_tech = tech_medium_airframe_6
			research_cost_coeff = 1
		}
		
		dependencies = {
			jet_engines = 1
		}

		research_cost = 2
		start_year = 1950
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 14 }
		}
		
		categories = {
			medium_air
			jet_technology
			cat_heavy_fighter
			tactical_bomber
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	tech_medium_airframe_6 = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_6
			medium_plane_fighter_airframe_6
			medium_plane_scout_plane_airframe_6
		}
		
		path = {
			leads_to_tech = tech_medium_airframe_7
			research_cost_coeff = 1
		}
		
		dependencies = {
			jet_engines = 1
		}

		research_cost = 2
		start_year = 1955
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 16 }
		}
		
		categories = {
			medium_air
			jet_technology
			cat_heavy_fighter
			tactical_bomber
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	tech_medium_airframe_7 = {
		show_equipment_icon = yes

		enable_equipments = {
			medium_plane_airframe_7
			medium_plane_fighter_airframe_7
			medium_plane_scout_plane_airframe_7
		}
		
		dependencies = {
			jet_engines = 1
		}

		research_cost = 2
		start_year = 1960
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 18 }
		}
		
		categories = {
			medium_air
			jet_technology
			cat_heavy_fighter
			tactical_bomber
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	iw_large_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_0
			large_plane_maritime_patrol_plane_airframe_0
			transport_plane_airframe_1
		}
	
		path = {
			leads_to_tech = basic_large_airframe
			research_cost_coeff = 1
		}

		research_cost = 2
		start_year = 1926
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			base = 1

			modifier = {
				num_of_military_factories < 30
				factor = 0.1
			}
			
			modifier = {
				factor = 5
				tag = ENG
			}
			
			modifier = {
				factor = 10
				tag = USA
				date > 1937.1.1
			}
		}
	}
	
	basic_large_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_1
			large_plane_maritime_patrol_plane_airframe_1
		}
		dependencies = {
			air_engine = 1
		}		
		path = {
			leads_to_tech = improved_large_airframe
			research_cost_coeff = 1
		}

		research_cost = 2
		start_year = 1935
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 4 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 5
				tag = ENG
			}
			
			modifier = {
				factor = 10
				tag = USA
			}
		}
	}
	
	improved_large_airframe = {
		show_equipment_icon = yes

		on_research_complete = {
			if = {
				limit = { has_dlc = "Gotterdammerung"}
				custom_effect_tooltip = {
					localization_key = SP_UNLOCK_PROJECT
					PROJECT = sp_air_intercontinental_bomber	
				}
				custom_effect_tooltip = {
					localization_key = SP_UNLOCK_PROJECT
					PROJECT = sp_air_mothership_aircraft	
				}						
			}
		}
		enable_equipments = {
			large_plane_airframe_2
			large_plane_maritime_patrol_plane_airframe_2
			transport_plane_airframe_2
		}
	
		path = {
			leads_to_tech = advanced_large_airframe
			research_cost_coeff = 1
		}
		path = {
			leads_to_tech = sptech_air_intercontinental_bomber
			research_cost_coeff = 1
		}
		path = {
			leads_to_tech = sptech_air_mothership_aircraft
			research_cost_coeff = 1
		}

		research_cost = 2
		start_year = 1940
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 5
				tag = ENG
			}
			
			modifier = {
				factor = 5
				tag = USA
			}
		}
	}
	
	advanced_large_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_3
			large_plane_maritime_patrol_plane_airframe_3
		}
		
		path = {
			leads_to_tech = modern_large_airframe
			research_cost_coeff = 1
		}

		research_cost = 2
		start_year = 1942
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 8 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 5
				tag = ENG
			}
			
			modifier = {
				factor = 5
				tag = USA
			}
		}
	}
	
	modern_large_airframe = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_4
			large_plane_maritime_patrol_plane_airframe_4
		}
		
		path = {
			leads_to_tech = tech_large_airframe_5
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1945

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 12 }
		}
		
		categories = {
			heavy_air
			jet_technology
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = strategic_bomber
				}
				factor = 4.5
			}
		}
	}

	tech_large_airframe_5 = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_5
			large_plane_maritime_patrol_plane_airframe_5
			transport_plane_airframe_3
		}
		
		path = {
			leads_to_tech = tech_large_airframe_6
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1950

		dependencies = {
			jet_engines = 1
		}

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 14 }
		}
		
		categories = {
			heavy_air
			jet_technology
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = strategic_bomber
				}
				factor = 4.5
			}
		}
	}

	tech_large_airframe_6 = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_6
			large_plane_maritime_patrol_plane_airframe_6
		}
		
		path = {
			leads_to_tech = tech_large_airframe_7
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1955

		dependencies = {
			jet_engines = 1
		}

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 16 }
		}
		
		categories = {
			heavy_air
			jet_technology
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = strategic_bomber
				}
				factor = 4.5
			}
		}
	}

	tech_large_airframe_7 = {
		show_equipment_icon = yes

		enable_equipments = {
			large_plane_airframe_7
			large_plane_maritime_patrol_plane_airframe_7
		}
		
		research_cost = 2
		start_year = 1960

		dependencies = {
			jet_engines = 1
		}

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 18 }
		}
		
		categories = {
			heavy_air
			jet_technology
			cat_strategic_bomber
			cat_maritime_patrol
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				has_deployed_air_force_size = {
					size > 500
					type = strategic_bomber
				}
				factor = 4.5
			}
		}
	}

	sptech_air_intercontinental_bomber = {
		show_equipment_icon = yes

		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}
		allow = { 	 		
			ROOT = {
				is_special_project_completed = sp:sp_air_intercontinental_bomber
			} 
		}

		is_special_project_tech = yes

		enable_equipments = {
			strat_bomber_intercontinental_equipment_1
		}
		

		research_cost = 2
		#		start_year = 1944
		folder = {
			name = bba_air_techs_folder
			position = { x = 7 y = 6 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	sptech_air_mothership_aircraft = {
		show_equipment_icon = yes

		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}
		allow = { 	 		
			ROOT = {
				is_special_project_completed = sp:sp_air_mothership_aircraft
			} 
		}

		is_special_project_tech = yes

		enable_equipments = {
			mothership_equipment_0
		}
		

		path = {
			leads_to_tech = reinforced_wings_mothership
			research_cost_coeff = 1
		}
		
		research_cost = 2
		#		start_year = 1944
		folder = {
			name = bba_air_techs_folder
			position = { x = 3 y = 7 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	early_bombs = {
		enable_equipment_modules = {
					bomb_locks
					small_bomb_bay
					medium_bomb_bay
					large_bomb_bay
		}
			
		research_cost = 1
		start_year = 1922

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}

		path = {
			leads_to_tech = armor_piercing_bombs
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = heavy_bombs
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = napalm
			research_cost_coeff = 1
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}



	heavy_bombs = {
		enable_equipment_modules = {
			heavy_bomb_locks
		}

		on_research_complete = { 
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_bouncing_bomb
			}
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_earthshaker_bomb	
			}
		}
			
		research_cost = 1
		start_year = 1940

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		
		path = {
			leads_to_tech = sptech_air_bouncing_bomb
			research_cost_coeff = 1
		}
		path = {
			leads_to_tech = sptech_air_earthshaker_bomb
			research_cost_coeff = 1
		}
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	sptech_air_bouncing_bomb = {
		desc = sp_air_bouncing_bomb_completion_tt
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_bouncing_bomb
			} 
		}
		is_special_project_tech = yes

			
		research_cost = 3
		#		start_year = 1940

		folder = {
			name = bba_air_techs_folder
			position = { x = -1 y = 8 }
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}

		ai_will_do = {
			factor = 0
		}
	}

	sptech_air_earthshaker_bomb = {
		desc = sp_air_earthshaker_bomb_completion_tt
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_earthshaker_bomb
			} 
		}
		is_special_project_tech = yes

		enable_equipment_modules = {
			earthshaker_bomb_release
		}

		research_cost = 4
		#		start_year = 1940

		folder = {
			name = bba_air_techs_folder
			position = { x = 1 y = 8 }
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}

		ai_will_do = {
			factor = 0
		}
	}

	armor_piercing_bombs = {
		enable_equipment_modules = {
			armor_piercing_bomb_locks
		}
			
		research_cost = 1
		start_year = 1930

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 2 }
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	napalm = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_land_flamethrower_tank
			} 
		}

		enable_equipment_modules = {
			napalm_bomb
		}
			
		research_cost = 1
		#		start_year = 1922

		folder = {
			name = bba_air_techs_folder
			position = { x = -2 y = 4 }
		}

		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}

		ai_will_do = {
			factor = 0
		}
		special_project_specialization = { specialization_air }
	}

	photo_reconnaisance = {
		enable_equipment_modules = {
			recon_camera
		}
		
		research_cost = 1
		start_year = 1922

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}

		allow_branch = { has_dlc = "La Resistance" }
		
		categories = {
			air_equipment
			plane_modules_tech
			mio_cat_all_medium_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = basic_medium_airframe
				}
				factor = 3
			}
		}
	}

	air_torpedoe_1 = {
		enable_equipment_modules = {
			torpedo_mounting
		}
			
		research_cost = 1
		start_year = 1930

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}

		path = {
			leads_to_tech = air_torpedoe_2
			research_cost_coeff = 1
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			cat_maritime_patrol
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 2
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	air_torpedoe_2 = {
		enable_equipment_modules = {
			torpedo_mounting_2
		}
			
		research_cost = 1
		start_year = 1938

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}

		path = {
			leads_to_tech = air_torpedoe_3
			research_cost_coeff = 1
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			cat_maritime_patrol
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	air_torpedoe_3 = {
		enable_equipment_modules = {
			torpedo_mounting_3
		}
			
		research_cost = 1
		start_year = 1943

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 10 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			cat_maritime_patrol
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	aa_lmg = {
		enable_equipment_modules = {
			light_mg_2x
			light_mg_4x
			lmg_defense_turret
			lmg_defense_turret_2x
		}
		
		research_cost = 1
		start_year = 1922

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}

		path = {
			leads_to_tech = aa_hmg
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = aa_cannon_1
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = survivability_studies
			research_cost_coeff = 1
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
		}
	}

	survivability_studies = {

		enable_equipment_modules = {
			self_sealing_fuel_tanks_small
			self_sealing_fuel_tanks_medium
			self_sealing_fuel_tanks_large
			armor_plate_small
			armor_plate_medium
			armor_plate_large
		}
		
		research_cost = 1
		start_year = 1938

		folder = {
			name = bba_air_techs_folder
			position = { x = -2 y = 5 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				date > "1937.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1938.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1939.1.1"
				factor = 3
			}
			modifier = {
				has_War = yes
				factor = 3
			}
		}
	}

	aa_hmg = {

		enable_equipment_modules = {
			heavy_mg_2x
			heavy_mg_4x
			hmg_defense_turret
			hmg_defense_turret_2x
		}
		
		research_cost = 1
		start_year = 1938

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 5 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = basic_small_airframe
					has_tech = basic_medium_airframe
					has_tech = basic_large_airframe
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = USA
					tag = GER
				}
				factor = 3
			}
		}
	}

	aa_cannon_1 = {

		enable_equipment_modules = {
			aircraft_cannon_1_1x
			aircraft_cannon_1_2x
		}
		
		research_cost = 1
		start_year = 1938

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 5 }
		}
		path = {
			leads_to_tech = aa_cannon_2
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = aa_cannon_3
			research_cost_coeff = 1
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = basic_small_airframe
					has_tech = basic_medium_airframe
					has_tech = basic_large_airframe
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = GER
					tag = SOV
					tag = ENG
				}
				factor = 3
			}
		}
	}

	aa_cannon_2 = {

		enable_equipment_modules = {
			large_aircraft_cannon_1x
			large_aircraft_cannon_2x
			cannon_defense_turret
			cannon_defense_turret_2x
		}
		
		research_cost = 1.5
		start_year = 1943

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 7 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = improved_small_airframe
					has_tech = improved_medium_airframe
					has_tech = improved_large_airframe
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = GER
					tag = SOV
					tag = ENG
				}
				factor = 3
			}
		}
	}

	aa_cannon_3 = {

		enable_equipment_modules = {
			aircraft_cannon_2_1x
			aircraft_cannon_2_2x
			cannon_defense_turret
			cannon_defense_turret_2x
		}
		
		research_cost = 2
		start_year = 1945

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 12 }
		}

		path = {
			leads_to_tech = aa_cannon_4
			research_cost_coeff = 1
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = improved_small_airframe
					has_tech = improved_medium_airframe
					has_tech = improved_large_airframe
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = GER
					tag = SOV
					tag = ENG
				}
				factor = 3
			}
		}
	}

	aa_cannon_4 = {
		enable_equipment_modules = {
			aircraft_cannon_3_1x
			aircraft_cannon_3_2x
		}	
		research_cost = 2
		start_year = 1950
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 14 }
		}
		path = {
			leads_to_tech = aa_cannon_5
			research_cost_coeff = 1
		}
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}		
		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = supersonic_small_airframe
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = GER
					tag = SOV
					tag = ENG
				}
				factor = 3
			}
		}
		special_project_specialization = { specialization_air }			
	}

	aa_cannon_5 = {
		enable_equipment_modules = {
			aircraft_cannon_4_1x
		}		
		research_cost = 2
		start_year = 1955
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 16 }
		}
		path = {
			leads_to_tech = aa_cannon_6
			research_cost_coeff = 1
		}
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}	
		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = tech_small_airframe_6
				}
				factor = 5
			}
			modifier = {
				OR = {
					tag = GER
					tag = SOV
					tag = ENG
				}
				factor = 3
			}
		}
		special_project_specialization = { specialization_air }			
	}

	engines_1 = {

		enable_equipment_modules = {
			engine_1_1x
			engine_1_2x
			engine_1_3x
			engine_1_4x
			engine_1_6x	
		}
		
		research_cost = 1
		start_year = 1922

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}

		path = {
			leads_to_tech = engines_2
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = range_improvements
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = aircraft_construction
			research_cost_coeff = 1
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_engine
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 5
			}
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				num_of_military_factories < 10
				factor = 0
			}
			modifier = {
				date > "1937.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1938.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1939.1.1"
				factor = 3
			}
		}
	}

	engines_2 = {

		enable_equipment_modules = {
			engine_2_1x
			engine_2_2x
			engine_2_3x
			engine_2_4x
			engine_2_6x	
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_jet_engine	
			}
		}		
		research_cost = 1
		start_year = 1935

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 4 }
		}

		path = {
			leads_to_tech = engines_3
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = jet_engines
			research_cost_coeff = 1
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_engine
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 5
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				num_of_military_factories < 10
				factor = 0
			}
			modifier = {
				date > "1937.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1938.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1939.1.1"
				factor = 3
			}
		}
	}

	engines_3 = {

		enable_equipment_modules = {
			engine_3_1x
			engine_3_2x
			engine_3_3x
			engine_3_4x
			engine_3_6x	
		}
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_axial_jet_engine	
			}
		}		
		research_cost = 1.5
		start_year = 1939

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}

		path = {
			leads_to_tech = engines_4
			research_cost_coeff = 1
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_engine
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 5
			modifier = {
				is_major = yes
				factor = 5
			}
			modifier = {
				num_of_military_factories < 10
				factor = 0
			}
			modifier = {
				date > "1941.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1942.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1943.1.1"
				factor = 3
			}
		}
	}

	engines_4 = {
		enable_equipment_modules = {
			engine_4_1x
			engine_4_2x
			engine_4_3x
			engine_4_4x
			engine_4_6x	
		}
		
		research_cost = 1.5
		start_year = 1942

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 8 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_engine
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 5
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				num_of_military_factories < 10
				factor = 0
			}
			modifier = {
				date > "1943.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1944.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1945.1.1"
				factor = 3
			}
		}
	}

	jet_engines = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_jet_engine
			} 
		}
		is_special_project_tech = yes
	
		research_cost = 2

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 6 }
		}
		
		path = {
			leads_to_tech = sptech_air_axial_jet_engine
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = turboprop_engines_1
			research_cost_coeff = 1
		}

		research_cost = 2
		enable_equipment_modules = {
			jet_engine_1x
			jet_engine_2x
			jet_engine_3x
			jet_engine_4x
			jet_engine_6x
		}

		on_research_complete = {
		}
		
		ai_will_do = {
			factor = 0
		}
		
		categories = {
			jet_technology
			cat_air_engine
		}
	}

	sptech_air_axial_jet_engine = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_axial_jet_engine
			} 
		}

		is_special_project_tech = yes

		research_cost = 2
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 8 }
		}

		path = {
			leads_to_tech = sptech_centrifugal_jet_engine
			research_cost_coeff = 1
		}

		enable_equipment_modules = {
			jet_engine_axial_1x
			jet_engine_axial_2x
			jet_engine_axial_3x
			jet_engine_axial_4x
			jet_engine_axial_6x
		}

		ai_will_do = {
			factor = 0
		}

		categories = {
			jet_technology
			cat_air_engine
		}
	}

	sptech_centrifugal_jet_engine = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_centrifugal_jet_engine
			} 
		}

		is_special_project_tech = yes

		research_cost = 2
#		start_year = 1945
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 12 }
		}

		path = {
			leads_to_tech = sptech_improved_centrifugal_jet_engine
			research_cost_coeff = 1
		}

		categories = {
			jet_technology
			cat_air_engine
#			helicopter_tech
		}

		enable_equipment_modules = {
			jet_engine_centrifugal_1x
			jet_engine_centrifugal_2x
			jet_engine_centrifugal_3x
			jet_engine_centrifugal_4x
			jet_engine_centrifugal_6x
		}
#		category_helicopter_support_companies = {
#			fuel_consumption = -0.05
#			maximum_speed = 0.1
#			defense = 0.05
#			breakthrough = 0.05
#		}

		ai_will_do = {
			factor = 0
		}
	}

	sptech_improved_centrifugal_jet_engine = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_improved_centrifugal_jet_engine
			} 
		}

		is_special_project_tech = yes

		research_cost = 2
#		start_year = 1945
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 14 }
		}

		categories = {
			jet_technology
			cat_air_engine
#			helicopter_tech
		}

		enable_equipment_modules = {
			jet_engine_improved_centrifugal_1x
			jet_engine_improved_centrifugal_2x
			jet_engine_improved_centrifugal_3x
			jet_engine_improved_centrifugal_4x
			jet_engine_improved_centrifugal_6x
		}

		ai_will_do = {
			factor = 0
		}
	}


	turboprop_engines_1 = {
		start_year = 1945
		research_cost = 2
		enable_equipment_modules = {
			turboprop_engines_1_1x
			turboprop_engines_1_2x
			turboprop_engines_1_3x
			turboprop_engines_1_4x
			turboprop_engines_1_6x
		}
		folder = {
			name = bba_air_techs_folder
			position = { x = 4 y = 8 }
		}
		path = {
			leads_to_tech = turboprop_engines_2
			research_cost_coeff = 1
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
		
		categories = {
			rocketry
			jet_technology
		}
		special_project_specialization = { specialization_air }	
	}

	turboprop_engines_2 = {
		start_year = 1950
		research_cost = 2
		enable_equipment_modules = {
			turboprop_engines_2_1x
			turboprop_engines_2_2x
			turboprop_engines_2_3x
			turboprop_engines_2_4x
			turboprop_engines_2_6x
		}
		folder = {
			name = bba_air_techs_folder
			position = { x = 4 y = 14 }
		}
		path = {
			leads_to_tech = turboprop_engines_3
			research_cost_coeff = 1
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
		
		categories = {
			rocketry
			jet_technology
		}
		special_project_specialization = { specialization_air }	
	}

	turboprop_engines_3 = {
		start_year = 1955
		research_cost = 2
		enable_equipment_modules = {
			turboprop_engines_3_1x
			turboprop_engines_3_2x
			turboprop_engines_3_3x
			turboprop_engines_3_4x
			turboprop_engines_3_6x
		}
		folder = {
			name = bba_air_techs_folder
			position = { x = 4 y = 16 }
		}
		path = {
			leads_to_tech = turboprop_engines_4
			research_cost_coeff = 1
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
		
		categories = {
			rocketry
			jet_technology
		}
		special_project_specialization = { specialization_air }	
	}

	turboprop_engines_4 = {
		start_year = 1960
		research_cost = 2
		enable_equipment_modules = {
			turboprop_engines_4_1x
			turboprop_engines_4_2x
			turboprop_engines_4_3x
			turboprop_engines_4_4x
			turboprop_engines_4_6x
		}
		folder = {
			name = bba_air_techs_folder
			position = { x = 4 y = 18 }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
		
		categories = {
			rocketry
			jet_technology
		}
		special_project_specialization = { specialization_air }	
	}

	early_helicopter = {
#		show_equipment_icon = yes

		allow_branch = {
			has_dlc = "Gotterdammerung"
		}
		
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_helicopter
			} 
		}
		is_special_project_tech = yes

		enable_equipments = {
			helicopter_equipment_1 
		}
	
		enable_subunits = { 
			helicopter_brigade
		}

		path = {
			leads_to_tech = basic_helicopter
			research_cost_coeff = 1
		}
		
		research_cost = 4	#sp_time.prototype.long

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		ai_will_do = {
			factor = 0
		}
	}

	basic_helicopter = {

		enable_equipments = {
			helicopter_equipment_2
		}
	
		path = {
			leads_to_tech = improved_helicopter
			research_cost_coeff = 1
		}
		path = {
			leads_to_tech = early_shipboard_helicopter
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1940

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	improved_helicopter = {

		enable_equipments = {
			helicopter_equipment_3
		}
	
		path = {
			leads_to_tech = advanced_helicopter
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1942

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 12 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	advanced_helicopter = {
		allow = {
			has_tech = turboprop_engines_2
		}

		enable_equipments = {
			helicopter_equipment_4
		}
	
#		path = {
#			leads_to_tech = advanced_helicopter
#			research_cost_coeff = 1
#		}
		
		research_cost = 2
		start_year = 1950

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 16 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	early_shipboard_helicopter = {

		enable_equipment_modules = {
			ship_shipboard_helicopter_1
		}
	
		path = {
			leads_to_tech = basic_shipboard_helicopter
			research_cost_coeff = 1
		}
		
		research_cost = 2

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 8 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	basic_shipboard_helicopter = {
		allow = {
			has_tech = basic_sonobuoy
			has_tech = tech_lightweight_torpedo_1
		}

		enable_equipment_modules = {
			ship_shipboard_helicopter_2
		}
	
		path = {
			leads_to_tech = improved_shipboard_helicopter
			research_cost_coeff = 1
		}
		
		research_cost = 2
#		start_year = 1950

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 14 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	improved_shipboard_helicopter = {
		allow = {
			has_tech = turboprop_engines_2
		}

		enable_equipment_modules = {
			ship_shipboard_helicopter_3
		}
	
#		path = {
#			leads_to_tech = improved_shipboard_helicopter
#			research_cost_coeff = 1
#		}
		
		research_cost = 2
#		start_year = 1960

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 18 } 
		}
		
		categories = {
			air_equipment
			helicopter_tech
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			modifier = {
				is_major = yes
				factor = 4
			}
		}
	}

	range_improvements = {

		enable_equipment_modules = {
			fuel_tanks_small
			fuel_tanks_medium
			fuel_tanks_large
			drop_tanks
		}
		
		research_cost = 1
		start_year = 1935

		folder = {
			name = bba_air_techs_folder
			position = { x = -2 y = 4 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 5
			modifier = {
				is_major = yes
				factor = 2
			}
			modifier = {
				num_of_military_factories < 10
				factor = 0
			}
			modifier = {
				date > "1937.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1938.1.1"
				factor = 1.5
			}
			modifier = {
				date > "1939.1.1"
				factor = 3
			}
			modifier = {
				OR = {
					tag = USA
					tag = JAP
				}
				factor = 3
			}
		}
	}

	aircraft_construction = {

		enable_equipment_modules = {
			dive_brakes_small
			non_strategic_materials_small
			floats
			non_strategic_materials_medium
			flying_boat_medium
			non_strategic_materials_large
			flying_boat_large
		}
		
		research_cost = 1
		start_year = 1930

		folder = {
			name = bba_air_techs_folder
			position = { x = -2 y = 2 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			mio_cat_all_light_fighter_and_modules
			mio_cat_all_cas_and_modules
			mio_cat_all_naval_bomber_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 5
		}
	}

	suicide_charge = {

		enable_equipment_modules = {
			fixed_explosive_charge
		}
				
		research_cost = 1.5 #Carrier Variant
		start_year = 1943

		# only from focus!!! #####
		allow = {
			always = no
		}
		
		ai_will_do = {
			factor = 0
		}
		################
	}



	##### SPECIAL PROJECTS #####

#	sp_centrifugal_jet_tech = {
#		allow_branch = {
#			has_dlc = "Gotterdammerung"
#		}
#		
#		allow = {
#			ROOT = {
#				is_special_project_completed = sp:sp_air_jet_engine
#			} 
#		}
#
#		is_special_project_tech = yes
#
#		research_cost = 2
#		start_year = 1945
#		
#		folder = {
#			name = bba_air_techs_folder
#			position = { x = 0 y = 12 }
#		}
#
#		folder = {
#			name = air_techs_folder
#			position = { x = 4 y = 12 }
#		}
#		
#		categories = {
#			jet_technology
#			cat_air_engine
#			helicopter_tech
#		}
#
#		category_helicopter_support_companies = {
#			fuel_consumption = -0.05
#			maximum_speed = 0.1
#			defense = 0.05
#			breakthrough = 0.05
#		}
#
#		special_project_specialization = { specialization_air }	
#		ai_will_do = {
#			factor = 1
#			modifier = {
#				is_major = yes
#				factor = 4
#			}
#		}
#	}

	reinforced_wings_mothership = {
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}	

		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_mothership_aircraft
			}
		}

#		is_special_project_tech = yes
				
		path = {
			leads_to_tech = miniature_fighters
			research_cost_coeff = 1
		}	
		research_cost = 1.75
		start_year = 1942

		folder = {
			name = bba_air_techs_folder
			position = { x = @mothership_x_bba y = 7 }
		}

		folder = {
			name = air_techs_folder
			position = { x = @mothership_x y = 7 }
		}

		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		mothership = {
			air_defence = 0.08
		}
		special_project_specialization = { specialization_air }	
		ai_will_do = {
			factor = 1
		}
	}

	miniature_fighters = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_mothership_aircraft
			}
		}

#		is_special_project_tech = yes

		path = {
			leads_to_tech = aerial_hangars
			research_cost_coeff = 1
		}	

		research_cost = 1.5
		start_year = 1943

		folder = {
			name = bba_air_techs_folder
			position = { x = @mothership_x_bba y = 10 }
		}

		folder = {
			name = air_techs_folder
			position = { x = @mothership_x y = 10 }
		}

		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }	
		mothership = {
			air_agility = 0.06
			air_attack = 0.06
			fuel_consumption_factor = -0.08
		}

		ai_will_do = {
			factor = 1
		}
	}

	aerial_hangars = {
		allow = {
			ROOT = {
				is_special_project_completed = sp:sp_air_mothership_aircraft
			}
		}

#		is_special_project_tech = yes

		research_cost = 1.75
		start_year = 1946

		folder = {
			name = bba_air_techs_folder
			position = { x = @mothership_x_bba y = 13 }
		}

		folder = {
			name = air_techs_folder
			position = { x = @mothership_x y = 13 }
		}

		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }			
		mothership = {
			air_agility = 0.1
			air_range = 0.2
			air_attack = 0.1
		}
		
		ai_will_do = {
			factor = 1
		}
	}
}
