country_decisions = {

	manchu_nation_1 = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = MCH }
			OR = { 
				tag = MJZ
				tag = MHX
				tag = MYR
			}
		}
		allow = {
			is_subject = no
			is_at_war = no
			
			owns_core_province = 730		#Girin
			owns_core_province = 1053		#Hinggan
			owns_core_province = 2554		#Huncun
		}
		effect = {
			inner_manchuria = {
				limit = {
					region = inner_manchuria
					NOT = { is_core = ROOT }
				}
				add_core = MCH
			}
			outer_manchuria = {
				limit = {
					NOT = { owned_by = ROOT }
					region = outer_manchuria
					NOT = { is_claim = ROOT }
				}
				add_claim = MCH
			}			
			
			add_prestige = 25
			change_tag = MCH
			MCH = {
				set_capital = 730 #Girin
			}
			if = {
				limit = {
					government = steppe_horde
				}
				change_government = despotic_monarchy
			}
			if = {
				limit = {
					NOT = { religion = confucianism }
				}
				change_religion = confucianism
			}
			if = {
				limit = {
					technology_group = nomad_group
				}
				change_technology_group = chinese
				change_unit_type = chinese
			}
#			culture_group_union = east_asian
			swap_free_idea_group = yes		#keep progress
		}
		ai_importance = 500		
	}

	form_manchu_dynasty = {
		major = yes
		potential = {
			tag = MCH
			normal_or_historical_nations = yes
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = QNG }
			NOT = { has_country_flag = manchu_dynasty_formed }

			OR = {
				ai = no
				AND = {
					ai = yes
					num_of_cities = 5
				}
			}
		}
		allow = {
		    is_tribal = no
			owns = 704		# Liaoxi
			owns = 723		# Xilin Gol
			owns = 726		# Liaodong
			owns = 1816		# Beijing
			is_at_war = no
			is_subject = no
		}
		effect = {
			change_tag = QNG
			chinese_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_claim = QNG
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 3650
			}
			set_capital = 1816 # Beijing
			1816 = { change_culture = ROOT }
			add_prestige = 10
			set_country_flag = manchu_dynasty_formed
		}
		ai_will_do = {
			factor = 1
		}
	}

	create_green_standard_army = {
		potential = {
			OR = {
				tag = MCH
				tag = QNG
			}
			NOT = { has_country_flag = green_standard_army }
		}
		allow = {
			is_subject = no
			is_monarch_leader = yes
			has_idea = the_green_standard_army
			owns = 725		# Hinggan
			war_with = MNG
			MNG = {
				OR = {
					NOT = { stability = 0 }
					NOT = { war_score = -10 }
				}
			}
		}
		effect = {
			set_country_flag = green_standard_army
			add_prestige = 10
			reverse_add_opinion = { who = MNG modifier = opinion_green_standard }
			MNG = { add_manpower = -8 }
			infantry = 725
			infantry = 725
			infantry = 725
			infantry = 725
			cavalry = 725
			cavalry = 725
			cavalry = 725
			cavalry = 725
		}
		ai_will_do = {
			factor = 1
		}
	}

	create_eight_banners = {
		potential = {
			OR = {
				tag = MCH
				tag = QNG
			}
			NOT = { has_country_flag = eight_banners }
		}
		allow = {
			is_subject = no
			is_monarch_leader = yes
			has_idea = manchu_eight_banners
			stability = 1
		}
		effect = {
			set_country_flag = eight_banners
			infantry = capital
			infantry = capital
			infantry = capital
			infantry = capital
			cavalry = capital
			cavalry = capital
			cavalry = capital
			cavalry = capital
		}
		ai_will_do = {
			factor = 1
		}
	}

} #End of country decisions
