###########################
#Korea Events
###########################
#By ZimbabweSaltCo
###########################

add_namespace = korea
add_namespace = kor

################
#THE NEW NATION#
################

country_event = { #We Won!
	id = korea.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.1"}
	title = korea.1.t
	desc = korea.1.d
	is_triggered_only = yes
	picture = GFX_report_event_palace
	option = {
		name = korea.1.a
		hidden_effect = {
			remove_ideas = KOR_national_revolt
			remove_ideas = KOR_anti_japanese_light
			remove_ideas = KOR_anti_japanese_extreme
			remove_ideas = KOR_emergency_factory_conversion_light
			remove_ideas = KOR_emergency_factory_conversion_extreme
			remove_ideas = KOR_conscription_debacle_light
			remove_ideas = KOR_conscription_debacle_extreme
			remove_ideas = KOR_national_revolt2
			set_country_flag = KOR_war_is_hell
		}
		add_ideas = KOR_industrial_legacy
		add_ideas = KOR_political_legacy
		add_ideas = KOR_military_legacy
		add_ideas = KOR_refugee_crisis
		add_ideas = KOR_young_army
	}
}

country_event = { #The Provisional Government
	id = korea.2
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.2"}
	title = korea.2.t
	desc = korea.2.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.2.a
		add_political_power = 20
		hidden_effect = {
			set_popularities = {
				totalist = 2
				radical_socialist = 6
				syndicalist = 3
				social_democrat = 12
				social_liberal = 9
				market_liberal = 45
				social_conservative = 10
				authoritarian_democrat = 8
				paternal_autocrat = 2
				national_populist = 3
			}
		}
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = no
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		
		hidden_effect = {
			add_ideas = {
				KOR_Kim_Kyu_sik_hog_mli
				KOR_Hong_Jin_for_mli
				KOR_Yang_Gi_tak_eco_sli
				KOR_An_Chang_ho_sec_sde
			}
		}
		set_party_name = { 
			ideology = authoritarian_democrat
			long_name = KOR_authoritarian_democrat_party_long
			name = KOR_authoritarian_democrat_party
		}
		drop_cosmetic_tag = yes
		if = {
			limit = { CHI = { has_unit_leader = 5059 } }
			random_unit_leader = {
				limit = { has_id = 5059 }
				unit_leader_event = CHI.endgame.041
				set_nationality = KOR
			}
		}
		else = {
			XXA = {
				random_unit_leader = {
					limit = { has_id = 5059 }
					unit_leader_event = CHI.endgame.041
					set_nationality = KOR
				}
			}
		}
	}
}

country_event = { #The State Of Korea
	id = korea.3
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.3"}
	title = korea.3.t
	desc = korea.3.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanroad
	option = {
		name = korea.3.a
		add_stability = -0.02
		add_political_power = -25
	}
}

country_event = { #The Occupation
	id = korea.4
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.4"}
	title = korea.4.t
	desc = korea.4.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreanshrine
	option = {
		name = korea.4.a
		add_stability = 0.05
		hidden_effect = {
			set_popularities = {
				totalist = 6
				radical_socialist = 10
				syndicalist = 3
				social_democrat = 8
				social_liberal = 6
				market_liberal = 20
				social_conservative = 8
				authoritarian_democrat = 10
				paternal_autocrat = 29
				national_populist = 0
			}
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		hidden_effect = {
			set_country_flag = military_victory
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		hidden_effect = {
			add_ideas = {
				KOR_HRH_Yi_Gang_hog_ade
				KOR_To_Yong_Chang_for_sco
				KOR_Rheem_Eun_Soo_eco_sco
				KOR_Yong_Tae_Pyon_sec_sco
			}
		}
	}
}

country_event = { #The Revolution Reaches Korea
	id = korea.5
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.5"}
	title = korea.5.t
	desc = korea.5.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreananger
	option = {
		name = korea.6.a
		hidden_effect = {
			set_popularities = {
				totalist = 25
				radical_socialist = 25
				syndicalist = 25
				social_democrat = 20
				social_liberal = 5
				market_liberal = 0
				social_conservative = 0
				authoritarian_democrat = 0
				paternal_autocrat = 0
				national_populist = 0
			}
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		hidden_effect = {
			add_ideas = {
				KOR_Park_Hyong_Yong_hog_rso
				KOR_Kim_Kyu_joon_for_rso
				KOR_Yi_Tong_whi_eco_rso
				KOR_Nam_Suk_Lee_sec_rso
			}
		}
	}
}

#####################
#THE MONARCHY Part I#
#####################

###The Royal Question

country_event = { #The Royal Debate
	id = korea.6
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.6"}
	title = korea.6.t
	desc = korea.6.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreanroad
	option = {
		name = korea.6.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_SEMI_KING
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_KING
					}
				}
			}
		}
		add_political_power = 50
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.7
					days = 5
				}
			}
		}
		custom_effect_tooltip = KOR_angry_monarchists
	}
	option = {
		name = korea.6.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_REPUBLIC
				}
			}
		}
		add_political_power = 20
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.10
					days = 2
				}
			}
		}
		custom_effect_tooltip = KOR_angry_liberals
	}
}

country_event = { #The Monarchists Complain
	id = korea.7
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.7"}
	title = korea.7.t
	desc = korea.7.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.7.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUNTA
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		add_political_power = 10
		hidden_effect = {
			set_country_flag = the_republic_survives
		}
	}
	option = {
		name = korea.7.b
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_REPUBLIC
				}
			}
		}
		add_political_power = -20
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.8
					days = 2
				}
			}
		}
	}
}

country_event = { #Strange Events
	id = korea.8
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.8"}
	title = korea.8.t
	desc = korea.8.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanroad
	option = {
		name = korea.8.a
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.9
					days = 5
				}
			}
		}
	}
}

country_event = { #The Power Struggle
	id = korea.9
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.9"}
	title = korea.9.t
	desc = korea.9.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.9.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		KOR = {
			country_event = {
				id = korea.15
				days = 2
			}
		}
	}
	option = {
		name = korea.9.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUNTA
					}
				}
			}
		}
		KOR = {
			country_event = {
				id = korea.16
				days = 2
			}
		}
	}
}

