#
# HoI - Nationalist China Events
#
#		written by Henrik Fåhraeus
#

# ID series: 4100-4199

#########################################################################
#  The Nanking Massacre
#########################################################################
event = {
	id = 4100
	random = no
	country = CHI

	# Triggered by JAP 3802

	name = "EVT_4100_NAME"
	desc = "EVT_4100_DESC"
	style = 0
	picture = "Nanking"

	action_a = {
		name = "OK" # Tragedy!
		command = { type = relation which = CGX value = 15 }
		command = { type = relation which = CSX value = 20 }
		command = { type = province_manpower which = 1235 value = -30 }
		command = { type = dissent value = -20 } # National cementation
		command = { type = capital which = 1280 } # Chongqing
	}
}

#########################################################################
#  A Lend-Lease Caravan Arrives from the USA
#########################################################################
event = {
	id = 4102
	random = no
	country = CHI

	persistent = yes 

	# Triggered by USA 3725. NOTE: May be triggered several times.

	name = "EVT_4102_NAME"
	desc = "EVT_3404_DESC"
	style = 0
	picture = "Lend_Lease_Chi"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 1000 }
		command = { type = money value = 100 }
		command = { type = rarematerialspool value = 500 }
		#command = { type = construct which = ic where = 1361 value = 1 } #Zigong
		}
}

#########################################################################
#  A Lend-Lease Caravan Arrives from the SU
#########################################################################
event = {
	id = 100999
	random = no
	country = CHI

	persistent = yes 

	# Triggered by SOV 100998. NOTE: May be triggered several times.

	name = "EVT_3725_NAME"
	desc = "EVT_100998_DESC"
	style = 0
	picture = "Lend_Lease_Chi"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 1000 }
		command = { type = money value = 100 }
		command = { type = rarematerialspool value = 500 }
		#command = { type = construct which = ic where = 1360 value = 1 } #Chengdu
		}
}

################
# Chinese alliance against the Soviets
#############################################
event = {
	id = 29032
	country = CHI
	random = no

	trigger = {
		OR = {
			war = { country = CHI country = SOV }
			war = { country = CHC country = SOV }
			war = { country = CSX country = SOV }
			war = { country = CGX country = SOV }
			war = { country = CXB country = SOV }
			war = { country = SIK country = SOV }
			war = { country = CYN country = SOV }
		}
		NOT = { alliance = { country = CHI country = SOV } }
		NOT = { alliance = { country = CHI country = JAP } }
		NOT = { alliance = { country = CSX country = SOV } }
		NOT = { alliance = { country = CHC country = SOV } }
		NOT = { alliance = { country = CGX country = SOV } }
		NOT = { alliance = { country = CYN country = SOV } }
		NOT = { alliance = { country = CXB country = SOV } }
		NOT = { ispuppet = CHI }
		NOT = { puppet = { country = CHI country = JAP } }
		OR = {
			NOT = { ispuppet = CSX }
			puppet = { country = CSX country = CHI }
			puppet = { country = CSX country = CHC }
			puppet = { country = CSX country = CGX }
			puppet = { country = CSX country = CYN }
			puppet = { country = CSX country = CXB }
		}
		OR = {
			NOT = { ispuppet = CHC }
			puppet = { country = CHC country = CHI }
			puppet = { country = CHC country = CSX }
			puppet = { country = CHC country = CGX }
			puppet = { country = CHC country = CYN }
			puppet = { country = CHC country = CXB }
		}
		OR = {
			NOT = { ispuppet = CGX }
			puppet = { country = CGX country = CHI }
			puppet = { country = CGX country = CSX }
			puppet = { country = CGX country = CHC }
			puppet = { country = CGX country = CYN }
			puppet = { country = CGX country = CXB }
		}
		OR = {
			NOT = { ispuppet = CYN }
			puppet = { country = CYN country = CHI }
			puppet = { country = CYN country = CSX }
			puppet = { country = CYN country = CHC }
			puppet = { country = CYN country = CGX }
			puppet = { country = CYN country = CXB }
		}
		OR = {
			NOT = { ispuppet = CXB }
			puppet = { country = CXB country = CHI }
			puppet = { country = CXB country = CSX }
			puppet = { country = CXB country = CHC }
			puppet = { country = CXB country = CGX }
			puppet = { country = CXB country = CYN }
		}
	}

	name = "UFRONT_NAME"
	desc = "UFRONT_DESC"
	style = 0
	picture = "ufront"

	date = { day = 1 month = january year = 1936 }
	offset = 14
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "YES"
		ai_chance = 90
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = democratic value = 1 }
		command = { type = domestic which = political_left value = 1 }
		command = { type = domestic which = freedom value = 1 }
		command = { type = dissent value = -5 }
		command = { type = peace which = CHC value = 0 }
#		command = { type = peace which = CSX value = 1 } #just in case
#		command = { type = peace which = CGX value = 1 } #just in case
#		command = { type = peace which = CYN value = 1 } #just in case
#		command = { type = peace which = CXB value = 1 } #just in case
#		command = { type = peace which = SIK value = 1 } #just in case
		command = { type = alliance which = CHC }
		command = { type = alliance which = CSX }
		command = { type = alliance which = CGX }
		command = { type = alliance which = CYN }
		command = { type = alliance which = CXB }
		command = { type = alliance which = SIK }
		command = { type = local_setflag which = UnitedFrontFlag }
	}

	action_b = {
		name = "NO"
		ai_chance = 10
		command = { type = domestic which = interventionism value = -1 }
		command = { type = domestic which = political_left value = -1 }
		command = { type = domestic which = freedom value = -1 }
		command = { type = dissent value = 5 }
		command = { type = relation which = CHC value = -10 }
		command = { type = relation which = CSX value = -15 }
		command = { type = relation which = CGX value = -10 }
		command = { type = local_clrflag which = UnitedFrontFlag }
	}
}

