add_namespace = korea
add_namespace = KOR_samsung_events

### The Chinese-North Korean Split
news_event = {
	id = korea.4
	title = korea.4.t
	desc = korea.4.d
	picture = GFX_news_press_conference
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.4.a #Only [CHI.GetLeader] knows where this going...
	}
}

#Peace Talks in Beijing
country_event = {
	id = korea.5
	title = korea.5.t
	desc = {
		trigger = { original_tag = KOR }
		text = korea.5.d
	}
	desc = {
		trigger = { original_tag = NKO }
		text = korea.5.d_NKO
	}
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = korea.5.a #Our country will never be whole again unless we take a few risks...
		set_country_flag = compromise_offered
		if = {
			limit = {
				NKO = { has_country_flag = compromise_offered }
				KOR = { has_country_flag = compromise_offered }
			}
			NKO = {
				remove_ideas = NKO_nuclear_tests_idea
				remove_ideas = Massive_International_Sanctions
				remove_opinion_modifier = {
					target = KOR
					modifier = imminent_danger_to_national_security
				}
				add_opinion_modifier = {
					target = KOR
					modifier = peace_talks
				}
			}
			KOR = {
				remove_ideas = KOR_joint_us_exercises
				remove_opinion_modifier = {
					target = NKO
					modifier = imminent_danger_to_national_security
				}
				add_opinion_modifier = {
					target = NKO
					modifier = peace_talks
				}
			}
			news_event = { days = 2 id = korea.7 }
		}
		set_temp_variable = { temp_opinion = -5 }
		change_the_military_opinion = yes
		log = "[GetDateText]: [This.GetName]: korea.5.a executed"
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				OR = {
					AND = {
						check_variable = { influence_array^0 = CHI }
						check_variable = { influence_array_val^0 > 19.999 }
					}
					AND = {
						check_variable = { influence_array^1 = CHI }
						check_variable = { influence_array_val^1 > 19.999 }
					}
					AND = {
						check_variable = { influence_array^2 = CHI }
						check_variable = { influence_array_val^2 > 19.999 }
					}
					AND = {
						check_variable = { influence_array^3 = CHI }
						check_variable = { influence_array_val^3 > 19.999 }
					}
				}
			}
			modifier = {
				factor = 2
				OR = {
					AND = {
						check_variable = { influence_array^0 = CHI }
						check_variable = { influence_array_val^0 > 29.999 }
					}
					AND = {
						check_variable = { influence_array^1 = CHI }
						check_variable = { influence_array_val^1 > 29.999 }
					}
					AND = {
						check_variable = { influence_array^2 = CHI }
						check_variable = { influence_array_val^2 > 29.999 }
					}
				}
			}
			modifier = {
				factor = 2
				OR = {
					AND = {
						check_variable = { influence_array^0 = CHI }
						check_variable = { influence_array_val^0 > 39.999 }
					}
					AND = {
						check_variable = { influence_array^1 = CHI }
						check_variable = { influence_array_val^1 > 39.999 }
					}
				}
			}
			modifier = {
				factor = 2
				check_variable = { influence_array^0 = CHI }
				check_variable = { influence_array_val^0 > 49.999 }
			}
			modifier = {
				factor = 2
				original_tag = KOR
				has_opinion = {
					target = NKO
					value > -50
				}
			}
			modifier = {
				factor = 2
				original_tag = NKO
				has_opinion = {
					target = KOR
					value > -50
				}
			}
			modifier = {
				factor = 8
				is_subject_of = CHI
			}
			modifier = {
				factor = 2
				original_tag = KOR
				NKO = { NOT = { has_idea = NKO_planned_economy } }
			}
		}
	}

	option = {
		name = korea.5.b #Some risks are too big too take.
		ai_chance = {
			base = 40
			modifier = {
				factor = 2
				original_tag = KOR
				OR = {
					check_variable = { ruling_party = 1 }
					has_government = nationalist
				}
			}
			modifier = {
				factor = 2
				threat > 0.3
			}
		}
	}
}

### Korean Peace Talks Held in Beijing
news_event = {
	id = korea.6
	title = korea.6.t
	desc = korea.6.d
	picture = GFX_news_press_conference
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.6.a #Can the two sides reach a compromise?
	}
}

### [CHI.GetLeader] Voices Support for Korean Reunification
news_event = {
	id = korea.7
	title = korea.7.t
	desc = korea.7.d
	picture = GFX_news_trade_agreement
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.7.a #Is change in the air?
	}
}

### Radical Leftist Movement Gains Popularity in South Korea
news_event = {
	id = korea.8
	title = korea.8.t
	desc = korea.8.d
	picture = GFX_news_election_rally
	is_triggered_only = yes

	option = {
		name = korea.8.a #Something is afoot in the ROK...
	}
}

