# AI Ship Designs for Generic Nations

destroyers = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_screen
	}
	
	priority = {
		factor = 1500
	}
	
	screen_default = {
	
		priority = {
			factor = 200
		}
		
		role_icon_index = 2
		
		target_variant = {
			match_value = 1500.0
			
			type = ship_hull_light_1
			modules = {
				fixed_ship_battery_slot = ship_light_battery
				fixed_ship_anti_air_slot = empty
				fixed_ship_fire_control_system_slot = { any_of = { ship_sonar_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { 
				       any_of = { light_ship_engine_1 light_ship_engine_2 } 
				}
				fixed_ship_torpedo_slot = ship_torpedo_1
				mid_1_custom_slot = ship_torpedo_1
				rear_1_custom_slot = ship_depth_charge_1
			}
		}
		
		allowed_modules = {
			ship_light_battery
			ship_sonar_1
			ship_fire_control_system_0
			light_ship_engine_1
			light_ship_engine_2
			ship_torpedo_1
			ship_depth_charge_1
		}
	}

	screen_2 = {
	
		priority = {
			factor = 250
		}
		
		role_icon_index = 2
		
		target_variant = {
			match_value = 1700.0
			
			type = ship_hull_light_2
			modules = {
				fixed_ship_battery_slot = ship_light_battery  
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = { any_of = { ship_sonar ship_fire_control_system } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { 
				       any_of = { light_ship_engine_2 light_ship_engine_3 } 
				}
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_depth_charge
				rear_1_custom_slot = ship_light_battery
			}
		}
		
		allowed_modules = {
			ship_light_battery
			ship_fire_control_system
            ship_sonar
			ship_radar
			ship_anti_air
			ship_depth_charge
			light_ship_engine_2
			light_ship_engine_3
            ship_torpedo
		}
	}

	screen_3 = {
	
		priority = {
			factor = 250
		}
		
		role_icon_index = 2
		
		target_variant = {
			match_value = 1900.0
			
			type = ship_hull_light_3
			modules = {
				fixed_ship_battery_slot = { 
				       any_of = { dp_light_battery ship_light_battery } 
				}
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = { any_of = { ship_sonar ship_radar } }
				fixed_ship_engine_slot = { 
				    any_of = { light_ship_engine_4 light_ship_engine_3 } 
				}
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_depth_charge
				rear_1_custom_slot  = { 
				    any_of = { dp_light_battery ship_light_battery } 
				}
				front_1_custom_slot  = { 
				    any_of = { dp_light_battery ship_light_battery } 
				}
			}
		}
		
		allowed_modules = {
		    dp_light_battery
			ship_light_battery
			light_ship_engine_4
		    light_ship_engine_3
		    ship_fire_control_system_1
			ship_fire_control_system_0
			ship_sonar
			ship_torpedo
			ship_anti_air
			ship_depth_charge
			ship_radar
		}
	}
	screen_4 = {
	
		priority = {
			factor = 250
		}
		
		role_icon_index = 2
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_light_4
			modules = {
				fixed_ship_battery_slot = { 
				       any_of = { dp_light_battery ship_light_battery } 
				}
				fixed_ship_anti_air_slot = ship_anti_air
				fixed_ship_fire_control_system_slot = ship_sonar
				fixed_ship_radar_slot = { any_of = { ship_radar_3 ship_radar_2 ship_radar_1 } }
				fixed_ship_engine_slot = light_ship_engine_4 
				fixed_ship_torpedo_slot = ship_torpedo
				mid_1_custom_slot = ship_depth_charge
				mid_2_custom_slot = ship_torpedo 
				rear_1_custom_slot  = { any_of = { dp_light_battery ship_light_battery } }
				front_1_custom_slot  = { any_of = { dp_light_battery ship_light_battery } }
			}
		}
		
		allowed_modules = {
		    ship_light_battery
			dp_light_battery
		    light_ship_engine_4
			ship_sonar
			ship_radar
			ship_torpedo
			ship_anti_air
			ship_depth_charge
		}
	}
}

generic_escorts = {
	category = naval
	
	blocked_for = {
	
	}
	
	available_for = {
		
	}
	
	roles = {
		naval_escort
	}
	
	priority = {
		factor = 1
		modifier = {
			factor = 100
			anti_submarine_strategy_required_trigger = yes
		}
	}
	
	escort_default = {
	
		priority = {
			factor = 15
		}

		role_icon_index = 8
		
		target_variant = {
			match_value = 2000.0
			
			type = ship_hull_light_2
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_light_battery_2 ship_light_battery_1 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_fire_control_system_slot = ship_sonar
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { light_ship_engine_3 light_ship_engine_2 } }
				fixed_ship_torpedo_slot = { any_of = { ship_torpedo_2 ship_torpedo_1 } }
				mid_1_custom_slot = { any_of = { ship_depth_charge_2 ship_depth_charge_1 } }
				rear_1_custom_slot = { any_of = { ship_depth_charge_2 ship_depth_charge_1 } }
				}
			}
		
		allowed_modules = {
			ship_anti_air
			ship_light_battery_2
			ship_light_battery_1
			ship_sonar
			ship_radar
			ship_depth_charge_2
			ship_depth_charge_1
			light_ship_engine_3
			light_ship_engine_2
		}
	}
	
	escort_upgrade = {
	
		priority = {
			factor = 20
			modifier = {
				factor = 35
				anti_submarine_strategy_required_trigger = yes
			}
		}
		enable = {
			AND = {
				has_tech = improved_depth_charges
			}
		}
		role_icon_index = 8
		
		target_variant = {
			match_value = 2200.0
			
			type = ship_hull_light_3
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_light_battery_3 ship_light_battery_2 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_fire_control_system_slot = ship_sonar
				fixed_ship_radar_slot = { any_of = { ship_radar_2 ship_radar_1 } }
				fixed_ship_engine_slot = { any_of = { light_ship_engine_4 light_ship_engine_3 } }
				fixed_ship_torpedo_slot = { any_of = { ship_torpedo_2 ship_torpedo_1 } }
				mid_1_custom_slot = ship_depth_charge
				rear_1_custom_slot = ship_depth_charge
				front_1_custom_slot = { any_of = { ship_light_battery_3 ship_light_battery_2 } }
			}
		}
		
		allowed_modules = {
		    ship_light_battery_3
			ship_light_battery_2
			light_ship_engine_4
		    light_ship_engine_3
			ship_sonar
			ship_radar_2
			ship_radar_1
			ship_torpedo_2
			ship_torpedo_1
			ship_anti_air_3
			ship_anti_air_2
			ship_depth_charge
		}
	}
}