################
# China offers Guangxi Clique peace
#############################################
event = {
	id = 27008
	random = no
	country = CHI

	trigger = {
		#event = 27005
		war = { country = CGX country = CHI }
		#NOT = { war = { country = JAP country = CHI } }
		#NOT = { war = { country = JAP country = CGX } }
		#OR = {
		#	lost_national = { country = CGX value = 13 } # ~ 2 provs
		#	control = { province = 1258 data = CHI } # Guilin
		#	control = { province = 1313 data = CHI } # Guangzhou
		#}
	}

	name = "EVT_27008_NAME"
	desc = "EVT_27008_DESC"
	style = 0
	picture = "troops_n_china"

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "EVT_27008_A"
		ai_chance = 100
		command = { type = trigger which = 27009 }
	}
	
	action_b = {
		name = "EVT_27008_B"
		ai_chance = 0
		command = { type = setflag which = CHI_Aggresion_Asia }
	}
}

################
# China offers Guangxi Clique peace
#############################################
event = {
	id = 27009
	random = no
	country = CGX

	#trigger = { ai = yes }

	name = "EVT_27008_NAME"
	desc = "EVT_27008_DESC"
	style = 0
	picture = "guangxi_peace"

	action_a = {
		name = "EVT_27009_A"
		ai_chance = 100
		#command = { type = secedeprovince which = CHI value = 1248 }
		#command = { type = secedeprovince which = CHI value = 1249 }
		#command = { type = secedeprovince which = CHI value = 1312 }
		#command = { type = secedeprovince which = CHI value = 1313 }
		#command = { type = secedeprovince which = CHI value = 1314 }
		#command = { type = secedeprovince which = CHI value = 1315 }
		#command = { type = secedeprovince which = CHI value = 1316 }
		#command = { type = secedeprovince which = CHI value = 1317 }
		#command = { type = secedeprovince which = CHI value = 1318 }
		#command = { type = secedeprovince which = CHI value = 1320 }
		#command = { type = secedeprovince which = CHI value = 1321 }
		command = { type = removecore which = 1248 }
		command = { type = removecore which = 1249 }
		command = { type = removecore which = 1312 }
		command = { type = removecore which = 1313 }
		command = { type = removecore which = 1314 }
		command = { type = removecore which = 1315 }
		command = { type = removecore which = 1316 }
		command = { type = removecore which = 1317 }
		command = { type = removecore which = 1318 }
		command = { type = removecore which = 1320 }
		command = { type = removecore which = 1321 }
		command = { type = peace which = CHI value = 1 }
		#command = { type = switch_allegiance which = -2 where = CHI }
		#command = { type = switch_allegiance which = -3 where = CHI }
		#command = { type = switch_allegiance which = -1 where = CHI when = 60 }
		command = { type = trigger which = 7009 }
	}
	action_b = {
		name = "EVT_27009_B"
		ai_chance = 0
		command = { } 
	}
}

#########################################################################
#  Surrender events - China
#########################################################################