######################
#THE MONARCHY Part II#
######################

country_event = { #Monarchists Enter The Assembley
	id = korea.10
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.10"}
	title = korea.10.t
	desc = korea.10.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.10.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_KING
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUNTA
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		add_stability = 0.05
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		set_cosmetic_tag = KOR_KING
		hidden_effect = {
			set_country_flag = the_constitutionalists_win
		}
		add_popularity = {
			ideology = social_conservative popularity = 0.20
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		add_ideas = {
			KOR_Chang_Myon_hog_sco
			KOR_Chang_Myon_for_sco
			KOR_Han_Song_Paek_eco_sco
			KOR_Cho_Man_Sik_sec_sco
		}
	}
	option = {
		name = korea.10.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_SEMI_KING
				}
			}
		}
		add_political_power = -20
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.11
					days = 2
				}
			}
		}
	}
}

country_event = { #Massacre In the Assembley
	id = korea.11
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.11"}
	title = korea.11.t
	desc = korea.11.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantroops
	option = {
		name = korea.11.a
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.12
					days = 2
				}
			}
		}
	}
}

country_event = { #Monarchist Coup
	id = korea.12
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.12"}
	title = korea.12.t
	desc = korea.12.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantroops
	option = {
		name = korea.12.a
		ai_chance = {
			factor = 65
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUNTA
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		add_stability = -0.10
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		hidden_effect = {
			set_country_flag = the_absolutists_win
		}
		add_popularity = {
			ideology = authoritarian_democrat popularity = 0.20
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		set_cosmetic_tag = KOR_KING
		add_ideas = {
			KOR_HRH_Yi_Gang_hog_ade
			KOR_Kim_Gyu_Sik_for_sco
			KOR_Shan_Sang_Ma_eco_sco
			KOR_Shin_Sung_Mo_sec_sco
		}
	}
	option = {
		name = korea.12.b
		ai_chance = {
			factor = 35
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_KING
				}
			}
		}
		add_political_power = 20
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.13
					days = 5
				}
			}
		}
		hidden_effect = {
			set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
			}
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
	}
}

country_event = { #Military Counter Coup
	id = korea.13
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.13"}
	title = korea.13.t
	desc = korea.13.d
	is_triggered_only = yes
	picture = GFX_report_event_palace
	option = {
		name = korea.13.a
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUNTA
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		add_stability = 0.05
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = no
		}
		hidden_effect = {
				add_ideas = {
					KOR_Kim_Kyu_sik_hog_mli
					KOR_Hong_Jin_for_mli
					KOR_Yang_Gi_tak_eco_sli
					KOR_An_Chang_ho_sec_sde
			}
		}
		hidden_effect = {
			set_country_flag = the_republic_survives
		}
	}
	option = {
		name = korea.13.b
		ai_chance = {
			factor = 70
		}
		add_political_power = -20
		hidden_effect = {
			KOR = {
				country_event = {
					id = korea.14
					days = 2
				}
			}
		}
	}
}

country_event = { #Anarchists Attempt A Coup
	id = korea.14
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.14"}
	title = korea.14.t
	desc = korea.14.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.14.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_REVOLUTION
					}
					has_game_rule = {
						rule = KOR_path
						option = KOR_PATH_JUCHE
					}
				}
			}
		}
		KOR = {
			country_event = {
				id = korea.15
				days = 2
			}
		}
	}
	option = {
		name = korea.14.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_JUNTA
				}
			}
		}
		KOR = {
			country_event = {
				id = korea.16
				days = 2
			}
		}
	}
}

country_event = { #Military Victory
	id = korea.15
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.15"}
	title = korea.15.t
	desc = korea.15.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantroops
	option = {
		name = korea.15.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		hidden_effect = {
			set_country_flag = military_victory
		}
		hidden_effect = {
			set_popularities = {
				totalist = 6
				radical_socialist = 10
				syndicalist = 3
				social_democrat = 8
				social_liberal = 6
				market_liberal = 20
				social_conservative = 8
				authoritarian_democrat = 10 
				paternal_autocrat = 29
				national_populist = 0
			}
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		hidden_effect = {
			add_ideas = {
				KOR_HRH_Yi_Gang_hog_ade
				KOR_To_Yong_Chang_for_sco
				KOR_Rheem_Eun_Soo_eco_sco
				KOR_Yong_Tae_Pyon_sec_sco
			}
		}
	}
}

country_event = { #Anarchist Victory
	id = korea.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.16"}
	title = korea.16.t
	desc = korea.16.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.16.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_JUCHE
				}
			}
		}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		country_event = { id = kor.5 days = 3 } #Who lead Lefist Korea?
		hidden_effect = {
			set_country_flag = socialism_at_home
		}
		hidden_effect = {
			set_popularities = {
				totalist = 25
				radical_socialist = 25
				syndicalist = 25
				social_democrat = 20
				social_liberal = 5
				market_liberal = 0
				social_conservative = 0
				authoritarian_democrat = 0
				paternal_autocrat = 0
				national_populist = 0
			}
			create_country_leader = {
				name = "Pak Hon-yong"
				desc = "KOR_pak_hon_yong_leader_desc"
				picture = "gfx/leaders/KOR/Portrait_KOR_Pak_Hon_yong.png"
				ideology = authcom_subtype
				traits = {}
			}
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		hidden_effect = {
			add_ideas = {
				KOR_Park_Hyong_Yong_hog_rso
				KOR_Kim_Kyu_joon_for_rso
				KOR_Yi_Tong_whi_eco_rso
				KOR_Nam_Suk_Lee_sec_rso
			}
		}
		hidden_effect = {
			if = {
				limit = {
					KOR = { is_subject = yes }
				}
				overlord = {
					set_autonomy = {
						target = KOR
						autonomous_state = autonomy_free
					}
				}
			}
			if = {
				limit = {
					KOR = { is_in_faction = yes }
				}
				overlord = {
					remove_from_faction = KOR
				}
			}
			KOR = {
				separate_peace_all_wars = yes
			}
		}
	}
	option = {
		name = korea.16.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KOR_path
					option = KOR_PATH_REVOLUTION
				}
			}
		}
		set_politics = {
			ruling_party = totalist
			elections_allowed = no
		}
		hidden_effect = {
			set_country_flag = socialism_at_home
		}
		hidden_effect = {
			set_popularities = {
				totalist = 25
				radical_socialist = 25
				syndicalist = 25
				social_democrat = 20
				social_liberal = 5
				market_liberal = 0
				social_conservative = 0
				authoritarian_democrat = 0
				paternal_autocrat = 0
				national_populist = 0
			}
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = foreign_minister
			remove_ideas_with_trait = economy_minister
			remove_ideas_with_trait = security_minister
		}
		hidden_effect = {
			add_ideas = {
				KOR_Park_Hyong_Yong_hog_rso
				KOR_Kim_Kyu_joon_for_rso
				KOR_Yi_Tong_whi_eco_rso
				KOR_Nam_Suk_Lee_sec_rso
			}
		}
		hidden_effect = {
			if = {
				limit = {
					KOR = { is_subject = yes }
				}
				overlord = {
					set_autonomy = {
						target = KOR
						autonomous_state = autonomy_free
					}
				}
			}
			if = {
				limit = {
					KOR = { is_in_faction = yes }
				}
				overlord = {
					remove_from_faction = KOR
				}
			}
			KOR = {
				separate_peace_all_wars = yes
			}
		}
	}
}