naval_light_cruiser = {

	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_cruiser_light
	}
	
	priority = {
		factor = 900
		modifier = {
			factor = 125
			is_major = no
		}
	}
	cruiser_light_early = {
		
		priority = {
			factor = 100
		}

		role_icon_index = 3
		
		target_variant = {
			match_value = 2100.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_1 ship_anti_air_2 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { cruiser_ship_engine_2 cruiser_ship_engine_1 } }
				fixed_ship_armor_slot = empty
				fixed_ship_secondaries_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				rear_1_custom_slot = ship_light_medium_battery_1  
				mid_1_custom_slot = { any_of = { ship_secondaries_1 ship_secondaries_2 } }
				mid_2_custom_slot = ship_airplane_launcher_1
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery_1
			ship_fire_control_system_0
			cruiser_ship_engine_1
			cruiser_ship_engine_2
			ship_secondaries_1
			ship_secondaries_2
			ship_anti_air_1
			ship_anti_air_2
			ship_airplane_launcher_1
		}
	}
	cruiser_light_basic = {
		
		priority = {
			factor = 150
		}

		role_icon_index = 3
		
		target_variant = {
			match_value = 2300.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot  = { any_of = { ship_light_medium_battery_2 ship_light_medium_battery_1 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_engine_slot = { any_of = { cruiser_ship_engine_2 cruiser_ship_engine_3 } }
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = { any_of = { ship_radar_1 ship_radar_2 } }
				fixed_ship_armor_slot = empty
				fixed_ship_secondaries_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_light_medium_battery_2 ship_light_medium_battery_1 } }
				rear_1_custom_slot = { any_of = { ship_light_medium_battery_2 ship_light_medium_battery_1 } }
				mid_1_custom_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				mid_2_custom_slot = ship_airplane_launcher
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery
			ship_fire_control_system_0
			ship_fire_control_system_1
			ship_anti_air_1
			ship_anti_air_2
			cruiser_ship_engine_2
			cruiser_ship_engine_3
			ship_radar_1
			ship_radar_2
			ship_secondaries_1
			ship_secondaries_2
			ship_airplane_launcher
		}
	}
	cruiser_light_improved = {
		
		priority = {
			factor = 150
		}
		
		role_icon_index = 3

		target_variant = {
			match_value = 2500.0
			
			type = ship_hull_cruiser_3
			modules = {
				fixed_ship_battery_slot  = { any_of = { ship_light_medium_battery_3 ship_light_medium_battery_2 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_engine_slot =  cruiser_ship_engine_3
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = { any_of = { ship_radar_3 ship_radar_2 ship_radar_1 } }
				fixed_ship_armor_slot = ship_armor_cruiser_1
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_light_medium_battery_3 ship_light_medium_battery_2 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_light_medium_battery_3 ship_light_medium_battery_2 } }
				rear_2_custom_slot = ship_airplane_launcher
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery_3
			ship_light_medium_battery_2
			cruiser_ship_engine_3
			cruiser_ship_engine_4
			ship_fire_control_system_1
			ship_fire_control_system_0
			ship_radar_3
			ship_radar_2
			ship_radar_1
			ship_armor_cruiser_1
			dp_ship_secondaries_2
			dp_ship_secondaries_1
			ship_secondaries_2
			ship_secondaries_1
			ship_airplane_launcher
		}
	}
	cruiser_light_advanced = {
		
		priority = {
			factor = 150
		}

		role_icon_index = 2
		
		target_variant = {
			match_value = 2700.0
			
			type = ship_hull_cruiser_4
			modules = {
				fixed_ship_battery_slot  = { any_of = { ship_light_medium_battery_4 ship_light_medium_battery_3 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_engine_slot =  cruiser_ship_engine_4
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 } }
				fixed_ship_radar_slot = { any_of = { ship_radar_3 ship_radar_2 ship_radar_1 } }
				fixed_ship_armor_slot = ship_armor_cruiser_1
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				front_1_custom_slot = { any_of = { ship_light_medium_battery_4 ship_light_medium_battery_3 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				rear_1_custom_slot = { any_of = { ship_light_medium_battery_4 ship_light_medium_battery_3 } }
				rear_2_custom_slot = ship_airplane_launcher
			}
		}
		
		allowed_modules = {
			ship_light_medium_battery_4
			ship_light_medium_battery_3
			cruiser_ship_engine_3
			cruiser_ship_engine_4
			ship_fire_control_system_2
			ship_fire_control_system_1
			ship_radar_3
			ship_radar_2
			ship_radar_1
			ship_armor_cruiser_1
			dp_ship_secondaries_3
			dp_ship_secondaries_2
			ship_secondaries_2
			ship_airplane_launcher
		}
	}
}

naval_cruiser_heavy = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_cruiser_heavy
	}
	
	priority = {
		factor = 800
		modifier = {
			factor = 975
			is_major = yes
		}
	}
	capital_cruiser_early = {
	
		priority = {
			factor = 100
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 2400.0
			
			type = ship_hull_cruiser_1
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_medium_battery_2 ship_medium_battery_1 } } 
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } } 
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty 
				fixed_ship_engine_slot = { any_of = { cruiser_ship_engine_2 cruiser_ship_engine_1 } }
				fixed_ship_armor_slot = empty
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }  
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }  
				rear_1_custom_slot = { any_of = { ship_medium_battery_2 ship_medium_battery_1 } } 
			}
		}
		
		allowed_modules = {
			ship_medium_battery_2
			ship_medium_battery_1
			ship_anti_air_2
			ship_anti_air_1
			ship_fire_control_system_0
			cruiser_ship_engine_2
			cruiser_ship_engine_1
			dp_ship_secondaries_1
			ship_secondaries_1
		}
	}
	capital_cruiser_basic = {
	
		priority = {
			factor = 200
			
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 2800.0
			
			type = ship_hull_cruiser_2
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_medium_battery_2 ship_medium_battery_1 } } 
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } } 
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_1 ship_fire_control_system_0 } } 
				fixed_ship_engine_slot = { any_of = { cruiser_ship_engine_3 cruiser_ship_engine_2 } }
				fixed_ship_radar_slot = empty
				fixed_ship_armor_slot = { any_of = { ship_armor_cruiser_2 ship_armor_cruiser_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_medium_battery_2 ship_medium_battery_1 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_2 ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_medium_battery_2 ship_medium_battery_1 } }
			}
		}
		
		allowed_modules = {
			ship_medium_battery_2
			ship_medium_battery_1
			ship_anti_air_2
			ship_anti_air_1
			ship_fire_control_system_1
			ship_fire_control_system_0
			cruiser_ship_engine_3
			cruiser_ship_engine_2
			dp_ship_secondaries_2
			dp_ship_secondaries_1
			ship_secondaries_2
			ship_secondaries_1
			ship_armor_cruiser_2
			ship_armor_cruiser_1
		}
	}

	capital_cruiser_improved = {
	
		priority = {
			factor = 200

		}
		
		role_icon_index = 1

		target_variant = {
			match_value = 3000.0
			
			type = ship_hull_cruiser_3
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_medium_battery_3 ship_medium_battery_2 } } 
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } } 
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 } } 
				fixed_ship_engine_slot = { any_of = { cruiser_ship_engine_4 cruiser_ship_engine_3 } }
				fixed_ship_radar_slot = empty
				fixed_ship_armor_slot = { any_of = { ship_armor_cruiser_3 ship_armor_cruiser_2 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				front_1_custom_slot = { any_of = { ship_medium_battery_3 ship_medium_battery_2 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				rear_1_custom_slot = { any_of = { ship_medium_battery_3 ship_medium_battery_2 } }
				rear_2_custom_slot = empty
			}
		}
		
		allowed_modules = {
			ship_medium_battery_3
			ship_medium_battery_2
			ship_anti_air_3
			ship_anti_air_2
			ship_fire_control_system_2
			ship_fire_control_system_1
			cruiser_ship_engine_4
			cruiser_ship_engine_3
			dp_ship_secondaries_3
			dp_ship_secondaries_2
			ship_secondaries_2
			ship_armor_cruiser_3
			ship_armor_cruiser_2
		}
	}
	capital_cruiser_advanced = {
	
		priority = {
			factor = 200
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 3200.0
			
			type = ship_hull_cruiser_4
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_medium_battery_4 ship_medium_battery_3 } } 
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } } 
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 } } 
				fixed_ship_engine_slot = cruiser_ship_engine_4
				fixed_ship_radar_slot = empty
				fixed_ship_armor_slot = { any_of = { ship_armor_cruiser_3 ship_armor_cruiser_2 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				front_1_custom_slot = { any_of = { ship_medium_battery_4 ship_medium_battery_3 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				rear_1_custom_slot = { any_of = { ship_medium_battery_4 ship_medium_battery_3 } }
				rear_2_custom_slot = empty
			}
		}
		
		allowed_modules = {
			ship_medium_battery_4
			ship_medium_battery_3
			ship_anti_air_3
			ship_anti_air_2
			ship_fire_control_system_2
			ship_fire_control_system_1
			cruiser_ship_engine_4
			cruiser_ship_engine_3
			dp_ship_secondaries_3
			dp_ship_secondaries_2
			ship_secondaries_2
			ship_armor_cruiser_3
			ship_armor_cruiser_2
		}
	}
}

