# AI Ship Designs for Generic Nations
#
#destroyers = {
#	category = naval
#	
#	blocked_for = {
#		SOV
#	}
#	
#	available_for = {
#	}
#	
#	roles = {
#		naval_screen
#	}
#	
#	priority = {
#		factor = 2500
#		modifier = {
#			factor = 10
#			is_major = no
#		}
#	}
#	
#	screen_default = {
#	
#		priority = {
#			factor = 250
#			modifier = {
#				factor = 10
#				is_major = no
#			}
#		}
#		
#		role_icon_index = 2
#		
#		target_variant = {
#			match_value = 2000.0
#			
#			type = ship_hull_light
#			modules = {
#				fixed_ship_battery_slot = ship_light_battery
#				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
#				rear_1_custom_slot = ship_depth_charge
#			}
#		}
#		
#		allowed_modules = {
#			ship_depth_charge
#			ship_light_battery
#			ship_torpedo
#			ship_anti_air
#			light_ship_engine
#			ship_sonar
#			ship_fire_control_system
#		}
#	}
#	
#}

# AI Ship Designs for 'MURICA

generic_corvettes = {
	category = naval

	blocked_for = {
		AFR
		UCT
		#is_country_tribal = yes
		#
	}

	#available_for = {}

	roles = {
		naval_screen
		corvette
	}

	priority = {
		factor = 100
		modifier = {
			factor = 10
			has_war = yes

		}
	}

	corvette_basic = {

		priority = {
			factor = 1
		}

		enable = {
			has_tech = tech_naval_corvette
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_corvette_0

			modules = {
				fixed_ship_battery_slot = ship_cannon_battery_0
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_armor_slot = ship_armor_screen_hardwood_0
				mid_1_custom_slot = ship_cannon_battery_0
				front_1_custom_slot = ship_cannon_battery_0
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_armor_screen_hardwood_0
			ship_cannon_battery_0
		}
	}

	corvette_two = {

		priority = {
			factor = 2
		}

		enable = {
			has_tech = tech_naval_mtg_1857_corvette_hull
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_corvette_1

			modules = {
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail ship_engine_screen }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_screen_armor }
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_screen_armor
			ship_cannon_battery
			ship_engine_screen
		}
	}

	corvette_three = {

		priority = {
			factor = 3
		}

		enable = {
			has_tech = tech_naval_mtg_1860_corvette_hull
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_corvette_1

			modules = {
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail ship_engine_screen }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_screen_armor }
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_screen_armor
			ship_cannon_battery
			ship_engine_screen
		}
	}

	corvette_four = {

		priority = {
			factor = 4
		}

		enable = {
			has_tech = tech_naval_ironclad_frigate_corvette_hull
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_corvette_1

			modules = {
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail ship_engine_screen }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_screen_armor }
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_screen_armor
			ship_cannon_battery
			ship_engine_screen
		}
	}
}

