# AI Ship Designs for 'MURICA

USA_destroyers = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_screen
	}
	
	priority = {
		factor = 500
		modifier = {
			factor = 1
		}
	}
	
	destroyer_default = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_light_1
			modules = {
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_torpedo
				rear_1_custom_slot = ship_depth_charge
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_torpedo
			light_ship_engine
			ship_sonar
			ship_fire_control_system
			ship_radar
		}
	}

	destroyer_2 = {
	
		priority = {
			factor = 50
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 2500.0
			
			type = ship_hull_light_1
			modules = {
				fixed_ship_battery_slot = ship_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_torpedo
				rear_1_custom_slot = ship_depth_charge
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_torpedo
			light_ship_engine
			ship_fire_control_system
			ship_radar
			ship_sonar
		}
	}

	destroyer_3 = {
	
		priority = {
			factor = 70
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		role_icon_index = 2
		enable = { 
			has_tech = improved_dp_light_battery
			not = { has_tech = improved_ship_hull_light }
		}
		target_variant = {
			match_value = 3500.0
			
			type = ship_hull_light_2
			modules = {
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_torpedo
				rear_1_custom_slot = ship_depth_charge
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_torpedo
			light_ship_engine
			ship_fire_control_system
			ship_radar
			ship_sonar
		}
	}
	destroyer_4 = {
	
		priority = {
			factor = 100
			modifier = {
				factor = 10
				has_war_with = JAP
			}
		}
		role_icon_index = 2
		enable = { 
			has_tech = advanced_dp_light_battery
			not = { has_tech = advanced_ship_hull_light }
		}
		target_variant = {
			match_value = 4500.0
			
			type = ship_hull_light_3
			modules = {
				fixed_ship_battery_slot = dp_light_battery_3
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_torpedo
				rear_1_custom_slot = ship_depth_charge
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_torpedo
			light_ship_engine
			ship_fire_control_system
			ship_radar
			ship_sonar
		}
	}
	destroyer_5 = {
	
		priority = {
			factor = 200
			modifier = {
				factor = 10
				has_war_with = JAP
			}
		}
		role_icon_index = 2
		enable = { 
			has_tech = advanced_dp_light_battery
			has_tech = advanced_ship_hull_light
		}
		target_variant = {
			match_value = 5500.0
			
			type = ship_hull_light_4
			modules = {
				fixed_ship_battery_slot = dp_light_battery_3
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_torpedo
				mid_2_custom_slot = ship_depth_charge
				rear_1_custom_slot = dp_light_battery_3
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_torpedo
			light_ship_engine
			ship_fire_control_system
			ship_radar
			ship_sonar
		}
	}
}

USA_escorts = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_escort
	}
	
	priority = {
		factor = 1000
		modifier = {
			factor = 5
			anti_submarine_strategy_required_trigger = yes
		}
	}
	
	escort_default = {
	
		priority = {
			factor = 100
			modifier = {
				factor = 20
				anti_submarine_strategy_required_trigger = yes
			}
		}

		role_icon_index = 2
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_light_1
			modules = {
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_anti_air_slot = empty
				fixed_ship_fire_control_system_slot = empty
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = empty
				mid_1_custom_slot = empty
				rear_1_custom_slot = {
					any_of = { ship_depth_charge }
					upgrade > current
				}
			}
		}
		
		allowed_modules = {
			ship_depth_charge
			ship_anti_air
			dp_light_battery
			ship_sonar
			ship_fire_control_system
			ship_radar
		}
	}
	escort_upgrade = {
	
		priority = {
			factor = 120
			modifier = {
				factor = 20
				anti_submarine_strategy_required_trigger = yes
			}
		}
		enable = {
			AND = {
				has_tech = improved_depth_charges
				has_tech = cavity_magnatron
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_light_1
			modules = {
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_radar
				fixed_ship_radar_slot = ship_sonar
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = empty
				mid_1_custom_slot = ship_depth_charge
				rear_1_custom_slot = ship_depth_charge
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_depth_charge
			dp_light_battery
			ship_sonar
			ship_fire_control_system
			ship_radar
		}
	}
}

USA_naval_light_cruiser = {

	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_cruiser_light
	}
	
	priority = {
		factor = 30
	}
	cruiser_light_early = {
		
		priority = {
			factor = 10
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_armor_slot = ship_armor_cruiser_1
				mid_1_custom_slot = empty
				mid_2_custom_slot = empty
				rear_1_custom_slot = ship_light_medium_battery_1
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery_1
			ship_anti_air
			ship_secondaries
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
		}
	}
	cruiser_light_early_aa_upgrade = {
		
		priority = {
			factor = 2
			modifier = {
				factor = 5
				has_war = yes
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 1100.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_armor_slot = ship_armor_cruiser_1
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_light_medium_battery_1
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery_1
			ship_anti_air
			ship_secondaries
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
		}
	}
	cruiser_light_basic = {
		
		priority = {
			factor = 10
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_armor_slot = ship_armor_cruiser_3
				fixed_ship_secondaries_slot = ship_dp_secondaries
				front_1_custom_slot = ship_light_medium_battery_2
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air_1
				rear_1_custom_slot = ship_light_medium_battery_2
			}
		}
		
		allowed_modules = {
			ship_medium_battery
			ship_anti_air
			ship_dp_secondaries
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
			
		}
	}
	cruiser_light_basic_aa_upgrade = {
		
		priority = {
			factor = 20
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 2200.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_armor_slot = ship_armor_cruiser_3
				fixed_ship_secondaries_slot = ship_dp_secondaries
				front_1_custom_slot = ship_light_medium_battery_2
				mid_1_custom_slot = ship_airplane_launcher
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_light_medium_battery_2
			}
		}
		
		allowed_modules = {
			ship_medium_battery
			ship_anti_air
			ship_dp_secondaries
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
			
		}
	}
	cruiser_light_improved = {
		
		priority = {
			factor = 50
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_cruiser_3
			modules = {
				fixed_ship_battery_slot > ship_light_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine
				fixed_ship_secondaries_slot = ship_dp_secondaries
				fixed_ship_armor_slot < ship_armor_cruiser_3
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot > ship_light_medium_battery_2
				rear_1_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_dp_secondaries
			ship_medium_battery
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
			
		}
	}
	cruiser_light_advanced = {
		
		priority = {
			factor = 70
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 2
		
		target_variant = {
			match_value = 4000.0
			
			type = ship_hull_cruiser_4
			modules = {
				fixed_ship_battery_slot > dp_ship_medium_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine
				fixed_ship_secondaries_slot = dp_ship_secondaries_3
				fixed_ship_armor_slot > ship_armor_cruiser_1
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = dp_ship_secondaries_3
				mid_2_custom_slot > dp_ship_medium_1
				rear_1_custom_slot = ship_airplane_launcher
			}
		}
		
		allowed_modules = {
			ship_anti_air
			dp_ship_secondaries_3
			dp_ship_medium_1
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
			
		}
	}
}

USA_naval_light_AA_cruiser = {

	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_cruiser_light
	}
	
	priority = {
		factor = 30
		modifier = {
			factor = 20
			OR = {
				has_war_with = ENG
				has_war_with = JAP
			}
		}
	}
	cruiser_light_AA = {
		
		priority = {
			factor = 20
			modifier = {
				factor = 20
				has_war = yes
			}
		}
		role_icon_index = 2
		
		enable = {
			has_tech = basic_dp_light_battery
		}
		
		target_variant = {
			match_value = 2500.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = dp_light_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine
				fixed_ship_armor_slot = ship_armor_cruiser_1
				fixed_ship_secondaries_slot = dp_ship_secondaries_2
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot = dp_light_battery_1
				rear_1_custom_slot = dp_light_battery_1
			}
		}
		
		allowed_modules = {
			ship_light_battery
			ship_anti_air
			ship_secondaries
			ship_torpedo
			ship_depth_charge
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
			ship_airplane_launcher
		}
	}
}
USA_naval_cruiser_heavy = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_cruiser_heavy
	}
	
	priority = {
		factor = 10
	}
	capital_cruiser_early = {
	
		priority = {
			factor = 10
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_armor_slot = ship_armor_cruiser_1
				mid_1_custom_slot = ship_medium_battery_1
				mid_2_custom_slot = empty
				rear_1_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
		}
	}
	capital_cruiser_early_aa_upgrade = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 1100.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_cruiser_1
				mid_1_custom_slot = ship_medium_battery_1
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
		}
	}
	capital_cruiser_basic = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				fixed_ship_armor_slot = ship_armor_cruiser_2
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = empty
				rear_1_custom_slot = ship_medium_battery_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
		}
	}
	capital_cruiser_basic_aa_upgrade = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 10
				has_War = yes
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 2200.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_engine_slot = cruiser_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_cruiser_2
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_medium_battery_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
		}
	}

	capital_cruiser_improved = {
	
		priority = {
			factor = 1
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_cruiser_3
			modules = {
				fixed_ship_battery_slot = ship_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_cruiser_3
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_airplane_launcher
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_medium_battery_2
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
			ship_fire_control_system
		}
	}
	capital_cruiser_advanced = {
	
		priority = {
			factor = 1
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 4000.0
			
			type = ship_hull_cruiser_4
			modules = {
				fixed_ship_battery_slot > ship_medium_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot > cruiser_ship_engine_1
				fixed_ship_armor_slot > ship_armor_cruiser_2
				fixed_ship_secondaries_slot = ship_secondaries
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot = ship_airplane_launcher
				rear_1_custom_slot > ship_medium_battery_2
				rear_2_custom_slot = ship_anti_air
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_medium_battery
			ship_radar
			ship_torpedo
			ship_airplane_launcher
			ship_fire_control_system
		}
	}
}

USA_naval_capital_battleship = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_capital_bb
	}
	
	priority = {
		factor = 20
	}
	
	
	capital_battleship_early = { 
	
		priority = {
			factor = 1
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_heavy_1
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = heavy_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				fixed_ship_armor_slot = ship_armor_bb_1
				front_1_custom_slot = empty
				mid_1_custom_slot = ship_heavy_battery_1
				mid_2_custom_slot = ship_secondaries_1
				rear_1_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
			ship_secondaries
			ship_airplane_launcher
		}
	}
	capital_battleship_early_aa_upgrade = { 
	
		priority = {
			factor = 10
			modifier = {
				factor = 20
				has_war = yes
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 1100.0
			
			type = ship_hull_heavy_1
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_1
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = heavy_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				fixed_ship_armor_slot = ship_armor_bb_1
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_heavy_battery_1
				mid_2_custom_slot = ship_anti_air
				rear_1_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
			ship_secondaries
			ship_airplane_launcher
		}
	}

	capital_battleship_basic = { 
	
		priority = {
			factor = 1
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_heavy_1
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = heavy_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries_1
				fixed_ship_armor_slot = ship_armor_bb_2
				front_1_custom_slot = ship_anti_air_1
				mid_1_custom_slot = ship_secondaries_1
				mid_2_custom_slot = ship_airplane_launcher_1
				rear_1_custom_slot = ship_heavy_battery_2
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
			ship_secondaries
			ship_airplane_launcher
		}
	}

	capital_battleship_basic_aa_upgrade = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 100
				has_war = yes
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 2200.0
			
			type = ship_hull_heavy_1
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_2
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = heavy_ship_engine_1
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_bb_2
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_secondaries
				mid_2_custom_slot = ship_airplane_launcher
				rear_1_custom_slot = ship_heavy_battery_2
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
			ship_secondaries
			ship_airplane_launcher
		}
	}
	capital_battleship_improved = { #South Dakota/NC
	
		priority = {
			factor = 10
			modifier = {
				has_completed_focus = USA_two_ocean_navy_act
				factor = 50
			}
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_heavy_2
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_3
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = heavy_ship_engine_3
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_bb_2
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot = ship_secondaries
				rear_1_custom_slot = ship_airplane_launcher
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_secondaries
			ship_airplane_launcher
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
		}
	}
	capital_battleship_advanced = { #Iowa
	
		priority = {
			factor = 100
		}
		role_icon_index = 1
		
		target_variant = {
			match_value = 4000.0
			
			type = ship_hull_heavy_3
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_3
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_fire_control_system
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = heavy_ship_engine
				fixed_ship_secondaries_slot = ship_secondaries
				fixed_ship_armor_slot = ship_armor_bb_2
				front_1_custom_slot = ship_anti_air
				mid_1_custom_slot = ship_anti_air
				mid_2_custom_slot = dp_ship_secondaries_3
				mid_3_custom_slot = ship_airplane_launcher
				rear_1_custom_slot = ship_heavy_battery_3
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_secondaries
			ship_airplane_launcher
			ship_heavy_battery
			ship_radar
			ship_fire_control_system
			ship_heavy_armor
		}
	}
}