naval_capital_battleship = {
	category = naval
	
	blocked_for = {

	}
	
	available_for = {
	}
	
	roles = {
		naval_capital_bb
	}
	
	priority = {
		factor = 500
		modifier = {
			factor = 0
			num_of_naval_factories < 15
		}
	}
	
	capital_battleship_early = {
	
		priority = {
			factor = 100
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 5000.0
			
			type = ship_hull_heavy_1
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_fire_control_system_slot =  { any_of = { ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_2 heavy_ship_engine_1 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bb_2 ship_armor_bb_1 } }
				fixed_ship_secondaries_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
				mid_1_custom_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				mid_2_custom_slot = { any_of = { ship_secondaries_2 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
			}
		}
		
		allowed_modules = {
			ship_heavy_battery_2
			ship_heavy_battery_1
			ship_anti_air_2
			ship_anti_air_1
			heavy_ship_engine_2
			heavy_ship_engine_1
			ship_armor_bb_2
			ship_armor_bb_1
			ship_secondaries_2
			ship_secondaries_1
		}
	}

	capital_battleship_basic = {
	
		priority = {
			factor = 150
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 6000.0
			
			type = ship_hull_heavy_2
			modules = {		
				fixed_ship_battery_slot = { any_of = { ship_heavy_battery_3 ship_heavy_battery_2 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_fire_control_system_slot =  { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_3 heavy_ship_engine_2 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bb_2 ship_armor_bb_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
			}
		}
		
		allowed_modules = {
			ship_heavy_battery_3
			ship_heavy_battery_2
			ship_anti_air_3
			ship_anti_air_2
			heavy_ship_engine_3
			heavy_ship_engine_2
			ship_armor_bb_2
			ship_armor_bb_1
			ship_secondaries_2
			ship_secondaries_1
			dp_ship_secondaries_2
			dp_ship_secondaries_1
		}
	}

	capital_battleship_improved = {
	
		priority = {
			factor = 150
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 7000.0
			
			type = ship_hull_heavy_3
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_fire_control_system_slot =  { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_radar_slot = { any_of = { ship_radar_2 ship_radar_1 } }
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_4 heavy_ship_engine_3 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bb_3 ship_armor_bb_2 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				front_1_custom_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2 } }
				mid_1_custom_slot = { any_of = { ship_heavy_battery_3 ship_heavy_battery_2 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				mid_3_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2} }
			}
		}
		
		allowed_modules = {
		    ship_heavy_battery_4
			ship_heavy_battery_3
			ship_heavy_battery_2
			ship_anti_air_3
			ship_anti_air_2
			heavy_ship_engine_4
			heavy_ship_engine_3
			ship_armor_bb_3
			ship_armor_bb_2
			ship_secondaries_2
			dp_ship_secondaries_3
			dp_ship_secondaries_2
		}
	}
	capital_battleship_advanced = {
	
		priority = {
			factor = 150
		}

		role_icon_index = 1
		
		target_variant = {
			match_value = 8000.0
			
			type = ship_hull_heavy_4
			modules = {
				fixed_ship_battery_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_fire_control_system_slot =  { any_of = { ship_fire_control_system_3 ship_fire_control_system_2 ship_fire_control_system_1 } }
				fixed_ship_radar_slot = { any_of = { ship_radar_3 ship_radar_2 } }
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_4 heavy_ship_engine_3 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bb_3 ship_armor_bb_2 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				front_1_custom_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2 } }
				mid_1_custom_slot = { any_of = { ship_heavy_battery_3 ship_heavy_battery_2 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				mid_3_custom_slot = { any_of = { dp_ship_secondaries_3 dp_ship_secondaries_2 ship_secondaries_2 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_4 ship_heavy_battery_3 ship_heavy_battery_2} }
			}
		}
		
		allowed_modules = {
		    ship_heavy_battery_4
			ship_heavy_battery_3
			ship_heavy_battery_2
			ship_anti_air_3
			ship_anti_air_2
			heavy_ship_engine_4
			heavy_ship_engine_3
			ship_armor_bb_3
			ship_armor_bb_2
			ship_secondaries_2
			dp_ship_secondaries_3
			dp_ship_secondaries_2
		}
	}
}

naval_capital_bc = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_capital_bc
	}
	
	priority = {
		factor = 1
	}

	battlecruiser_early = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 0
				is_major = yes
			}
		}

		role_icon_index = 8
		
		target_variant = {
			match_value = 8000.0
			
			type = ship_hull_heavy_2
			modules = {
				fixed_ship_battery_slot =  { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
				fixed_ship_fire_control_system_slot =  ship_fire_control_system_0
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_3 heavy_ship_engine_2 heavy_ship_engine_1 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bc_2 ship_armor_bc_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }
				front_1_custom_slot = ship_heavy_battery_1
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_1 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
			}
		}
		
		allowed_modules = {
			ship_heavy_battery_2
			ship_heavy_battery_1
			ship_fire_control_system
			ship_radar
			heavy_ship_engine_3
			heavy_ship_engine_2
			heavy_ship_engine_1
			ship_armor_bc_2
			ship_armor_bc_1
			dp_ship_secondaries_1
			ship_secondaries_1
			ship_anti_air_2
			ship_anti_air_1
		}
	}
	
	battlecruiser_improved = {
	
		priority = {
			factor = 10
			modifier = {
				factor = 0
				is_major = yes
			}
		}

		role_icon_index = 8
		
		target_variant = {
			match_value = 9000.0
			
			type = ship_hull_heavy_3
			modules = {
				fixed_ship_battery_slot =  { any_of = { ship_heavy_battery_3 ship_heavy_battery_2 } }
				fixed_ship_fire_control_system_slot = { any_of = { ship_fire_control_system_2 ship_fire_control_system_1 ship_fire_control_system_0 } }
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { heavy_ship_engine_4 heavy_ship_engine_3 } }
				fixed_ship_armor_slot = { any_of = { ship_armor_bc_3 ship_armor_bc_2 ship_armor_bc_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				front_1_custom_slot = { any_of = { ship_heavy_battery_2 ship_heavy_battery_1 } }
				mid_1_custom_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				mid_2_custom_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				mid_3_custom_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_2 ship_secondaries_1 } }
				rear_1_custom_slot = { any_of = { ship_heavy_battery_3 ship_heavy_battery_2 } }
			}
		}
		
		allowed_modules = {
			ship_heavy_battery_3
			ship_heavy_battery_2
			ship_heavy_battery_1
			ship_fire_control_system_2
			ship_fire_control_system_1
			ship_fire_control_system_0
			heavy_ship_engine_4
			heavy_ship_engine_3
			ship_armor_bc_3
			ship_armor_bc_2
			ship_armor_bc_1
			dp_ship_secondaries_2
			dp_ship_secondaries_1
			ship_secondaries_2
			ship_secondaries_1
			ship_anti_air_3
			ship_anti_air_2
		}
	}
}