######################
#POLITICAL OPENININGS#
######################

country_event = { #The Military Government
	id = korea.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.17"}
	title = korea.17.t
	desc = korea.17.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.17.a
		add_ideas = KOR_anarchist_conspiracy
		custom_effect_tooltip = KOR_leftist_conspiracy
	}
}

country_event = { #The Absolute Monarch
	id = korea.18
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.18"}
	title = korea.18.t
	desc = korea.18.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.18.a
		add_political_power = -20
	}
}

country_event = { #The Constitutional Monarch
	id = korea.19
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.19"}
	title = korea.19.t
	desc = korea.19.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.19.a
		add_political_power = 20
	}
}

country_event = { #The Republic
	id = korea.20
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.20"}
	title = korea.20.t
	desc = korea.20.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.20.a
		add_political_power = 50
	}
}

################
#Military Stuff#
################

country_event = { #The Red Scare
	id = korea.21
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.21"}
	title = korea.21.t
	desc = korea.21.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_seoul
	option = {
		name = korea.21.a
	}
}

country_event = { #Dealing with the Liberals
	id = korea.22
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.22"}
	title = korea.22.t
	desc = korea.22.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_university
	option = {
		name = korea.22.a
		add_stability = -0.01
		ai_chance = {
			factor = 40
		}
	}
	option = {
		name = korea.22.b
		ai_chance = {
			factor = 60
		}
		add_political_power = -20
		hidden_effect = {
			set_country_flag = secret_police_established
		}
	}
}

###############
#Privy Council#
###############

country_event = { #The Royal Guard
	id = korea.23
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.23"}
	title = korea.23.t
	desc = korea.23.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.23.a
		ai_chance = {
			factor = 60
		}
		add_political_power = 10
		add_ideas = KOR_royal_guard_light
		custom_effect_tooltip = KOR_royal_guard_light_tt
	}
	option = {
		name = korea.23.b
		ai_chance = {
			factor = 40
		}
		add_ideas = KOR_royal_guard_extreme
		add_political_power = -10
		custom_effect_tooltip = KOR_royal_guard_extreme_tt
	}
}

################
#Foreign Policy#
################

country_event = { #The Seoul Convention
	id = korea.24
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.24"}
	title = korea.24.t
	desc = korea.24.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.24.a
		add_political_power = 50
	}
}

country_event = { #Fengtian Cooperation
	id = korea.25
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.25"}
	title = korea.25.t
	desc = korea.25.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.25.a
		527 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		1347 = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		
		add_political_power = 20
	}
}

country_event = { #Transamur Recognition
	id = korea.26
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.26"}
	title = korea.26.t
	desc = korea.26.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_palace
	option = {
		name = korea.26.a
		add_political_power = 50
	}
}

##################
#Economic Matters#
##################

country_event = { #Union Question
	id = korea.27
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.27"}
	title = korea.27.t
	desc = korea.27.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreantown
	option = {
		name = korea.27.a
		ai_chance = {
			factor = 60
		}
		add_ideas = KOR_unions_allowed
	}
	option = {
		name = korea.27.b
		ai_chance = {
			factor = 40
		}
		add_ideas = KOR_unions_banned
	}
}

country_event = { #Japanese Settlers
	id = korea.28
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.28"}
	title = korea.28.t
	desc = korea.28.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreanshrine
	option = {
		name = korea.28.a
		ai_chance = {
			factor = 50
		}
		add_manpower = -10000
		add_timed_idea = {
			idea = KOR_japanese_expelled
			days = 150
		}
		reverse_add_opinion_modifier = {
			target = JAP
			modifier = expelled_japs
		}
		JAP = {
			country_event = {
				id = japfor.111
				days = 2
			}
		}
	}
	option = {
		name = korea.28.b
		ai_chance = {
			factor = 50
		}	
		add_timed_idea = {
			idea = KOR_japanese_integrated
			days = 150
		}
		reverse_add_opinion_modifier = {
			target = JAP
			modifier = NOT_expell_japs
		}
	}
}

country_event = { #Japanese Settlers Expelled
	id = korea.29
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.29"}
	title = korea.29.t
	desc = korea.29.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_seoul
	option = {
		name = korea.29.a
		ai_chance = {
			factor = 50
		}
		add_manpower = -9894
		add_stability = -0.02
		add_timed_idea = {
			idea = KOR_japanese_expelled
			days = 150
		}
		reverse_add_opinion_modifier = {
			target = JAP
			modifier = expelled_japs
		}
		JAP = {
			country_event = {
				id = japfor.111
				days = 2
			}
		}
	}
}

#####################
#Naval and Air Stuff#
#####################