USA_naval_carrier = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_carrier
	}
	
	priority = {
		factor = 75
	}

	carrier_early = {
	
		priority = {
			factor = 10
		}
		role_icon_index = 7
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_carrier_1
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = carrier_ship_engine_1
				fixed_ship_secondaries_slot = empty
				front_1_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_secondaries
			ship_fire_control_system
			cruiser_ship_engine
			heavy_ship_engine
			carrier_ship_engine
			ship_radar
			ship_deck_space
			ship_carrier_armor
		}
	}

	carrier_basic = {
	
		priority = {
			factor = 25
			modifier = {
				factor = 5
			}
		}
		role_icon_index = 7
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_carrier_1
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_engine_slot = carrier_ship_engine_2
				fixed_ship_secondaries_slot = ship_secondaries
				front_1_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_secondaries
			ship_anti_air
			ship_fire_control_system
			carrier_ship_engine
			ship_radar
			ship_deck_space
			ship_carrier_armor
		}
	}

	carrier_improved = {
	
		priority = {
			factor = 50
			modifier = {
				OR = {
					has_War = yes
					JAP = {
						has_navy_size = {
							unit = carrier
							size > 8
						}
					}
				}
				factor = 10
			}
		}
		role_icon_index = 7
		
		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_carrier_2
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_engine_slot = carrier_ship_engine
				fixed_ship_secondaries_slot > empty
				front_1_custom_slot = ship_deck_space
				mid_1_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_secondaries
			ship_fire_control_system
			carrier_ship_engine
			ship_radar
			ship_deck_space
			ship_carrier_armor
		}
	}
	carrier_advanced = {
	
		priority = {
			factor = 100
		}
		role_icon_index = 7
		
		target_variant = {
			match_value = 4000.0
			
			type = ship_hull_carrier_3
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_engine_slot = carrier_ship_engine
				fixed_ship_secondaries_slot = dp_ship_secondaries_3
				front_1_custom_slot = ship_deck_space
				mid_1_custom_slot = ship_deck_space
				mid_2_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_secondaries
			ship_anti_air
			ship_fire_control_system
			carrier_ship_engine
			ship_radar
			ship_deck_space
			ship_carrier_armor
		}
	}
}

