#########################################################################
#
#		帒尮挷惍MOD丂擔杮愴憟僀儀儞僩
#
#########################################################################

#########################################################################
#  surrender of japan
#########################################################################

event = {
	id = 91000
	random = no
	country = JAP

	name = EVT_91000_NAME
	desc = EVT_91000_DESC
	style = 0
	picture = "JAP_surrender"

	trigger = {
		war = { country = JAP country = USA }
		OR = {
			NOT = {
				AND = {
					control = { province = 1191 data = JAP }
					control = { province = 1190 data = JAP }
					control = { province = 1189 data = JAP }
					control = { province = 1188 data = JAP }
					control = { province = 1187 data = JAP }
					control = { province = 1186 data = JAP }
					control = { province = 1185 data = JAP }
					control = { province = 1184 data = JAP }
					control = { province = 1183 data = JAP }
					control = { province = 1182 data = JAP }
					control = { province = 1181 data = JAP }
					control = { province = 1180 data = JAP }
				}
			}
			NOT = {
				OR = {
					control = { province = 1713 data = JAP } #Manila
					control = { province = 1353 data = JAP } #Singapore
					control = { province = 1315 data = JAP } #Hong-Kong
					control = { province = 1193 data = JAP } #Okinawa
					control = { province = 1599 data = JAP } #Iwo-Jima
					VP = 100
				}
			}
		}
	}

	date = { day = 1 month = january year = 1939 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }

	action_a = {
		ai_chance = 90
		name = EVT_91000_ACTA
		command = { type = money value = -10 }
		command = { type = secedeprovince which = USA value = 1193 } # South Korea + islands
		command = { type = secedeprovince which = USA value = 1194 }
		command = { type = secedeprovince which = USA value = 1195 }
		command = { type = secedeprovince which = USA value = 1196 }
		command = { type = secedeprovince which = USA value = 1197 }
		command = { type = secedeprovince which = USA value = 1198 }
		command = { type = secedeprovince which = USA value = 1199 }
		command = { type = secedeprovince which = ENG value = 1315 } # Hong Kong
		command = { type = secedeprovince which = CHI value = 1202 } # Dalian + Taiwan
		command = { type = secedeprovince which = CHI value = 1322 }
		command = { type = secedeprovince which = CHI value = 1323 }
		command = { type = secedeprovince which = CHI value = 1324 }
		command = { type = secedeprovince which = FRA value = 1306 } #Indochina
		command = { type = secedeprovince which = FRA value = 1326 }
		command = { type = secedeprovince which = FRA value = 1328 }
		command = { type = secedeprovince which = FRA value = 1329 }
		command = { type = secedeprovince which = FRA value = 1332 }
		command = { type = secedeprovince which = FRA value = 1333 }
		command = { type = secedeprovince which = FRA value = 1334 }
		command = { type = secedeprovince which = FRA value = 1335 }
		command = { type = secedeprovince which = FRA value = 1336 }
		command = { type = secedeprovince which = FRA value = 1337 }
		command = { type = secedeprovince which = FRA value = 1338 }
		command = { type = secedeprovince which = FRA value = 1339 }
		command = { type = secedeprovince which = FRA value = 1340 }
		command = { type = secedeprovince which = FRA value = 1341 }
		command = { type = domestic which = political_left value = 1 }
		command = { type = domestic which = freedom value = 1 }
		command = { type = domestic which = democratic value = 2 }
		command = { type = domestic which = defense_lobby value = -5 }
		command = { type = trigger which = 91001 }
		command = { type = end_mastery which = MEN }
		command = { type = end_mastery which = MAN }
		command = { type = end_mastery which = SIA }
		command = { type = end_mastery which = CHI }
		command = { type = end_mastery which = CGX }
		command = { type = end_mastery which = CSX }
		command = { type = end_mastery which = CXB }
		command = { type = end_mastery which = CYN }
		command = { type = end_mastery which = U74 }
		command = { type = end_mastery which = U87 }
		command = { type = peace which = USA value = 0 }
		command = { type = peace which = ENG value = 0 }
		command = { type = peacetime_ic_mod value = -25 }
	}
	action_b = {
		ai_chance = 10
		name = EVT_91000_ACTB
		command = { type = dissent value = 5 }
		command = { type = domestic which = political_left value = -1 }
		command = { type = domestic which = freedom value = -1 }
		command = { type = domestic which = democratic value = -1 }
		command = { type = domestic which = defense_lobby value = 1 }
	}
}
event = {
	id = 91001
	random = no
	country = SOV
	
	name = "EVT_91001_NAME"
	desc = "EVT_91001_DESC"
	style = 0
	
	action_a = {
		name = "EVT_91001_ACTA"
		ai_chance = 95
		command = { type = peace which = JAP value = 0 }
		command = { type = dissent value = 15 }
		command = { type = relation which = CHI value = 20 }
		command = { type = relation which = USA value = 20 }
		command = { type = relation which = ENG value = 20 }

		command = { type = inherit which = MAN }
		command = { type = inherit which = MEN }
		command = { type = independence which = MON value = 1 when = 0 }

		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = trigger which = 91002 }
	}
	action_b = {
		name = "EVT_91001_ACTB"
		ai_chance = 5
		command = { type = peace which = JAP value = 0 }
		command = { type = relation which = CHI value = 20 }
		command = { type = relation which = USA value = 20 }
		command = { type = relation which = ENG value = 20 }
		
		command = { type = dissent value = 5 }
		command = { type = domestic which = defense_lobby value = -1 }
		command = { type = trigger which = 91002 }
	}
}
event = {
	id = 91002
	random = no
	country = JAP
	
	name = "EVT_91002_NAME"
	desc = "EVT_91002_DESC"
	style = 0
	
	action_a = {
		name = "OK"
		command = { type = secedeprovince which = SOV value = 1376 }
		command = { type = secedeprovince which = SOV value = 1391 }
		command = { type = secedeprovince which = SOV value = 1392 }
		command = { type = secedeprovince which = SOV value = 1393 }
		command = { type = secedeprovince which = SOV value = 1200 }
		command = { type = secedeprovince which = SOV value = 1201 }
		command = { type = trigger which = 91003 }
	}
}
event = {
	id = 91003
	random = no
	country = USA
	
	name = "EVT_91003_NAME"
	desc = "EVT_91003_DESC"
	style = 0
	
	action_a = {
		name = "OK"
		command = { type = make_puppet which = JAP }
		command = { type = relation which = JAP value = 50 }
		command = { type = dissent value = -5 }
		command = { type = domestic which = defense_lobby value = -3 }
	}
}
event = {
	id = 91004
	random = no
	country = JAP
	persistent = yes

	trigger = {
		OR = {
			war = { country = JAP country = USA }
			war = { country = JAP country = ENG }
		}
		random = 25 # 5% chance every 12 days
		NOT = {
			government = democratic
			VP = 150
			manpower = 500
		}
		OR = {
			NOT = { VP = 100 }
			lost_national  = { country = JAP value = 1 }
		}
	}
	
	name = "EVT_91004_NAME"
	desc = "EVT_91004_DESC"
	style = 30
	picture = "war_refugees"
	
	date = { day = 1 month = april year = 1940 }
	offset = 30 # Check for trigger conditions every 12 days
	deathdate = { day = 29 month = december year = 1945 }
	
	action_a = {
		name = "EVT_91004_ACTA"
		ai_chance = 75
		command = { type = supplies value = 100 }
		command = { type = money value = 100 }
		command = { type = manpowerpool value = 100 }
		command = { type = dissent value = 3 }
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = free_market value = -1 }
		command = { type = tc_mod value = -1 }
		command = { type = attrition_mod value = -1 }
		command = { type = industrial_modifier which = total value = -1 }
		command = { type = research_mod value = -1 }
		command = { type = relative_manpower value = 5 }
	}
	action_b = {
		name = "EVT_91004_ACTB"
		ai_chance = 25
		command = { type = dissent value = -5 }
	}
}