country_event = { #Destroyer Building
	id = korea.30
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.30"}
	title = korea.30.t
	desc = korea.30.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_coast
	option = {
		name = korea.30.a
		hidden_effect = {
			if = {
				limit = {
					NOT = {
							has_tech = early_destroyer
					}
				}
				set_technology = {
					early_ship_hull_light = 1
				}
			}
		}
		hidden_effect = {
			load_oob = "KOR_destroyers"
		}
		custom_effect_tooltip = KOR_korean_destroyers
		add_political_power = -40
	}
}

country_event = { #Buying a flagship
	id = korea.31
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.31"}
	title = korea.31.t
	desc = korea.31.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_coast
	option = {
		name = korea.31.a
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						has_tech = basic_ship_hull_cruiser
					}
				}
				set_technology = {
					basic_ship_hull_cruiser = 1
				}
			}
		}
		hidden_effect = {
			load_oob = "KOR_flagship"
		}
		custom_effect_tooltip = KOR_korean_flagship
		add_political_power = -40
	}
}

#####################
#The National Revolt#
#####################

country_event = { #Anti-Japanese Campaign
	id = korea.32
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.32"}
	title = korea.32.t
	desc = korea.32.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_seoul
	option = {
		name = korea.32.a
		ai_chance = {
			factor = 10
		}
		
		hidden_effect = {
			add_stability = 0.05
		}
		
		custom_effect_tooltip = KOR_no_propaganda
	}
	option = {
		name = korea.32.b
		ai_chance = {
			factor = 70
		}
		hidden_effect = {
			add_ideas = KOR_anti_japanese_light
		}
		custom_effect_tooltip = KOR_some_propaganda
	}
	option = {
		name = korea.32.c
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			add_ideas = KOR_anti_japanese_extreme
			set_country_flag = KOR_high_propaganda
			KOR = {
				country_event = {
					id = korea.35
					days = 15
				}
			}
		}
		custom_effect_tooltip = KOR_high_propaganda
	}
}

country_event = { #Factory Conversion
	id = korea.33
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.33"}
	title = korea.33.t
	desc = korea.33.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_department
	option = {
		name = korea.33.a
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			525 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		custom_effect_tooltip = KOR_low_conversion
	}
	option = {
		name = korea.33.b
		ai_chance = {
			factor = 70
		}
		hidden_effect = {
			add_ideas = KOR_emergency_factory_conversion_light
			525 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			1345 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		
		custom_effect_tooltip = KOR_medium_conversion
	}
	option = {
		name = korea.33.c
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			add_ideas = KOR_emergency_factory_conversion_extreme
			525 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			1345 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			KOR = {
				country_event = {
					id = korea.40
					days = 30
				}
			}
			set_country_flag = KOR_high_conversion
		}
		custom_effect_tooltip = KOR_high_conversion
	}
}

country_event = { #Conscription Debacle
	id = korea.34
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.34"}
	title = korea.34.t
	desc = korea.34.d
	is_triggered_only = yes #Fired by Focus Tree
	picture = GFX_report_event_koreantroops
	option = {
		name = korea.34.a
		ai_chance = {
			factor = 40
		}
		hidden_effect = {
			add_manpower = 40000
			add_ideas = extensive_conscription
		}
		custom_effect_tooltip = KOR_low_conscription
	}
	option = {
		name = korea.34.b
		ai_chance = {
			factor = 40
		}
		hidden_effect = {
			add_ideas = KOR_conscription_debacle_light
			add_manpower = 60000
			add_ideas = service_by_requirement
		}
		
		custom_effect_tooltip = KOR_medium_conversion
	}
	option = {
		name = korea.34.c
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			add_ideas = KOR_conscription_debacle_extreme
			add_manpower = 80000
			add_ideas = all_adults_serve
			KOR = {
				country_event = {
					id = korea.
					days = 30
				}
			}
			set_country_flag = KOR_high_conscription
		}
		custom_effect_tooltip = KOR_high_conversion
	}
}

country_event = { #The Hospital of Death
	id = korea.35
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.35"}
	title = korea.35.t
	desc = korea.35.d
	is_triggered_only = yes
	picture = GFX_report_event_department
	option = {
		name = korea.35.a
		ai_chance = {
			factor = 50
		}
		hidden_effect = {
			random_list = {
				50 = {
					country_event = korea.36
				}
				30 = {
					country_event = korea.37
					}
				20 = {
					country_event = korea.38
				}
			}
		}
	}
	option = {
		name = korea.35.b
		ai_chance = {
			factor = 50
		}
		hidden_effect = {
			random_list = {
				80 = {
					country_event = korea.39
				}
				20 = {
					custom_effect_tooltip = KOR_nothing_happens
				}
			}
		}
	}
}

country_event = { #Death In the Air
	id = korea.36
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.36"}
	title = korea.36.t
	desc = korea.36.d
	is_triggered_only = yes
	picture = GFX_report_event_department
	option = {
		name = korea.36.a
		add_political_power = 50
		add_stability = 0.05
	}
}

country_event = { #Too Late
	id = korea.37
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.37"}
	title = korea.37.t
	desc = korea.37.d
	is_triggered_only = yes
	picture = GFX_report_event_department
	option = {
		name = korea.37.a
		add_political_power = -10
		add_stability = -0.02
	}
}

country_event = { #A Hoax
	id = korea.38
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.38"}
	title = korea.38.t
	desc = korea.38.d
	is_triggered_only = yes
	picture = GFX_report_event_department
	option = {
		name = korea.38.a
		add_political_power = -100
		add_stability = -0.20
		add_manpower = -500
	}
}

country_event = { #Japanese Discovery
	id = korea.39
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.39"}
	title = korea.39.t
	desc = korea.39.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanshrine
	option = {
		name = korea.39.a
		add_political_power = -200
		add_stability = -0.50
	}
}

country_event = { #Protests At the Factories
	id = korea.40
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.40"}
	title = korea.40.t
	desc = korea.40.d
	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = {
		name = korea.40.a
		add_manpower = -500
		add_stability = -0.08
		525 = {
			damage_building = {
				type = arms_factory
				damage = 1.0
			}
		}
		1345 = {
			damage_building = {
				type = arms_factory
				damage = 1.0
			}
		}
	}
}