naval_carrier = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_carrier
	}
	
	priority = {
		factor = 10
		modifier = {
			factor = 25
			is_major = yes
		}
		modifier = {
			num_of_naval_factories > 25
			factor = 50
		}
	}

	carrier_early = {
	
		priority = {
			factor = 100
			 
		}

		role_icon_index = 7
		
		target_variant = {
			match_value = 1000.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 = { any_of = { ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { carrier_ship_engine_3 carrier_ship_engine_2 carrier_ship_engine_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
			}
		}
		
		allowed_modules = {
			ship_deck_space
			ship_anti_air_2
			ship_anti_air_1
			carrier_ship_engine_3
			carrier_ship_engine_2
			carrier_ship_engine_1
			dp_ship_secondaries_2
			dp_ship_secondaries_1
			ship_secondaries_1
		}
	}

	carrier_basic = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 50
				is_major = yes
			}
		}

		role_icon_index = 7
		
		target_variant = {
			match_value = 3000.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 = { any_of = { ship_anti_air_3 ship_anti_air_2 ship_anti_air_1 } }
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = { any_of = { carrier_ship_engine_3 carrier_ship_engine_2 carrier_ship_engine_1 } }
				fixed_ship_secondaries_slot = { any_of = { dp_ship_secondaries_2 dp_ship_secondaries_1 ship_secondaries_1 } }
				front_1_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_deck_space
			ship_anti_air_3
			ship_anti_air_2
			ship_anti_air_1
			carrier_ship_engine_3
			carrier_ship_engine_2
			carrier_ship_engine_1
			dp_ship_secondaries_2
			dp_ship_secondaries_1
			ship_secondaries_1
		}
	}

	carrier_improved = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 150
				is_major = yes
			}
		}

		role_icon_index = 7
		
		target_variant = {
			match_value = 4500.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_radar_slot = { any_of = { ship_radar_2 ship_radar_1 } }
				fixed_ship_engine_slot = { any_of = { carrier_ship_engine_4 carrier_ship_engine_3 } }
				fixed_ship_secondaries_slot = ship_dp_secondaries
				front_1_custom_slot = ship_deck_space
				mid_1_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_deck_space
			ship_anti_air
			ship_radar_2
			ship_radar_1
			carrier_ship_engine_4
			carrier_ship_engine_3
			ship_dp_secondaries
		}
	}
	carrier_advanced = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 200
			}
		}

		role_icon_index = 7
		
		target_variant = {
			match_value = 4750.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_radar_slot = ship_radar
				fixed_ship_engine_slot = { any_of = { carrier_ship_engine_4 carrier_ship_engine_3 } }
				fixed_ship_secondaries_slot = ship_dp_secondaries
				front_1_custom_slot = ship_deck_space
				mid_1_custom_slot = ship_deck_space
				mid_2_custom_slot = ship_deck_space
			}
		}
		
		allowed_modules = {
			ship_deck_space
			ship_anti_air
			carrier_ship_engine_3
			ship_dp_secondaries
		}
	}
}

