﻿
# Japanese expansionism and diplomacy

add_namespace = japanese_expansion
add_namespace = japanese_diplomacy

# Japan claims Taiping

news_event = {
	id = japanese_expansion.1
	title = japanese_expansion1title
	desc = japanese_expansion1desc
	
	picture = GFX_news_event_soldiers_marching
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion1opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = PRC
				}
			}
		}
	}
	option = {
		name = japanese_expansion1optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion1optc
		trigger = {
			TAG = PRC
		}
	}
}

# Japan claims the Philippines

news_event = {
	id = japanese_expansion.2
	title = japanese_expansion2title
	desc = japanese_expansion2desc
	
	picture = GFX_news_event_020
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion2opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = "PHI"
				}
			}
		}
	}
	option = {
		name = japanese_expansion2optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion2optc
		trigger = {
			TAG = "PHI"
		}
	}
}

# Japan claims China

news_event = {
	id = japanese_expansion.3
	title = japanese_expansion3title
	desc = japanese_expansion3desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion3opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = CHI
				}
			}
		}
	}
	option = {
		name = japanese_expansion3optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion3optc
		trigger = {
			TAG = CHI
		}
	}
}

# Japan claims Siberia

news_event = {
	id = japanese_expansion.4
	title = japanese_expansion4title
	desc = japanese_expansion4desc
	
	picture = GFX_news_event_004
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion4opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = SOV
				}
			}
		}
	}
	option = {
		name = japanese_expansion4optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion4optc
		trigger = {
			TAG = SOV
		}
	}
}

# Japan claims French Indochine

news_event = {
	id = japanese_expansion.5
	title = japanese_expansion5title
	desc = japanese_expansion5desc
	
	picture = GFX_news_event_004
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion5opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = FRA
				}
			}
		}
	}
	option = {
		name = japanese_expansion5optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion5optc
		trigger = {
			TAG = FRA
		}
	}
}

# Japan claims Dutch East Indies

news_event = {
	id = japanese_expansion.6
	title = japanese_expansion6title
	desc = japanese_expansion6desc
	
	picture = GFX_news_event_020
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion6opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = HOL
				}
			}
		}
	}
	option = {
		name = japanese_expansion6optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion6optc
		trigger = {
			TAG = HOL
		}
	}
}

# Japan claims British East Indies

news_event = {
	id = japanese_expansion.7
	title = japanese_expansion7title
	desc = japanese_expansion7desc
	
	picture = GFX_news_event_020
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion7opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = ENG
				}
			}
		}
	}
	option = {
		name = japanese_expansion7optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion7optc
		trigger = {
			TAG = ENG
		}
	}
}

# Japan claims Australia and New Zealand

news_event = {
	id = japanese_expansion.8
	title = japanese_expansion8title
	desc = japanese_expansion8desc
	
	picture = GFX_news_event_020
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_expansion8opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = ENG
					TAG = AST
					TAG = NZL
				}
			}
		}
	}
	option = {
		name = japanese_expansion8optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_expansion8optc
		trigger = {
			OR = {
				TAG = ENG
				TAG = AST
				TAG = NZL
			}
		}
	}
}

# Japan trying to befriend Philippines

country_event = {
	id = japanese_diplomacy.1
	title = japanese_diplomacy1title
	desc = japanese_diplomacy1desc
	
	picture = GFX_report_event_japanese_siam_politicians
		
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy1opta
		
		add_ai_strategy = {
			type = alliance
			id = JAP
			value = 9999
		}
		
		JAP = {
			add_to_faction = "PHI"
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.2 }
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
				JAP = {
					has_government = neutrality
				}
			}
			modifier = {
				factor = 10
				has_government = communism
				JAP = {
					has_government = communism
				}
			}
			modifier = {
				factor = 10
				has_government = democratic
				JAP = {
					has_government = democratic
				}
			}
			modifier = {
				factor = 10
				has_government = neutrality
				JAP = {
					has_government = neutrality
				}
			}
			modifier = {
				factor = 10
				has_government = fascism
				JAP = {
					has_government = fascism
				}
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
		}
	}
	
	option = {
		name = japanese_diplomacy1optb
				
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.3 }
		}
		
		ai_chance = {
			factor = 2
		}
	}
}

