on_actions = {
	on_war_relation_added = {
		effect = {
			log = "on_war_relation_added [GetLogRoot] [GetLogFrom]"
			# 양안전쟁
			if = {
				limit = {
					tag = PRC
					FROM = {
						tag = CHI
					}
				}
				country_event = ai_events.100
			}
			# 사우디 내전
			if = {
				limit = {
					tag = ROC
					FROM = {
						tag = SAU
					}
				}
				country_event = ai_events.300
			}
			# 미국 내전
			if = {
				limit = {
					tag = USB
					FROM = {
						tag = USC
					}
				}
				country_event = ai_events.200
			}
			else_if = {
				limit = {
					tag = USC
					FROM = {
						tag = USB
					}
				}
				country_event = ai_events.200
			}
		}
	}

	on_peaceconference_ended = {
		effect = {
			log = "on_peaceconference_ended [GetLogRoot] [GetLogFrom]"
			# 양안전쟁 승전
			if =  {
				limit = {
					tag = PRC
					FROM = {
						tag = CHI
					}
				}
				country_event = ai_events.201
			}
		}
	}

	on_annex = {
		effect = {
			log = "on_annex [GetLogRoot] [GetLogFrom]"
			if = {
				limit = {
					tag = PRC
					FROM = {
						tag = CHI
					}
				}
				country_event = ai_events.101
			}
		}
	}

	on_state_control_changed = {
		effect = {
			if = {
				#Pyongyang
				limit = {
					FROM.FROM = {
						state = 1043
					}
					FROM = {
						OR = {
							tag = PRK
							is_ally_with = PRC
						}
					}
					ROOT = {
						OR = {
							tag = KOR
							is_ally_with = JAP
						}
					}
					not = {
						has_global_flag = captured_pyongyang
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
				}
				news_event = {
					id = kor_news.13
					hours = 5
				}
				KOR = {
					country_event = korea.188
				}
			}
			if = {
				#원산
				limit = {
					FROM.FROM = {
						state = 1042
					}
					FROM = {
						OR = {
							tag = PRK
							is_ally_with = PRC
						}
					}
					ROOT = {
						OR = {
							tag = KOR
							is_ally_with = JAP
						}
					}
				}
				KOR = {
					country_event = korea.138
				}
			}
		}
	}
}