﻿MILITARY_FORMATIONS = {
	c:EGY ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_nile_basin
			name = Jaish_alMisr

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_BLUE_NILE
				count = 10
			}

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_BLUE_NILE
				count = 10
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_MIDDLE_EGYPT
				count = 10
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_MIDDLE_EGYPT
				count = 10
			}

			save_scope_as = nile_arm_egy
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_nile_basin
			name = Jaish_alSuria

			combat_unit = {
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_LOWER_EGYPT
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_mobile_artillery
				state_region = s:STATE_LOWER_EGYPT
				count = 10
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_LOWER_EGYPT
				count = 10
			}

			save_scope_as = syria_arm_egy
		}

		create_character = { # EGY, admiral
			is_general = yes
			first_name = Ahmad
			last_name = Pasha_Abu_Widan
			historical = yes
			culture = cu:french
			interest_group = ig_armed_forces
			ideology = ideology_royalist
			birth_date = 1798.1.22 # Complete guesswork, but was old enough to be colonial governor of Sudan in 1838
			hq = region_arabic
			commander_rank = commander_rank_2
			traits = {
				basic_offensive_planner
				cruel
				experienced_colonial_administrator
			}
			save_scope_as = ahmad_gen
		}

		scope:ahmad_gen = {
			transfer_to_formation = scope:nile_arm_egy
		}

		create_character = { # Joseph Anthelme Sève
			is_general = yes
			first_name = Soliman
			last_name = al-Faransawi
			historical = yes
			culture = cu:french
			religion = sunni
			age = 48
			hq = region_anatolia
			traits = {	
			}
			save_scope_as = soliman_gen
		}

		scope:soliman_gen = {
			transfer_to_formation = scope:syria_arm_egy
		}

		create_military_formation = {
			type = fleet
			hq_region = sr:region_arabic
			name = Bahriat_alKhidywyat_alMisria

			combat_unit = {
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_LOWER_EGYPT
				count = 20
			}
		}
	}

	c:TUN ?= {
		create_military_formation = {
			type = fleet
			hq_region = sr:region_north_africa
			name = Bahriat_alTuwnusia

			combat_unit = { # Husayniyya
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_TUNISIA
				count = 1
			}
		}
	}

	c:MAS ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_north_africa
			name = Jaish_alMohammadi

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

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

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_ALGIERS
				count = 2
			}

			combat_unit = {
				type = unit_type:combat_unit_type_mobile_artillery
				state_region = s:STATE_ALGIERS
				count = 1
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_ORAN
				count = 6
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_ALGIERS
				count = 4
			}
		}
	}
}