# News event if Philippines accepts

news_event = {
	id = japanese_diplomacy.2
	title = japanese_diplomacy2title
	desc = japanese_diplomacy2desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy2opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = "PHI"
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy2optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy2optc
		trigger = {
			TAG = "PHI"
		}
	}
}

# News event if Philippines declines

news_event = {
	id = japanese_diplomacy.3
	title = japanese_diplomacy3title
	desc = japanese_diplomacy3desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy3opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = "PHI"
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy3optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy3optc
		trigger = {
			TAG = "PHI"
		}
	}
}

# Japan trying to befriend Taiping

country_event = {
	id = japanese_diplomacy.4
	title = japanese_diplomacy4title
	desc = japanese_diplomacy4desc
	
	picture = GFX_report_event_japanese_siam_politicians
		
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy4opta
		
		add_ai_strategy = {
			type = alliance
			id = JAP
			value = 9999
		}
		
		JAP = {
			add_to_faction = PRC
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.5 }
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_government = fascism
				JAP = {
					has_government = neutrality
				}
			}
			modifier = {
				factor = 10
				has_government = communism
				JAP = {
					has_government = communism
				}
			}
			modifier = {
				factor = 10
				has_government = democratic
				JAP = {
					has_government = democratic
				}
			}
			modifier = {
				factor = 10
				has_government = neutrality
				JAP = {
					has_government = neutrality
				}
			}
			modifier = {
				factor = 10
				has_government = fascism
				JAP = {
					has_government = fascism
				}
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
		}
	}
	
	option = {
		name = japanese_diplomacy4optb
				
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.6 }
		}
		
		ai_chance = {
			factor = 2
		}
	}
}

# News event if Taiping accepts

news_event = {
	id = japanese_diplomacy.5
	title = japanese_diplomacy5title
	desc = japanese_diplomacy5desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy5opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = PRC
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy5optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy5optc
		trigger = {
			TAG = PRC
		}
	}
}

# News event if Taiping declines

news_event = {
	id = japanese_diplomacy.6
	title = japanese_diplomacy6title
	desc = japanese_diplomacy6desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy6opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = PRC
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy6optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy6optc
		trigger = {
			TAG = PRC
		}
	}
}

# Japan trying to befriend Siam

country_event = {
	id = japanese_diplomacy.7
	title = japanese_diplomacy7title
	desc = japanese_diplomacy7desc
	
	picture = GFX_report_event_japanese_siam_politicians
		
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy7opta
		
		if = {
			limit = {
				JAP = {
					NOT = { is_in_faction_with = ENG }
				}
			}
			add_state_claim = 640
			add_state_claim = 288
			add_state_claim = 336
			add_state_claim = 733
		}
		
		if = {
			limit = {
				JAP = {
					NOT = { is_in_faction_with = FRA }
				}
			}
			add_state_claim = 741
			add_state_claim = 286
			add_state_claim = 671
			add_state_claim = 670
		}
		
		add_ai_strategy = {
			type = alliance
			id = JAP
			value = 9999
		}
		
		JAP = {
			add_to_faction = SIA
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.8 }
		}
		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 5
				has_government = neutrality
				JAP = {
					has_government = fascism
				}
			}
			modifier = {
				factor = 10
				has_government = communism
				JAP = {
					has_government = communism
				}
			}
			modifier = {
				factor = 10
				has_government = democratic
				JAP = {
					has_government = democratic
				}
			}
			modifier = {
				factor = 10
				has_government = neutrality
				JAP = {
					has_government = neutrality
				}
			}
			modifier = {
				factor = 10
				has_government = fascism
				JAP = {
					has_government = fascism
				}
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
		}
	}
	
	option = {
		name = japanese_diplomacy7optb
				
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.9 }
		}
		
		ai_chance = {
			factor = 2
		}
	}
}

# News event if Siam accepts

news_event = {
	id = japanese_diplomacy.8
	title = japanese_diplomacy8title
	desc = japanese_diplomacy8desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy8opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = SIA
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy8optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy8optc
		trigger = {
			TAG = SIA
		}
	}
}

# News event if Siam declines