naval_submarine = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_submarine
	}
	
	priority = {
		factor = 5
		modifier = {
			factor = 100
			OR = {
				has_war_with = USA
				has_war_with = GER
			}
		}
	}

	submarine_early = {
	
		priority = {
			factor = 1
		}
		
		role_icon_index = 6

		target_variant = {
			match_value = 1000.0
			
			type = ship_hull_submarine_1
			modules = {
				fixed_ship_engine_slot = { any_of = { sub_ship_engine_2 sub_ship_engine_1 } }
				fixed_ship_torpedo_slot = { any_of = { ship_torpedo_sub_2 ship_torpedo_sub_1 } }
				rear_1_custom_slot = ship_torpedo_sub_1
			}
		}
		
		allowed_modules = {
			sub_ship_engine_1
			sub_ship_engine_2
			ship_torpedo_sub_1
			ship_torpedo_sub_2
		}
	}
	submarine_basic = {
	
		priority = {
			factor = 10
		}

		role_icon_index = 6
		
		target_variant = {
			match_value = 1300.0
			
			type = ship_hull_submarine_2
			modules = {
				fixed_ship_engine_slot = { any_of = { sub_ship_engine_3 sub_ship_engine_2 } }
				fixed_ship_torpedo_slot = { any_of = { ship_torpedo_sub_3 ship_torpedo_sub_2 } }
				rear_1_custom_slot = { any_of = { ship_torpedo_sub_2 ship_torpedo_sub_1 } }
			}
		}
		
		allowed_modules = {
			sub_ship_engine_3
			sub_ship_engine_2
			ship_torpedo_sub_3
			ship_torpedo_sub_2
		}
	}
	submarine_improved = {
	
		priority = {
			factor = 20
		}
		
		role_icon_index = 6

		target_variant = {
			match_value = 1500.0
			
			type = ship_hull_submarine_3
			modules = {
				fixed_ship_engine_slot = { any_of = { sub_ship_engine_4 sub_ship_engine_3 } }
				fixed_ship_torpedo_slot = ship_torpedo_sub_3
				front_1_custom_slot = ship_torpedo_sub_2
				mid_1_custom_slot = { any_of = { ship_radar_1 ship_sub_snorkel } }
				rear_1_custom_slot = { any_of = { ship_torpedo_sub_3 ship_torpedo_sub_2 } }
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub_2
			ship_torpedo_sub_3
			sub_ship_engine
			ship_sub_snorkel
			ship_radar_1
		}
	}
	submarine_advanced = {
	
		priority = {
			factor = 25
		}

		role_icon_index = 6
		
		target_variant = {
			match_value = 1800.0
			
			type = ship_hull_submarine_4
			modules = {
				fixed_ship_engine_slot = { any_of = { sub_ship_engine_4 sub_ship_engine_3 } }
				fixed_ship_torpedo_slot = ship_torpedo_sub_4
				front_1_custom_slot = ship_torpedo_sub_2
				mid_1_custom_slot = { any_of = { ship_radar_1 ship_radar_2 ship_sub_snorkel } }
				rear_1_custom_slot = { any_of = { ship_torpedo_sub_4 ship_torpedo_sub_3 } }
			}
		}
		
		allowed_modules = {
			ship_torpedo_sub_4
			ship_torpedo_sub_3
			sub_ship_engine
			ship_sub_snorkel
			ship_radar_1
			ship_radar_2
		}
	}
}