# Rebels in the South Seek Our Support
country_event = {
	id = korea.9
	title = korea.9.t
	desc = korea.9.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	# We will join their struggle!
	option = {
		name = korea.9.a
		log = "[GetDateText]: [This.GetName]: korea.9.a executed"
		add_political_power = 100
		add_war_support = 0.1
		create_faction_from_template = faction_template_juche
		random_country_with_original_tag = {
			original_tag_to_check = KOR
			limit = { has_government = communism }
			NKO = { add_to_faction = PREV }
		}
		hidden_effect = {
			every_other_country = {
				limit = { has_guaranteed = NKO }
				diplomatic_relation = {
					country = NKO
					relation = guarantee
					active = no
				}
				set_country_flag = guaranteed_NKO
			}
		}
		random_country_with_original_tag = {
			original_tag_to_check = KOR
			limit = { NOT = { has_government = communism } }
			declare_war_on = {
				target = NKO
				type = annex_everything
			}
		}
		hidden_effect = {
			every_other_country = {
				limit = { has_country_flag = guaranteed_NKO }
				clr_country_flag = guaranteed_NKO
				diplomatic_relation = {
					country = NKO
					relation = guarantee
					active = yes
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = korea.9.b #We will watch from the sidelines.
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = korea.10
	title = korea.10.t
	desc = korea.10.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	option = {
		name = korea.10.a #We will stand by our allies!
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = korea.10.b #This is not worth the lives of our troops.
		log = "[GetDateText]: [This.GetName]: korea.10.b executed"
		CHI = {
			diplomatic_relation = {
				country = NKO
				relation = guarantee
				active = no
			}
		}
		news_event = { id = korea.14 days = 1 }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = korea.11
	title = korea.11.t #Korean Arms Companies Offer Products
	desc = korea.11.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	option = {
		name = korea.11.a #Purchase Korean Tanks
		log = "[GetDateText]: [This.GetName]: korea.11.a executed"
		set_temp_variable = { treasury_change = -5 }
		modify_treasury_effect = yes
		KOR = {
			set_temp_variable = { treasury_change = 3.75 }
			modify_treasury_effect = yes
		}
		if = {
			limit = { has_dlc = "No Step Back" }
			if = {
				limit = { has_tech = mbt_tech_2 }
				add_equipment_to_stockpile = {
					type = medium_tank_chassis_2
					amount = 45
					producer = KOR
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = medium_tank_chassis_1
					amount = 45
					producer = KOR
				}
			}
		}
		else_if = {
			limit = {
				KOR = { has_tech = MBT_5 }
			}
			add_equipment_to_stockpile = {
				type = MBT_5
				amount = 45
				producer = KOR
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = MBT_3
				amount = 45
				producer = KOR
			}
		}
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = KOR.id }
		change_influence_percentage = yes
		KOR = {
			country_event = {
				id = korea.12
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = korea.11.b #Purchase Korean Self-Propelled Artillery
		log = "[GetDateText]: [This.GetName]: korea.11.b executed"
		set_temp_variable = { treasury_change = -3 }
		modify_treasury_effect = yes
		KOR = {
			set_temp_variable = { treasury_change = 2.25 }
			modify_treasury_effect = yes
		}
		if = {
			limit = { has_dlc = "No Step Back" }
			add_equipment_to_stockpile = {
				type = medium_tank_artillery_chassis_1
				amount = 50
				producer = KOR
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = SP_arty_2
				amount = 50
				producer = KOR
			}
		}
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = KOR.id }
		change_influence_percentage = yes
		KOR = {
			country_event = {
				id = korea.12
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = korea.11.c #Purchase Korean Trainer Jets
		log = "[GetDateText]: [This.GetName]: korea.11.c executed"
		trigger = {
			KOR = { has_tech = L_Strike_fighter2 }
		}
		set_temp_variable = { treasury_change = -2 }
		modify_treasury_effect = yes
		KOR = {
			set_temp_variable = { treasury_change = 1.5 }
			modify_treasury_effect = yes
		}
		add_equipment_to_stockpile = {
			type = L_Strike_fighter2
			amount = 24
			producer = KOR
		}
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = KOR.id }
		change_influence_percentage = yes
		KOR = {
			country_event = {
				id = korea.12
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = korea.11.e #Purchase Korean Rifles
		log = "[GetDateText]: [This.GetName]: korea.11.e executed"
		set_temp_variable = { treasury_change = -0.5 }
		modify_treasury_effect = yes
		KOR = {
			set_temp_variable = { treasury_change = 0.375 }
			modify_treasury_effect = yes
		}
		if = {
			limit = {
				KOR = { has_tech = MBT_5 }
			}
			add_equipment_to_stockpile = {
				type = infantry_weapons_6
				amount = 1000
				producer = KOR
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_4
				amount = 1000
				producer = KOR
			}
		}
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = KOR.id }
		change_influence_percentage = yes
		KOR = {
			country_event = {
				id = korea.12
				days = 1
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = korea.11.f #Refuse Offer
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = korea.12
	title = korea.12.t #[FROM.GetNameDef] Agrees to Arms Deal!
	desc = korea.12.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	option = {
		name = korea.12.a #Our international standing grows!
	}
}

#Beijing and Seoul Jointly Criticize Japanese WW2 Actions
news_event = {
	id = korea.13
	title = korea.13.t
	desc = korea.13.d
	picture = GFX_news_press_conference
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.13.a #We will never forget what they did.
		trigger = {
			OR = {
				original_tag = CHI
				original_tag = KOR
				original_tag = NKO
			}
		}
	}

	option = {
		name = korea.13.b #Their criticism is tiresome...
		trigger = {
			original_tag = JAP
		}
	}

	option = {
		name = korea.13.c #The past casts a long shadow...
		trigger = {
			NOT = { original_tag = JAP }
			NOT = { original_tag = CHI }
			NOT = { original_tag = KOR }
			NOT = { original_tag = NKO }
		}
	}
}

#China Annuls Defense Treaty with North Korea
news_event = {
	id = korea.14
	title = korea.14.t
	desc = korea.14.d
	picture = GFX_news_press_conference
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.14.a #Our efforts have paid off.
		trigger = {
			original_tag = KOR
		}
	}

	option = {
		name = korea.14.b #We have tolerated Pyongyang for too long.
		trigger = {
			original_tag = NKO
		}
	}

	option = {
		name = korea.14.c #Is war on the horizon?
		trigger = {
			NOT = { original_tag = CHI }
			NOT = { original_tag = KOR }
		}
	}
}

#[KOR.GetLeader] Demands Japanese Reparations
news_event = {
	id = korea.15
	title = korea.15.t
	desc = korea.15.d
	picture = GFX_japanese_nationalism2
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.15.a #One day we will have justice.
		trigger = {
			original_tag = KOR
		}
	}

	option = {
		name = korea.15.b #Their demands are absurd!
		trigger = {
			original_tag = JAP
		}
	}

	option = {
		name = korea.15.c #Can their disagreement be resolved?
		trigger = {
			NOT = { original_tag = JAP }
			NOT = { original_tag = KOR }
		}
	}
}

# TODO: Rework this event chain
country_event = {
	id = korea.16
	title = korea.16.t
	desc = korea.16.d
	picture = GFX_afghanistan_war
	is_triggered_only = yes

	trigger = {
		original_tag = KOR
		is_subject = no
		has_war_with = NKO
		USA = {
			has_war_with = NKO
			is_subject = no
		}
		has_idea = KOR_wartime_control
		NOT = { is_in_faction_with = USA }
	}

	option = {
		name = korea.16.a #We must transfer control
		log = "[GetDateText]: [This.GetName]: korea.16.a executed"
		add_to_war = {
			targeted_alliance = USA
			enemy = NKO
			hostility_reason = asked_to_join
		}
		if = {
			limit = { NOT = { has_idea = Major_Non_NATO_Ally } }
			NATO_major_non_nato_ally_join = yes
		}
		if = {
			limit = {
				USA = {
					NOT = {
						has_war_with = NKO
					}
				}
			}
		USA = {
			add_to_war = {
				targeted_alliance = KOR
				enemy = NKO
				hostility_reason = asked_to_join
				}
			}
		}
	}
}

country_event = {
	id = korea.17
	title = korea.17.t
	desc = korea.17.d
	picture = GFX_afghanistan_war
	is_triggered_only = yes

	trigger = {
		original_tag = KOR
		KOR = { is_in_faction_with = USA }
		NOT = { has_war_with = NKO }
		NOT = { has_country_flag = has_joined_NATO_by_event }
	}

	option = {
		name = korea.17.a #Peace at last.
		log = "[GetDateText]: [This.GetName]: korea.17.a executed"
		USA = {
			give_guarantee = KOR
		}
	}
}

#National Assembly Elections Loom as Parties Begin Campaigning
country_event = {
	id = korea.18
	title = korea.18.t
	desc = korea.18.d
	picture = GFX_politics_speak
	is_triggered_only = yes

	option = {
		name = korea.18.a #Let's hope for a majority!
		log = "[GetDateText]: [This.GetName]: korea.18.a executed"
		hidden_effect = {
			country_event = {
				days = 26
				id = korea.20 #check result
			}
		}
	}
}

#hidden event checking for elections
country_event = {
	id = korea.19
	is_triggered_only = yes
	hidden = yes

	trigger = { has_elections = yes }

	immediate = {
		#The elections are coming!
		country_event = { days = 1 id = korea.18 }
	}
}

#hidden event checking result
country_event = {
	id = korea.20
	is_triggered_only = yes
	hidden = yes

	immediate = {
		log = "[GetDateText]: [This.GetName]: korea.20 executed"
		random_list = {
			33 = {
				set_country_flag = KOR_lib_victory
				modifier = {
					factor = 2
					check_variable = { party_pop_array^3 > party_pop_array^1 }
				}
				modifier = {
					factor = 0.5
					check_variable = { party_pop_array^3 < party_pop_array^1 }
				}
				modifier = {
					factor = 2
					check_variable = { party_pop_array^3 > 0.5 }
				}
				modifier = {
					factor = 1.5
					check_variable = { party_pop_array^3 > 0.75 }
				}
			}
			33 = {
				set_country_flag = KOR_con_victory
				modifier = {
					factor = 2
					check_variable = { party_pop_array^3 < party_pop_array^1 }
				}
				modifier = {
					factor = 0.5
					check_variable = { party_pop_array^3 > party_pop_array^1 }
				}
				modifier = {
					factor = 2
					check_variable = { party_pop_array^1 > 0.5 }
				}
				modifier = {
					factor = 1.5
					check_variable = { party_pop_array^1 > 0.75 }
				}
			}
			33 = {
				set_country_flag = KOR_no_victory
				modifier = {
					factor = 2
					check_variable = { party_pop_array^3 = party_pop_array^1 }
				}
				modifier = {
					factor = 2
					has_idea = KOR_multi_party_system
				}
				modifier = {
					factor = 0.5
					has_idea = KOR_two_party_system
				}
			}
		}
		country_event = {
			id = korea.21
			days = 1
		}
	}
}

#The results are in!
country_event = {
	id = korea.21
	title = korea.21.t
	desc = {
		text = korea.21.d_no
		trigger = { has_country_flag = KOR_no_victory }
	}
	desc = {
		text = korea.21.d_con_loss
		trigger = {
			has_country_flag = KOR_lib_victory
			KOR_has_conservative_government = yes
		}
	}
	desc = {
		text = korea.21.d_lib_loss
		trigger = {
			has_country_flag = KOR_con_victory
			KOR_has_liberal_government = yes
		}
	}
	desc = {
		text = korea.21.d_con_win
		trigger = {
			has_country_flag = KOR_con_victory
			KOR_has_conservative_government = yes
		}
	}
	desc = {
		text = korea.21.d_lib_win
		trigger = {
			has_country_flag = KOR_lib_victory
			KOR_has_liberal_government = yes
		}
	}
	picture = GFX_politics_speak
	is_triggered_only = yes

	option = {
		name = korea.21.a #As always, it was a hard-fought election.
		if = {
			limit = {
				has_country_flag = KOR_no_victory
			}
			add_timed_idea = {
				idea = KOR_national_assembly_deadlocked
				days = 1460
			}
		}
		else_if = {
			limit = {
				has_country_flag = KOR_con_victory
			}
			add_timed_idea = {
				idea = KOR_national_assembly_conservative
				days = 1460
			}
		}
		else_if = {
			limit = {
				has_country_flag = KOR_lib_victory
			}
			add_timed_idea = {
				idea = KOR_national_assembly_liberal
				days = 1460
			}
		}
		hidden_effect = {
			clr_country_flag = KOR_no_victory
			clr_country_flag = KOR_lib_victory
			clr_country_flag = KOR_con_victory
			country_event = {
				days = 1430
				id = korea.19 #check if elections are allowed for next election
			}
		}
		ai_chance = {
			base = 100
		}
		log = "[GetDateText]: [This.GetName]: korea.21.a executed"
	}
}

#Reunification Shocks Begin to Take Hold
country_event = {
	id = korea.22
	title = korea.22.t
	desc = korea.22.d
	picture = GFX_politics_protest
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		OR = {
			original_tag = KOR
			original_tag = NKO
		}
		NOT = {
			OR = {
				has_war_with = KOR
				has_war_with = NKO
			}
		}
		if = {
			limit = { original_tag = NKO }
			owns_state = 604
			owns_state = 605
			owns_state = 606
			owns_state = 607
			owns_state = 608
		}
		else_if = {
			limit = { original_tag = KOR }
			owns_state = 601
			owns_state = 602
			owns_state = 603
		}
	}

	option = {
		name = korea.22.a #Now begins the hard part...
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = korea_peninsula_reunited
						has_completed_focus = KOR_juche_in_the_south
					}
				}
			}
			add_ideas = KOR_reunification_shocks
			add_ideas = KOR_divided_military
			add_ideas = KOR_mass_migration
			add_ideas = KOR_fragmented_governance
			add_ideas = KOR_uneven_economy1
			decrease_economic_growth = yes
			set_country_flag = korea_peninsula_reunited
		}
		log = "[GetDateText]: [This.GetName]: korea.22.a executed"
	}
}

#Our Response to the South's Overture
country_event = {
	id = korea.23
	title = korea.23.t
	desc = korea.23.d
	picture = GFX_KOR_generic
	is_triggered_only = yes

	option = {
		name = korea.23.a #We will agree to a treaty
		log = "[GetDateText]: [This.GetName]: korea.23.a executed"
		news_event = { days = 1 id = korea.24 }
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_war_with = KOR
			}
			modifier = {
				factor = 0
				KOR = {
					check_variable = { reunification_chance < 1 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 0 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 1 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 2 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 3 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 4 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 5 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 6 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 7 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 8 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 9 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 10 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 11 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { reunification_chance > 12 }
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > -51
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > -26
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > -1
				}
			}
			modifier = {
				factor = 2
				NOT = { has_government = communism }
				NOT = { has_government = nationalist }
			}
		}
	}

	option = {
		name = korea.23.b #There will never be peace between us!
		log = "[GetDateText]: [This.GetName]: korea.23.b executed"
		news_event = { days = 1 id = korea.25 }
		KOR = { set_country_flag = KOR_peace_talks_failed }
		ai_chance = {
			base = 5
		}
	}
}

#Korean Peace Agreement Signed
news_event = {
	id = korea.24
	title = korea.24.t
	desc = korea.24.d
	picture = GFX_news_trade_agreement
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.24.a #A bright future lies before the peninsula!
		if = {
			limit = {
				original_tag = KOR
			}
			remove_opinion_modifier = {
				target = NKO
				modifier = NKO_kor_korean_war_ceasefire
			}
			add_war_support = -0.05
			support_for_reunification_2 = yes
			liberal_policy_effect = yes
		}
		if = {
			limit = {
				original_tag = NKO
			}
			remove_opinion_modifier = {
				target = KOR
				modifier = NKO_kor_korean_war_ceasefire
			}
			add_war_support = -0.05
			set_temp_variable = { temp_opinion = -5 }
			change_the_military_opinion = yes
			change_communist_cadres_opinion = yes
		}
		log = "[GetDateText]: [This.GetName]: korea.24.a executed"
	}
}