news_event = {
	id = japanese_diplomacy.9
	title = japanese_diplomacy9title
	desc = japanese_diplomacy9desc
	
	picture = GFX_news_event_009
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy9opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = SIA
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy9optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy9optc
		trigger = {
			TAG = SIA
		}
	}
}

# Japan suffers an ultranationalist coup, to propel her to expansionism

country_event = {
	id = japanese_diplomacy.10
	title = japanese_diplomacy10title
	desc = japanese_diplomacy10desc
	
	picture = GFX_report_event_japanese_siam_politicians
	
	fire_only_once = yes

	trigger = {
		tag = JAP
		date > 1936.6.1
	}
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = japanese_diplomacy10opta
		
		add_popularity = {
			ideology = neutrality
			popularity = -0.25
		}
		
		add_popularity = {
			ideology = fascism
			popularity = 0.25
		}
		
		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}
		
		set_party_name = { ideology = fascism name = deluge_japanese_ultranat_short long_name = deluge_japanese_ultranat_long }
		set_party_name = { ideology = neutrality name = deluge_japanese_monarchist_short long_name = deluge_japanese_monarchist_long }

		if = {
			limit = { has_idea = deluge_neutrality_crackdown_idea }
			remove_ideas = deluge_neutrality_crackdown_idea
		}
		
		if = {
			limit = { has_idea = deluge_neutrality_liberalisation_idea }
			remove_ideas = deluge_neutrality_liberalisation_idea
		}
		
		if = {
			limit = { has_idea = landed }
			add_ideas = novote
			add_ideas = established_religion
		}

		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.11 }
		}
		
		ai_chance = {
			factor = 2
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
		}
	}
	
	option = {
		name = japanese_diplomacy10optb
				
		add_popularity = {
			ideology = fascism
			popularity = -0.25
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.12 }
		}
		
		ai_chance = {
			factor = 1
		}
	}
}

# News event for fascism outcome

news_event = {
	id = japanese_diplomacy.11
	title = japanese_diplomacy11title
	desc = japanese_diplomacy11desc
	
	picture = GFX_news_event_041
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy11opta
		trigger = { has_government = communism }
	}
	option = {
		name = japanese_diplomacy11optb
		trigger = { has_government = democratic }
	}
	option = {
		name = japanese_diplomacy11optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = japanese_diplomacy11optd
		trigger = { has_government = fascism }
	}
}

# News event for neutrality outcome

news_event = {
	id = japanese_diplomacy.12
	title = japanese_diplomacy12title
	desc = japanese_diplomacy12desc
	
	picture = GFX_news_event_041
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy12opta
		trigger = { has_government = communism }
	}
	option = {
		name = japanese_diplomacy12optb
		trigger = { has_government = democratic }
	}
	option = {
		name = japanese_diplomacy12optc
		trigger = { has_government = neutrality }
	}
	option = {
		name = japanese_diplomacy12optd
		trigger = { has_government = fascism }
	}
}

# Japan has been pushed out of Manchuria and Korea by China, and China still has her capital.
# Japan surrenders her mainland possessions for peace. Players can choose to reject peace
# but will be hit by a civil war.