naval_mine_sweeper = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_mine_sweeper
	}
	
	priority = {
		factor = 1
		modifier = {
			factor = 100
			has_war = yes
		}
	}
	
	mine_sweeper_light_early = { # base variant
	
		priority = {
			factor = 1
			modifier = {
				factor = 100
				num_of_naval_factories < 20
			}
		}
		enable = { has_tech = basic_naval_mines }
		role_icon_index = 5
		
		target_variant = {
			match_value = 1200.0
			
			type = ship_hull_light_2
			modules = {
				mid_1_custom_slot = ship_mine_sweeper_1
				rear_1_custom_slot = ship_mine_sweeper_1
				fixed_ship_battery_slot = { any_of = { ship_light_battery_2 ship_light_battery_1 dp_light_battery_2 dp_light_battery_1 } }
				fixed_ship_engine_slot = { any_of = { light_ship_engine_3 light_ship_engine_2 } }
				fixed_ship_torpedo_slot = empty
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 ship_anti_air_1 } }
			}
			
		}
		requirements = {
			module = ship_mine_sweeper_1
		}
		allowed_modules = {
			ship_mine_sweeper_1
			dp_light_battery_2
			dp_light_battery_1
			ship_light_battery_2
			ship_light_battery_1
			light_ship_engine_3
			light_ship_engine_2
			ship_anti_air_3
			ship_anti_air_2
			ship_anti_air_1
		}
	}
}