#Inter-Korean Discussions Break Down
news_event = {
	id = korea.25
	title = korea.25.t
	desc = korea.25.d
	picture = GFX_news_press_conference
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.25.a #Peace remains elusive...
		if = {
			limit = {
				original_tag = KOR
				has_completed_focus = KOR_pursue_peace_treaty
			}
			unlock_decision_tooltip = KOR_restart_peace_talks
		}
		log = "[GetDateText]: [This.GetName]: korea.25.a executed"
	}
}

#South Korea proposes reunification
country_event = {
	id = korea.26
	title = korea.26.t
	desc = {
		text = korea.26.d
		trigger = { KOR = { has_country_flag = KOR_proposed_south_reunification } }
	}
	desc = {
		text = korea.26.d1
		trigger = { KOR = { has_country_flag = KOR_proposed_unity_reunification } }
	}
	picture = GFX_KOR_generic
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = korea_peninsula_reunited }
		NOT = { KOR = { has_country_flag = korea_peninsula_reunited } }
		country_exists = KOR
	}

	option = {
		name = korea.26.a #Our country will be whole again!
		trigger = {
			KOR = { has_government = democratic }
			NKO = { has_government = democratic }
		}
		log = "[GetDateText]: [This.GetName]: korea.26.a executed"
		add_opinion_modifier = {
			target = KOR
			modifier = imminent_reunification
		}
		add_war_support = -0.05
		KOR = {
			country_event = {
				days = 1
				id = korea.27
			}
		}
		set_temp_variable = { temp_opinion = -5 }
		change_the_military_opinion = yes
		change_communist_cadres_opinion = yes
		ai_chance = {
			base = 1
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 5 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 6 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 7 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 8 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 9 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 10 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 11 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 12 }
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > -1
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > 9
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > 24
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > 49
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > 74
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = KOR
					value > 99
				}
			}
			modifier = {
				factor = 2
				NOT = { has_government = communism }
				NOT = { has_government = nationalist }
			}
			# Killswitch
			modifier = {
				factor = 0
				OR = {
					has_war_with = KOR
					check_variable = { KOR.reunification_chance < 6 }
				}
			}
		}
	}

	option = {
		name = korea.26.b #Reunification can never take place on these terms...
		log = "[GetDateText]: [This.GetName]: korea.26.b executed"
		KOR = {
			country_event = {
				days = 1
				id = korea.28
			}
			set_country_flag = KOR_reunification_talks_failed
			clr_country_flag = KOR_proposed_south_reunification
			clr_country_flag = KOR_proposed_unity_reunification
		}
		ai_chance = {
			base = 5
			modifier = {
				factor = 2
				KOR = { has_country_flag = KOR_proposed_south_reunification }
			}
		}
	}
}