generic_gunboats = {
	category = naval

	blocked_for = {
		AFR
		UCT
		#is_country_tribal = yes
		#
	}

	#available_for = {}

	roles = {
		naval_gunboat
		naval_escort
		gunboat
	}

	priority = {
		factor = 100
		modifier = {
			factor = 10
			has_war = yes

		}
	}

	gunboat_basic = {

		priority = {
			factor = 1
		}

		enable = {
			has_tech = tech_naval_early_gunboat
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_gunboat_0

			modules = {
				# fixed_ship_battery_slot = ship_cannon_battery_0
				# fixed_ship_fire_control_system_slot = {
				# 	any_of = { ship_fire_control_system }
				# 	upgrade > current
				# }
				# fixed_ship_engine_slot = {
				# 	any_of = { ship_engine_sail }
				# 	upgrade > current
				# }
				# fixed_ship_armor_slot = ship_armor_screen_hardwood_0
				# mid_1_custom_slot = ship_cannon_battery_0
				# front_1_custom_slot = ship_cannon_battery_0
##########################
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_secondaries_slot = ship_cannon_battery_0
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail_0
			ship_engine_sail_1
			ship_armor_capital_hardwood_0 
			ship_armor_capital_hardwood_1
			ship_cannon_battery
		}
	}
}

generic_frigates = {
	category = naval

	blocked_for = {
		AFR
		UCT
		#is_country_tribal = yes
		#
	}

	#available_for = {}

	roles = {
		naval_capital_bc
		frigate
	}

	priority = {
		factor = 100
		modifier = {
			factor = 10
			has_war = yes

		}
		modifier = {
			factor = 0
			has_tech = tech_naval_prototype_ironclad
		}
	}

	frigate_basic = {

		priority = {
			factor = 1
		}

		enable = {
			has_tech = tech_naval_early_frigate
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_frigate_0

			modules = {
                   ############################

				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				 fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
					upgrade > current	
				}
				rear_1_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				mid_1_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_cannon_battery
			ship_secondaries
			ship_armor_capital_hardwood_0 
			ship_armor_capital_hardwood_1
		}
	}
	frigate_two = {

		priority = {
			factor = 2
		}

		enable = {
			has_tech = tech_naval_1850_frigate
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_frigate_1

			modules = {
                   ############################

				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				 fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
					upgrade > current	
				}
				rear_1_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				mid_1_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				mid_3_custom_slot = {
					any_of = { ship_secondaries ship_cannon_battery }
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_cannon_battery
			ship_secondaries
			ship_capital_armor
		}
	}
}

generic_lineship = {
	category = naval

	blocked_for = {
		AFR
		UCT
		#is_country_tribal = yes
		#
	}

	#available_for = {}

	roles = {
		naval_capital_bb
		lineship
	}

	priority = {
		factor = 100
		modifier = {
			factor = 10
			has_war = yes

		}
		modifier = {
			factor = 0
			has_tech = tech_naval_prototype_ironclad
		}
	}

	lineship_basic = {

		priority = {
			factor = 1
		}

		enable = {
			has_tech = tech_naval_lineship
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_lineship_0

			modules = {
				# rear_1_custom_slot = {
				# 	any_of = { ship_depth_charge }
				# 	upgrade > current
				# }
				# fixed_ship_battery_slot = ship_cannon_battery_0
				# fixed_ship_fire_control_system_slot = {
				# 	any_of = { ship_fire_control_system }
				# 	upgrade > current
				# }
				# fixed_ship_engine_slot = {
				# 	any_of = { ship_engine_sail }
				# 	upgrade > current
				# }
				# fixed_ship_armor_slot = ship_armor_screen_hardwood_0
				# mid_1_custom_slot = ship_cannon_battery_0
				# front_1_custom_slot = ship_cannon_battery_0
				############
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
					upgrade > current	
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				front_2_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				mid_3_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}	
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_cannon_battery
			ship_secondaries
			ship_armor_capital_hardwood_0 
			ship_armor_capital_hardwood_1
		}
	}

	lineship_two = {

		priority = {
			factor = 2
		}

		enable = {
			has_tech = tech_naval_1857_lineship
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_lineship_1

			modules = {
				# rear_1_custom_slot = {
				# 	any_of = { ship_depth_charge }
				# 	upgrade > current
				# }
				# fixed_ship_battery_slot = ship_cannon_battery_0
				# fixed_ship_fire_control_system_slot = {
				# 	any_of = { ship_fire_control_system }
				# 	upgrade > current
				# }
				# fixed_ship_engine_slot = {
				# 	any_of = { ship_engine_sail }
				# 	upgrade > current
				# }
				# fixed_ship_armor_slot = ship_armor_screen_hardwood_0
				# mid_1_custom_slot = ship_cannon_battery_0
				# front_1_custom_slot = ship_cannon_battery_0
				############
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_sail }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
					upgrade > current	
				}
				front_1_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				mid_1_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}
				rear_1_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				front_2_custom_slot = {
					any_of = { ship_cannon_battery ship_secondaries }
					upgrade > current
				}
				mid_3_custom_slot = {
					any_of = { ship_cannon_battery }
					upgrade > current
				}	
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_cannon_battery
			ship_secondaries
			ship_armor_capital_hardwood_0 
			ship_armor_capital_hardwood_1
		}
	}
}

generic_ironclad = {
	category = naval

	blocked_for = {
		AFR
		UCT
		#is_country_tribal = yes
		#
	}

	#available_for = {}

	roles = {
		naval_capital_bb
		ironclad
	}

	priority = {
		factor = 100
		modifier = {
			factor = 10
			has_war = yes

		}
	}

	ironclad_basic = {
		priority = {
			factor = 1
		}

		enable = {
			has_tech = tech_naval_1857_lineship
		}

		role_icon_index = 2

		target_variant = {
			
			match_value = 1000

			type = ship_hull_ironclad_0
		
			modules = {
				fixed_ship_battery_slot = {
					any_of = { ship_cannon_battery ship_module_ram }
					upgrade > current
				}
				fixed_ship_fire_control_system_slot = {
					any_of = { ship_fire_control_system }
					upgrade > current
				}
				fixed_ship_engine_slot = {
					any_of = { ship_engine_cruiser }
					upgrade > current
				}
				fixed_ship_armor_slot = {
					any_of = { ship_capital_armor }
					upgrade > current	
				}
				rear_1_custom_slot = {
					any_of = {
						ship_cannon_battery
					}
					upgrade > current
				}
				mid_1_custom_slot = {
					any_of = {
						ship_capital_armor
						ship_cannon_battery
					}
					upgrade > current
				}
				mid_2_custom_slot = {
					any_of = {
						ship_capital_armor
						ship_cannon_battery
					}
					upgrade > current
				}
				front_1_custom_slot = {
					any_of = {
						ship_cannon_battery
					}
					upgrade > current
				}
				
			}
		}

		allowed_modules = {
			ship_fire_control_system
			ship_engine_sail
			ship_engine_cruiser
			ship_cannon_battery
			ship_secondaries
			ship_armor_capital_hardwood_0 
			ship_armor_capital_hardwood_1
			ship_armor_capital_ironclad_0 
		}
		
	}
}