country_event = { #Chaos In The Ranks
	id = korea.41
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.41"}
	title = korea.41.t
	desc = korea.41.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantroops
	option = {
		name = korea.41.a
		add_manpower = -1500
		add_stability = -0.17
		add_political_power = -50
	}
}

country_event = { #Last Chance
	id = korea.42
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.42"}
	title = korea.42.t
	desc = korea.42.d
	picture = GFX_report_event_koreantroops

	trigger = {
		tag = KOR
		has_country_flag = KOR_high_propaganda
		has_country_flag = KOR_high_conversion
		has_country_flag = KOR_high_conscription
	}
	
	fire_only_once = yes

	mean_time_to_happen = {
		days = 40
	}
	option = {
		name = korea.42.a
		ai_chance = {
			factor = 50
		}
		add_stability = -0.05
		add_political_power = -20
		custom_effect_tooltip = KOR_veto_the_bill
	}
	option = {
		name = korea.42.b
		ai_chance = {
			factor = 50
		}
		add_stability = 0.02
		add_political_power = 5
		
		hidden_effect = {
			country_event = {
				id = korea.43
				days = 2
			}
		}
		custom_effect_tooltip = KOR_force_the_bill
	}
}

country_event = { #We All Fall Down
	id = korea.43
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.43"}
	title = korea.43.t
	desc = korea.43.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.43.a
		add_stability = -0.50
		add_political_power = -200
		add_war_support = -0.50
		remove_ideas = KOR_anti_japanese_extreme
		remove_ideas = KOR_emergency_factory_conversion_extreme
		remove_ideas = KOR_conscription_debacle_extreme
		add_ideas = KOR_societal_collapse
	}
}

#####################
#The Japanese Puppet#
#####################

country_event = { #Well That Was Nice
	id = korea.44
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.44"}
	title = korea.44.t
	desc = korea.44.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanshrine
	option = {
		name = korea.44.a
		if = {
			limit = {
				is_subject_of = JAP
			}
			set_cosmetic_tag = KOR_JAP
		}
	}
}

country_event = { #Hirohito visits
	id = korea.45
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.45"}
	title = korea.45.t
	desc = korea.45.d
	is_triggered_only = yes
	picture = GFX_report_event_palace
	option = {
		name = korea.45.a
		add_political_power = 20
	}
}

country_event = { #Yi Un Goes
	id = korea.46
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.46"}
	title = korea.46.t
	desc = korea.46.d
	is_triggered_only = yes
	picture = GFX_report_event_palace
	option = {
		name = korea.46.a
		add_stability = 0.02
	}
}

####################
#Anarchism In Korea#
####################

country_event = { #Turning Point Korea
	id = korea.47
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.47"}
	title = korea.47.t
	desc = korea.47.d
	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = {
		name = korea.47.a
		add_political_power = -10
		add_manpower = -500
		custom_effect_tooltip = KOR_order_restored
	}
}

country_event = { #Slum Landlords
	id = korea.48
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.48"}
	title = korea.48.t
	desc = korea.48.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.48.a
		ai_chance = {
			factor = 50
		}
		add_manpower = -10000
		add_timed_idea = {
			idea = KOR_japanese_expelled
			days = 150
		}
		reverse_add_opinion_modifier = {
			target = JAP
			modifier = expelled_japs
		}
		JAP = {
			country_event = {
				id = japfor.111
				days = 2
			}
		}
	}
	option = {
		name = korea.48.b
		ai_chance = {
			factor = 50
		}
		add_timed_idea = {
			idea = KOR_japanese_integrated
			days = 150
		}
		reverse_add_opinion_modifier = {
			target = JAP
			modifier = NOT_expell_japs
		}
	}
}

country_event = { #Militias On The Loose
	id = korea.49
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.49"}
	title = korea.49.t
	desc = korea.49.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanroad
	option = {
		name = korea.49.a
		ai_chance = {
			factor = 60
		}
		add_manpower = 2000
		add_stability = -0.20
		swap_ideas = {
			remove_idea = KOR_militia_problem
			add_idea = KOR_militias_integrated
		}
	}
	option = {
		name = korea.49.b
		ai_chance = {
			factor = 40
		}
		
		add_manpower = -2000
		add_stability = 0.05
		
		remove_ideas = KOR_militia_problem
	}
}

country_event = { #Poundland Council Communism
	id = korea.50
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.50"}
	title = korea.50.t
	desc = korea.50.d
	is_triggered_only = yes
	picture = GFX_report_event_koreanroad
	option = {
		name = korea.50.a
		add_political_power = 50
		add_stability = 0.20
	}
}

country_event = { #Freedom
	id = korea.51
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.51"}
	title = korea.51.t
	desc = korea.51.d
	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = {
		name = korea.51.a
		remove_ideas = KOR_political_chaos
		custom_effect_tooltip = KOR_free_at_last
		country_event = {
			id = korea.68
			days = 3
		}
	}
}

################
#Reconstruction#
################

country_event = { #Start
	id = korea.52
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.52"}
	title = korea.52.t
	desc = korea.52.d
	is_triggered_only = yes
	picture = GFX_report_event_university
	option = {
		name = korea.52.a
	}
}

country_event = { #Conscription Question
	id = korea.53
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.53"}
	title = korea.53.t
	desc = korea.53.d
	is_triggered_only = yes
	picture = GFX_report_event_koreantown
	option = {
		name = korea.53.a
		ai_chance = {
			factor = 20
		}
		add_manpower = 4000
		add_stability = -0.05
		add_war_support = -0.02
		add_ideas = KOR_forced_conscription
		add_ideas = extensive_conscription
	}
	option = {
		name = korea.53.b
		ai_chance = {
			factor = 80
		}
		add_manpower = -5000
		add_stability = 0.05
		add_ideas = volunteer_only
	}
}