country_event = {
	id = japanese_diplomacy.13
	title = japanese_diplomacy13title
	desc = japanese_diplomacy13desc
	
	picture = GFX_report_event_dead_soldiers
	
	fire_only_once = yes
	
	trigger = {
		tag = JAP
		is_faction_leader = yes
		has_war_with = CHI
		CHI = {
			is_faction_leader = yes
			controls_state = 597 # Shandong
			controls_state = 608 # Beijing
			controls_state = 609 # East Hebei
		}
		NOT = { controls_state = 560 } # Saghalian
		NOT = { controls_state = 409 } # Boli
		NOT = { controls_state = 408 } # Haishenwei/Vladivostok
		NOT = { controls_state = 527 } # North Korea
		NOT = { controls_state = 525 } # South Korea
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = japanese_diplomacy13opta
		
		CHI = {
			country_event = { days = 1 id = japanese_diplomacy.14 }
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {
		name = japanese_diplomacy13optb
		
		if = {
			limit = {
				NOT = {
					has_government = communism
				}
			}
			start_civil_war = {
				ideology = communism
				size = 0.25
			}
		}
		if = {
			limit = {
				has_government = communism
			}
			start_civil_war = {
				ideology = fascism
				size = 0.25
			}
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.16 }
		}
		
		ai_chance = {
			factor = 0
		}
	}
}

# AI China will always accept peace

country_event = {
	id = japanese_diplomacy.14
	title = japanese_diplomacy14title
	desc = japanese_diplomacy14desc
	
	picture = GFX_report_event_dead_soldiers
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = {
				PRC = {
					has_war_with = CHI
					is_in_faction_with = JAP
					OR = {
						has_capitulated = yes
						CHI = {
							controls_state = 613
							controls_state = 596
							controls_state = 598
							controls_state = 606
						}
					}		
				}
			}
			set_global_flag = taiping_capitulated
		}
	}
	
	option = {
		name = japanese_diplomacy14opta

		set_global_flag = flag_china_japan_peace_deal # flag used to stop japan ai taking wargoals against china or taiping
		
		every_state = {
			limit = {
				is_core_of = CHI
			}
			remove_claim_by = JAP
		}
		
		if = {
			limit = {
				524 = {
					is_owned_by = JAP
					is_controlled_by = CHI
				}
			}
			transfer_state = 524
		}
				
		JAP = {
			every_state = {
				limit = {
					is_core_of = CHI
					is_owned_by = JAP
					NOT = { state = 524 }
				}
				CHI = {
					transfer_state = PREV
				}
			}
		}
		
		if = {
			limit = {
				country_exists = KOR
				KOR = {
					OR = {
						is_subject_of = JAP
						is_in_faction_with = JAP
					}
				}
			}
			puppet = KOR
		}
		
		if = {
			limit = {
				NOT = { country_exists = KOR }
				525 = {
					is_owned_by = JAP
				}
				527 = {
					is_owned_by = JAP
				}
			}
			KOR = {
				transfer_state = 525
				transfer_state = 527
			}
			puppet = KOR
		}

		if = {
			limit = {
				has_global_flag = taiping_capitulated
			}
			annex_country = { target = PRC transfer_troops = no }
		}
		
		white_peace = { tag = JAP }
		
		diplomatic_relation = { country = JAP relation = non_aggression_pact }

		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.15 }
		}
		
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = japanese_diplomacy14optb

		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.17 }
		}
		
		ai_chance = {
			factor = 0
		}
	}
}

# News event for peace

news_event = {
	id = japanese_diplomacy.15
	title = japanese_diplomacy15title
	desc = japanese_diplomacy15desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy15opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = CHI
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy15optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy15optc
		trigger = {
			TAG = CHI
		}
	}
}

# News event for Japan rejecting peace

news_event = {
	id = japanese_diplomacy.16
	title = japanese_diplomacy16title
	desc = japanese_diplomacy16desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy16opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					TAG = CHI
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy16optb
		trigger = {
			TAG = JAP
		}
	}
	option = {
		name = japanese_diplomacy16optc
		trigger = {
			TAG = CHI
		}
	}
}

# News event for China rejecting peace

news_event = {
	id = japanese_diplomacy.17
	title = japanese_diplomacy17title
	desc = japanese_diplomacy17desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy17opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					is_in_faction_with = JAP
					TAG = CHI
					is_in_faction_with = CHI
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy17optb
		trigger = {
			OR = {
				TAG = JAP
				is_in_faction_with = JAP
			}
		}
	}
	option = {
		name = japanese_diplomacy17optc
		trigger = {
			OR = {
				TAG = CHI
				is_in_faction_with = CHI
			}
		}
	}
}

# China is self-strengthening and Japan can intervene to stop them growing too powerful
# Japan gets to demand Manchuria 
# Fired on select by Chinese NF Self-Strengthening

country_event = {
	id = japanese_diplomacy.18
	title = japanese_diplomacy18title
	desc = japanese_diplomacy18desc
	
	picture = GFX_report_event_dead_soldiers
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy18opta
		
		trigger = {
			NOT = { has_war_with = CHI }
		}
		
		CHI = {
			country_event = japanese_diplomacy.19
		}
		
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = japanese_diplomacy18optb
		
		ai_chance = {
			factor = 0
		}
	}
}

# China will tend to refuse unless at war

