﻿MILITARY_FORMATIONS = {
	c:CHI ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_north_china
			name = Plain_Yellow_Banner

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_SHANDONG
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_NORTHERN_ANHUI
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_JIANGSU
				count = 20
			}
			save_scope_as = plain_yellow_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Yunfei
			last_name = Ge_2
			historical = yes
			culture = cu:han
			interest_group = ig_armed_forces
			ideology = ideology_royalist
			birth_date = 1789.6.6 # exact date unknown
			traits = {
				brave
				stalwart_defender
			}
			save_scope_as = plain_yellow_gen
		}

		scope:plain_yellow_gen = {
			transfer_to_formation = scope:plain_yellow_banner
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_north_china
			name = Plain_White_Banner

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_NINGXIA
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_HENAN
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_XIAN
				count = 20
			}

			save_scope_as = plain_white_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Qishan
			last_name = Borjigin
			historical = yes
			culture = cu:mongol
			interest_group = ig_landowners
			ideology = ideology_royalist
			birth_date = 1786.1.18
			traits = {
				cautious
				basic_political_operator
			}
			save_scope_as = plain_white_gen
		}
		
		scope:plain_white_gen = {
			transfer_to_formation = scope:plain_white_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Buyantai
			last_name = Yanzha
			historical = yes
			culture = cu:manchu
			interest_group = ig_landowners
			ideology = ideology_royalist
			birth_date = 1791.6.10 # exact date unknown
			traits = {
				basic_colonial_administrator
				wrathful
			}
			save_scope_as = bordered_yellow_gen
		}
		scope:bordered_yellow_gen = {
			transfer_to_formation = scope:plain_white_banner
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_north_china
			name = Bordered_Blue_Banner


			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_SICHUAN
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_CHONGQING
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_WESTERN_HUBEI
				count = 20
			}

			save_scope_as = bordered_blue_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Delu
			last_name = Wang
			historical = yes
			culture = cu:han
			interest_group = ig_landowners
			ideology = ideology_royalist
			birth_date = 1772.6.1 # exact date unknown
			traits = {
				experienced_offensive_planner
				experienced_colonial_administrator
				meticulous
			}
			save_scope_as = bordered_blue_gen
		}
		
		scope:bordered_blue_gen = {
			transfer_to_formation = scope:bordered_blue_banner
		}

		create_military_formation = {
			type = army
			hq_region = sr:region_manchuria
			name = Plain_Red_Banner

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_JIANGXI
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_FUJIAN
				count = 20
			}

			combat_unit = {
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_SOUTHERN_ANHUI
				count = 20
			}

			save_scope_as = plain_red_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Yishan
			last_name = Aisin_Gioro
			historical = yes
			culture = cu:manchu
			interest_group = ig_landowners
			ideology = ideology_royalist
			birth_date = 1790.6.13
			traits = {
				reckless
				alcoholic
			}
			save_scope_as = plain_red_gen
		}
		
		scope:plain_red_gen = {
			transfer_to_formation = scope:plain_red_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Bingzhang
			last_name = Luo
			historical = yes
			culture = cu:han
			interest_group = ig_landowners
			ideology = ideology_reformer
			birth_date = 1793.1.9
			traits = {
				stalwart_defender
				wrathful
			}
			save_scope_as = bordered_white_gen
		}
		
		scope:bordered_white_gen = {
			transfer_to_formation = scope:plain_red_banner
		}

		create_character = { # CHI, general
			is_general = yes
			first_name = Guanwen
			last_name = Wanggiya
			historical = yes
			culture = cu:manchu
			interest_group = ig_landowners
			ideology = ideology_traditionalist
			birth_date = 1798.12.24 # exact date unknown
			traits = {
				traditionalist_commander
				meticulous
			}
			save_scope_as = bordered_red_gen
		}
		
		scope:bordered_red_gen = {
			transfer_to_formation = scope:bordered_blue_banner
		}

		create_character = {
			is_general = yes
			first_name = Fang
			last_name = Yang
			historical = yes
			age = 66
			culture = cu:han
			traits = {
				persistent
				cautious
			}
			save_scope_as = plain_blue_gen
		}
		
		scope:plain_blue_gen = {
			transfer_to_formation = scope:plain_white_banner
		}

		create_military_formation = {
			type = fleet
			hq_region = sr:region_north_china
			name = Bohai_Gulf_Fleet

			combat_unit = {
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_GUANGDONG
				count = 10
			}

			save_scope_as = bohai_gulf_fleet
		}

		create_character = {
			is_admiral = yes
			first_name = Tianpei
			last_name = Guan
			historical = yes
			age = 55
			culture = cu:han
			traits = {
				expert_naval_commander
				brave
			}
			save_scope_as = bohai_gulf_admiral
		}
		
		scope:bohai_gulf_admiral = {
			transfer_to_formation = scope:bohai_gulf_fleet
		}

		create_character = {
			is_admiral = yes
			first_name = Huacheng
			last_name = Chen
			historical = yes
			age = 60
			culture = cu:han
			traits = {
				experienced_naval_commander
				ambitious
			}
			save_scope_as = guangdong_admiral
		}
		
		scope:guangdong_admiral = {
			transfer_to_formation = scope:bohai_gulf_fleet
		}
	}

	c:DEI ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_indonesia
			name = Koninklijk_Nederlandsch_Indisch_Leger

			combat_unit = { # European Troops
				type = unit_type:combat_unit_type_line_infantry
				state_region = s:STATE_WEST_JAVA
				count = 10
			}

			combat_unit = { # European Troops
				type = unit_type:combat_unit_type_lancers
				state_region = s:STATE_WEST_JAVA
				count = 10
			}
		}

		create_military_formation = {
			type = fleet
			hq_region = sr:region_indonesia
			name = Koloniale_Marine
			combat_unit = { # Nothing the size of a frigate
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_EAST_JAVA
				count = 5
			}
		}
	}

	c:JAP ?= {
		create_military_formation = {
			type = army
			hq_region = sr:region_japan
			name = Samurai

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_KANSAI
				count = 10
			}

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_KANSAI
				count = 10
			}

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_CHUBU
				count = 10
			}

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_CHUBU
				count = 10
			}

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_KANTO
				count = 10
			}

			combat_unit = { 
				type = unit_type:combat_unit_type_irregular_infantry
				state_region = s:STATE_KANTO
				count = 10
			}

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

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

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

		create_military_formation = {
			type = fleet
			hq_region = sr:region_japan
			name = Yamato

			combat_unit = {
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_KANTO
				count = 10
			}

			combat_unit = {
				type = unit_type:combat_unit_type_frigate
				state_region = s:STATE_KANSAI
				count = 10
			}
		}
	}
}


