
Allied_naval_role_ratios_historical = {
	allowed = {
		has_dlc = "Man the Guns"
		OR = {
			original_tag = USA
			original_tag = ENG
		}
	}
	enable = {
		always = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = role_ratio
		id = naval_carrier
		value = -15
	}
	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_light
		value = 40
	}
	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_heavy
		value = -15
	}
	ai_strategy = {
		type = unit_ratio
		id = capital_ship
		value = 5
	}
	ai_strategy = {
		type = unit_ratio
		id = carrier
		value = -5
	}
}
JAP_naval_role_ratios_historical = {
	allowed = {
		has_dlc = "Man the Guns"
		original_tag = JAP
	}
	enable = {
		always = yes
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = role_ratio
		id = naval_carrier
		value = -15
	}
	ai_strategy = {
		type = role_ratio
		id = naval_screen
		value = 70
	}

	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_light
		value = 30
	}

	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_heavy
		value = -15
	}
	ai_strategy = {
		type = unit_ratio
		id = capital_ship
		value = 10
	}
	ai_strategy = {
		type = unit_ratio
		id = carrier
		value = -5
	}
}
axis_naval_role_ratios_historical = {
	allowed = {
		has_dlc = "Man the Guns"
		original_tag = GER
	}
	enable = {
		any_country = {
			is_allied_ai = yes
			is_ai = no
		}
		OR = {
			is_historical_focus_on = yes
			NOT = {
				any_country = {
					is_neighbor_of = GER
					is_major = yes
					capital_scope = { is_on_continent = europe }
					OR = {
						has_war_with = GER
						NOT = { is_in_faction_with = GER }
					}
					has_capitulated = no
				}
			}
		}
		NOT = { has_idea = crossing_the_atlantic_idea }
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = role_ratio
		id = naval_capital_bc
		value = -100
	}

	ai_strategy = {
		type = role_ratio
		id = naval_carrier
		value = -100
	}

	ai_strategy = {
		type = role_ratio
		id = naval_screen
		value = -100
	}

	ai_strategy = {
		type = role_ratio
		id = naval_cruiser_light
		value = -100
	}

	ai_strategy = {
		type = role_ratio
		id = naval_submarine
		value = 400
	}
	ai_strategy = {
		type = role_ratio
		id = submarine
		value = 400
	}

	ai_strategy = {
		type = unit_ratio
		id = submarine
		value = 150
	}
	ai_strategy = {
		type = unit_ratio
		id = capital_ship
		value = -50
	}
	ai_strategy = {
		type = unit_ratio
		id = carrier
		value = -50
	}
	ai_strategy = {
		type = unit_ratio
		id = screen_ship
		value = -50
	}
}



mid_atlantic_should_be_disabled_if_possible = {
	enable = {
		capital_scope = { 
			OR = {
				is_on_continent = europe
				is_on_continent = north_america
			}
		}
		has_war = yes
		101 = {
			controller = {
				OR = {
					is_in_faction_with = ROOT
					ROOT = { has_military_access_to = PREV }
				}
			}
		}
		100 = {
			controller = {
				OR = {
					is_in_faction_with = ROOT
					ROOT = { has_military_access_to = PREV }
				}
			}
		}
		337 = {
			controller = {
				OR = {
					is_in_faction_with = ROOT
					ROOT = { has_military_access_to = PREV }
				}
			}
		}
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = naval_avoid_region
		id = 58
		value = 50
	}
	ai_strategy = {
		type = naval_avoid_region
		id = 56
		value = 40
	}
	ai_strategy = {
		type = naval_avoid_region
		id = 51
		value = 40
	}
	ai_strategy = {
		type = naval_avoid_region
		id = 49
		value = 40
	}
}

mid_atlantic_should_be_raided_if_possible = {
	enable = {
		capital_scope = { 
			OR = {
				is_on_continent = europe
				is_on_continent = north_america
			}
		}
		has_war = yes
		has_navy_size = {
			size > 39
		}
	}
	abort_when_not_enabled = yes

	ai_strategy = {
		type = naval_convoy_raid_region
		id = 58
		value = 50
	}
	ai_strategy = {
		type = naval_convoy_raid_region
		id = 56
		value = 40
	}
	ai_strategy = {
		type = naval_convoy_raid_region
		id = 51
		value = 40
	}
	ai_strategy = {
		type = naval_convoy_raid_region
		id = 49
		value = 40
	}
}