
# All-in-one ships, best in slot modules
naval_screen = {
	category = naval
	roles = { screen }
	priority = { base = 10 }

	screen_1922 = {
		role_icon_index = 2

		priority = {
			base = 0
		}

		target_variant = {
			match_value = 1000.0

			type = ship_hull_light_1
			modules = {
				fixed_ship_engine_slot = light_ship_engine
				fixed_ship_battery_slot = ship_light_battery
				fixed_ship_torpedo_slot = ship_torpedo
				fixed_ship_fire_control_system_slot = empty
				fixed_ship_radar_slot = empty
				fixed_ship_anti_air_slot = ship_anti_air
				mid_1_custom_slot = ship_torpedo
				rear_1_custom_slot = ship_depth_charge
			}
		}
                allowed_modules = {
			light_ship_engine
			ship_light_battery
			ship_torpedo
			ship_anti_air
                        ship_depth_charge
		}
	}

	screen_1936 = {
		role_icon_index = 2

		priority = {
			base = 50
                        modifier = { factor = 0 has_tech = improved_ship_hull_light }
		}

		target_variant = {
			match_value = 2000.0

			type = ship_hull_light_2
			modules = {
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_battery_slot = { upgrade = current any_of = { ship_light_battery_2 ship_light_battery_1 } }  
				fixed_ship_torpedo_slot = { upgrade = current any_of = { ship_torpedo_3 ship_torpedo_2 ship_torpedo_1 } }
				fixed_ship_fire_control_system_slot = empty
				fixed_ship_radar_slot = { upgrade = current any_of = { ship_sonar_2 ship_sonar_1 } } 
				fixed_ship_anti_air_slot = { upgrade = current any_of = { ship_anti_air_2 ship_anti_air_1} }
				mid_1_custom_slot = { upgrade = current any_of = { ship_torpedo_3 ship_torpedo_2 ship_torpedo_1 } }
				rear_1_custom_slot = { upgrade = current any_of = { ship_depth_charge_2 ship_depth_charge_1 } }
			}
		}
                allowed_modules = {
			light_ship_engine
			ship_light_battery
			ship_torpedo
			ship_anti_air
                        ship_sonar
                        ship_depth_charge
		}
	}

	screen_1940 = {
		role_icon_index = 2

		priority = {
			base = 100
                        modifier = { factor = 0 has_tech = advanced_ship_hull_light }
                        modifier = { factor = 0 not = { has_tech = improved_ship_hull_light } }
		}

		target_variant = {
			match_value = 3500.0

			type = ship_hull_light_3
			modules = {
				fixed_ship_engine_slot = light_ship_engine_3
				fixed_ship_battery_slot = { upgrade = current any_of = { dp_light_battery_3 ship_light_battery_2 } } 
				fixed_ship_torpedo_slot = ship_torpedo_3
				fixed_ship_fire_control_system_slot = empty
				fixed_ship_radar_slot = { upgrade = current any_of = { ship_sonar_2 ship_sonar_1 } } 
				fixed_ship_anti_air_slot = { upgrade = current any_of = { ship_anti_air_3 ship_anti_air_2} }
                                front_1_custom_slot = { upgrade = current any_of = { ship_depth_charge_3 ship_depth_charge_2 } }
				mid_1_custom_slot = { upgrade = current any_of = { dp_light_battery_3 ship_light_battery_2 } } 
				rear_1_custom_slot = { upgrade = current any_of = { ship_torpedo_3 ship_torpedo_2 } }
		        }
		}
                allowed_modules = {
			light_ship_engine
			dp_light_battery
			ship_torpedo
                        ship_sonar
                        ship_anti_air
                        ship_depth_charge
		}
	}
}