event = {
	id = 3814
	random = no
	country = CHI

	name = "EVT_3814_NAME"
	desc = "EVT_3814_DESC"
	style = 0
	picture = "japanese_reinforcments"

	trigger = {
		control = { province = 1235 data = JAP } #
		control = { province = 1237 data = JAP } #
		control = { province = 1238 data = JAP } #
		#lost_VP = { country = CHI value = 75 }
		OR = { 
			lost_national = { country = CHI value = 90 }
			AND = {
				lost_national = { country = CHI value = 75 }
				NOT = { control = { province = 1235 data = CHI } } # Nanjing
				NOT = { control = { province = 1225 data = CHI } } # Taiyuan
				NOT = { control = { province = 1313 data = CHI } } # Guangzhou
				NOT = { control = { province = 1307 data = CHI } } # Kunming
				NOT = { control = { province = 1280 data = CHI } } # Chongqing
			}
		}
		#lost_IC = { country = CHI value = 50 }
		NOT = {
			war = { country = SOV country = JAP }
		}
		random = 50
	}

	date = { day = 0 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		ai_chance = 100
		name = "EVT_3814_ACTA" #
		command = { type = leave_alliance }
		command = { type = peace which = JAP value = 1 }

		command = { type = giveteam which = 1001 where = GER } # von Falkenhausen
		#command = { type = sleepteam which = 1004 } 
		#command = { type = sleepminister which = 52002 }
		#command = { type = sleepminister which = 52007 }
		#command = { type = sleepminister which = 52022 }

		command = { type = trigger which = 7020 } #CSX Sleepleader event
		command = { type = trigger which = 7021 } #CGX Sleepleader event
		command = { type = trigger which = 7022 } #CXB Sleepleader event
		command = { type = trigger which = 7023 } #CYN Sleepleader event

		command = { type = access which = JAP }
		command = { type = access which = MAN }
		command = { type = access which = MEN }

		#command = { type = sleepleader which = 50000 }
		#command = { type = sleepleader which = 50001 }
		#command = { type = sleepleader which = 50002 }
		#command = { type = sleepleader which = 50003 }
		#command = { type = sleepleader which = 50004 }
		#command = { type = sleepleader which = 50005 }
		#command = { type = sleepleader which = 50006 }
		#command = { type = sleepleader which = 50007 }
		#command = { type = sleepleader which = 50008 }
		#command = { type = sleepleader which = 50009 }
		#command = { type = sleepleader which = 50010 }
		#command = { type = sleepleader which = 50011 }
		#command = { type = sleepleader which = 50012 }
		#command = { type = sleepleader which = 50013 }
		#command = { type = sleepleader which = 50014 }
		#command = { type = sleepleader which = 50015 }
		#command = { type = sleepleader which = 50016 }
		#command = { type = sleepleader which = 50017 }
		#command = { type = sleepleader which = 50018 }
		#command = { type = sleepleader which = 50019 }
		#command = { type = sleepleader which = 50020 }
		#command = { type = sleepleader which = 50021 }
		#command = { type = sleepleader which = 50022 }
		#command = { type = sleepleader which = 50023 }
		#command = { type = sleepleader which = 50024 }
		#command = { type = sleepleader which = 50025 }
		#command = { type = sleepleader which = 50026 }
		#command = { type = sleepleader which = 50027 }
		#command = { type = sleepleader which = 50028 }
		#command = { type = sleepleader which = 50029 }
		#command = { type = sleepleader which = 50030 }
		#command = { type = sleepleader which = 50031 }
		#command = { type = sleepleader which = 50032 }
		#command = { type = sleepleader which = 50033 }
		#command = { type = sleepleader which = 50034 }
		#command = { type = sleepleader which = 50035 }
		#command = { type = sleepleader which = 50036 }
		#command = { type = sleepleader which = 50037 }
		#command = { type = sleepleader which = 50038 }
		#command = { type = sleepleader which = 50039 }
		#command = { type = sleepleader which = 50040 }
		#command = { type = sleepleader which = 50041 }
		#command = { type = sleepleader which = 50042 }
		#command = { type = sleepleader which = 50043 }
		#command = { type = sleepleader which = 50044 }
		#command = { type = sleepleader which = 50045 }
		#command = { type = sleepleader which = 50046 }
		#command = { type = sleepleader which = 50047 }
		#command = { type = sleepleader which = 50048 }
		#command = { type = sleepleader which = 50049 }
		#command = { type = sleepleader which = 50050 }
		#command = { type = sleepleader which = 50051 }
		#command = { type = sleepleader which = 50052 }
		#command = { type = sleepleader which = 50053 }
		#command = { type = sleepleader which = 50054 }
		#command = { type = sleepleader which = 50055 }
		#command = { type = sleepleader which = 50056 }
		#command = { type = sleepleader which = 50057 }
		#command = { type = sleepleader which = 50058 }
		#command = { type = sleepleader which = 50059 }
		#command = { type = sleepleader which = 50060 }
		#command = { type = sleepleader which = 50061 }
		#command = { type = sleepleader which = 50062 }
		#command = { type = sleepleader which = 50063 }
		#command = { type = sleepleader which = 50064 }
		#command = { type = sleepleader which = 50065 }
		#command = { type = sleepleader which = 50066 }
		#command = { type = sleepleader which = 50067 }
		#command = { type = sleepleader which = 50068 }
		#command = { type = sleepleader which = 50069 }
		#command = { type = sleepleader which = 50070 }
		#command = { type = sleepleader which = 50071 }
		#command = { type = sleepleader which = 50072 }
		#command = { type = sleepleader which = 50073 }
		#command = { type = sleepleader which = 50074 }
		#command = { type = sleepleader which = 50075 }
		#command = { type = sleepleader which = 50076 }
		#command = { type = sleepleader which = 50077 }
		#command = { type = sleepleader which = 50078 }
		#command = { type = sleepleader which = 50079 }
		#command = { type = sleepleader which = 50080 }
		#command = { type = sleepleader which = 50081 }
		#command = { type = sleepleader which = 50082 }
		#command = { type = sleepleader which = 50083 }
		#command = { type = sleepleader which = 50084 }
		#command = { type = sleepleader which = 50085 }
		#command = { type = sleepleader which = 50086 }
		#command = { type = sleepleader which = 50087 }
		#command = { type = sleepleader which = 50088 }
		#command = { type = sleepleader which = 50089 }
		#command = { type = sleepleader which = 50090 }
		#command = { type = sleepleader which = 50091 }
		#command = { type = sleepleader which = 50092 }
		#command = { type = sleepleader which = 50093 }
		#command = { type = sleepleader which = 50094 }
		#command = { type = sleepleader which = 50095 }
		#command = { type = sleepleader which = 50096 }
		#command = { type = sleepleader which = 50097 }
		#command = { type = sleepleader which = 50098 }
		#command = { type = sleepleader which = 50099 }
		#command = { type = sleepleader which = 50100 }
		#command = { type = sleepleader which = 50101 }
		#command = { type = sleepleader which = 50102 }
		#command = { type = sleepleader which = 50103 }
		#command = { type = sleepleader which = 50104 }
		#command = { type = sleepleader which = 50105 }
		#command = { type = sleepleader which = 50106 }
		#command = { type = sleepleader which = 50107 }
		#command = { type = sleepleader which = 50108 }
		#command = { type = sleepleader which = 50109 }
		#command = { type = sleepleader which = 50110 }
		#command = { type = sleepleader which = 50111 }
		#command = { type = sleepleader which = 50112 }
		#command = { type = sleepleader which = 50113 }
		#command = { type = sleepleader which = 50114 }
		#command = { type = sleepleader which = 50115 }
		#command = { type = sleepleader which = 50116 }
		#command = { type = sleepleader which = 50117 }
		#command = { type = sleepleader which = 50118 }
		#command = { type = sleepleader which = 50119 }
		#command = { type = sleepleader which = 50120 }
		#command = { type = sleepleader which = 50121 }
		#command = { type = sleepleader which = 50122 }
		#command = { type = sleepleader which = 50123 }
		#command = { type = sleepleader which = 50124 }
		#command = { type = sleepleader which = 50125 }
		#command = { type = sleepleader which = 50126 }
		#command = { type = sleepleader which = 50127 }
		#command = { type = sleepleader which = 50128 }
		#command = { type = sleepleader which = 50129 }
		#command = { type = sleepleader which = 50130 }
		#command = { type = sleepleader which = 50131 }
		#command = { type = sleepleader which = 50132 }
		#command = { type = sleepleader which = 50133 }
		#command = { type = sleepleader which = 50134 }
		#command = { type = sleepleader which = 50135 }
		#command = { type = sleepleader which = 50136 }
		#command = { type = sleepleader which = 50137 }
		#command = { type = sleepleader which = 50138 }
		#command = { type = sleepleader which = 50139 }
		#command = { type = sleepleader which = 50140 }
		#command = { type = sleepleader which = 50141 }
		#command = { type = sleepleader which = 50142 }
		#command = { type = sleepleader which = 50143 }
		#command = { type = sleepleader which = 50144 }
		#command = { type = sleepleader which = 50145 }
		#command = { type = sleepleader which = 50146 }
		#command = { type = sleepleader which = 50147 }
		#command = { type = sleepleader which = 50148 }
		#command = { type = sleepleader which = 50149 }
		#command = { type = sleepleader which = 50150 }
		#command = { type = sleepleader which = 50151 }
		#command = { type = sleepleader which = 50152 }
		#command = { type = sleepleader which = 50153 }
		#command = { type = sleepleader which = 50154 }
		#command = { type = sleepleader which = 50155 }
		#command = { type = sleepleader which = 50156 }
		#command = { type = sleepleader which = 50157 }
		#command = { type = sleepleader which = 50158 }
		#command = { type = sleepleader which = 50159 }
		#command = { type = sleepleader which = 50160 }
		#command = { type = sleepleader which = 50161 }
		#command = { type = sleepleader which = 50162 }
		#command = { type = sleepleader which = 50163 }
		#command = { type = sleepleader which = 50164 }
		#command = { type = sleepleader which = 50165 }
		#command = { type = sleepleader which = 50166 }
		#command = { type = sleepleader which = 50167 }
		#command = { type = sleepleader which = 50168 }
		#command = { type = sleepleader which = 50169 }
		#command = { type = sleepleader which = 50170 }
		#command = { type = sleepleader which = 50171 }
		#command = { type = sleepleader which = 50172 }
		#command = { type = sleepleader which = 50173 }
		#command = { type = sleepleader which = 50174 }
		#command = { type = sleepleader which = 50175 }
		#command = { type = sleepleader which = 50176 }
		#command = { type = sleepleader which = 50177 }
		#command = { type = sleepleader which = 50178 }
		#command = { type = sleepleader which = 50179 }
		#command = { type = sleepleader which = 50180 }
		#command = { type = sleepleader which = 50181 }
		#command = { type = sleepleader which = 50182 }
		#command = { type = sleepleader which = 50183 }
		#command = { type = sleepleader which = 50184 }
		#command = { type = sleepleader which = 50185 }
		#command = { type = sleepleader which = 50186 }
		#command = { type = sleepleader which = 50187 }
		#command = { type = sleepleader which = 50188 }
		#command = { type = sleepleader which = 50189 }
		#command = { type = sleepleader which = 50190 }
		#command = { type = sleepleader which = 50191 }
		#command = { type = sleepleader which = 50192 }
		#command = { type = sleepleader which = 50193 }
		#command = { type = sleepleader which = 50194 }
		#command = { type = sleepleader which = 50195 }
		#command = { type = sleepleader which = 50196 }
		#command = { type = sleepleader which = 50197 }
		#command = { type = sleepleader which = 50198 }
		#command = { type = sleepleader which = 50199 }
		#command = { type = sleepleader which = 50200 }
		#command = { type = sleepleader which = 50201 }
		#command = { type = sleepleader which = 50202 }
		#command = { type = sleepleader which = 50203 }
		#command = { type = sleepleader which = 50204 }
		#command = { type = sleepleader which = 50205 }
		#command = { type = sleepleader which = 50206 }
		#command = { type = sleepleader which = 50207 }
		#command = { type = sleepleader which = 50208 }
		#command = { type = sleepleader which = 50209 }
		#command = { type = sleepleader which = 50210 }
		#command = { type = sleepleader which = 50211 }
		#command = { type = sleepleader which = 50212 }
		#command = { type = sleepleader which = 50213 }
		#command = { type = sleepleader which = 50214 }
		#command = { type = sleepleader which = 50215 }
		#command = { type = sleepleader which = 50216 }
		#command = { type = sleepleader which = 50217 }
		#command = { type = sleepleader which = 50218 }
		#command = { type = sleepleader which = 50219 }
		#command = { type = sleepleader which = 50220 }
		#command = { type = sleepleader which = 50221 }
		#command = { type = sleepleader which = 50222 }
		#command = { type = sleepleader which = 50223 }
		#command = { type = sleepleader which = 50224 }
		#command = { type = sleepleader which = 50225 }
		#command = { type = sleepleader which = 50226 }
		#command = { type = sleepleader which = 50227 }
		#command = { type = sleepleader which = 50228 }
		#command = { type = sleepleader which = 50229 }
		#command = { type = sleepleader which = 50230 }
		#command = { type = sleepleader which = 50231 }
		#command = { type = sleepleader which = 50232 }
		#command = { type = sleepleader which = 50233 }
		#command = { type = sleepleader which = 50234 }
		#command = { type = sleepleader which = 50235 }
		#command = { type = sleepleader which = 50236 }
		#command = { type = sleepleader which = 50237 }
		#command = { type = sleepleader which = 50238 }
		#command = { type = sleepleader which = 50239 }
		#command = { type = sleepleader which = 50240 }
		#command = { type = sleepleader which = 50241 }
		#command = { type = sleepleader which = 50242 }
		#command = { type = sleepleader which = 50243 }
		#command = { type = sleepleader which = 50244 }
		#command = { type = sleepleader which = 50245 }
		#command = { type = sleepleader which = 50246 }
		#command = { type = sleepleader which = 50248 }
		#command = { type = sleepleader which = 50249 }
		#command = { type = sleepleader which = 50250 }
		#command = { type = sleepleader which = 50251 }
		#command = { type = sleepleader which = 50252 }
		#command = { type = sleepleader which = 50253 }
		#command = { type = sleepleader which = 50254 }
		#command = { type = sleepleader which = 50255 }
		#command = { type = sleepleader which = 50256 }
		#command = { type = sleepleader which = 50257 }
		#command = { type = sleepleader which = 50258 }
		#command = { type = sleepleader which = 50259 }
		#command = { type = sleepleader which = 50260 }
		#command = { type = sleepleader which = 50261 }
		#command = { type = sleepleader which = 50262 }
		#command = { type = sleepleader which = 50263 }
		#command = { type = sleepleader which = 50264 }
		#command = { type = sleepleader which = 50265 }
		#command = { type = sleepleader which = 50266 }
		#command = { type = sleepleader which = 50267 }
		#command = { type = sleepleader which = 50268 }
		#command = { type = sleepleader which = 50269 }
		#command = { type = sleepleader which = 50270 }
		#command = { type = sleepleader which = 50271 }
		#command = { type = sleepleader which = 50272 }
		#command = { type = sleepleader which = 50273 }
		#command = { type = sleepleader which = 50274 }
		#command = { type = sleepleader which = 50275 }
		#command = { type = sleepleader which = 50276 }
		#command = { type = sleepleader which = 50277 }
		#command = { type = sleepleader which = 50278 }
		#command = { type = sleepleader which = 50279 }
		#command = { type = sleepleader which = 50280 }
		#command = { type = sleepleader which = 50281 }
		#command = { type = sleepleader which = 50282 }
		#command = { type = sleepleader which = 50283 }
		#command = { type = sleepleader which = 50284 }
		#command = { type = sleepleader which = 50285 }
		#command = { type = sleepleader which = 50286 }
		#command = { type = sleepleader which = 50287 }
		#command = { type = sleepleader which = 50288 }
		#command = { type = sleepleader which = 50289 }
		#command = { type = sleepleader which = 50290 }
		#command = { type = sleepleader which = 50291 }
		#command = { type = sleepleader which = 50292 }
		#command = { type = sleepleader which = 50293 }
		#command = { type = sleepleader which = 50294 }
		#command = { type = sleepleader which = 50295 }
		#command = { type = sleepleader which = 50296 }
		#command = { type = sleepleader which = 50297 }
		#command = { type = sleepleader which = 50298 }
		#command = { type = sleepleader which = 50299 }
		#command = { type = sleepleader which = 50300 }
		#command = { type = sleepleader which = 50301 }
		#command = { type = sleepleader which = 50302 }
		#command = { type = sleepleader which = 50303 }
		command = { type = giveleader which = 50304 where = GER } # von Falkenhausen
		#command = { type = sleepleader which = 50305 }
		#command = { type = sleepleader which = 50306 }
		#command = { type = sleepleader which = 50307 }
		#command = { type = sleepleader which = 50308 }
		#command = { type = sleepleader which = 50309 }
		#command = { type = sleepleader which = 50310 }
		#command = { type = sleepleader which = 50311 }
		#command = { type = sleepleader which = 50312 }
		#command = { type = sleepleader which = 50313 }
		#command = { type = sleepleader which = 50314 }
		#command = { type = sleepleader which = 50315 }
		#command = { type = sleepleader which = 50316 }
		#command = { type = sleepleader which = 50317 }
		#command = { type = sleepleader which = 50318 }
		#command = { type = sleepleader which = 50319 }
		#command = { type = sleepleader which = 50320 }
		#command = { type = sleepleader which = 50321 }
		#command = { type = sleepleader which = 50322 }
		#command = { type = sleepleader which = 50323 }
		#command = { type = sleepleader which = 50324 }
		#command = { type = sleepleader which = 50325 }
		#command = { type = sleepleader which = 50326 }
		#command = { type = sleepleader which = 50327 }
		#command = { type = sleepleader which = 50328 }
		#command = { type = sleepleader which = 50329 }
		#command = { type = sleepleader which = 50330 }
		#command = { type = sleepleader which = 50331 }
		#command = { type = sleepleader which = 50332 }
		#command = { type = sleepleader which = 50333 }
		#command = { type = sleepleader which = 50334 }
		#command = { type = sleepleader which = 50335 }
		#command = { type = sleepleader which = 50336 }
		#command = { type = sleepleader which = 50337 }
		#command = { type = sleepleader which = 50338 }
		#command = { type = sleepleader which = 50339 }
		#command = { type = sleepleader which = 50340 }
		#command = { type = sleepleader which = 50341 }
		#command = { type = sleepleader which = 50342 }
		#command = { type = sleepleader which = 50343 }
		#command = { type = sleepleader which = 50344 }
		#command = { type = sleepleader which = 50345 }
		#command = { type = sleepleader which = 50346 }
		#command = { type = sleepleader which = 50347 }
		#command = { type = sleepleader which = 50348 }
		#command = { type = sleepleader which = 50349 }
		#command = { type = sleepleader which = 50350 }
		#command = { type = sleepleader which = 50351 }
		#command = { type = sleepleader which = 50352 }
		#command = { type = sleepleader which = 50353 }
		#command = { type = sleepleader which = 50354 }
		#command = { type = sleepleader which = 50355 }
		#command = { type = sleepleader which = 50356 }
		#command = { type = sleepleader which = 50357 }
		#command = { type = sleepleader which = 50358 }
		#command = { type = sleepleader which = 50359 }
		#command = { type = sleepleader which = 50360 }
		#command = { type = sleepleader which = 50361 }
		#command = { type = sleepleader which = 50362 }
		#command = { type = sleepleader which = 50363 }
		#command = { type = sleepleader which = 50364 }
		#command = { type = sleepleader which = 50365 }
		#command = { type = sleepleader which = 50366 }
		#command = { type = sleepleader which = 50367 }
		#command = { type = sleepleader which = 50368 }
		#command = { type = sleepleader which = 50369 }
		#command = { type = sleepleader which = 50370 }
		#command = { type = sleepleader which = 50371 }
		#command = { type = sleepleader which = 50372 }
		#command = { type = sleepleader which = 50373 }
		#command = { type = sleepleader which = 50374 }
		#command = { type = sleepleader which = 50375 }
		#command = { type = sleepleader which = 50376 }
		#command = { type = sleepleader which = 50377 }
		#command = { type = sleepleader which = 50378 }
		#command = { type = sleepleader which = 50379 }
		#command = { type = sleepleader which = 50380 }
		#command = { type = sleepleader which = 50381 }
		#command = { type = sleepleader which = 50382 }
		#command = { type = sleepleader which = 50383 }
		#command = { type = sleepleader which = 50384 }
		#command = { type = sleepleader which = 50385 }
		#command = { type = sleepleader which = 50386 }
		#command = { type = sleepleader which = 50387 }
		#command = { type = sleepleader which = 50388 }
		#command = { type = sleepleader which = 50389 }

		command = { type = dissent value = 5 }

		command = { type = end_mastery which = CSX } 
		command = { type = end_mastery which = CGX } 
		command = { type = end_mastery which = CXB } 
		command = { type = end_mastery which = CYN } 
		command = { type = end_mastery which = CHC } 
		command = { type = end_mastery which = SIK } 
		command = { type = end_mastery which = TIB } 

		command = { type = trigger which = 3815 } #Japan event
	}
	action_b = {
		ai_chance = 0
		name = "EVT_3814_ACTB" #
		command = { type = dissent value = 10 }
		command = { type = sleepevent which = 3815 }
	}
}

