add_namespace = MONCLN

#Japanese-controlled Mongolia
country_event = {
	id = MONCLN.1
	title = MONCLN.1.t
	desc = MONCLN.1.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	is_triggered_only = yes
	
	trigger = {
		tag = JAP
		NOR = {
			MON = { is_ai = yes }
			MEN = { is_ai = yes }
		}
		MEN = { is_puppet_of = JAP }
		OR = {
			MON = { is_puppet_of = JAP }
			330 = { is_controlled_by = JAP }
			330 = {
				controller = { is_puppet_of = JAP }
			}
		}
	}
	mean_time_to_happen = {
		days = 7
	}
	option = {
		name = MONCLN.1.a
		hidden_effect = {
			MEN = {
				set_cosmetic_tag = MEN_MON
				set_capital = 330
				annex_country = { target = MON transfer_troops = yes }
				add_country_leader_trait = cooperative_leader
				add_state_core = 330
				add_state_core = 621
				add_state_core = 616
				add_state_core = 618
			}
			if = {
				limit = {
					OR = {
						330 = { is_controlled_by = JAP }
						330 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 330 }
			}
			if = {
				limit = {
					OR = {
						611 = { is_controlled_by = JAP }
						611 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 611 }
			}
			if = {
				limit = {
					OR = {
						612 = { is_controlled_by = JAP }
						612 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 612 }
			}
			if = {
				limit = {
					OR = {
						621 = { is_controlled_by = JAP }
						621 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 621 }
			}
			if = {
				limit = {
					OR = {
						616 = { is_controlled_by = JAP }
						616 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 616 }
			}
			if = {
				limit = {
					OR = {
						618 = { is_controlled_by = JAP }
						618 = { controller = { is_puppet_of = JAP } }
					}
				}
				MEN = { transfer_state = 618 }
			}
			set_province_name = { id = 4801 name = "Urga" }
		}
	}
	option = {
		name = MONCLN.1.b
	}
}
#Fate of Choibalsan
country_event = {
	id = MONCLN.2
	title = MONCLN.2.t
	desc = MONCLN.2.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	
	trigger = {
		tag = MON
		NOT = { 
			has_government = communism 
			has_country_flag = MAN_split
		}
	}
	mean_time_to_happen = {
		days = 7
	}
	option = {
		name = MONCLN.2.a
		remove_unit_leader = 821895
		add_popularity = { ideology = communism popularity = -0.1 }
		add_stability = 0.05
		army_experience = -5
		set_country_flag = MON_communists_purged
	}
	option = {
		name = MONCLN.2.b
	}
}
#Bogd Khan and new government
country_event = {
	id = MONCLN.3
	title = MONCLN.3.t
	desc = MONCLN.3.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	
	trigger = {
		tag = MON
		has_country_flag = bogd_khan
		OR = { 
			AND = {
				has_government = democratic 
				NOT = { has_country_flag = constitutinal_monarchy }
			}
			AND = {
				has_government = neutrality
				has_country_flag = whie_mongolia
			}
		}
	}
	mean_time_to_happen = {
		days = 60
	}
	option = {
		name = MONCLN.3.a
		trigger = { has_government = democratic }
		add_political_power = 50
		clr_country_flag = bogd_khan
	}
	option = {
		name = MONCLN.3.b
		trigger = { has_government = democratic }
		add_ideas = MON_bogd_khan
		set_cosmetic_tag = MON_const
		set_country_flag = constitutinal_monarchy
	}
	option = {
		name = MONCLN.3.c
		trigger = { has_government = neutrality }
		add_political_power = 50
		clr_country_flag = bogd_khan
	}
	option = {
		name = MONCLN.3.dd
		trigger = { has_government = neutrality }
		add_ideas = MON_bogd_khan
	}
}
#Puppet Ma got annexed by PRC
country_event = {
	id = MONCLN.4
	title = MONCLN.4.t
	desc = MONCLN.4.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	
	trigger = {
		tag = PRC
		XSM = {
			is_ai = yes
			has_government = communism
			is_puppet_of = PRC
			has_war = no
		}
	}
	mean_time_to_happen = {
		days = 150
	}
	option = {
		name = MONCLN.4.a
		annex_country = { target = XSM transfer_troops = yes }
		create_corps_commander = {
			name = "Ma Hongbin"
			portrait_path = "gfx/leaders/MON/Portrait_Ma_Hongbin.dds"
			traits = {
			}
			skill = 2
		}
	}
}
#Марионеточный Мэнцзян присоединяется к Монголии
country_event = {
	id = MONCLN.5
	title = MONCLN.5.t
	desc = MONCLN.5.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	
	trigger = {
		tag = MON
		MEN = {
			is_ai = yes
			is_puppet_of = MON
			has_war = no
		}
	}
	mean_time_to_happen = {
		days = 150
	}
	option = {
		name = MONCLN.5.a
		MEN = {
			every_unit_leader = {
				set_nationality = MON
			}
		}
		annex_country = { target = MEN transfer_troops = yes }
	}
}

#Монголия может присоединиться вместе с Тувой
country_event = {
	id = MONCLN.6
	title = MONCLN.6.t
	desc = MONCLN.6.d
	picture = GFX_report_event_japan_europe_pact
	fire_only_once = yes
	
	trigger = {
		tag = MON
		has_completed_focus = MON_SOV_focus
		is_ai = yes
		SOV = { has_completed_focus = SOV_annex_tannu_tuva }
		TAN = { exists = no }
	}
	option = {
		name = MONCLN.6.a
		ai_chance = { 
			factor = 1
		}
		every_unit_leader = {
			set_nationality = SOV
		}
		SOV = { annex_country = { target = MON transfer_troops = yes } }
		any_state = {
			limit = {
				is_core_of = MON
			}
			add_core_of = SOV
		}
	}
	option = {
		name = MONCLN.6.b
		ai_chance = { 
			factor = 5
		}
		add_political_power = 20
	}
}

#Чойбалсан - марионетка СССР
country_event = {
	id = MONCLN.7
	fire_only_once = yes
	hidden = yes

	trigger = {
		tag = MON
		is_puppet_of = SOV
		SOV = { has_government = communism }
		NOT = { has_country_flag = MON_communists_purged }
	}

	immediate = {
		create_country_leader = {
			name = "Khorloogiin Choibalsan"
			desc = "POLITICS_KHORLOOGIIN_CHOIBALSAN_DESC"
			picture = "gfx/leaders/MON/Portrait_Choibalsan.dds"
			expire = "1952.1.1"
			ideology = stalinism
			traits = {
				dictator
			}
		}
	}
}
