technologies = {

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

	bba_early_transport_plane = {

		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
		}
		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
		}
		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
		}
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 2
				is_major = yes
			}
		}
	}
	iw_small_airframe = {

		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 = 0.5
		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 = 1
			
			modifier = {
				factor = 30
				is_major = yes
				date > "1937.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1938.1.1"
			}
			modifier = {
				factor = 5
				date > "1939.1.1"
			}
		}
	}
	
	
	
	basic_small_airframe = {

		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
		}
	
		path = {
			leads_to_tech = improved_small_airframe
			research_cost_coeff = 1
		}
		
		research_cost = 2
		start_year = 1936

		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 = 1
			
			
			modifier = {
				factor = 30
				is_major = yes
				date > "1938.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1939.1.1"
			}
			modifier = {
				factor = 5
				date > "1940.1.1"
			}
		}
	}
	
	
	
	improved_small_airframe = {

		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 = 1940
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		allow = { 	
		  OR = {
		  any_military_industrial_organization = {
			has_mio_size > 2
			OR = { 
				has_mio_equipment_type = mio_cat_eq_all_small_plane
				has_mio_equipment_type = mio_cat_eq_all_cv_aircraft
				has_mio_equipment_type = small_plane_cas_airframe
				has_mio_equipment_type = cv_small_plane_cas_airframe
				has_mio_equipment_type = small_plane_naval_bomber_airframe
				has_mio_equipment_type = cv_small_plane_airframe
				has_mio_equipment_type = cv_small_plane_cas_airframe
				has_mio_equipment_type = cv_small_plane_naval_bomber_airframe
				has_mio_equipment_type = mio_cat_eq_only_light_fighter
			}
		  }
		  date > 1942.1.1
		  }
		}
		
		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 = 1
			
			modifier = {
				factor = 30
				is_major = yes
				date > "1941.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1942.1.1"
			}
			modifier = {
				factor = 5
				date > "1943.1.1"
			}
		}
	}
	
	advanced_small_airframe = {

		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
		}
		
		allow = { 
          date > 1941.1.1		
		  OR = {
		  any_military_industrial_organization = {
			has_mio_size > 5
			OR = { 
				has_mio_equipment_type = mio_cat_eq_all_small_plane
				has_mio_equipment_type = mio_cat_eq_all_cv_aircraft
				has_mio_equipment_type = small_plane_cas_airframe
				has_mio_equipment_type = cv_small_plane_cas_airframe
				has_mio_equipment_type = small_plane_naval_bomber_airframe
				has_mio_equipment_type = cv_small_plane_airframe
				has_mio_equipment_type = cv_small_plane_cas_airframe
				has_mio_equipment_type = cv_small_plane_naval_bomber_airframe
				has_mio_equipment_type = mio_cat_eq_only_light_fighter
			}
		  }
		  date > 1945.1.1
		  }
		}
		
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_axial_jet_engine	
			}
		}					  
		research_cost = 2
		start_year = 1944

		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 = 30
				is_major = yes
				date > "1945.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1946.1.1"
			}
			modifier = {
				factor = 5
				date > "1947.1.1"
			}
		}
	}
	
	modern_small_airframe = {

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

		is_special_project_tech = 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
		}


		research_cost = 2
		start_year = 1948

		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
		}

		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 30
				is_major = yes
				date > "1949.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1950.1.1"
			}
			modifier = {
				factor = 5
				date > "1954.1.1"
			}
		}
	}
	supersonic_small_airframe = { #supersonic

		allow = { always = no }

		enable_equipments = {
			small_plane_airframe_5
		}
		
		research_cost = 2
		start_year = 1950
		
		categories = {
			light_air
			light_fighter
		}
		special_project_specialization = { specialization_air }

		ai_will_do = {
			factor = 0
		}
	}
	
	
	iw_medium_airframe = {

		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 = 0.5
		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 = {
			factor = 1
			
			modifier = {
				factor = 25
				is_major = yes
				date > "1937.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1938.1.1"
			}
		}
	}
	
	basic_medium_airframe = {

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

		research_cost = 2
		start_year = 1936

		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 = 25
				is_major = yes
				date > "1939.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1940.1.1"
			}
		}
	}
	
	improved_medium_airframe = {

		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 }
		}
		
		allow = { 	
		  OR = {
		  any_military_industrial_organization = {
			has_mio_size > 2
			has_mio_equipment_type = mio_cat_eq_all_medium_plane
		  }
		  date > 1942.1.1
		  }
		}
		
		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 = 25
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 15
				date > "1943.1.1"
			}
		}
	}
	
	advanced_medium_airframe = {

		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
		}
		
		allow = { 	
		  date > 1941.1.1
		  OR = {
		  any_military_industrial_organization = {
			has_mio_size > 4
			has_mio_equipment_type = mio_cat_eq_all_medium_plane
		  }
		  date > 1945.1.1
		  }
		}
		
		on_research_complete = {
			custom_effect_tooltip = {
				localization_key = SP_UNLOCK_PROJECT
				PROJECT = sp_air_axial_jet_engine	
			}
		}
		research_cost = 2
		start_year = 1944
		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 = 25
				is_major = yes
				date > "1945.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1947.1.1"
			}
		}
	}
	
	modern_medium_airframe = {

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

		is_special_project_tech = yes
		enable_equipments = {
			medium_plane_airframe_4
			medium_plane_fighter_airframe_4
			medium_plane_scout_plane_airframe_4
		}
		


		research_cost = 2
		start_year = 1948
		
		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 = {
				factor = 25
				is_major = yes
				date > "1950.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1952.1.1"
			}

		}
	}

	iw_large_airframe = {

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

		research_cost = 0.5
		start_year = 1926
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 2 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }   
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 20
				is_major = yes
				date > "1939.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1941.1.1"
			}
		}
	}
	
	basic_large_airframe = {

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

		research_cost = 2
		start_year = 1936
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 4 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }												 
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 20
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1943.1.1"
			}
		}
	}
	
	improved_large_airframe = {

		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
		}
	
		path = {
			leads_to_tech = advanced_large_airframe
			research_cost_coeff = 1
		}
		path = {
			leads_to_tech = reinforced_wings_mothership
			research_cost_coeff = 1
		}
		research_cost = 2
		start_year = 1940
		
		allow = { 	
		  OR = {
		  any_military_industrial_organization = {
			    has_mio_size > 3
				OR = {
		    	has_mio_equipment_type = mio_cat_eq_all_large_plane
				has_mio_equipment_type = large_plane_airframe
				has_mio_equipment_type = large_plane_maritime_patrol_plane_airframe
			    }
		  }
		  date > 1942.1.1
		  }
		}
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }				
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 20
				is_major = yes
				date > "1944.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1945.1.1"
			}
		}
	}
	
	advanced_large_airframe = {

		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 = 1944

		allow = { 
          date > 1941.1.1
		  OR = {
		    any_military_industrial_organization = {
			    has_mio_size > 5
				OR = {
		    	has_mio_equipment_type = mio_cat_eq_all_large_plane
				has_mio_equipment_type = large_plane_airframe
				has_mio_equipment_type = large_plane_maritime_patrol_plane_airframe
			    }
		    }
		    date > 1945.1.1
		  }
		}
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 8 }
		}
		
		categories = {
			heavy_air
			air_equipment
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 20
				is_major = yes
				date > "1945.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1948.1.1"
			}
		
		}
	}
	
 
	modern_large_airframe = {

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

		is_special_project_tech = yes
		enable_equipments = {
			large_plane_airframe_4
			large_plane_maritime_patrol_plane_airframe_4
		}
		
		research_cost = 2
		start_year = 1948


		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 12 }
		}
		
		categories = {
			heavy_air
			jet_technology
			cat_strategic_bomber
			mio_cat_all_heavy_aircraft_and_modules
		}
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 20
				is_major = yes
				date > "1950.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1956.1.1"
			}
		}
	}

	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
		}
		
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 35
				is_major = yes
				date > "1938.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1940.1.1"
			}
			modifier = {
				factor = 15
				date > "1941.1.1"
			}
		}
	}

	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 = 1939

		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}
		special_project_specialization = { specialization_air }
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 35
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1943.1.1"
			}
		}
	}


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

		folder = {
			name = bba_air_techs_folder
			position = { x = 2 y = 2 }
		}
		special_project_specialization = { specialization_naval }
		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			mio_cat_all_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 25
				is_major = yes
				date > "1938.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1942.1.1"
			}
		}
	}

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

		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_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 25
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1944.1.1"
			}
		}
	}

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

		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
			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 = {
				factor = 35
				is_major = yes
				date > "1938.1.1"
			}
			modifier = {
				factor = 20
				num_of_factories > 25
				date > "1940.1.1"
			}
		}
	}

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

		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
			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 specialization_naval }
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 25
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1944.1.1"
			}
			modifier = {
				factor = 5
				date > "1945.1.1"
			}
		}
	}

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

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

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_bombs
			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 specialization_naval }
		ai_will_do = {
			factor = 1
		}
	}

	aa_lmg = {

		enable_equipment_modules = {
			light_mg_2x
			light_mg_4x
			lmg_defense_turret
			lmg_defense_turret_2x
		}
		
		research_cost = 0.5
		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
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					has_tech = iw_small_airframe
					has_tech = iw_medium_airframe
					has_tech = iw_large_airframe
				}
				factor = 100
			}
			modifier = {
				factor = 100
				is_major = yes
				date > "1936.1.1"
			}
			modifier = {
				factor = 100
				num_of_factories > 25
				date > "1937.1.1"
			}
			modifier = {
				factor = 100
				date > "1939.1.1"
			}
		}
	}

	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 = 1940

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

		categories = {
			air_equipment
			plane_modules_tech
			mio_cat_all_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 25
				is_major = yes
				date > "1941.1.1"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1943.1.1"
			}
			modifier = {
				factor = 10
				date > "1945.1.1"
			}
		}
	}

	aa_hmg = {

		enable_equipment_modules = {
			heavy_mg_2x
			heavy_mg_4x
			hmg_defense_turret
			hmg_defense_turret_2x
		}
		
		research_cost = 1
		start_year = 1941
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 6 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			mio_cat_all_light_fighter_and_modules
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 25
				is_major = yes
				date > "1941.5.5"
			}
			modifier = {
				factor = 15
				num_of_factories > 25
				date > "1943.1.1"
			}
		}
	}

	aa_cannon_1 = {

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

		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_cas_and_modules
			mio_cat_all_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 20
				is_major = yes
				date > "1942.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1944.1.1"
			}
			modifier = {
				factor = 5
				date > "1946.1.1"
			}
		}
	}

	aa_cannon_2 = {

		enable_equipment_modules = {
			large_aircraft_cannon_1x
			large_aircraft_cannon_2x
			cannon_defense_turret
			cannon_defense_turret_2x
		}
		
		research_cost = 2
		start_year = 1944

		folder = {
			name = bba_air_techs_folder
			position = { x = 1 y = 9 }
		}

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 20
				is_major = yes
				date > "1945.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1946.1.1"
			}
			modifier = {
				factor = 5
				date > "1948.1.1"
			}
		}
	}

	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 = 1946

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

		categories = {
			air_equipment
			plane_modules_tech
			cat_air_guns
			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
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 20
				is_major = yes
				date > "1947.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1948.1.1"
			}
			modifier = {
				factor = 5
				date > "1951.1.1"
			}
		}
	}

	engines_1 = {

		enable_equipment_modules = {
			engine_1_1x
			engine_1_2x
			engine_1_3x
			engine_1_4x
			engine_1_6x	
		}
		
		research_cost = 0.5
		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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 2

			modifier = {
				factor = 999
				is_major = yes
				date > "1936.1.1"
			}
			modifier = {
				factor = 75
				num_of_factories > 25
				date > "1937.1.1"
			}
			modifier = {
				factor = 20
				date > "1939.1.1"
			}
		}
	}

	engines_2 = {

		enable_equipment_modules = {
			engine_2_1x
			engine_2_2x
			engine_2_3x
			engine_2_4x
			engine_2_6x	
		}

		research_cost = 1
		start_year = 1938

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

		path = {
			leads_to_tech = engines_3
			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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 2

			modifier = {
				factor = 999
				is_major = yes
				date > "1937.1.1"
			}
			modifier = {
				factor = 75
				num_of_factories > 25
				date > "1938.1.1"
			}
			modifier = {
				factor = 20
				date > "1941.1.1"
			}
		}
	}

	engines_3 = {

		enable_equipment_modules = {
			engine_3_1x
			engine_3_2x
			engine_3_3x
			engine_3_4x
			engine_3_6x	
		}
		
		research_cost = 1.5
		start_year = 1941

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

		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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		special_project_specialization = { specialization_air }
		
		
		ai_will_do = {
			factor = 2

			modifier = {
				factor = 999
				is_major = yes
				date > "1941.1.1"
			}
			modifier = {
				factor = 50
				num_of_factories > 25
				date > "1942.1.1"
			}
			modifier = {
				factor = 15
				date > "1946.1.1"
			}
		}
	}

	engines_4 = {

		enable_equipment_modules = {
			engine_4_1x
			engine_4_2x
			engine_4_3x
			engine_4_4x
			engine_4_6x	
		}
		
		research_cost = 2
		start_year = 1945

		allow = { date > 1941.1.1 }

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

		path = {
			leads_to_tech = sp_centrifugal_jet_tech
			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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		special_project_specialization = { specialization_air }
		
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 999
				is_major = yes
				date > "1945.1.1"
			}
			modifier = {
				factor = 50
				num_of_factories > 25
				date > "1946.1.1"
			}
			modifier = {
				factor = 10
				date > "1949.1.1"
			}
		}
	}

	range_improvements = {

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

		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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		special_project_specialization = { specialization_air }
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 50
				is_major = yes
				date > "1940.1.1"
			}
			modifier = {
				factor = 25
				num_of_factories > 25
				date > "1942.1.1"
			}
			modifier = {
				factor = 5
				date > "1944.1.1"
			}
		}
	}

	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 = 1937

		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_medium_aircraft_and_modules
			mio_cat_all_heavy_aircraft_and_modules
			mio_cat_all_light_aircraft_and_modules
			mio_cat_all_naval_bomber_and_modules
		}
		
		ai_will_do = {
			factor = 5
			
			modifier = {
				factor = 25
				is_major = yes
				date > "1940.1.1"
			}
			modifier = {
				factor = 10
				num_of_factories > 25
				date > "1942.1.1"
			}
		}
	}

	suicide_charge = {

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

		# only from focus!!! #####
		allow = {
			always = no
		}

		#folder = {
		#	name = air_techs_folder
		#	position = { x = -2 y = 8 }
		#}
		
		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 = 1947
		
		folder = {
			name = bba_air_techs_folder
			position = { x = 0 y = 15 }
		}

		folder = {
			name = air_techs_folder
			position = { x = 4 y = 15 }
		}
		
		categories = {
			jet_technology
			cat_air_engine
			helicopter_tech
		}

		category_helicopter_support_companies = {
			fuel_consumption = -0.05
			maximum_speed = 0.05
			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.05
		}
		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 = 1944

		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.05
			air_attack = 0.05
			fuel_consumption_factor = -0.05
		}

		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.05
			air_range = 0.15
			air_attack = 0.05
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	
}