naval_submarine = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_submarine
	}
	
	priority = {
		factor = 4
		modifier = {
			factor = 10
			OR = {
				has_war_with = ENG
				has_war_with = USA
				has_war_with = JAP
			}

		}
	}

	submarine_2 = {
		
		priority = {
			factor = 1
		}

		role_icon_index = 6
		
		enable = { 
			not = { 
				has_tech = improved_ship_hull_submarine
				has_tech = advanced_ship_hull_submarine
				has_tech = modern_ship_hull_submarine
			}
		}
		
		target_variant = {
			match_value = 1000.0
			
			type = nrm_ship_hull_submarine_2
			modules = {
				fixed_ship_sub_hull_slot = nrm_submarine_hull_2
				fixed_ship_engine_slot = nrm_submarine_engine_30
				fixed_ship_sonar_slot = nrm_submarine_sonar
				fixed_ship_noise_slot = nrm_submarine_noise_0
				fixed_ship_damagecontrol_slot = nrm_damagecontrol
				fixed_ship_range_slot = {
					any_of = { nrm_range_submarine_3 nrm_range_submarine_2 }
				}
				fixed_ship_radar_slot = nrm_submarine_radar
				fixed_ship_battery_slot = empty
				fixed_ship_anti_air_slot = empty
				fixed_ship_torpedo_slot = nrm_submarine_TRP_21_x4
				fixed_ship_torpedo_2_slot = empty
				custom_slot_1 = empty
				custom_slot_2 = empty
			}
		}
		
		allowed_modules = {
		}
	}
	submarine_3 = {
		
		priority = {
			factor = 1
		}

		role_icon_index = 6
		
		enable = { 
			not = { 
				has_tech = advanced_ship_hull_submarine
				has_tech = modern_ship_hull_submarine
			}
		}
		
		target_variant = {
			match_value = 1000.0
			
			type = nrm_ship_hull_submarine_3
			modules = {
				fixed_ship_sub_hull_slot = nrm_submarine_hull_3
				fixed_ship_engine_slot = nrm_submarine_engine_35
				fixed_ship_sonar_slot = nrm_submarine_sonar
				fixed_ship_noise_slot = nrm_submarine_noise_1
				fixed_ship_damagecontrol_slot = nrm_damagecontrol
				fixed_ship_range_slot = {
					any_of = { nrm_range_submarine_3 nrm_range_submarine_2 }
				}
				fixed_ship_radar_slot = nrm_submarine_radar
				fixed_ship_battery_slot = empty
				fixed_ship_anti_air_slot = empty
				fixed_ship_torpedo_slot = nrm_submarine_TRP_21_x4
				fixed_ship_torpedo_2_slot = nrm_submarine_TRP_21_x2
				custom_slot_1 = empty
				custom_slot_2 = empty
			}
		}
		
		allowed_modules = {
		}
	}
	submarine_4 = {
		
		priority = {
			factor = 1
		}

		role_icon_index = 6
		
		enable = { 
			not = { 
				has_tech = modern_ship_hull_submarine
			}
		}
		
		target_variant = {
			match_value = 1000.0
			
			type = nrm_ship_hull_submarine_4
			modules = {
				fixed_ship_sub_hull_slot = nrm_submarine_hull_4
				fixed_ship_engine_slot = nrm_submarine_engine_35
				fixed_ship_sonar_slot = nrm_submarine_sonar
				fixed_ship_noise_slot = nrm_submarine_noise_2
				fixed_ship_damagecontrol_slot = nrm_damagecontrol
				fixed_ship_range_slot = {
					any_of = { nrm_range_submarine_3 nrm_range_submarine_2 }
				}
				fixed_ship_radar_slot = nrm_submarine_radar
				fixed_ship_battery_slot = empty
				fixed_ship_anti_air_slot = empty
				fixed_ship_torpedo_slot = nrm_submarine_TRP_21_x4
				fixed_ship_torpedo_2_slot = nrm_submarine_TRP_21_x2
				custom_slot_1 = nrm_submarine_SNK
				custom_slot_2 = empty
			}
		}
		
		allowed_modules = {
		}
	}
	submarine_5 = {
		
		priority = {
			factor = 1
		}

		role_icon_index = 6
		
		target_variant = {
			match_value = 1000.0
			
			type = nrm_ship_hull_submarine_5
			modules = {
				fixed_ship_sub_hull_slot = nrm_submarine_hull_5
				fixed_ship_engine_slot = nrm_submarine_engine_35
				fixed_ship_sonar_slot = nrm_submarine_sonar
				fixed_ship_noise_slot = nrm_submarine_noise_2
				fixed_ship_damagecontrol_slot = nrm_damagecontrol
				fixed_ship_range_slot = {
					any_of = { nrm_range_submarine_3 }
				}
				fixed_ship_radar_slot = nrm_submarine_radar
				fixed_ship_battery_slot = empty
				fixed_ship_anti_air_slot = empty
				fixed_ship_torpedo_slot = nrm_submarine_TRP_21_x4
				fixed_ship_torpedo_2_slot = nrm_submarine_TRP_21_x2
				custom_slot_1 = nrm_submarine_SNK
				custom_slot_2 = empty
			}
		}
		
		allowed_modules = {
		}
	}
}