country_event = {
	id = japanese_diplomacy.19
	title = japanese_diplomacy19title
	desc = japanese_diplomacy19desc
	
	picture = GFX_report_event_dead_soldiers
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy19opta
		
		trigger = {
			NOT = { has_war_with = JAP }
		}
		
		every_state = {
			limit = {
				is_owned_by = ROOT
				OR = {
					state = 560
					state = 561
					state = 657
					state = 714
					state = 715
					state = 763
					state = 761
				}
			}
			JAP = {
				transfer_state = PREV
				add_state_claim = THIS
			}
		}
		
		diplomatic_relation = { country = JAP relation = non_aggression_pact }
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.20 }
			
			if = {
				limit = {
					has_civil_war = yes
					OR = {
						NOT = { owns_state = 560 }
						NOT = { owns_state = 561 }
						NOT = { owns_state = 657 }
						NOT = { owns_state = 714 }
						NOT = { owns_state = 715 }
						NOT = { owns_state = 763 }
						NOT = { owns_state = 761 }
					}
				}
				random_country = {
					limit = {
						original_tag = CHI
						NOT = { is_in_faction_with = JAP }
						NOT = { tag = CHI }
					}
					JAP = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 560 561 657 714 715 763 761 }
						}
					}
				}
			}
		}
		
		ai_chance = {
			factor = 1
			
			modifier = {
				factor = 2
				has_civil_war = yes
			}
			modifier = {
				factor = 2
				has_war = yes
			}
			modifier = {
				factor = 2
				has_war_with = SOV
			}
			modifier = {
				factor = 2
				has_war_with = PRC
			}
			modifier = {
				factor = 2
				any_enemy_country = {
					is_major = yes
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy19optb
		
		every_state = {
			limit = {
				OR = {
					state = 560
					state = 561
					state = 657
					state = 714
					state = 715
					state = 610
					state = 609
					state = 608
					state = 614
					state = 597
					state = 763
					state = 761
				}
			}
			add_claim_by = JAP
		}
		
		if = {
			limit = {
				NOT = { has_war_with = JAP }
			}
			JAP = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = CHI
				}
			}
		}
		
		hidden_effect = {
			news_event = { days = 1 id = japanese_diplomacy.21 }

			if = {
				limit = {
					has_civil_war = yes
					OR = {
						NOT = { owns_state = 560 }
						NOT = { owns_state = 561 }
						NOT = { owns_state = 657 }
						NOT = { owns_state = 714 }
						NOT = { owns_state = 715 }
						NOT = { owns_state = 763 }
						NOT = { owns_state = 761 }
					}
				}
				random_country = {
					limit = {
						original_tag = CHI
						NOT = { is_in_faction_with = JAP }
						NOT = { tag = CHI }
					}
					JAP = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 560 561 657 714 715 763 761 }
						}
					}
				}
			}
		}
		
		ai_chance = {
			factor = 2
			
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
}


# News event for China ceding Manchuria to Japan

news_event = {
	id = japanese_diplomacy.20
	title = japanese_diplomacy20title
	desc = japanese_diplomacy20desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy20opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					is_in_faction_with = JAP
					TAG = CHI
					is_in_faction_with = CHI
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy20optb
		trigger = {
			OR = {
				TAG = JAP
				is_in_faction_with = JAP
			}
		}
	}
	option = {
		name = japanese_diplomacy20optc
		trigger = {
			OR = {
				TAG = CHI
				is_in_faction_with = CHI
			}
		}
	}
}


# News event for China refusing to cede Manchuria to Japan

news_event = {
	id = japanese_diplomacy.21
	title = japanese_diplomacy21title
	desc = japanese_diplomacy21desc
	
	picture = GFX_news_event_chinese_soldiers_march
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = japanese_diplomacy21opta
		trigger = {
			NOT = {
				OR = {
					TAG = JAP
					is_in_faction_with = JAP
					TAG = CHI
					is_in_faction_with = CHI
				}
			}
		}
	}
	option = {
		name = japanese_diplomacy21optb
		trigger = {
			OR = {
				TAG = JAP
				is_in_faction_with = JAP
			}
		}
	}
	option = {
		name = japanese_diplomacy21optc
		trigger = {
			OR = {
				TAG = CHI
				is_in_faction_with = CHI
			}
		}
	}
}