event = {
	id = 3819
	random = no
	country = CHI

	name = "EVT_3819_NAME"
	desc = "EVT_3819_DESC"
	style = 0
	picture = "Nanking"

	action_a = {
		ai_chance = 100
		name = "OK" #

		command = { type = set_domestic which = democratic value = 2 }
		command = { type = set_domestic which = political_left value = 3 }
		command = { type = set_domestic which = free_market value = 3 }
		command = { type = set_domestic which = freedom value = 2 }
		command = { type = set_domestic which = professional_army value = 1 }
		command = { type = set_domestic which = defense_lobby value = 5 }
		command = { type = set_domestic which = interventionism value = 3 }

		command = { type = sleepleader which = 50048 } # Chiang Kai-shek
		command = { type = giveleader which = 50304 where = GER } # von Falkenhausen
		#command = { type = sleepleader which = 50370 } # Chennault
		#command = { type = sleepleader which = 50377 } # Khryukin
		command = { type = sleepminister which = 52002 } # Chiang Kai-shek HOG
		command = { type = sleepminister which = 52007 } # Chiang Kai-shek COS
		command = { type = sleepminister which = 52022 } # Chiang Kai-shek HOS
		command = { type = sleepteam which = 1004 }	# Chiang Kai-shek
		command = { type = giveteam which = 1001 where = GER } 	#Von Falkenhausen

		command = { type = secedeprovince which = JAP value = 1282 } # 

		command = { type = secedeprovince which = JAP value = 1313 } # 
		command = { type = secedeprovince which = JAP value = 1314 } # 
		command = { type = secedeprovince which = JAP value = 1315 } # 
		command = { type = secedeprovince which = JAP value = 1316 } # 

		command = { type = secedeprovince which = JAP value = 1321 } # 
		command = { type = secedeprovince which = JAP value = 1439 } # 
		command = { type = secedeprovince which = JAP value = 1322 } # 
		command = { type = secedeprovince which = JAP value = 1323 } # 
		command = { type = secedeprovince which = JAP value = 1324 } # 

		command = { type = secedeprovince which = JAP value = 1213 } # 
		command = { type = secedeprovince which = JAP value = 1214 } # 
		command = { type = secedeprovince which = JAP value = 1215 } # 
		command = { type = secedeprovince which = JAP value = 1216 } # 
		command = { type = secedeprovince which = JAP value = 1217 } # 


		command = { type = secedeprovince which = JAP value = 1237 } # 
		command = { type = secedeprovince which = JAP value = 1293 } # 
		command = { type = secedeprovince which = JAP value = 1294 } # 
		command = { type = secedeprovince which = JAP value = 1305 } # 
		command = { type = secedeprovince which = JAP value = 1444 } # 

		command = { type = secedeprovince which = JAP value = 1307 } # 
		command = { type = secedeprovince which = JAP value = 1308 } # 
		command = { type = secedeprovince which = JAP value = 1327 } # 
		command = { type = secedeprovince which = JAP value = 1309 } # 
		command = { type = secedeprovince which = JAP value = 1319 } # 

		command = { type = secedeprovince which = JAP value = 1325 } # 
		command = { type = secedeprovince which = JAP value = 1320 } # 
		command = { type = secedeprovince which = JAP value = 1318 } # 
		command = { type = secedeprovince which = JAP value = 1317 } # 

		command = { type = sleepevent which = 7005 }

		command = { type = alliance which = JAP }

		#command = { type = inherit which = CXB } 
		#command = { type = inherit which = SIK } 
	}
}