USA_naval_carrier_light = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_carrier
	}
	
	priority = {
		factor = 25
		modifier = {
			factor = 0
			has_War = no
		}
		modifier = {
			factor = 3
			has_navy_size = {
				unit = carrier
				size < 6
			}
		}
	}

	CVL_carrier = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 7
		
		target_variant = {
			match_value = 2500.0
			
			type = ship_hull_carrier_conversion_ca
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_radar_slot = ship_radar
				fixed_ship_engine_slot = carrier_ship_engine
				fixed_ship_secondaries_slot = ship_secondaries
			}
		}
		
		allowed_modules = {
			ship_anti_air
			ship_secondaries
			ship_fire_control_system
			cruiser_ship_engine
			carrier_ship_engine
			ship_radar
			ship_deck_space
			ship_carrier_armor
		}
	}
}

USA_naval_submarine = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_submarine
	}
	
	priority = {
		factor = 50
		modifier = {
			factor = 10
			has_war = yes
		}
	}

	submarine_early = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 6
		
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_submarine
			modules = {
				fixed_ship_engine_slot = sub_ship_engine_1
				fixed_ship_torpedo_slot = ship_torpedo_sub_1
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub
			sub_ship_engine
			ship_mine_layer_sub
			ship_sub_snorkel
			ship_radar
		}
	}
	submarine_basic = {
	
		priority = {
			factor = 20
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 6

		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_submarine_2
			modules = {
				fixed_ship_engine_slot = sub_ship_engine_1
				fixed_ship_torpedo_slot = ship_torpedo_sub_2
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub
			sub_ship_engine
			ship_mine_layer_sub
			ship_sub_snorkel
			ship_radar
		}
	}
	submarine_improved = {
	
		priority = {
			factor = 20
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 6

		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_submarine_3
			modules = {
				fixed_ship_engine_slot = sub_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo_sub
				front_1_custom_slot = empty
				mid_1_custom_slot = ship_sub_snorkel
				rear_1_custom_slot = ship_torpedo_sub
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub
			sub_ship_engine
			ship_mine_layer_sub
			ship_sub_snorkel
			ship_radar
		}
	}
	submarine_advanced = {
	
		priority = {
			factor = 50
			modifier = {
				factor = 15
				has_war_with = JAP
			}
		}
		role_icon_index = 6
		
		target_variant = {
			match_value = 4000.0
			
			type = ship_hull_submarine_4
			modules = {
				fixed_ship_engine_slot = sub_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo_sub
				front_1_custom_slot = ship_torpedo_sub
				mid_1_custom_slot = ship_sub_snorkel
				rear_1_custom_slot = ship_torpedo_sub
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub
			sub_ship_engine
			ship_mine_layer_sub
			ship_sub_snorkel
			ship_radar
		}
	}
}

USA_naval_mine_sweeper = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_mine_sweeper
	}
	
	priority = {
		factor = 2
		modifier = {
			factor = 5
			has_war = yes
		}
	}
	
	mine_sweeper_light_early = { # base variant
	
		priority = {
			factor = 10
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 5
		enable = { has_tech = basic_naval_mines }
		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_light
			modules = {
				rear_1_custom_slot = ship_mine_sweeper_1
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = empty
				fixed_ship_fire_control_system_slot = empty
			}
		}
		requirements = {
			module = ship_mine_sweeper_1
		}
		allowed_modules = {
			ship_mine_warfare
			ship_light_battery
			ship_anti_air
			ship_depth_charge
			ship_fire_control_system
			light_ship_engine
			ship_radar
			ship_sonar
		}
	}
	mine_sweeper_light_late = { #improved variant for late war
	
		priority = {
			factor = 100
			modifier = {
				factor = 1
			}
		}
		role_icon_index = 5
		
		enable = {
			has_tech = basic_dp_light_battery
			has_tech = basic_naval_mines
		}
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_light
			modules = {
				rear_1_custom_slot = ship_mine_sweeper_1
				mid_1_custom_slot = ship_mine_sweeper_1
				fixed_ship_battery_slot = {
					any_of = { dp_light_battery_1 ship_light_battery_1 }
					upgrade > current
				}
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = empty
				fixed_ship_anti_air_slot = ship_anti_air
			}
		}
		
		requirements = {
			module = ship_mine_sweeper_1
		}
		allowed_modules = {
			ship_mine_sweeper_1
			ship_mine_warfare
			ship_anti_air
			ship_light_battery_1
			ship_depth_charge
			ship_fire_control_system
			light_ship_engine
			ship_radar
			ship_sonar
		}
	}
}