#The North has agreed on our terms for reunification!
country_event = {
	id = korea.27
	title = korea.27.t
	desc = korea.27.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = korea.27.a #Fantastic news!
		log = "[GetDateText]: [This.GetName]: korea.27.a executed"
		add_war_support = -0.05
		support_for_reunification_2 = yes
		if = {
			limit = {
				NOT = { has_country_flag = korea_peninsula_reunited }
				country_exists = NKO
			}
			annex_country = {
				target = NKO
				transfer_troops = yes
			}
			add_ideas = KOR_reunification_shocks
			add_ideas = KOR_divided_military
			add_ideas = KOR_mass_migration
			add_ideas = KOR_fragmented_governance
			add_ideas = KOR_uneven_economy1
			decrease_economic_growth = yes
			set_country_flag = korea_peninsula_reunited
		}
	}
}

#The North has refused our terms for reunification!
country_event = {
	id = korea.28
	title = korea.28.t
	desc = korea.28.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = korea.28.a #A sad day for the Korean people...
	}
}

#China wants handover of remains of personnel of the Chinese People's Volunteer Army from South Korea to China.
country_event = {
	id = korea.29
	title = korea.29.t
	desc = korea.29.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = { tag = KOR }

	option = {
		name = korea.29.a #Of course we will. We respect these soldiers.
		log = "[GetDateText]: [This.GetName]: korea.29.a executed"
		set_country_flag = KOR_agreed_to_return_cpv_remains
	}

	option = {
		name = korea.29.b #They are the enemies of the invasion of our land! We can't accept it!
		log = "[GetDateText]: [This.GetName]: korea.29.b executed"
		clr_country_flag = KOR_agreed_to_return_cpv_remains
	}
}

#The First Collection
news_event = {
	id = korea.30
	title = korea.30.t
	desc = korea.30.d
	picture = GFX_chinese_soldiers_back_home2
	is_triggered_only = yes

	trigger = { tag = KOR }

	option = { name = korea.30.a }
}

#The Seventh Collection
news_event = {
	id = korea.31
	title = korea.31.t
	desc = korea.31.d
	picture = GFX_chinese_soldiers_back_home1
	is_triggered_only = yes

	trigger = {
		OR = {
			tag = KOR
			tag = CHI
		}
	}

	option = { name = korea.31.a }
}

#Our Response to the North's Overture
country_event = {
	id = korea.33
	title = korea.33.t
	desc = korea.33.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = korea.23.a #We will agree to a treaty
		log = "[GetDateText]: [This.GetName]: korea.33.a executed"
		news_event = { days = 1 id = korea.24 }
		ai_chance = {
			base = 700
			modifier = {
				factor = 0
				has_war_with = NKO
			}
			modifier = {
				factor = 0
				KOR = {
					check_variable = { SFR < 50 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { SFR > 50 }
				}
			}
			modifier = {
				add = 1
				KOR = {
					check_variable = { SFR > 60 }
				}
			}
			modifier = {
				add = 50
				KOR = {
					check_variable = { SFR > 70 }
				}
			}
			modifier = {
				add = 55
				KOR = {
					check_variable = { SFR > 80 }
				}
			}
			modifier = {
				add = 60
				KOR = {
					check_variable = { SFR > 90 }
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > -51
				}
			}
			modifier = {
				add = 5
				has_opinion = {
					target = NKO
					value > -26
				}
			}
			modifier = {
				add = 50
				has_opinion = {
					target = NKO
					value > -1
				}
			}
			modifier = {
				factor = 1
				has_government = communism
				NKO = { has_government = communism }
			}
		}
	}

	option = {
		name = korea.23.b #There will never be peace between us!
		log = "[GetDateText]: [This.GetName]: korea.23.b executed"
		news_event = { days = 1 id = korea.25 }
		NKO = { set_country_flag = NKO_peace_talks_failed }
		ai_chance = {
			base = 2
		}
	}
}

#North Korea proposes reunification
country_event = {
	id = korea.34
	title = korea.34.t
	desc = {
		text = korea.34.d
		trigger = { NKO = { has_country_flag = NKO_proposed_north_reunification } }
	}
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = korea_peninsula_reunited }
		NOT = { NKO = { has_country_flag = korea_peninsula_reunited } }
		country_exists = NKO
	}

	option = {
		name = korea.26.a #Our country will be whole again!
		trigger = {
			KOR = { has_government = communism }
			NKO = { has_government = communism }
		}
		log = "[GetDateText]: [This.GetName]: korea.34.a executed"
		add_war_support = -0.05
		support_for_reunification_2 = yes
		add_opinion_modifier = {
			target = NKO
			modifier = imminent_reunification
		}
		NKO = {
			country_event = {
				days = 1
				id = korea.35
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 5 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 6 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 7 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 8 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 9 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 10 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 11 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 12 }
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > -1
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > 9
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > 24
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > 49
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > 74
				}
			}
			modifier = {
				add = 1
				has_opinion = {
					target = NKO
					value > 99
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_war_with = NKO
					NOT = { KOR = { check_variable = { SFR > 50 } } }
					check_variable = { KOR.reunification_chance < 6 }
				}
			}
		}
	}

	option = {
		name = korea.26.b #Reunification can never take place on these terms...
		log = "[GetDateText]: [This.GetName]: korea.34.b executed"
		NKO = {
			country_event = {
				days = 1
				id = korea.36
			}
			clr_country_flag = NKO_proposed_north_reunification
		}
		ai_chance = {
			base = 5
			modifier = {
				factor = 3
				NKO = { has_country_flag = NKO_proposed_north_reunification }
			}
		}
	}
}