naval_mine_layer = {
	category = naval
	
	blocked_for = {
	}
	
	available_for = {
	}
	
	roles = {
		naval_mine_layer
	}
	
	priority = {
		factor = 1
		modifier = {
			factor = 25
			has_war = yes
		}
	}
	
	mine_layer_light = {
	
		priority = {
			factor = 1
			modifier = {
				factor = 25
				num_of_naval_factories < 20
			}
		}
		
		role_icon_index = 4
		
		target_variant = {
			match_value = 1000.0
			 
			type = ship_hull_light_2
			modules = {
				mid_1_custom_slot = ship_mine_layer_1
				rear_1_custom_slot = ship_mine_layer_1
				fixed_ship_battery_slot = { any_of = { ship_light_battery_2 ship_light_battery_1 dp_light_battery_2 dp_light_battery_1 } }
				fixed_ship_engine_slot = { any_of = { light_ship_engine_3 light_ship_engine_2 } }
				fixed_ship_torpedo_slot = empty
				fixed_ship_anti_air_slot = { any_of = { ship_anti_air_3 ship_anti_air_2 ship_anti_air_1 } }
			}
		}
		
		requirements = {
			module = ship_mine_layer_1
		}
		allowed_modules = {
			ship_mine_layer_1
			dp_light_battery_2
			dp_light_battery_1
			ship_light_battery_2
			ship_light_battery_1
			light_ship_engine_3
			light_ship_engine_2
			ship_anti_air_3
			ship_anti_air_2
			ship_anti_air_1
		}
	}
}