USA_naval_mine_layer = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
		USA
	}
	
	roles = {
		naval_mine_layer
	}
	
	priority = {
		factor = 3
		modifier = {
			factor = 5
			has_war = yes
		}
	}
	
	mine_layer_light = {
	
		priority = {
			factor = 2
			modifier = {
				factor = 10
			}
		}
		role_icon_index = 4
		
		target_variant = {
			match_value = 1000.0
			 
			type = ship_hull_light
			modules = {
				rear_1_custom_slot = ship_mine_layer_1 
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_battery_slot = dp_light_battery_2
				fixed_ship_torpedo_slot = empty
				fixed_ship_fire_control_system_slot = empty
				fixed_ship_radar_slot = empty
				fixed_ship_anti_air_slot = ship_anti_air
			}
		}
		
		requirements = {
			module = ship_mine_layer_1
		}
		allowed_modules = {
			ship_mine_layer_1
			ship_anti_air
			ship_light_battery
			ship_fire_control_system
			light_ship_engine
			ship_torpedo
			ship_radar
			ship_sonar
			ship_depth_charge
		}
	}
	submarine_mine_layer = {
	
		priority = {
			factor = 20
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		role_icon_index = 4
		
		target_variant = {
			match_value = 2000.0
			 
			type = ship_hull_submarine_2
			modules = {
				fixed_ship_engine_slot = sub_ship_engine
				fixed_ship_torpedo_slot = ship_torpedo_sub
				rear_1_custom_slot = ship_mine_layer_sub
			}
		}
		
		requirements = {
			module = ship_mine_layer_sub
		}
		allowed_modules = {
			
			ship_torpedo_sub
			sub_ship_engine
			ship_mine_layer_sub
			ship_sub_snorkel
			ship_radar
			
		}
	}
	mine_layer_cruiser = {
	
		priority = {
			factor = 2
			modifier = {
				factor = 10
				num_of_naval_factories > 19 
			}
		}
		role_icon_index = 4
		
		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_cruiser
			modules = {
				rear_1_custom_slot = ship_mine_layer_1 
				mid_2_custom_slot = ship_mine_layer_1 
				fixed_ship_engine_slot < cruiser_ship_engine_3
				fixed_ship_battery_slot = {
					any_of = { ship_light_battery }
					upgrade > current
				}
				fixed_ship_secondaries_slot = empty
				fixed_ship_armor_slot = empty
				fixed_ship_anti_air_slot < ship_anti_air_3
			}
		}
		
		requirements = {
			module = ship_mine_layer_1
		}
		allowed_modules = {
			ship_mine_layer_1
			ship_anti_air
			ship_light_battery
			ship_fire_control_system
			cruiser_ship_engine
			ship_radar
			ship_sonar
		}
	}
}