#The South has agreed on our terms for reunification!
country_event = {
	id = korea.35
	title = korea.35.t
	desc = korea.35.d
	picture = GFX_KOR_generic
	is_triggered_only = yes

	option = {
		name = korea.27.a #Fantastic news!
		log = "[GetDateText]: [This.GetName]: korea.35.a executed"
		add_war_support = -0.05
		set_temp_variable = { temp_opinion = -5 }
		change_the_military_opinion = yes
		change_communist_cadres_opinion = yes
		if = {
			limit = {
				NOT = { has_country_flag = korea_peninsula_reunited }
				country_exists = KOR
			}
			annex_country = {
				target = KOR
				transfer_troops = yes
			}
			add_ideas = KOR_reunification_shocks
			add_ideas = KOR_divided_military
			add_ideas = KOR_mass_migration
			add_ideas = KOR_fragmented_governance
			add_ideas = KOR_uneven_economy1
			decrease_economic_growth = yes
			set_country_flag = korea_peninsula_reunited
		}
	}
}

#The South has refused our terms for reunification!
country_event = {
	id = korea.36
	title = korea.36.t
	desc = korea.36.d
	picture = GFX_KOR_generic
	is_triggered_only = yes

	option = {
		name = korea.28.a #A sad day for the Korean people...
	}
}

country_event = {
	id = korea.38
	title = korea.38.t
	desc = korea.38.d
	picture = GFX_american_troops
	is_triggered_only = yes

	option = {
		name = korea.38.a
		add_political_power = 25
		if = {
			limit = { country_exists = KOR }
			KOR = {
				add_opinion_modifier = {
					target = USA
					modifier = US_imperialism
				}
			}
		}
		if = {
			limit = { country_exists = NKO }
			NKO = {
				add_opinion_modifier = {
					target = USA
					modifier = US_imperialism
				}
			}
		}
		ai_chance = { base = 30 }
		log = "[GetDateText]: [This.GetName]: korea.38.a executed"
	}

	option = {
		name = korea.38.b
		if = {
			limit = { country_exists = KOR }
			diplomatic_relation = {
				country = KOR
				relation = guarantee
				active = no
			}
		}
		if = {
			limit = { country_exists = NKO }
			diplomatic_relation = {
				country = NKO
				relation = guarantee
				active = no
			}
		}
		diplomatic_relation = {
			country = JAP
			relation = guarantee
			active = no
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 20
				CHI = { has_completed_focus = CHI_Wolf_Warrior_Diplomacy }
			}
			modifier = {
				factor = 10
				NKO = { has_completed_focus = NKO_our_pride_and_joy }
			}
			modifier = {
				factor = 10
				KOR = { has_completed_focus = KOR_promote_sovereignty }
			}
			modifier = {
				factor = 10
				NKO = { has_completed_focus = KOR_promote_sovereignty }
			}
		}
		log = "[GetDateText]: [This.GetName]: korea.38.b executed"
	}
}

country_event = {
	id = korea.39
	title = korea.39.t
	desc = korea.39.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = korea.39.a
		log = "[GetDateText]: [This.GetName]: korea.39.a executed"
		NKO = { country_event = korea.40 }
	}
}

country_event = {
	id = korea.40
	title = korea.40.t
	desc = korea.40.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = korea.40.a
		log = "[GetDateText]: [This.GetName]: korea.40.a executed"
		if = {
			limit = { has_global_flag = GAME_RULE_allow_colored_puppets }
			set_autonomy = {
				target = FROM
				autonomy_state = autonomy_autonomous_state_colored
				end_wars = no
				end_civil_wars = no
			}
		}
		else = {
			set_autonomy = {
				target = FROM
				autonomy_state = autonomy_autonomous_state
				end_wars = no
				end_civil_wars = no
			}
		}
		if = {
			limit = {
				country_exists = KOR
				NOT = { has_war_with = KOR }
			}
			declare_war_on = {
				target = KOR
				type = annex_everything
			}
		}
	}
}

#North Korea proposes reunification
country_event = {
	id = korea.41
	title = korea.41.t
	desc = korea.41.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = korea_peninsula_reunited }
		NOT = { NKO = { has_country_flag = korea_peninsula_reunited } }
		country_exists = NKO
	}

	option = {
		name = korea.41.a
		trigger = {
			KOR = { has_government = communism }
		}
		log = "[GetDateText]: [This.GetName]: korea.41.a executed"
		add_war_support = -0.05
		support_for_reunification_2 = yes
		NKO = {
			country_event = {
				days = 1
				id = korea.42
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 5 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 6 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 7 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 8 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 9 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 10 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 11 }
			}
			modifier = {
				add = 1
				check_variable = { KOR.reunification_chance > 12 }
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > -1
				}
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > 9
				}
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > 24
				}
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > 49
				}
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > 74
				}
			}
			modifier = {
				add = 2
				has_opinion = {
					target = NKO
					value > 99
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_war_with = NKO
					NOT = { KOR = { check_variable = { SFR > 50 } } }
					check_variable = { KOR.reunification_chance < 6 }
				}
			}
		}
	}

	option = {
		name = korea.41.b #Reunification can never take place on these terms...
		log = "[GetDateText]: [This.GetName]: korea.41.b executed"
		set_country_flag = KOR_confederation_talks_failed
		NKO = {
			country_event = {
				days = 1
				id = korea.43
			}
		}
		ai_chance = {
			base = 5
		}
	}
}

country_event = {
	id = korea.42
	title = korea.42.t
	desc = korea.42.d
	picture = GFX_KOR_generic
	is_triggered_only = yes

	option = {
		name = korea.42.a
		log = "[GetDateText]: [This.GetName]: korea.42.a executed"
		if = {
			limit = {
				NOT = { has_country_flag = korea_peninsula_reunited }
				country_exists = KOR
				NOT = { KOR = { has_country_flag = korea_peninsula_reunited } }
			}
			set_autonomy = {
				target = KOR
				autonomy_state = autonomy_korean_federation
				end_wars = no
				end_civil_wars = no
			}
			inherit_technology = KOR
			research_slot_init_for_country = yes
			KOR_inherit_special_projects_from_south = yes
			add_ideas = KOR_reunification_shocks
			add_ideas = KOR_divided_military
			add_ideas = KOR_mass_migration
			add_ideas = KOR_fragmented_governance
			add_ideas = KOR_uneven_economy1
			decrease_economic_growth = yes
			set_country_flag = korea_peninsula_reunited
			KOR = {
				set_country_flag = korea_peninsula_reunited
				if = {
					limit = { has_idea = KOR_wartime_control }
					remove_ideas = KOR_wartime_control
				}
				if = {
					limit = { NOT = { has_completed_focus = KOR_secure_wartime_control } }
					complete_national_focus = KOR_secure_wartime_control
				}
				if = {
					limit = { NOT = { has_completed_focus = KOR_korean_security_in_korean_hands } }
					complete_national_focus = KOR_korean_security_in_korean_hands
				}
			}
			news_event = korea.50
		}
	}
}

country_event = {
	id = korea.43
	title = korea.43.t
	desc = korea.43.d
	picture = GFX_KOR_generic
	is_triggered_only = yes

	option = { name = korea.43.a }
}

