pte_take_over_fleet = {
	category = 6
	power_projection = no
	power_cost_base = 0
	prestige_base = 0.5
	ae_base = 0.145
	warscore_cost = {
		all_provinces = 0.0
		no_provinces = 140.0
		owner_keeps = 0.0
		conquered = 0.0
		returned_core = 0.0
		released_nation = 0.0
		cancelled_subject = 0.0
		concede_colonial_region = 0.0
	}
	warscore_cap = 100
	requires_demand_independence = no
	is_make_subject = no
	requires_is_allowed = yes

	is_visible = {
		has_dlc = "Emperor"
	}
	is_allowed = {
		OR = {
			pte_is_hegemon_of_type = { type = naval_hegemon }
			FROM = { pte_is_hegemon_of_type = { type = naval_hegemon } }
		}
		if = {
			limit = {
				pte_is_hegemon_of_type = { type = naval_hegemon }
			}
			FROM = {
				NOT = { navy_size = ROOT }
			}
		}
		FROM = {
			OR = {
				num_of_heavy_ship = 1
				num_of_light_ship = 1
				num_of_galley = 1
			}
		}
	}
	effect = {
		# Land Provinces:
		every_province = {
			limit = {
				has_port = yes
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		# Sea Regions:
		west_american_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		east_american_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		north_european_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		south_european_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		west_african_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		east_african_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		indian_pacific_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
		north_pacific_sea_superregion = {
			limit = {
				OR = {
					heavy_ships_in_province = FROM
					light_ships_in_province = FROM
					galleys_in_province = FROM
				}
			}
			while = {
				limit = {
					heavy_ships_in_province = FROM
				}
				kill_units = { who = FROM type = heavy_ship amount = 1 }
				heavy_ship = ROOT
			}
			while = {
				limit = {
					light_ships_in_province = FROM
				}
				kill_units = { who = FROM type = light_ship amount = 1 }
				light_ship = ROOT
			}
			while = {
				limit = {
					galleys_in_province = FROM
				}
				kill_units = { who = FROM type = galley amount = 1 }
				galley = ROOT
			}
		}
	}
	ai_weight = {
		export_to_variable = {
			variable_name = ai_value
			value = 100
		}
		limit = {
			NOT = { navy_size_percentage = 1.5 }
			FROM = {
				variable_arithmetic_trigger = {
					export_to_variable = {
						which = their_num_of_heavy_ships
						value = trigger_value:num_of_heavy_ship
					}
					export_to_variable = {
						which = their_num_of_light_ships
						value = trigger_value:num_of_light_ship
					}
					export_to_variable = {
						which = their_num_of_galleys
						value = trigger_value:num_of_galley
					}
					change_variable = { which = their_num_of_heavy_ships which = their_num_of_light_ships }
					change_variable = { which = their_num_of_heavy_ships which = their_num_of_galleys }
					check_variable = { which = their_num_of_heavy_ships value = 50 }
				}
			}
		}
	}
}