equipments = {

	ship_hull_submarine = {
		year = 1868

		is_archetype = yes
		is_buildable = no
		type = submarine
		interface_category = interface_category_other_ships
		group_by = archetype
		alias = submarine
		priority = 1900
		
		upgrades = {
			ship_reliability_upgrade
			sub_engine_upgrade
			sub_stealth_upgrade
			sub_torpedo_upgrade
		}

		module_slots = {
			fixed_ship_torpedo_slot = {
				required = yes
				allowed_module_categories = { ship_torpedo_submarine }
			}
			fixed_ship_engine_slot = {
				required = yes
				allowed_module_categories = { ship_engine_submarine }
			}
		}
		
		default_modules = {
			fixed_ship_torpedo_slot = empty
			fixed_ship_engine_slot = ship_engine_steam_screw_sub
		}
		
		lg_armor_piercing = 0
		lg_attack = 0
		
		hg_armor_piercing = 0
		hg_attack = 0
		
		torpedo_attack = 0
		sub_attack = 0
		
		anti_air_attack = 0
		
		armor_value = 0

		
		surface_detection = 10
		sub_detection = 0
		surface_visibility = 4
		sub_visibility = 40
		naval_speed = 0
		reliability = 0.40
		
		naval_range = 450
		
		max_strength = 4
		
		fuel_consumption = 0
		
		build_cost_ic = 300
		resources = {
			wood = 1
			iron = 1
		}
		
		manpower = 80
		naval_dominance_factor = 100
	}
	
	ship_hull_submarine_0 = {
		year = 1868
		visual_level = 0
		archetype = ship_hull_submarine
		priority = 1900
		naval_dominance_factor = 100
		module_slots = inherit
	}
	ship_hull_submarine_1 = {
		year = 1890
		archetype = ship_hull_submarine
		parent = ship_hull_submarine_0
		priority = 1900

		module_slots = {
			fixed_ship_torpedo_slot = inherit
			fixed_ship_engine_slot = inherit
			rear_1_custom_slot = {
				required = no
				allowed_module_categories = {
					ship_torpedo_submarine
					ship_mine_layer_submarine
					ship_sub_snorkel
				}
			}
		}
		
		default_modules = {
			fixed_ship_engine_slot = ship_engine_steam_screw_sub_2
			rear_1_custom_slot = empty
		}
		
		armor_value = 0

		
		surface_detection = 10
		sub_detection = 0
		surface_visibility = 2
		sub_visibility = 30
		naval_speed = 0
		reliability = 0.55
		
		naval_range = 750
		
		max_strength = 5
		
		fuel_consumption = 0
		
		build_cost_ic = 350
		resources = {
			steel = 1
		}
		
		manpower = 100
		naval_dominance_factor = 100
	}
	ship_hull_submarine_2 = {
		year = 1900
		archetype = ship_hull_submarine
		parent = ship_hull_submarine_1
		priority = 1900

		module_slots = {
			fixed_ship_torpedo_slot = inherit
			fixed_ship_engine_slot = inherit
			rear_1_custom_slot = inherit
		}
		
		default_modules = {
			fixed_ship_engine_slot = ship_engine_steam_turbines_sub_1
		}
		
		armor_value = 0

		
		surface_detection = 12
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 25
		naval_speed = 0
		reliability = 0.60
		
		naval_range = 900
		
		max_strength = 6
		
		fuel_consumption = 0
		
		build_cost_ic = 375
		resources = {
			steel = 1
		}
		
		manpower = 110
		naval_dominance_factor = 100
	}
	ship_hull_submarine_3 = {
		year = 1905
		archetype = ship_hull_submarine
		parent = ship_hull_submarine_2
		priority = 1900

		module_slots = {
			fixed_ship_torpedo_slot = inherit
			fixed_ship_engine_slot = inherit
			rear_1_custom_slot = inherit
		}
		
		default_modules = {
			fixed_ship_engine_slot = ship_engine_steam_turbines_sub_2
		}
		
		armor_value = 0

		
		surface_detection = 14
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 22
		naval_speed = 0
		reliability = 0.60
		
		naval_range = 1200
		
		max_strength = 7
		
		fuel_consumption = 0
		
		build_cost_ic = 425
		resources = {
			steel = 1
		}
		
		manpower = 120
		naval_dominance_factor = 100
	}
	ship_hull_submarine_4 = {
		year = 1914
		archetype = ship_hull_submarine
		parent = ship_hull_submarine_3
		priority = 1900

		module_slots = {
			fixed_ship_torpedo_slot = inherit
			fixed_ship_engine_slot = inherit
			rear_1_custom_slot = inherit
		}
		
		default_modules = {
			fixed_ship_engine_slot = ship_engine_oil_turbines_sub_1
		}
		
		armor_value = 1

		
		surface_detection = 15
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 20
		naval_speed = 0
		reliability = 0.60
		
		naval_range = 1350
		
		max_strength = 8
		
		fuel_consumption = 0
		
		build_cost_ic = 475
		resources = {
			steel = 1
		}
		
		manpower = 125
		naval_dominance_factor = 100
	}
	ship_hull_submarine_5 = {
		year = 1922
		archetype = ship_hull_submarine
		parent = ship_hull_submarine_4
		priority = 1900

		module_slots = {
			fixed_ship_torpedo_slot = inherit
			fixed_ship_engine_slot = inherit
			rear_1_custom_slot = inherit
		}
		
		default_modules = {
			fixed_ship_engine_slot = ship_engine_oil_turbines_sub_2
		}
		
		armor_value = 1
		
		
		surface_detection = 16
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 18
		naval_speed = 0
		reliability = 0.60
		
		naval_range = 1475
		
		max_strength = 9
		
		fuel_consumption = 0
		
		build_cost_ic = 525
		resources = {
			steel = 1
		}
		
		manpower = 135
		naval_dominance_factor = 100
	}
	
	ship_hull_coastal_submarine = {
		year = 1900

		is_archetype = yes
		is_buildable = no
		type = submarine
		interface_category = interface_category_other_ships
		group_by = archetype
		alias = coastal_submarine
		priority = 1900
		
		upgrades = {
			ship_reliability_upgrade
			sub_engine_upgrade
			sub_stealth_upgrade
			sub_torpedo_upgrade
		}

		module_slots = {
			fixed_ship_torpedo_slot = {
				required = yes
				allowed_module_categories = { ship_torpedo_submarine }
			}
			fixed_ship_engine_slot = {
				required = yes
				allowed_module_categories = { ship_engine_coastal_submarine }
			}
		}
		
		default_modules = {
			fixed_ship_torpedo_slot = empty
			fixed_ship_engine_slot = ship_engine_oil_turbines_sub_1
		}
		
		lg_armor_piercing = 0
		lg_attack = 0
		
		hg_armor_piercing = 0
		hg_attack = 0
		
		torpedo_attack = 0
		sub_attack = 0
		
		anti_air_attack = 0
		
		armor_value = 0

		
		surface_detection = 15
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 20
		naval_speed = 0
		reliability = 0.70
		
		naval_range = 450
		
		max_strength = 6
		
		fuel_consumption = 0
		
		build_cost_ic = 325
		resources = {
			steel = 1
		}
		
		manpower = 100
		naval_dominance_factor = 100
	}
	ship_hull_coastal_submarine_0 = {
		year = 1900
		visual_level = 0
		archetype = ship_hull_coastal_submarine
		priority = 1900
		naval_dominance_factor = 100
		module_slots = inherit
	}

	submarine_1 = {
		year = 1922

		archetype = ship_hull_submarine
		priority = 2500
		
		module_slots = inherit
		
		default_modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = empty
		}

		lg_armor_piercing = 0
		lg_attack = 0 # Their main weapon is torpedo_attack.
		torpedo_attack = 2
		
		anti_air_attack = 0
		
		armor_value = 0

		
		surface_detection = 30
		sub_detection = 0
		surface_visibility = 1
		sub_visibility = 30
		naval_speed = 13
		reliability = 0.60
		
		naval_range = 2000
		
		max_strength = 10
		

		fuel_consumption = 1
		
		build_cost_ic = 250
		resources = {
			#oil = 1
			steel = 1
		}
		
		manpower = 200
		naval_dominance_factor = 100
	}
}