upgrades = {

	ship_gun_upgrade = {
		max_level = 5
		cost = naval				# This determies how much XP it will cost, controlled by defines, there are 3 cost types: air, land and naval
		lg_attack = 0.05
		lg_armor_piercing = 0.05
		hg_attack = 0.05
		hg_armor_piercing = 0.05
		naval_speed = -0.005
		reliability = -0.005
		build_cost_ic = 0.01
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	ship_torpedo_upgrade = {
		max_level = 5
		cost = naval 
		torpedo_attack = 0.05
		naval_speed = -0.01
		reliability = -0.005
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	ship_armor_upgrade = {
		max_level = 5
		cost = naval 
		armor_value = 0.05
		naval_speed = -0.005
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	ship_engine_upgrade = {
		max_level = 5
		cost = naval 
		naval_speed = 0.05
		naval_range = 0.05
		reliability = -0.005
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}	
	destroyer_engine_upgrade = {
		max_level = 5
		cost = naval 
		naval_speed = 0.05
		naval_range = 0.05
		reliability = -0.005
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}	
	ship_reliability_upgrade = {
		max_level = 5
		cost = naval 
		reliability = 0.015
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}	
	torpedo_ship_reliability_upgrade = {
		max_level = 5
		cost = naval 
		reliability = 0.015
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	ship_anti_air_upgrade = {
		max_level = 5	
		cost = naval 
		anti_air_attack = 0.05
		naval_speed = -0.005
		reliability = -0.005
		build_cost_ic = 0.001
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	ship_ASW_upgrade = {
		max_level = 5	
		cost = naval 
		sub_detection = 0.05
		sub_attack = 0.05
        reliability = -0.005
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	sub_torpedo_upgrade = {
		max_level = 5	
		cost = naval 
		torpedo_attack = 0.05
		naval_speed = -0.05
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	sub_stealth_upgrade = {
		max_level = 5	
		cost = naval 
		sub_visibility = -0.05
		naval_speed = -0.05
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
	sub_engine_upgrade = {
		max_level = 5	
		cost = naval 
		naval_speed = 0.05
		naval_range = 0.05

		reliability = -0.005
		build_cost_ic = 0.002
		sub_visibility = 0.05
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}	
	ship_deckspace_upgrade = {
		max_level = 5	
		cost = naval 
		carrier_size = 0.05
		armor_value = -0.05
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}	
	carrier_armor_upgrade = {
		max_level = 5
		cost = naval 
		armor_value = 0.10
		max_strength = 0.01
		carrier_size = -0.05
		build_cost_ic = 0.002
		
		level_requirements = {
			1 = {
			    num_of_factories > 15
			}
			2 = {
			    num_of_factories > 15
			}
			3 = {
			    num_of_factories > 15
			}
			4 = {
			    num_of_factories > 15
			}
			5 = {
			    num_of_factories > 15
			}
		}
	}
}