event = {
	id = 91005
	random = no
	country = JAP
	
	name = "EVT_91005_NAME"
	desc = "EVT_91005_DESC"
	style = 0
	
	trigger = {
		atwar = no
	}
	
	date = { day = 1 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }
	
	action_a = {
		name = "OK"
		command = { type = gain_tech which = 3280 }
		command = { type = gain_tech which = 3290 }
		command = { type = gain_tech which = 3300 }
	}
}

event = {
	id = 91006
	random = no
	country = JAP
	
	name = "EVT_91006_NAME"
	desc = "EVT_91006_DESC"
	style = 0
	
	trigger = {
		event = 91005
		technology = 3300
	}
	
	date = { day = 3 month = November year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }
	
	action_a = {
		name = "EVT_91006_ACTA"
		ai_chance = 95
		command = { type = build_division which = battleship value = naval_fire_controll_s }
	}
	action_b = {
		name = "EVT_91006_ACTB"
		ai_chance = 5
		command = { type = money value = 50 }
	}
}

event = {
	id = 91007
	random = no
	country = JAP
	
	name = "EVT_91007_NAME"
	desc = "EVT_91007_DESC"
	style = 0
	
	trigger = {
		event = 91006
	}
	
	date = { day = 28 month = march year = 1937 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }
	
	action_a = {
		name = "EVT_91007_ACTA"
		ai_chance = 95
		command = { type = build_division which = battleship value = naval_fire_controll_s }
	}
	action_b = {
		name = "EVT_91007_ACTB"
		ai_chance = 5
		command = { type = money value = 50 }
	}
}

event = {
	id = 91008
	random = no
	country = JAP
	
	name = "EVT_91008_NAME"
	desc = "EVT_91008_DESC"
	style = 0
	
	trigger = {
		event = 91007
	}
	
	date = { day = 1 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }
	
	action_a = {
		name = "OK"
		command = { type = gain_tech which = 3350 }
		command = { type = gain_tech which = 3360 }
		command = { type = gain_tech which = 3370 }
		command = { type = gain_tech which = 12040 }
	}
}

event = {
	id = 91009
	random = no
	country = JAP
	
	name = "EVT_91009_NAME"
	desc = "EVT_91009_DESC"
	style = 0
	
	trigger = {
		event = 91008
		OR = {
			technology = 3370
			technology = 12040
		}
	}
	
	date = { day = 4 month = may year = 1940 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }
	
	action_a = {
		name = "EVT_91009_ACTA"
		ai_chance = 25
		command = { type = build_division which = battleship value = naval_fire_controll_s }
	}
	action_b = {
		name = "EVT_91009_ACTB"
		ai_chance = 70
		command = { type = build_division which = carrier value = cag }
	}
	action_c = {
		name = "EVT_91009_ACTC"
		ai_chance = 5
		command = { type = money value = 50 }
	}
}