event = {
	id = 3822
	random = no
	country = CYN

	name = "EVT_3822_NAME"
	desc = "EVT_3822_DESC"
	style = 0
	picture = "japanese_reinforcments"

	action_a = {
		ai_chance = 100
		name = "EVT_3822_ACTA" #
		command = { type = secedeprovince which = JAP value = 1293 } # 
		command = { type = secedeprovince which = JAP value = 1294 } # 
		command = { type = secedeprovince which = JAP value = 1305 } # 
	}
}

#########################################################################
#  Surrender events - Japan surrenders to China
#########################################################################

event = {
	id = 3823
	random = no
	country = CHI

	name = "EVT_3823_NAME"
	desc = "EVT_3823_DESC"
	style = 0
	picture = "chanfukeng"

	trigger = {
		control = { province = 1389 data = CHI } # Mukden
		control = { province = 1379 data = CHI } # Harbin
		control = { province = 1201 data = CHI } # Pyongyang
		control = { province = 1199 data = CHI } # Seoul
		control = { province = 1196 data = CHI } # Busan
		control = { province = 1235 data = CHI } # Nanjing
		control = { province = 1205 data = CHI } # Beiping
		#lost_VP = { country = CHI value = 75 }
		#lost_national = { country = CHI value = 90 }
		#lost_IC = { country = CHI value = 50 }
		war = { country = CHI country = JAP }
		random = 50
	}

	date = { day = 0 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		ai_chance = 100
		name = "EVT_3823_ACTA" #
		command = { type = dissent value = -20 }
		command = { type = trigger which = 3824 }
	}
	action_b = {
		ai_chance = 0
		name = "EVT_3823_ACTB" #
		command = { type = dissent value = 5 }
		command = { type = sleepevent which = 3824 }
	}
}