country_event = {
	id = korea.60
	title = korea.60.t
	desc = korea.60.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = { #Gives IDEA for India and Investment for KOR
		name = korea.60.a
		log = "[GetDateText]: [This.GetName]: korea.60.a executed"
		RAJ = {
			two_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -50 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 20
				state = 444
			}
			add_stability = -0.05
		}
		KOR = {
			set_temp_variable = { treasury_change = -25 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 50 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = RAJ
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives factories and resource but no idea
		name = korea.60.b
		log = "[GetDateText]: [This.GetName]: korea.60.b executed"
		RAJ = {
			two_random_industrial_complex = yes
			set_temp_variable = { treasury_change = -20 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 10
				state = 444
			}
			add_stability = -0.05
		}
		KOR = {
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 20 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = RAJ
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives one factory and smalles amount of resources to india
		name = korea.60.c
		log = "[GetDateText]: [This.GetName]: korea.60.c executed"
		RAJ = {
			one_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 5
				state = 444
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -5 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 10 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = RAJ
				modifier = mutual_trade_agreement
			}
		}
	}
}

country_event = {
	id = korea.61
	title = korea.61.t
	desc = korea.61.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = { #Gives IDEA for mexico and Investment for KOR
		name = korea.61.a
		log = "[GetDateText]: [This.GetName]: korea.61.a executed"
		MEX = {
			two_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -50 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 20
				state = 836
			}
			add_opinion_modifier = {
					target = KOR
					modifier = large_commercial_relations
				}
		}
		KOR = {
			set_temp_variable = { treasury_change = -25 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 50 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = MEX
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives factories and resource but no idea
		name = korea.61.b
		log = "[GetDateText]: [This.GetName]: korea.61.b executed"
		MEX = {
			two_random_industrial_complex = yes
			set_temp_variable = { treasury_change = -20 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 10
				state = 836
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 20 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = MEX
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives one factory and smalles amount of resources to mexico
		name = korea.61.c
		log = "[GetDateText]: [This.GetName]: korea.61.c executed"
		MEX = {
			one_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 5
				state = 836
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -5 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 10 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = MEX
				modifier = mutual_trade_agreement
			}
		}
	}
}

country_event = {
	id = korea.62
	title = korea.62.t
	desc = korea.62.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = { #Gives IDEA for vietnam and Investment for KOR
		name = korea.62.a
		log = "[GetDateText]: [This.GetName]: korea.62.a executed"
		VIE = {
			two_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -50 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 20
				state = 523
			}
			add_opinion_modifier = {
					target = KOR
					modifier = large_commercial_relations
				}
		}
		KOR = {
			set_temp_variable = { treasury_change = -25 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 50 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = VIE
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives factories and resource but no idea
		name = korea.62.b
		log = "[GetDateText]: [This.GetName]: korea.62.b executed"
		VIE = {
			two_random_industrial_complex = yes
			set_temp_variable = { treasury_change = -20 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 10
				state = 523
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 20 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = VIE
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives one factory and smalles amount of resources to vietnam
		name = korea.62.c
		log = "[GetDateText]: [This.GetName]: korea.62.c executed"
		VIE = {
			one_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 5
				state = 523
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -5 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 10 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = VIE
				modifier = mutual_trade_agreement
			}
		}
	}
}

country_event = {
	id = korea.63
	title = korea.63.t
	desc = korea.63.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = { #Gives IDEA for argentina and Investment for KOR
		name = korea.63.a
		log = "[GetDateText]: [This.GetName]: korea.63.a executed"
		ARG = {
			two_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -50 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 20
				state = 446
			}
			add_opinion_modifier = { target = KOR modifier = large_commercial_relations }
		}
		KOR = {
			set_temp_variable = { treasury_change = -25 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 50 }
			modify_international_investment_effect = yes
			add_opinion_modifier = { target = ARG modifier = mutual_trade_agreement }
		}
	}

	option = { #gives factories and resource but no idea
		name = korea.63.b
		log = "[GetDateText]: [This.GetName]: korea.63.b executed"
		ARG = {
			two_random_industrial_complex = yes
			set_temp_variable = { treasury_change = -20 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 10
				state = 446
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 20 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = ARG
				modifier = mutual_trade_agreement
			}
		}
	}

	option = { #gives one factory and smalles amount of resources to argentina
		name = korea.63.c
		log = "[GetDateText]: [This.GetName]: korea.63.c executed"
		ARG = {
			one_random_industrial_complex = yes
			add_ideas = KOR_posco_idea2
			set_temp_variable = { treasury_change = -10 }
			modify_treasury_effect = yes
			add_resource = {
				type = steel
				amount = 5
				state = 446
			}
		}
		KOR = {
			set_temp_variable = { treasury_change = -5 }
			modify_treasury_effect = yes
			set_temp_variable = { int_investment_change = 10 }
			modify_international_investment_effect = yes
			add_opinion_modifier = {
				target = ARG
				modifier = mutual_trade_agreement
			}
		}
	}
}

country_event = {
	id = korea.64
	title = korea.64.t
	desc = korea.64.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = {
		name = korea.64.a
		log = "[GetDateText]: [This.GetName]: korea.64.a executed"
		add_political_power = 100
		add_stability = 0.05
		set_temp_variable = { temp_productivity_change = 55 }
		flat_productivity_change_effect = yes
	}
}

#Korea is unified
news_event = {
	id = korea.50
	title = korea.50.t
	desc = korea.50.d
	picture = GFX_NKO_korea_unification
	is_triggered_only = yes
	major = yes

	option = {
		name = korea.50.a #Hoooorrrraaay!!!
		trigger = {
			OR = {
				original_tag = KOR
				original_tag = NKO
			}
		}
	}

	option = {
		name = korea.50.b
		trigger = {
			NOT = { original_tag = KOR }
			NOT = { original_tag = NKO }
		}
	}
}

country_event = {
	id = korea.51
	title = korea.51.t
	desc = korea.51.d
	picture = GFX_grain_silo_investments
	is_triggered_only = yes

	option = { #Agriculture in  pyongyang
		name = korea.51.a
		log = "[GetDateText]: [This.GetName]: NKO_farms.1.a executed"
		602 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = agriculture_district
				level = 1
				instant_build = yes
			}
		}
		if = {
			limit = { has_idea = NKO_china_economic_assistant }
			set_temp_variable = { treasury_change = -1.875 }
		}
		else = {
			set_temp_variable = { treasury_change = -3.75 }
		}
		modify_treasury_effect = yes
	}

	option = { #Agriculture in Hwanghae
		name = korea.51.b
		log = "[GetDateText]: [This.GetName]: NKO_farms.1.b executed"
		603 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = agriculture_district
				level = 1
				instant_build = yes
			}
		}
		if = {
			limit = { has_idea = NKO_china_economic_assistant }
			set_temp_variable = { treasury_change = -1.875 }
		}
		else = {
			set_temp_variable = { treasury_change = -3.75 }
		}
		modify_treasury_effect = yes
	}

	option = { #Agriculture in Chagang
		name = korea.51.c
		log = "[GetDateText]: [This.GetName]: NKO_farms.1.c executed"
		1201 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = agriculture_district
				level = 1
				instant_build = yes
			}
		}
		if = {
			limit = { has_idea = NKO_china_economic_assistant }
			set_temp_variable = { treasury_change = -1.875 }
		}
		else = {
			set_temp_variable = { treasury_change = -3.75 }
		}
		modify_treasury_effect = yes
	}

	option = { #Agriculture in hamgyong
	name = korea.51.e
	log = "[GetDateText]: [This.GetName]: NKO_farms.1.e executed"
	601 = {
		add_extra_state_shared_building_slots = 1
		add_building_construction = {
			type = agriculture_district
			level = 1
			instant_build = yes
		}
	}
	if = {
		limit = { has_idea = NKO_china_economic_assistant }
		set_temp_variable = { treasury_change = -1.875 }
	}
	else = {
		set_temp_variable = { treasury_change = -3.75 }
	}
	modify_treasury_effect = yes
	}
}