country_event = { #Refugee Stuff
	id = korea.54
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.54"}
	title = korea.54.t
	desc = korea.54.d
	is_triggered_only = yes
	picture = GFX_report_event_koreananger
	option = {
		name = korea.54.a
		swap_ideas = {
			remove_idea = KOR_refugee_crisis
			add_idea = KOR_food_shortages
		}
	}
}

#########################
#International Relations#
#########################

country_event = { #Korea asks to join the Chinese
	id = korea.55
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.55"}
	title = korea.55.t
	desc = korea.55.d

	fire_only_once = yes

	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = { #Yes
		name = korea.55.a
		KOR = {
			country_event = {
				id = korea.56
				days = 2
			}
		}
	}
	option = { #No
		name = korea.55.b
		trigger = {
			is_ai = no
		}
		KOR = {
			country_event = {
				id = korea.57
				days = 2
			}
		}
	}
}

country_event = { #Chinese accept
	id = korea.56
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.56"}
	title = korea.56.t
	desc = korea.56.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Yay
		name = korea.56.a
		ROOT = {
			add_to_faction = FROM
		}
	}
}

country_event = { #Chinese refuse
	id = korea.57
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.57"}
	title = korea.57.t
	desc = korea.57.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Wow
		name = korea.57.a
		add_political_power = -25
	}
}

country_event = { #Korea looks to Russia
	id = korea.58
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.58"}
	title = korea.58.t
	desc = korea.58.d

	fire_only_once = yes

	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = { #Yes
		name = korea.58.a
		KOR = {
			country_event = {
				id = korea.59
				days = 2
			}
		}
	}
	option = { #No
		name = korea.58.b
		trigger = {
			is_ai = no
		}
		KOR = {
			country_event = {
				id = korea.60
				days = 2
			}
		}
	}
}

country_event = { #Russians accept
	id = korea.59
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.59"}
	title = korea.59.t
	desc = korea.59.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Yay
		name = korea.59.a
		add_political_power = 25
		ROOT = {
			add_to_faction = FROM
		}
	}
}

country_event = { #Russians refuse
	id = korea.60
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.60"}
	title = korea.60.t
	desc = korea.60.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Oh
		name = korea.60.a
		add_political_power = -25
	}
}

country_event = { #Join Germany
	id = korea.61
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.61"}
	title = korea.61.t
	desc = korea.61.d

	fire_only_once = yes

	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = { #Yes
		name = korea.61.a
		KOR = {
			country_event = {
				id = korea.62
				days = 2
			}
		}
	}
	option = { #No
		name = korea.61.b
		trigger = {
			is_ai = no
		}
		KOR = {
			country_event = {
				id = korea.63
				days = 2
			}
		}
	}
}

country_event = { #Germany Accepts
	id = korea.62
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.62"}
	title = korea.62.t
	desc = korea.62.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Yay
		name = korea.62.a
		add_political_power = 25
		GER = {
			add_to_faction = KOR
		}
	}
}

country_event = { #Germany Refuse
	id = korea.63
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.63"}
	title = korea.63.t
	desc = korea.63.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Oh
		name = korea.63.a
		add_political_power = -25
	}
}

country_event = { #Korea In The Internationale?
	id = korea.64
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.64"}
	title = korea.64.t
	desc = korea.64.d

	fire_only_once = yes

	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = { #Let's Join the Internationale!
		name = korea.64.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.25
				CHI = { is_faction_leader = yes }
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_CHINA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_RUSSIA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_NEUTRALITY
					}
				}
			}
		}
		INT = { country_event = korea.65 }
	}
	option = { #Let's Join China!
		trigger = {
			CHI = { is_faction_leader = yes }
		}
		name = korea.64.c
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_RUSSIA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_INTERNATIONALE
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_NEUTRALITY
					}
				}
			}
		}
		CHI = { country_event = korea.55 }
	}
	option = { #Let's Join Russia!
		name = korea.64.e
		trigger = {
			is_neighbor_of = RUS
			OR = {
				RUS = {
					has_socialist_government = yes
					is_faction_leader = yes
				}
				SOV = {
					has_socialist_government = yes
					is_faction_leader = yes
				}
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_CHINA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_INTERNATIONALE
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_NEUTRALITY
					}
				}
			}
		}
		if = {
			limit = {
				country_exists = RUS
			}
			RUS = { country_event = korea.58 }
		}
		if = {
			limit = {
				country_exists = SOV
			}
			SOV = { country_event = korea.58 }
		}
	}
	option = { #Neutrality
		name = korea.64.b
		ai_chance = {
			factor = 0
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_CHINA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_RUSSIA
					}
					has_game_rule = {
						rule = KOR_forpol
						option = KOR_FORPOL_INTERNATIONALE
					}
				}
			}
		}
		add_ideas = KOR_syndie_neutrality
	}
}

country_event = { #Join France/England
	id = korea.65
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.65"}
	title = korea.65.t
	desc = korea.65.d

	fire_only_once = yes

	is_triggered_only = yes
	picture = GFX_report_event_seoul
	option = { #Yes
		name = korea.65.a
		KOR = {
			country_event = {
				id = korea.66
				days = 2
			}
		}
	}
	option = { #No
		name = korea.65.b
		trigger = {
			is_ai = no
		}
		KOR = {
			country_event = {
				id = korea.67
				days = 2
			}
		}
	}
}

country_event = { #France/England Accepts
	id = korea.66
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.66"}
	title = korea.66.t
	desc = korea.66.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Yay
		name = korea.66.a
		add_political_power = 25
		INT = {
			add_to_faction = KOR
		}
	}
}

country_event = { #France/England Refuse
	id = korea.67
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.67"}
	title = korea.67.t
	desc = korea.67.d
	is_triggered_only = yes
	fire_only_once = yes
	picture = GFX_report_event_seoul
	option = { #Oh
		name = korea.67.a
		add_political_power = -25
	}
}