#########################################################################
#  Surrender events - Japan surrenders to China
#########################################################################

event = {
	id = 3826
	random = no
	country = CHI

	name = "EVT_3825_NAME"
	desc = "EVT_3825_DESC"
	style = 0
	picture = "korea_independent"

	#Triggered by JAP 3824

	action_a = {
		ai_chance = 100
		name = "EVT_3826_ACTA" #
		command = { type = inherit which = MAN } 
		command = { type = inherit which = MEN } 
		command = { type = make_puppet which = KOR }
		command = { type = secedeprovince which = KOR value = 1194 }
	}
}

#########################################################################
#  China annexes Mongolia
#########################################################################

event = {
	id = 3827
	random = no
	country = CHI

	name = "EVT_3827_NAME"
	desc = "EVT_3827_DESC"
	style = 0
	picture = "Nomonhan"

	trigger = {
		event = 2625
		alliance = { country = CHI country = GER }
		NOT = {
			alliance = { country = JAP country = GER }
		}
	}

	date = { day = 0 month = january year = 1936 }
	offset = 5
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		ai_chance = 100
		name = "EVT_3826_ACTA" #
		command = { type = inherit which = MON } 
		command = { type = dissent value = -2 }
	}
}
event = {
	id = 3828
	random = no
	country = CGX

	name = "EVT_3822_NAME"
	desc = "EVT_3822_DESC"
	style = 0
	picture = "japanese_reinforcments"

	action_a = {
		ai_chance = 100
		name = "EVT_3822_ACTA" #
		command = { type = secedeprovince which = JAP value = 1313 } # 
		command = { type = secedeprovince which = JAP value = 1314 } # 
	}
}
event = {
	id = 3829
	random = no
	country = CSX

	name = "EVT_3822_NAME"
	desc = "EVT_3829_DESC"
	style = 0
	picture = "japanese_reinforcments"

	action_a = {
		ai_chance = 100
		name = "EVT_3822_ACTA" #
		command = { type = secedeprovince which = JAP value = 1213 } # 
	}
}
event = {
	id = 3830
	random = no
	country = CXB

	name = "EVT_3822_NAME"
	desc = "EVT_3830_DESC"
	style = 0
	picture = "japanese_reinforcments"

	action_a = {
		ai_chance = 100
		name = "EVT_3822_ACTA" #
		command = { type = secedeprovince which = JAP value = 1444 } # 
	}
}
#########################################################################
#  Transfer of Chinese industry to the interior
#	Written by Lothos
#########################################################################
event = {
	id = 4104
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {	war = { country = JAP country = CHI } }

	date = { day = 0 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		ai_chance = 100
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = add_prov_resource which = 1280 value = 15 where = metal } # was 7
		command = { type = add_prov_resource which = 1280 value = 30 where = energy } # was 14
		command = { type = add_prov_resource which = 1280 value = 8 where = rare_materials } # was 4
		#command = { type = supplies value = 10000 }
	}

	action_b = {
		ai_chance = 0
		name = EVT_86_ACTB
		command = { type = domestic which = defense_lobby value = -1 }
		command = { type = sleepevent which = 4105 }
		command = { type = sleepevent which = 4106 }
		command = { type = sleepevent which = 4107 }
		command = { type = sleepevent which = 4108 }
		command = { type = sleepevent which = 4109 }
	}
}
# Move Guangzhou (if CHI controled from CHI vs CGX war)
###############
event = {
	id = 4105
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {
		atwar = yes
		local_flag = CHIIndustry
		control = { province = 1313 data = CHI }
	}

	date = { day = 0 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = construct which = ic where = 1313 value = -8 } # Guangzhou
		command = { type = construct which = ic where = 1280 value = 8 } # Chungking
	}
}
# Move Taiyuan if threatened
###############
event = {
	id = 4106
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {
		atwar = yes
		local_flag = CHIIndustry
		control = { province = 1225 data = CHI }
		control = { province = 1276 data = CHI } # Lanzhou
		OR = {
			NOT = { control = { province = 1209 data = CHI } }
			NOT = { control = { province = 1211 data = CHI } }
			NOT = { control = { province = 1212 data = CHI } }
		}
	}

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = construct which = ic where = 1225 value = -3 } # Taiyuan
		command = { type = construct which = ic where = 1276 value = 3 } # Lanzhou
		#command = { type = construct which = infrastructure where = 1276 value = 10 } # Lanzhou, effect moved to province.csv
	}
}
# Move Nanjing and Hangzhou
###############
event = {
	id = 4107
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {
		atwar = yes
		local_flag = CHIIndustry
		control = { province = 1235 data = CHI } #Nanjing
		control = { province = 1238 data = CHI } #Hangzhou
		control = { province = 1280 data = CHI } #Chungking
		control = { province = 1261 data = CHI } #Huaihua
		OR = {
			NOT = { control = { province = 1221 data = CHI } } # Hefei
			NOT = { control = { province = 1220 data = CHI } } # Yangzhou
			NOT = { control = { province = 1236 data = CHI } } # Suzhou
			NOT = { control = { province = 1237 data = CHI } } # Shanghai
			NOT = { control = { province = 1239 data = CHI } } # Ningbo
			NOT = { control = { province = 1241 data = CHI } } # Quzhou
		}
	}

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = construct which = ic where = 1235 value = -5 } # Nanjing
		command = { type = construct which = ic where = 1238 value = -1 } # Hangzhou
		command = { type = construct which = ic where = 1280 value = 5 } # Chungking
		command = { type = construct which = ic where = 1261 value = 1 } # Huaihua
		command = { type = supplies value = 5000 }
	}
}
# Move Jinan
###############
event = {
	id = 4108
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {
		atwar = yes
		local_flag = CHIIndustry
		control = { province = 1216 data = CHI } #Jinan
		control = { province = 1280 data = CHI } #Chungking
		OR = {
			NOT = { control = { province = 1213 data = CHI } }
			NOT = { control = { province = 1214 data = CHI } }
			NOT = { control = { province = 1215 data = CHI } }
			NOT = { control = { province = 1218 data = CHI } }
		}
	}

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = construct which = ic where = 1216 value = -3 } # Jinan
		command = { type = construct which = ic where = 1280 value = 3 } # Chungking
	}
}
# Move Zhengzhou
###############
event = {
	id = 4109
	random = no
	country = CHI

	name = EVT_86_NAME
	desc = EVT_86_DESC
	picture = "transfer"
	style = 0

	trigger = {
		atwar = yes
		local_flag = CHIIndustry
		control = { province = 1228 data = CHI } #Zhengzhou
		control = { province = 1280 data = CHI } #Chungking
		OR = {
			NOT = { control = { province = 1222 data = CHI } }
			NOT = { control = { province = 1223 data = CHI } }
			NOT = { control = { province = 1224 data = CHI } }
			NOT = { control = { province = 1227 data = CHI } }
			NOT = { control = { province = 1230 data = CHI } }
		}
	}

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = EVT_86_ACTA
		command = { type = local_setflag which = CHIIndustry }
		command = { type = construct which = ic where = 1228 value = -2 } # Zhengzhou
		command = { type = construct which = ic where = 1280 value = 2 } # Chungking
	}
}

