upgrades = {
	
	plane_gun_upgrade = {
		max_level = 10
		
		cost = air				

		air_attack = 0.12
		
		maximum_speed = -0.03
		air_agility = -0.03
		air_range = -0.03
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	cv_plane_gun_upgrade = { #heavy_f
		max_level = 10
		
		cost = air

		air_attack = 0.12
		naval_strike_attack = 0.04
		air_ground_attack = 0.04
		
		maximum_speed = -0.03
		air_agility = -0.03
		air_range = -0.03
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	plane_range_upgrade = {
		max_level = 11
		
		cost = air

		air_range = 0.12
		
		reliability = -0.08
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
			11 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	cv_plane_range_upgrade = {
		max_level = 11
		
		cost = air

		air_range = 0.12
		
		reliability = -0.09
		
		build_cost_ic = 0.007
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
			11 = {
			    num_of_factories > 99999
				is_ai = yes
			}
		}
	}
	plane_engine_upgrade = {
		max_level = 10
		
		cost = air

		maximum_speed = 0.05
		air_agility = 0.04
		fuel_consumption = 0.04
		
		reliability = -0.05
		air_range = -0.04
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}	
	plane_reliability_upgrade = {
		max_level = 10
		
		cost = air
		
		reliability = 0.15
		air_defence = 0.04
		
		maximum_speed = -0.03
		air_range = -0.02
		
		build_cost_ic = 0.01
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	plane_naval_upgrade = {
		max_level = 10
		
		cost = air
		
		naval_strike_attack = 0.12
		air_bombing = 0.06
		
		air_range = -0.04
		maximum_speed = -0.03
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	cv_plane_naval_upgrade = {
		max_level = 10
		
		cost = air
		
		naval_strike_attack = 0.12
		air_bombing = 0.07
		
		air_range = -0.04
		maximum_speed = -0.03
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	plane_bomb_upgrade = {
		max_level = 10
		
		cost = air
			
		air_bombing = 0.15
		
		reliability = -0.10
		maximum_speed = -0.03
		air_range = -0.04
		
		build_cost_ic = 0.007
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}

	plane_tac_bomb_upgrade = {
		max_level = 10
		
		cost = air
		
		air_bombing = 0.08
		air_ground_attack = 0.08
		
		
		maximum_speed = -0.04
		air_agility = -0.04
		air_range = -0.04
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}

	plane_cas_upgrade = {
		max_level = 10
		
		cost = air
		
		air_attack = 0.05
		naval_strike_attack = 0.05
		air_ground_attack = 0.10
		
	    maximum_speed = -0.04
		air_agility = -0.04
		air_range = -0.04
		
		reliability = -0.10
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
			6 = {
			    num_of_factories > 20
			}
			7 = {
			    num_of_factories > 20
			}
			8 = {
			    num_of_factories > 20
			}
			9 = {
			    num_of_factories > 20
			}
			10 = {
			    num_of_factories > 20
			}
		}
	}
	plane_armor_upgrade = {
		max_level = 5
		
		cost = air
		
		air_defence = 0.05
		air_attack = 0.05
		
	    maximum_speed = -0.03
		air_agility = -0.03
		air_range = -0.03
		
		build_cost_ic = 0.006
		
		level_requirements = {
			1 = {
			    num_of_factories > 20
			}
			2 = {
			    num_of_factories > 20
			}
			3 = {
			    num_of_factories > 20
			}
			4 = {
			    num_of_factories > 20
			}
			5 = {
			    num_of_factories > 20
			}
		}
	}

}