country_event = { #The Dream of Korea’s Former Zenith
	id = korea.68
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.68"}
	title = korea.68.t
	desc = korea.68.d
	picture = GFX_report_event_KOR_goguryeo
	
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = korea.68.a
		ai_chance = {
			factor = 99
		}
		add_political_power = 75
		add_stability = 0.05
	}
	option = {
		name = korea.68.b
		ai_chance = {
			factor = 1
		}
		add_political_power = -50
		add_stability = -0.05
		custom_effect_tooltip = KOR_goguryeo_tt
		create_wargoal = {
			type = annex_everything
			target = FNG
		}
		create_wargoal = {
			type = annex_everything
			target = TRM
		}
		hidden_effect ={
			add_state_core = 1246
			add_state_core = 408
			add_state_core = 409
			add_state_core = 560
			add_state_core = 561
			add_state_core = 657
			add_state_core = 745
			add_state_core = 716
			add_state_core = 328
			add_state_core = 886
			add_state_core = 885
			add_state_core = 717
			add_state_core = 610
			add_state_core = 715
			add_state_core = 714
			add_state_core = 883
			add_state_core = 884
			add_state_core = 537
		}
	}
	option = {
		name = korea.68.c
		trigger = {
			OR = {
				has_country_leader = { name = "Yi Un" ruling_only = yes}
				has_country_leader = { name = "Yi Kang" ruling_only = yes}
			}
		}
		ai_chance = {
			factor = 0
		}
		add_political_power = -100
		add_stability = -0.1
		set_cosmetic_tag = KOR_GREAT_JOSEON
		custom_effect_tooltip = KOR_goguryeo_tt
		create_wargoal = {
			type = annex_everything
			target = FNG
		}
		create_wargoal = {
			type = annex_everything
			target = TRM
		}
		create_wargoal = {
			type = annex_everything
			target = QIE
		}
		create_wargoal = {
			type = annex_everything
			target = GXC
		}
		create_wargoal = {
			type = annex_everything
			target = YUN
		}
		create_wargoal = {
			type = annex_everything
			target = HNN
		}
		create_wargoal = {
			type = annex_everything
			target = LEP
		}
		create_wargoal = {
			type = annex_everything
			target = ANQ
		}
		create_wargoal = {
			type = annex_everything
			target = SQI
		}
		create_wargoal = {
			type = annex_everything
			target = SZC
		}
		create_wargoal = {
			type = annex_everything
			target = CHI
		}
		create_wargoal = {
			type = annex_everything
			target = SHX
		}
		create_wargoal = {
			type = annex_everything
			target = TIB
		}
		create_wargoal = {
			type = annex_everything
			target = SIK
		}
		create_wargoal = {
			type = annex_everything
			target = ETS
		}
		create_wargoal = {
			type = annex_everything
			target = TAN
		}
		create_wargoal = {
			type = annex_everything
			target = MON
		}
		hidden_effect ={
		country_event = {
			id = china_shared.1000
			days = 15
		 }
		every_state = {
				limit = {
					is_claims_china = yes
				}
			add_core_of = KOR
		}
		add_state_core = 1246
		add_state_core = 408
		add_state_core = 409
		add_state_core = 560
		add_state_core = 561
		add_state_core = 657
		add_state_core = 745
		add_state_core = 716
		add_state_core = 328
		add_state_core = 886
		add_state_core = 885
		add_state_core = 717
		add_state_core = 610
		add_state_core = 715
		add_state_core = 714
		add_state_core = 883
		add_state_core = 884
		add_state_core = 537
		}
	}
}

###Japan: we're losing, sue for peace?
country_event = {
	id = korea.69
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.69"}
	title = korea.69.t
	desc = korea.69.d
	picture = japanese_officer_phone
	
	is_triggered_only = yes
	option = {
		name = korea.69.a #Sue for peace.
		add_political_power = -50
		KOR = { country_event = korea.70 } #Send the peace offer to Korea
	}
	option = {
		name = korea.69.b #We can still win this!
		trigger = { is_ai = no }
		add_political_power = -100
		add_war_support = -0.10
	}
}

###Korea: Japan asks for peace
country_event = {
	id = korea.70
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.70"}
	title = korea.70.t
	desc = korea.70.d
	picture = japanese_officer_phone

	is_triggered_only = yes
	option = {
		name = korea.70.a #We are triumphant!
		ai_chance = {
			factor = 100
		}
		add_political_power = 50
		JAP = { 
			white_peace_with_ROOT = yes
		}
		transfer_state = 527
		transfer_state = 1347
		hidden_effect = {
			clr_country_flag = KOR_rebellion_flag
			set_country_flag = KOR_civil_war_victory
			set_global_flag = KOR_JAP_lost
			#Let Japan know that Korea accepted the peace offer
			JAP = { country_event = korea.71 }
		}
	}
	option = {
		name = korea.70.b #Continue the War
		ai_chance = {
			factor = 0
		}
		add_political_power = -50
		add_war_support = -0.1
		add_stability = -0.1
	}
}

###Korean Peace
country_event = {
	id = korea.71
	immediate = {log = "[GetDateText]: [Root.GetName]: event korea.71"}
	title = korea.71.t
	desc = korea.71.d
	picture = japanese_officer_phone

	is_triggered_only = yes
	option = {
		name = korea.71.a #So be it
		ai_chance = {
			factor = 100
		}
		add_political_power = -50
		KOR = {
			country_event = {
				id = korea.1
				days = 2
			}
		}
	}
}