country_event = {
	id = korea.52
	title = korea.52.t
	desc = korea.52.d
	picture = GFX_generic_train_event
	is_triggered_only = yes

	option = { #Supply the Korean Side
		name = korea.52.a
		log = "[GetDateText]: [This.GetName]: NKO_farms.1.a executed"
		601 = {
			add_building_construction = {
				type = supply_node
				level = 1
				instant_build = yes
				province = { id = 3191 }
			}
		}
		build_railway = {
			level = 1
			path = { 848 3191 3210 978 3912 11775 11828 }
			start_province = 848
			target_province = 11828
		}
		if = {
			limit = { has_idea = NKO_china_economic_assistant }
			set_temp_variable = { treasury_change = -2.25 }
		}
		else = {
			set_temp_variable = { treasury_change = -3.5 }
		}
		modify_treasury_effect = yes
	}

	option = { #Supply the Future Economic Zone
	name = korea.52.b
	log = "[GetDateText]: [This.GetName]: NKO_farms.1.b executed"
	1200 = {
		add_building_construction = {
			type = supply_node
			level = 1
			instant_build = yes
			province = { id = 11835 }
		}
	}
	1201 = {
		add_building_construction = {
			type = supply_node
			level = 1
			instant_build = yes
			province = { id = 3912 }
		}
	}
	build_railway = {
		level = 2
		path = { 6928 852 978 3912 3193 9918 11835 }
		start_province = 6928
		target_province = 11835
	}
	if = {
		limit = { has_idea = NKO_china_economic_assistant }
		set_temp_variable = { treasury_change = -3.25 }
	}
	else = {
		set_temp_variable = { treasury_change = -4.5 }
	}
	modify_treasury_effect = yes
	}
}

country_event = {
	id = korea.135 #Operation Succeeded hack
	title = korea.135.t
	desc = korea.135.d
	picture = GFX_computer
	is_triggered_only = yes

	option = {
		name = korea.135.a #Great Job
		log = "[GetDateText]: [This.GetName]: korea.135.a executed"
		add_political_power = 10
	}
}

country_event = {
	id = korea.136 #Hacking
	title = korea.136.t
	desc = korea.136.d
	picture = GFX_economy_crisis
	is_triggered_only = yes

	option = {
		name = korea.136.a #Unexpected
		log = "[GetDateText]: [This.GetName]: korea.136.a executed"
		ROOT = {
			add_opinion_modifier = {
				target = NKO
				modifier = recent_actions_negative
			}
		}
	}
}

country_event = {
	id = korea.137 #drugs
	title = korea.137.t
	desc = korea.137.d
	picture = GFX_bar
	is_triggered_only = yes

	option = {
		name = korea.137.a #Unexpected
		log = "[GetDateText]: [This.GetName]: korea.137.a executed"
			set_temp_variable = { treasury_change = -5 }
			modify_treasury_effect = yes
			add_stability = 0.01
	}

	option = {
		name = korea.137.b #Unexpected
		log = "[GetDateText]: [This.GetName]: korea.137.b executed"
			add_political_power = -10
			add_stability = -0.01
	}
}

country_event = {
	id = korea.138 #Operation Succeeded drugs
	title = korea.138.t
	desc = korea.138.d
	picture = GFX_computer
	is_triggered_only = yes

	option = {
		name = korea.138.a #Well Done!!
		log = "[GetDateText]: [This.GetName]: korea.138.a executed"
		add_political_power = 10
	}
}

country_event = {
	id = korea.139 #Money Printing operation
	title = korea.139.t
	desc = korea.139.d
	picture = GFX_invetsments_in_eastern_europe
	is_triggered_only = yes

	option = {
		name = korea.139.a #Well Done!!
		log = "[GetDateText]: [This.GetName]: korea.139.a executed"
		add_political_power = 10
	}
}

# Samsung Corporate History

country_event = {
	id = KOR_samsung_events.1
	title = KOR_samsung_events.1.t
	desc = KOR_samsung_events.1.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_nand_system_lsi } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.1.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.1.a executed"
		add_tech_bonus = { name = KOR_samsung_events.1.t bonus = 0.15 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_01a7bd4347 = yes }
		hidden_effect = { KOR_samsung_record_nand_leadership = yes }
		ai_chance = { base = 80 }
	}

	option = {
		name = KOR_samsung_events.1.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.1.b executed"
		add_political_power = 15
		hidden_effect = { add_to_variable = { KOR_samsung_consumer_ecosystem = 1 } add_to_variable = { KOR_samsung_memory_leadership = 1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 20 }
	}
}

country_event = {
	id = KOR_samsung_events.2
	title = KOR_samsung_events.2.t
	desc = KOR_samsung_events.2.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_s1_investment } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.2.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.2.a executed"
		add_tech_bonus = { name = KOR_samsung_events.2.t bonus = 0.15 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_01a7bd4347 = yes }
		hidden_effect = { KOR_samsung_record_s1_investment = yes }
		ai_chance = { base = 75 }
	}

	option = {
		name = KOR_samsung_events.2.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.2.b executed"
		add_stability = 0.01
		hidden_effect = { add_to_variable = { KOR_samsung_memory_leadership = 2 } add_to_variable = { KOR_samsung_supply_resilience = 1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 25 }
	}
}

country_event = {
	id = KOR_samsung_events.3
	title = KOR_samsung_events.3.t
	desc = KOR_samsung_events.3.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_2008_governance_reform } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.3.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.3.a executed"
		add_stability = 0.01
		hidden_effect = { KOR_samsung_record_governance_reform = yes }
		ai_chance = { base = 70 }
	}

	option = {
		name = KOR_samsung_events.3.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.3.b executed"
		add_political_power = 25
		hidden_effect = { add_to_variable = { KOR_samsung_governance_trust = -1 } add_to_variable = { KOR_samsung_supply_resilience = 1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 30 }
	}
}

country_event = {
	id = KOR_samsung_events.4
	title = KOR_samsung_events.4.t
	desc = KOR_samsung_events.4.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_galaxy_launch } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.4.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.4.a executed"
		add_tech_bonus = { name = KOR_samsung_events.4.t bonus = 0.15 uses = 1 category = CAT_internet } hidden_effect = { rq_eb_e3add24c7d = yes }
		hidden_effect = { set_country_flag = KOR_samsung_galaxy_ecosystem_strategy KOR_samsung_record_galaxy_launch = yes }
		ai_chance = { base = 55 }
	}

	option = {
		name = KOR_samsung_events.4.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.4.b executed"
		add_tech_bonus = { name = KOR_samsung_events.4.t bonus = 0.15 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_01a7bd4347 = yes }
		hidden_effect = { add_to_variable = { KOR_samsung_consumer_ecosystem = 1 } add_to_variable = { KOR_samsung_memory_leadership = 1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 45 }
	}
}