##################################
# Recall of German Mission
##################################

event = {
	id = 4103
	random = no
	country = CHI

	#Triggered by GER 2035A

	name = "EVT_4103_NAME"
	desc = "EVT_4103_DESC"
	style = 0

	action_a = {
		name = "OK"
		command = { type = dissent value = 1 }
		command = { type = giveleader which = 50304 where = GER } #Von Falkenhausen
		command = { type = giveteam which = 1001 where = GER } #Von Falkenhausen
		command = { type = relation which = GER value = -10 }
		command = { type = relation which = JAP value = -10 }
		command = { type = relation which = MAN value = -50 }
		command = { type = supplies value = 2000 }
		}
	}

##################################
# Recall of Claire Chennault
##################################

event = {
	id = 4110
	random = no
	country = CHI

	name = "Claire Chennault leaves the Republic of China"
	desc = "Due to impaired relations with the United States Claire Chennault is forced to leave the Republic of China"
	style = 0

	trigger = {
		NOT = { alliance = { country = USA country = CHI } }
		event = 851 # Pitman Act passed and accepted by CHI
		OR = {
			war = { country = CHI country = USA }
			puppet = { country = CHI country = JAP }
		}
	}

	date = { day = 1 month = january year = 1936 }
	offset = 5
	deathdate = { day = 29 month = december year = 1963 }

	action_a = {
		name = "OK"
		command = { type = sleepleader which = 50370 }
		command = { type = sleepteam which = 1009 }
		}
	}