##KR shit ##
country_event = { #multiparty democracy
	id = kor.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event KOR.1 FROM = [From.GetName]" }
	title = kor.1.t
	desc = kor.1.d
	picture = GFX_report_event_palace
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = kor.1.a
		set_party_name = {
			ideology = social_democrat
			name = KOR_social_democrat_knrp
			long_name = KOR_social_democrat_knrp_long
		}
		set_party_name = {
			ideology = social_liberal
			name = KOR_social_liberal_ksp
			long_name = KOR_social_liberal_ksp_long
		}
		set_party_name = {
			ideology = market_liberal
			name = KOR_market_liberal_kdp
			long_name = KOR_market_liberal_kdp_long
		}
		set_party_name = {
			ideology = social_conservative
			name = KOR_social_conservative_kna
			long_name = KOR_social_conservative_kna_long
		}
		set_party_name = {
			ideology = radical_socialist
			name = KOR_radical_socialist_knrp
			long_name = KOR_radical_socialist_knrp_long
		}
		set_party_name = {
			ideology = authoritarian_democrat
			name = KOR_authoritarian_democrat_kna
			long_name = KOR_authoritarian_democrat_kna_long
		}
		set_party_name = {
			ideology = paternal_autocrat
			name = KOR_paternal_autocrat_kna
			long_name = KOR_paternal_autocrat_kna_long
		}
		set_party_name = {
			ideology = national_populist
			name = KOR_national_populist_kna
			long_name = KOR_national_populist_kna_long
		}
		country_event = {
			id = kor.2
			days = 2
		}
	}
}
country_event = {
	id = kor.2
	title = kor.2.t
	desc = kor.2.d
	immediate = { log = "[GetDateText]: [Root.GetName]: event KOR.2 FROM = [From.GetName]" }
	picture = GFX_report_event_palace
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = kor.2.b
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_liberal
					last_election = "[CURRENT_DATE]"
					election_frequency = 48
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
	}
	option = {
		name = kor.2.c
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = market_liberal
					last_election = "[CURRENT_DATE]"
					election_frequency = 48
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
	}
	option = {
		name = kor.2.dem
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_democrat
					last_election = "[CURRENT_DATE]"
					election_frequency = 48
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
	}
}

country_event = { #choose your collaborator
	id = kor.3
	title = kor.3.t
	desc = kor.3.d
	immediate = { log = "[GetDateText]: [Root.GetName]: event KOR.3 FROM = [From.GetName]" }
	picture = GFX_report_event_palace
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = kor.3.a
		add_stability = 0.01
		create_corps_commander = {
			name = "Kim Suk-won"
			portrait_path = "gfx/leaders/KOR/Portrait_KOR_Kim_Suk_won.png"
			traits = {
				skilled_staffer
			}
			skill = 3
			attack_skill = 1
			defense_skill = 3
			planning_skill = 1
			logistics_skill = 2
		}
		create_corps_commander = {
			name = "Lee Eung-jun "
			portrait_path = "gfx/leaders/KOR/Portrait_KOR_Lee_Eung_Jun.png"
			traits = {
				infantry_officer
			}
			skill = 2
			attack_skill = 3
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
		}
	}
	option = {
		name = kor.3.b
		add_political_power = 10
		create_country_leader = {
			name = "Lee Eung-jun "
			picture = "gfx/leaders/KOR/Portrait_KOR_Lee_Eung_Jun.png"
			expire = "1.1.1"
			ideology = junta_subtype
			traits = {}
		}
		create_corps_commander = {
			name = "Kim Suk-won"
			portrait_path = "gfx/leaders/KOR/Portrait_KOR_Kim_Suk_won.png"
			traits = {
				skilled_staffer
			}
			skill = 3
			attack_skill = 1
			defense_skill = 3
			planning_skill = 1
			logistics_skill = 2
		}

		create_corps_commander = {
			name = "Lee Eung-jun "
			portrait_path = "gfx/leaders/KOR/Portrait_KOR_Lee_Eung_Jun.png"
			traits = {
				infantry_officer
			}
			skill = 2
			attack_skill = 3
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
		}
	}
}

country_event = { #The Head of the Royal Family
	id = kor.4
	title = kor.4.t
	desc = kor.4.d
	immediate = { log = "[GetDateText]: [Root.GetName]: event KOR.4 FROM = [From.GetName]" }
	picture = GFX_report_event_seoul
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = kor.4.a
		add_stability = -0.01
	}
	option = {
		name = kor.4.b
		add_political_power = 25
		create_country_leader = {
			name = "Yi Kang"
			desc = "KOR_yi_kang_leader_desc"
			picture = "gfx/leaders/KOR/Portrait_KOR_Yi_Kang.png"
			expire = "1.1.1"
			ideology = soccon_oligarchy_subtype
			traits = {}
		}
		create_country_leader = {
			name = "Yi Kang"
			desc = "KOR_yi_kang_leader_desc"
			picture = "gfx/leaders/KOR/Portrait_KOR_Yi_Kang.png"
			expire = "1.1.1"
			ideology = oligarchy_subtype
			traits = {}
		}
	}
}

country_event = { #Lefistist leader choice
	id = kor.5
	title = kor.5.t
	desc = kor.5.d
	immediate = { log = "[GetDateText]: [Root.GetName]: event KOR.5 FROM = [From.GetName]" }
	picture = GFX_report_event_seoul
	fire_only_once = yes
	is_triggered_only = yes
	option = { #anarchist
		name = kor.5.a
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.02
		}
	}
	option = { #kuomintang
		name = kor.5.b
		set_party_name = {
			ideology = radical_socialist
			long_name = KOR_kuomintang_party_long
			name = KOR_kuomintang_party
		}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		create_country_leader = {
			name = "Kim Wonbong"
			desc = "KOR_kim_wonbong_civilian_desc"
			picture = "gfx/leaders/KOR/Portrait_KOR_Kim_Won_Bong.png"
			expire = "1.1.1"
			ideology = radsoc_tridemism_subtype
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.10
		}
		set_cosmetic_tag = KOR_SOCIALIST
	}
	option = { #Syndicalist
		name = kor.5.c
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.10
		}
		set_cosmetic_tag = KOR_SOCIALIST
	}
	option = { #Communist
		name = kor.5.e
		set_politics = {
			ruling_party = totalist
			elections_allowed = no
		}
		add_popularity = {
			ideology = totalist
			popularity = 0.10
		}
		set_cosmetic_tag = KOR_SOCIALIST
	}
}

country_event = { #Korean Revolt
	id = kor.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event kor.6" }
	title = kor.6.t
	desc = kor.6.d
	
	hidden = yes

	fire_only_once = yes

	is_triggered_only = yes

	trigger = {
		tag = JAP
		is_ai = yes
		NOT = {
			country_exists = KOR
		}
	}

	option = {
		name = kor.6
		random_list = {
			20 = {
				country_event = {
					id = japfor.501 #Start of the Rebellion chain
					days = 1 random_days = 90
				}
			}
			80 = { }
		}
	}
}