country_event = {
	id = KOR_samsung_events.5
	title = KOR_samsung_events.5.t
	desc = KOR_samsung_events.5.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { OR = { has_country_flag = KOR_samsung_asml_coinvestment has_country_flag = KOR_samsung_asml_coinvestment_declined } } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.5.a
		trigger = {
			country_exists = HOL
			NOT = { has_war_with = HOL }
			HOL = { NOT = { has_country_flag = collapsed_nation } }
		}
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.5.a executed"
		custom_effect_tooltip = TT_IF_WE_ACCEPT
		custom_effect_tooltip = KOR_samsung_events.5.a_tt
		hidden_effect = {
			KOR_samsung_record_asml_coinvestment = yes
			HOL = { HOL_asml_record_samsung_coinvestment = yes }
		}
		ai_chance = {
			base = 55
			modifier = { add = 25 has_opinion = { target = HOL value > 20 } }
			modifier = { factor = 0 has_war_with = HOL }
		}
	}

	option = {
		name = KOR_samsung_events.5.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.5.b executed"
		custom_effect_tooltip = TT_IF_WE_DECLINE
		custom_effect_tooltip = KOR_samsung_events.5.b_tt
		add_political_power = 20
		hidden_effect = {
			set_country_flag = KOR_samsung_asml_coinvestment_declined
			add_to_variable = { KOR_samsung_supply_resilience = 1 }
			KOR_samsung_clamp_state = yes
			if = { limit = { country_exists = HOL } HOL = { HOL_asml_record_samsung_coinvestment = yes } }
		}
		ai_chance = { base = 20 modifier = { add = 30 has_opinion = { target = HOL value < -15 } } }
	}
}

country_event = {
	id = KOR_samsung_events.6
	title = KOR_samsung_events.6.t
	desc = KOR_samsung_events.6.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_vnand_mass_production } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.6.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.6.a executed"
		add_tech_bonus = { name = KOR_samsung_events.6.t bonus = 0.20 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_3dc0215020 = yes }
		hidden_effect = { KOR_samsung_record_vnand = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.7
	title = KOR_samsung_events.7.t
	desc = KOR_samsung_events.7.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_techwin_transferred } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.7.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.7.a executed"
		add_stability = 0.01
		hidden_effect = { KOR_samsung_transfer_techwin_to_hanwha = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.8
	title = KOR_samsung_events.8.t
	desc = KOR_samsung_events.8.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_note7_quality_reform } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.8.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.8.a executed"
		add_stability = -0.01
		hidden_effect = { KOR_samsung_record_note7_reform = yes }
		ai_chance = { base = 75 }
	}

	option = {
		name = KOR_samsung_events.8.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.8.b executed"
		add_political_power = 20
		hidden_effect = { add_to_variable = { KOR_samsung_consumer_ecosystem = -1 } add_to_variable = { KOR_samsung_governance_trust = -1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 25 }
	}
}

country_event = {
	id = KOR_samsung_events.9
	title = KOR_samsung_events.9.t
	desc = KOR_samsung_events.9.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_dedicated_foundry } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.9.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.9.a executed"
		add_tech_bonus = { name = KOR_samsung_events.9.t bonus = 0.20 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_3dc0215020 = yes }
		hidden_effect = { set_country_flag = KOR_samsung_merchant_foundry_strategy KOR_samsung_record_foundry_organization = yes }
		ai_chance = { base = 60 }
	}

	option = {
		name = KOR_samsung_events.9.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.9.b executed"
		add_tech_bonus = { name = KOR_samsung_events.9.t bonus = 0.20 uses = 1 category = CAT_information_technology } hidden_effect = { rq_eb_9e70e17e13 = yes }
		hidden_effect = { set_country_flag = KOR_samsung_integrated_stack_strategy add_to_variable = { KOR_samsung_foundry_capability = 1 } add_to_variable = { KOR_samsung_consumer_ecosystem = 1 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 40 }
	}
}

country_event = {
	id = KOR_samsung_events.10
	title = KOR_samsung_events.10.t
	desc = KOR_samsung_events.10.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_7lpp_euv } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.10.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.10.a executed"
		add_tech_bonus = { name = KOR_samsung_events.10.t bonus = 0.20 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_3dc0215020 = yes }
		hidden_effect = { KOR_samsung_record_7lpp_euv = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.11
	title = KOR_samsung_events.11.t
	desc = KOR_samsung_events.11.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_fold_relaunched } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.11.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.11.a executed"
		add_stability = 0.01
		hidden_effect = { KOR_samsung_record_fold_relaunch = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.12
	title = KOR_samsung_events.12.t
	desc = KOR_samsung_events.12.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_v1_euv_line } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.12.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.12.a executed"
		add_tech_bonus = { name = KOR_samsung_events.12.t bonus = 0.20 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_3dc0215020 = yes }
		hidden_effect = { KOR_samsung_record_v1_line = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.13
	title = KOR_samsung_events.13.t
	desc = KOR_samsung_events.13.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_taylor_investment } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.13.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.13.a executed"
		add_tech_bonus = { name = KOR_samsung_events.13.t bonus = 0.15 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_01a7bd4347 = yes }
		hidden_effect = { KOR_samsung_record_taylor_investment = yes }
		ai_chance = { base = 70 }
	}

	option = {
		name = KOR_samsung_events.13.b
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.13.b executed"
		add_political_power = 20
		hidden_effect = { add_to_variable = { KOR_samsung_supply_resilience = 2 } KOR_samsung_clamp_state = yes }
		ai_chance = { base = 30 }
	}
}

country_event = {
	id = KOR_samsung_events.14
	title = KOR_samsung_events.14.t
	desc = KOR_samsung_events.14.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_3nm_gaa } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.14.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.14.a executed"
		add_tech_bonus = { name = KOR_samsung_events.14.t bonus = 0.20 uses = 1 category = CAT_microchips } hidden_effect = { rq_eb_3dc0215020 = yes }
		hidden_effect = { KOR_samsung_record_3nm_gaa = yes }
		ai_chance = { base = 100 }
	}
}

country_event = {
	id = KOR_samsung_events.15
	title = KOR_samsung_events.15.t
	desc = KOR_samsung_events.15.d
	picture = GFX_computer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { has_game_rule = { rule = rule_corporate_history option = full } original_tag = KOR NOT = { has_country_flag = collapsed_nation } NOT = { has_country_flag = KOR_samsung_capstone_resolved } }

	immediate = { KOR_samsung_initialize_state = yes }

	option = {
		name = KOR_samsung_events.15.a
		log = "[GetDateText]: [Root.GetName]: KOR_samsung_events.15.a executed"
		add_tech_bonus = { name = KOR_samsung_events.15.t bonus = 0.20 uses = 1 category = CAT_artificial_intelligence } hidden_effect = { rq_eb_81f187a6b7 = yes }
		hidden_effect = { KOR_samsung_record_hbm_ai = yes KOR_samsung_resolve_capstone = yes }
		ai_chance = { base = 100 }
	}
}
