﻿MILITARY_FORMATIONS = {
	c:USA ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_atlantic_coast
			name = "United States Marine Corps" # TODO PRCAL-44441

			combat_unit = { # Roughly 1000 men
				type = unit_type:combat_unit_type_low_tier_marines
				state_region = s:STATE_VIRGINIA
				count = 1
			}
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_atlantic_coast
			name = Army_of_Observation

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_TENNESSEE
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_SOUTH_CAROLINA
				count = 1
			}
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_atlantic_coast
			name = Regular_Army

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_NEW_YORK
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_OHIO
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_KENTUCKY
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_PENNSYLVANIA
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_MASSACHUSETTS
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_NORTH_CAROLINA
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_VIRGINIA
				count = 1
			}
			save_scope_as = regular_army
		}

		create_character = {
			template = USA_edmund_p_gaines
			save_scope_as = gaines_gen
		}

		scope:gaines_gen = {
			transfer_to_formation = scope:regular_army
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_atlantic_coast
			name = Army_of_Florida

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_ALABAMA
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_dragoons
				state_region = s:STATE_GEORGIA
				count = 1
			}
		}

		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = Navy_Yard_Gosport
			ship = { # North Carolina
				type = ship_type:ship_type_ship_of_the_line
				count = 1
			}
			ship = { # Guerriere, Java
				type = ship_type:ship_type_frigate
				count = 2
			}
		}

		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = Navy_Yard_New_York
			ship = { # Franklin, Washington, Ohio
				type = ship_type:ship_type_ship_of_the_line
				state_region = s:STATE_NEW_YORK
				count = 3
			}
			ship = { # United States, Hudson
				type = ship_type:ship_type_frigate
				count = 2
			}
		}
		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = Navy_Yard_Boston
			ship = { # Columbus
				type = ship_type:ship_type_ship_of_the_line
				state_region = s:STATE_NEW_YORK
				count = 1
			}
			ship = { # Independence
				type = ship_type:ship_type_frigate
				count = 1
			}
		}
		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = Mediterranean_Squadron
			ship = { # Delaware
				type = ship_type:ship_type_ship_of_the_line
				state_region = s:STATE_NEW_YORK
				count = 1
			}
			ship = { # Constitution, Potomac
				type = ship_type:ship_type_frigate
				count = 2
			}
		}
		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = Pacific_Squadron
			ship = { # Brandywine
				type = ship_type:ship_type_frigate
				count = 1
			}
		}
		create_military_formation = {
			type = fleet
			hq_region = sr:region_atlantic_coast
			name = West_Indies_Squadron
			ship = { # Constellation
				type = ship_type:ship_type_frigate
				count = 1
			}
		}
	}

	c:TEX ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_great_plains
			name = Texian_Army # Texian Army / Army of the People / Revolutionary Army

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_TEXAS
				count = 4
			}

			combat_unit = {
				type = unit_type:combat_unit_type_dragoons
				state_region = s:STATE_TEXAS
				count = 1
			}
		}
	}

	c:MEX ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_great_plains
			name = Ejrcito_de_Operaciones

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_MEXICO
				count = 3
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_YUCATAN
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_hussars
				state_region = s:STATE_VERACRUZ
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_cannon_artillery
				state_region = s:STATE_GUERRERO
				count = 1
			}
			save_scope_as = operaciones_army
		}

		create_character = {
			template = MEX_antonio_lopez_de_santa_anna
			on_created = {
				set_variable = {
					name = is_santa_anna
				}
			}
			save_scope_as = antonio_gen
		}

		scope:antonio_gen = {
			transfer_to_formation = scope:operaciones_army
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_central_america
			name = Ejrcito_Mexicano

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_OAXACA
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_ZACATECAS
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_hussars
				state_region = s:STATE_OAXACA
				count = 1
			}
		}
	}
	c:HAI ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_central_america
			name = ArmeeIndigene

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_HAITI
				count = 3
			}

			combat_unit = { # 31st, 32nd and 33rd Dominican-manned regiments
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_SANTO_DOMINGO
				count = 3
			}

			combat_unit = { # Civil Guards
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_SANTO_DOMINGO
				count = 4
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_HAITI
				count = 14
			}

			combat_unit = {
				type = unit_type:combat_unit_type_dragoons
				state_region = s:STATE_HAITI
				count = 2
			}

			combat_unit = {
				type = unit_type:combat_unit_type_cannon_artillery
				state_region = s:STATE_HAITI
				count = 1
			}
		}
	}
	c:CUB ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_central_america
			name = MiliciasdeCuba

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_WESTERN_CUBA
				count = 5
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_EASTERN_CUBA
				count = 2
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_CENTRAL_CUBA
				count = 2
			}

			combat_unit = {
				type = unit_type:combat_unit_type_dragoons
				state_region = s:STATE_WESTERN_CUBA
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_cannon_artillery
				state_region = s:STATE_WESTERN_CUBA
				count = 1
			}
		}
	}
	c:PCO ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_central_america
			name = MiliciasDiciplinadas

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_PUERTO_RICO
				count = 6
			}

			combat_unit = {
				type = unit_type:combat_unit_type_dragoons
				state_region = s:STATE_PUERTO_RICO
				count = 1
			}
		}
	}
}
