#
# HoI - Nationalist China 
#
#
# LIMIT: 522000 - 551999
#
#
#
# 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 PAN 3802
	
	name = "EVT_4100_NAME"
	desc = "EVT_4100_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Tragedy!
		command = { type = province_manpower which = 1695 value = -30 }
		command = { type = dissent value = -10 } # National cementation
		command = { type = capital which = 1611 }
		command = { type = coalpool value = 10000 }  # Added resources to make up for fall of capital
		command = { type = steelpool value = 5000 }  # this prevents sudden collapse of NatChi
		command = { type = oilpool value = 2500 } 
		command = { type = rubberpool value = 2500 } 
		command = { type = supplies value = 2000 } 
	}
}
#########################################################################
#  The Xi'an Incident (Chiang Kai-Shek kidnapped)
#########################################################################
event = { 
	id = 4101
	random = no
	country = CHI
	
	trigger = {
		exists = CHC
		war = { country = CHC country = CHI }
	}
	
	name = "EVT_4101_NAME"
	desc = "EVT_4101_DESC"
	style = 0

	date = { day = 1 month = december year = 1936 } #Historically, Dec. 12, 1936
	offset = 10
	deathdate = { day = 30 month = january year = 1937 }
	
	action_a = {
		name = "ACTIONNAME4101A" # Ally with the Commies
		command = { type = peace which = CHC }
		command = { type = warentry which = PAN value = 10 }
		command = { type = access which = CHC }
		command = { type = dissent value = -2 }
		command = { type = sleepminister which = 52008 } #Chang Hsüeh-liang
		command = { type = sleepleader which = 50010 } #Chang Hsüeh-liang
		command = { type = trigger which = 9500641 }
	}
	action_b = {
		name = "ACTIONNAME4101B" # Refuse
		command = { type = dissent value = 10 } 
	}
}


#########################################################################
#  The End of Tannu Tuva (NatChi)
#########################################################################
event = { 
	id = 522000
	random = no
	country = CHI
	
	# Historical event November 1944
	# Triggered by USSR event 222001
	
	name = CEVTNAME_522000
	desc = CEVTDESC_522000
	style = 0

	action_a = {
		name = CEVTACTA_522000
		command = { type = alignment which = fascist value = 20 }	# move away from Communism
		command = { type = alignment which = democratic value = 20 } 	# move away from Communism
		command = { type = addcore which = 1534 } 			# China will regain Kyzyl
	}
}



#########################################################################
#  Kiri Project - NatChi negotiates for peace with Japan
#########################################################################
event = { 
	id = 522001
	random = no
	country = CHI
	
	# Triggered by PAN 492009A
	
	name = CEVTNAME_522001
	desc = CEVTDESC_522001
	style = 0
	
	action_a = {
		name = CEVTACTA_522001
		command = { type = trigger which = 492011 }    # Accept
		command = { type = trigger which = 492276 }
	}
	action_b = {
		name = CEVTACTB_522001
		command = { type = trigger which = 492010 }    # Reject
	}
}


#  Kiri Project succeeds - NatChi becomes Japanese puppet

event = { 
	id = 522002
	random = no
	country = CHI
	
	# Triggered by PAN 492011/492276A
	
	name = CEVTNAME_522002
	desc = CEVTDESC_522002
	style = 0
	
	action_a = {
		name = CEVTACTA_522002
                command = { type = dissent value = 30 }                        # Andris: increased from 20
                command = { type = capital which = 1574 }                      # capital to Lanzhou
                command = { type = manpowerpool value = -500 }                 # the people no longer supports this government
		command = { type = supplies value = 2500 } 		       # supplies to prevent collapse
                command = { type = secedeprovince which = PAN value = 1698 }   # Shanghai
                command = { type = secedeprovince which = PAN value = 1724 }   # Haikou
                command = { type = secedeprovince which = PAN value = 1704 }   # Guangzhou
                command = { type = secedeprovince which = PAN value = 1703 }   # Kowloon
                command = { type = removecore which = 1698 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1724 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1704 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1703 }                   # acknowledged Japanese territory
		command = { type = trigger which = 952000  }                   # ComChi will make the most of this

		#Andris: Lose most of China to Japan
 		command = { type = secedeprovince which = PAN value = 1563 }  
 		command = { type = secedeprovince which = PAN value = 1564 }  
 		command = { type = secedeprovince which = PAN value = 1565 }  
 		command = { type = secedeprovince which = PAN value = 1567 }  
 		command = { type = secedeprovince which = PAN value = 1568 }  
 		command = { type = secedeprovince which = PAN value = 1569 }  
		command = { type = secedeprovince which = PAN value = 1570 }  
 		command = { type = secedeprovince which = PAN value = 1571 }  
 		command = { type = secedeprovince which = PAN value = 1572 }  
 		command = { type = secedeprovince which = PAN value = 1573 }  
 		command = { type = secedeprovince which = PAN value = 1601 }  
 		command = { type = secedeprovince which = PAN value = 1602 }  
		command = { type = secedeprovince which = PAN value = 1606 }  
 		command = { type = secedeprovince which = PAN value = 1609 }  
 		command = { type = secedeprovince which = PAN value = 1611 }  
 		command = { type = secedeprovince which = PAN value = 1612 }  
 		command = { type = secedeprovince which = PAN value = 1613 }  
 		command = { type = secedeprovince which = PAN value = 1614 }  
		command = { type = secedeprovince which = PAN value = 1615 }  
	 	command = { type = secedeprovince which = PAN value = 1616 }  
	 	command = { type = secedeprovince which = PAN value = 1617 }  
	 	command = { type = secedeprovince which = PAN value = 1618 }  
	 	command = { type = secedeprovince which = PAN value = 1620 }  
		command = { type = secedeprovince which = PAN value = 1621 }  
	 	command = { type = secedeprovince which = PAN value = 1622 }  

	 	command = { type = secedeprovince which = PAN value = 1625 }  
 		command = { type = secedeprovince which = PAN value = 1626 }  
 		command = { type = secedeprovince which = PAN value = 1691 }  
		command = { type = secedeprovince which = PAN value = 1692 }  
 		command = { type = secedeprovince which = PAN value = 1693 }  
 		command = { type = secedeprovince which = PAN value = 1694 }  
		command = { type = secedeprovince which = PAN value = 1695 }  
 		command = { type = secedeprovince which = PAN value = 1696 }  
 		command = { type = secedeprovince which = PAN value = 1697 }  

 		command = { type = secedeprovince which = PAN value = 1699 }  
 		command = { type = secedeprovince which = PAN value = 1700 }  
 		command = { type = secedeprovince which = PAN value = 1701 }  
 		command = { type = secedeprovince which = PAN value = 1702 }  
 
 		command = { type = secedeprovince which = PAN value = 1705 }  
 		command = { type = secedeprovince which = PAN value = 1706 }  
 		command = { type = secedeprovince which = PAN value = 1707 }  
 		command = { type = secedeprovince which = PAN value = 1708 }  
 		command = { type = secedeprovince which = PAN value = 1709 }  
		command = { type = secedeprovince which = PAN value = 1710 }  
 		command = { type = secedeprovince which = PAN value = 1711 }  
 		command = { type = secedeprovince which = PAN value = 1712 }  
 		command = { type = secedeprovince which = PAN value = 1713 }  
 		command = { type = secedeprovince which = PAN value = 1714 }  
 		command = { type = secedeprovince which = PAN value = 1715 }  

                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 } # Army deserting to ComChi
	}
}

event = { 
	id = 522076
	random = no
	country = CHI
	
	# Triggered by PAN 492276B
	
	name = CEVTNAME_522002
	desc = CEVTDESC_522002
	style = 0
	
	action_a = {
		name = CEVTACTA_522002
                command = { type = dissent value = 25 }                        # Andris: increased from 20
                command = { type = capital which = 1695 }                      # capital back to Nanjing
                command = { type = manpowerpool value = -500 }                 # the people no longer supports this government
		command = { type = supplies value = 2500 } 		       # supplies to prevent collapse
               
		#Andris: Lose only major Chinese ports to Japan
		command = { type = secedeprovince which = PAN value = 1698 }   # Shanghai
                command = { type = secedeprovince which = PAN value = 1724 }   # Haikou
                command = { type = secedeprovince which = PAN value = 1704 }   # Guangzhou
                command = { type = secedeprovince which = PAN value = 1703 }   # Kowloon
                command = { type = removecore which = 1698 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1724 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1704 }                   # acknowledged Japanese territory
                command = { type = removecore which = 1703 }                   # acknowledged Japanese territory
		
		command = { type = trigger which = 952000  }                   # ComChi will make the most of this                   # ComChi will make the most of this
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
                command = { type = switch_allegiance which = CHC value = -1 }  # Army deserting to ComChi
	}
}

#  Military aid and technology to NatChi puppet from Japan (Complete)

event = { 
	id = 522026
	random = no
	country = CHI
	
	name = CEVTNAME_522026
	desc = CEVTDESC_522026
	style = 0

	# Triggered by PAN 492081A

	action_a = {
		name = CEVTACTA_522026
		command = { type = industry which = 1616 value = -4 } # Chonggoing
		command = { type = industry which = 1611 value = -4 } # Kunming
		command = { type = industry which = 1563 value = -4 } # Beijing
		command = { type = industry which = 1700 value = -4 } # Zhanjiang
		command = { type = industry which = 1702 value = -4 } # Bobai
		command = { type = dissent value = 10 }
		command = { type = supplies value = 1000 }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
	}
}

#  Military aid and technology to NatChi puppet from Japan (Partial)

event = { 
	id = 522027
	random = no
	country = CHI
	
	name = CEVTNAME_522027
	desc = CEVTDESC_522027
	style = 0

	# Triggered by PAN 492081B

	action_a = {
		name = CEVTACTA_522027
		command = { type = industry which = 1616 value = -2 } # Chonggoing
		command = { type = industry which = 1611 value = -2 } # Kunming
		command = { type = industry which = 1563 value = -2 } # Beijing
		command = { type = industry which = 1700 value = -2 } # Zhanjiang
		command = { type = industry which = 1702 value = -2 } # Bobai
		command = { type = dissent value = 5 }
		command = { type = supplies value = 1000 }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
		command = { type = steal_tech which = PAN }
	}
}

##################################################################################
# 522009 CHI- The 4 big families control the economy (by nachinus)
##################################################################################

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

	trigger = {
		random = 60
		OR = {
			headofgovernment = 52002 #Chiang kai shek - start
			headofgovernment = 52011 #Chiang kai shek - 36
			headofgovernment = 52019 #Chiang kai shek - 40
			headofgovernment = 52027 #Chiang kai shek - 44
			}
		war = { country = CHI country = PAN }
		war = { country = USA country = PAN }
		control = { province = 1693 data = CHI } #Zhengzhou
		control = { province = 1618 data = CHI } #Luoyang
		NOT = {
			OR = { # none of this must happen
				control = { province = 1698 data = CHI } # Shanghai
				control = { province = 1563 data = CHI } # Beijing
				alliance = { country = CHI country = GER }
				war = { country = CHI country = USA } #Big families commerced with usa
				alignment = communist
			}
		}
	}

	name = CEVTNAME_522009
	desc = CEVTDESC_522009
	style = 0

	date = { day = 1 month = october year = 1942 }
	offset = 30 # Check for trigger conditions every 30 days
	deathdate = { day = 1 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_522009
		command = { type = influence value = -2 }
		command = { type = dissent value = 5 }
		command = { type = province_manpower which = 1693 value = -1 } #Zhengzhou-Henan prov
		command = { type = province_manpower which = 1618 value = -1 } #Luoyang-Henan prov
		command = { type = province_manpower which = -1 value = -1 }
		command = { type = manpowerpool value = -80 }
		}
	}



#########################################################################
#  Germany sends von Falkenhausen in China 1936 
#########################################################################
event = { 
	id = 522003
	random = no
	country = CHI
	
	# Triggered by GER 172037
	
	name = CEVTNAME_522003
	desc = CEVTDESC_522003
	style = 0

	action_a = {
		name = CEVTACTA_522003
		command = { type = gain_tech which = 4200 }  #Catalytic Cracking
		command = { type = gain_tech which = 4201 }  #Catalytic Cracking Plants
		command = { type = gain_tech which = 1203 }  #Anti-Tank Rifle
		command = { type = gain_tech which = 3005 }  #Basic Man Portable Radio Sets
		command = { type = gain_tech which = 3006 }  #Basic Vehicle Radio Sets
		command = { type = gain_tech which = 3007 }  #Basic Long-Range Radio Sets
		command = { type = gain_tech which = 11100 } #Pre-War Field Testing
		command = { type = gain_tech which = 14100 } #Light Artillery
		command = { type = supplies value = 2000 }   # Uniforms, ammunition and weapons from Germany (minus req for new division)
		
		command = { type = add_division which = infantry }
		command = { type = build_division which = infantry value = 0}
		command = { type = build_division which = infantry value = 0}
		command = { type = manpowerpool value = -40 }
		command = { type = alignment which = fascist value = 10 }
		command = { type = dissent value = 1 }
		command = { type = setflag which = chi_minor_ger_FullMilitaryMission }
		command = { type = clrflag which = chi_minor_ger_LimitedMilitaryMission }
	}
	action_b = {
		name = CEVTACTB_522003
		command = { type = gain_tech which = 4200 }  #Catalytic Cracking
		command = { type = gain_tech which = 4201 }  #Catalytic Cracking Plants
		command = { type = add_division which = infantry }
		command = { type = manpowerpool value = -20 }
		command = { type = supplies value = 2000 }     # Uniforms, ammunition and weapons from Germany (minus req for new division)
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = sleepevent which = 172038 } # sleep 1937 mission
		command = { type = sleepevent which = 522016 } # sleep allegiance event
		command = { type = setflag which = chi_minor_ger_LimitedMilitaryMission }
		command = { type = clrflag which = chi_minor_ger_FullMilitaryMission }
	}
}


#  Germany sends a limited mission to China 1936

event = { 
	id = 522004
	random = no
	country = CHI
	
	# Triggered by GER 172037
	
	name = CEVTNAME_522004
	desc = CEVTDESC_522004
	style = 0

	action_a = {
		name = CEVTACTA_522003
		command = { type = gain_tech which = 4200 } #Catalytic Cracking
		command = { type = gain_tech which = 4201 } #Catalytic Cracking Plants 
		command = { type = supplies value = 1500 } # Uniforms and ammunition from Germany
		command = { type = add_division which = infantry }
		command = { type = manpowerpool value = -20 }
		command = { type = alignment which = fascist value = 2 }
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = setflag which = chi_minor_ger_LimitedMilitaryMission }
	}
	action_b = {
		name = CEVTACTB_522003
		command = { type = gain_tech which = 4200 } #Catalytic Cracking
		command = { type = add_division which = infantry }
		command = { type = manpowerpool value = -20 }
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = sleepevent which = 522016 } # sleep allegiance event
		command = { type = setflag which = chi_minor_ger_LimitedMilitaryMission }
	}
}


#  Germany continues military mission in China 1937

event = { 
	id = 522005
	random = no
	country = CHI
	
	# Triggered by GER 172038
	
	name = CEVTNAME_522005
	desc = CEVTDESC_522005
	style = 0

	action_a = {
		name = CEVTACTA_522005
		command = { type = gain_tech which = 4202 }  #Basic Synthetic Materials
		command = { type = gain_tech which = 4203 }  #Vinyl Acetates
		command = { type = gain_tech which = 1205 }  #Basic Divisional Signal Command
		command = { type = gain_tech which = 11104 } #Tactical Defensive Regimen
		command = { type = gain_tech which = 11102 } #Army Long-Range Reconnaissance Doctrine
		command = { type = gain_tech which = 14200 } #Medium Artillery

		command = { type = supplies value = 2000 }   # Uniforms, ammunition and weapons from Germany (minus req for new division)
		command = { type = add_division which = infantry }
		command = { type = build_division which = infantry value = 0}
		command = { type = build_division which = infantry value = 0}
		command = { type = manpowerpool value = -40 }
		command = { type = alignment which = fascist value = 10 }
		command = { type = dissent value = 1 }
		
	}
}


#  Germany withdraws the mission from China 1936 or 1937

event = { 
	id = 522006
	random = no
	country = CHI
	
	# Triggered by GER 172038
	
	name = CEVTNAME_522006
	desc = CEVTDESC_522006
	style = 0

	action_a = {
		name = CEVTACTA_522006
		command = { type = alignment which = democratic value = 10 }
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = sleepevent which = 522016 } # sleep allegiance event
		command = { type = clrflag which = chi_minor_ger_FullMilitaryMission }
		command = { type = clrflag which = chi_minor_ger_LimitedMilitaryMission }
	}
}


#  Germany continues military mission in China 1938

event = { 
	id = 522007
	random = no
	country = CHI
	
	# Triggered by GER 172041
	
	name = CEVTNAME_522007
	desc = CEVTDESC_522007
	style = 0

	action_a = {
		name = CEVTACTA_522007
		command = { type = gain_tech which = 4300 }  #Polymerisation
		command = { type = gain_tech which = 1300 }  #Combat Medical Service
		#command = { type = gain_tech which = 1400 } #Andris, Germany doesn't have this in April 1938
		command = { type = gain_tech which = 1976 }  #Basic GPM
		command = { type = gain_tech which = 11200 } #Early War Experience 
		command = { type = gain_tech which = 11204 } #Deep Area Defense
		command = { type = gain_tech which = 14300 } #Self-Propelled Artillery
		command = { type = supplies value = 2000 } # Uniforms, ammunition and weapons from Germany (minus req for new division)
		
		command = { type = add_division which = infantry }
		command = { type = build_division which = infantry }
		command = { type = build_division which = infantry }
		command = { type = manpowerpool value = -40 }
		command = { type = alignment which = fascist value = 10 }
		command = { type = dissent value = 1 }
	}
}


#  Germany withdraws the mission from China 1938

event = { 
	id = 522008
	random = no
	country = CHI
	
	# Triggered by GER 172040
	
	name = CEVTNAME_522008
	desc = CEVTDESC_522008
	style = 0

	action_a = {
		name = CEVTACTA_522008
		command = { type = alignment which = democratic value = 10 }
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = sleepevent which = 522016 } # sleep allegiance event
	}
}


#########################################################################
#  Soviet equipment to China
#########################################################################
event = { 
	id = 522014
	random = no
	country = CHI
	
	# Equipment received from USSR

	trigger = {
		event = 222028
		random = 25
		control = { province = 1611 data = CHI } #Kunming
		NOT = {
			war = { country = CHI country = SOV }
		}
	}
        date = { day = 1 month = april year = 1937 }
        offset = 30
	deathdate = { day = 29 month = december year = 1940 }

	
	name = CEVTNAME_522014
	desc = CEVTDESC_522014
	style = 0

	action_a = {
		name = CEVTACTA_522014
		command = { type = supplies value = 2000 }
		command = { type = flak which = 1611 value = 2 }
		command = { type = gain_tech which = 14050 } #High-Elevation Gun Carriage	
		command = { type = gain_tech which = 14995 } #7 mm MG (Air)		
		command = { type = gain_tech which = 14056 } #Anti-air machine gun		
		command = { type = gain_tech which = 14107 } #Anti-air gun 75mm
		command = { type = add_division which = fighter }
		command = { type = add_division which = tactical_bomber }
		command = { type = manpowerpool value = -10 }
	}
}

#########################################################################
#  Soviet credit to China
#########################################################################
event = { 
	id = 522015
	random = no
	country = CHI
	
	# Credit received from USSR

	trigger = {
		event = 522014
		random = 15
		NOT = {
			war = { country = CHI country = SOV }
		}
		control = { province = 1611 data = CHI } #Kunming
	}
        date = { day = 1 month = april year = 1937 }
        offset = 30
	deathdate = { day = 29 month = december year = 1941 }

	
	name = CEVTNAME_522015
	desc = CEVTDESC_522015
	style = 0

	action_a = {
		name = CEVTACTA_522015
		command = { type = supplies value = 2000 }
		command = { type = oilpool value = 5000 }
		command = { type = rubberpool value = 5000 }
		command = { type = steelpool value = 5000 }
		command = { type = coalpool value = 5000 }
		command = { type = flak which = 1611 value = 2 }
	}
	action_b = {
		name = CEVTACTB_522015
		command = { type = supplies value = 500 }
		command = { type = oilpool value = 1000 }
		command = { type = flak which = 1611 value = 2 }
		command = { type = add_division which = infantry value = 3 } # should be anti-air
		command = { type = add_division which = infantry value = 2 } # anti-tank
		command = { type = add_division which = infantry value = 4 } # engineer
		command = { type = manpowerpool value = -15 }
	}
	action_c = {
		name = CEVTACTC_522015
		command = { type = supplies value = 1000 }
		command = { type = oilpool value = 3000 }
		command = { type = flak which = 1611 value = 2 }
		command = { type = add_division which = destroyer }
		command = { type = add_division which = destroyer }
		command = { type = add_division which = destroyer }
		command = { type = add_division which = transports }
		command = { type = add_division which = transports }
		command = { type = manpowerpool value = -15 }
	}

}

########################################################
# German mission withdrawn as China switches allegiance
########################################################

event = { 
	id = 522016
	random = no
	country = CHI
	
	# German mission withdrawn as China switches allegiance

	trigger = {
		event = 522003 #Germany military mission to China 1936
		OR = {
			alliance = { country = CHI country = SOV }
			alliance = { country = CHI country = ENG }
			war = { country = CHI country = GER }
		}
	}
        date = { day = 1 month = april year = 1937 }
        offset = 10
	deathdate = { day = 29 month = december year = 1940 }

	
	name = CEVTNAME_522016
	desc = CEVTDESC_522016
	style = 0

	action_a = {
		name = CEVTACTA_522016
		command = { type = sleepleader which = 50339 } # General von Falkenhausen
		command = { type = sleepevent which = 172038 } # sleep 1937 mission 
		command = { type = sleepevent which = 172041 } # sleep 1938 mission 
	}
}


#########################################################################
#  Marco Polo Bridge Incident - settlement
#########################################################################
event = { 
	id = 522010
	random = no
	country = CHI
	
	name = CEVTNAME_522010
	desc = CEVTDESC_522010
	style = 0

	# Triggered by PAN 492028

	action_a = {
		name = CEVTACTA_522010
		command = { type = dissent value = 1 }
	}
}


#########################################################################
#  China takes its case to the League of Nations
#########################################################################
event = { 
	id = 522011
	random = no
	country = CHI
	
	name = CEVTNAME_522011
	desc = CEVTDESC_522011
	style = 0

	trigger = {
		random = 5
		war = { country = PAN country = CHI }
	}

        date = { day = 1 month = september year = 1937 }
        offset = 1
	deathdate = { day = 30 month = june year = 1938 }

	action_a = {
		name = CEVTACTA_522011
		command = { type = warentry which = USA value = 1 }
	}
	action_b = {
		name = CEVTACTB_522011
		command = { type = sleepevent which = 322034 } # Ahistorical
	}
}


#########################################################################
#  Chengchow Flooding
#########################################################################
event = { 
	id = 522012
	random = no
	country = CHI
	
	name = CEVTNAME_522012
	desc = CEVTDESC_522012
	style = 0

	trigger = {
		war = { country = PAN country = CHI }
		control = { province = 1693 data = PAN } #Zhengzhou
		
		OR = {	
               		control = { province = 1620 data = PAN } #Xuzhou
                	control = { province = 1622 data = PAN } #Jinan
			control = { province = 1565 data = PAN } #Xinxiang
		}
	}

        date = { day = 1 month = july year = 1937 } # historical June 1938
        offset = 2
	deathdate = { day = 30 month = december year = 1940 }

	action_a = {
		name = CEVTACTA_522012
		command = { type = infrastructure which = 1693 value = -15 }
		command = { type = infrastructure which = 1620 value = -15 }
		command = { type = infrastructure which = 1622 value = -15 }
		command = { type = infrastructure which = 1565 value = -15 }
		command = { type = infrastructure which = 1625 value = -15 }
		command = { type = industry which = 1693 value = -2 }
		command = { type = industry which = 1620 value = -2 }
		command = { type = industry which = 1622 value = -2 }
		command = { type = industry which = 1565 value = -2 }
		command = { type = industry which = 1625 value = -2 } #Tianjin
		command = { type = province_manpower which = 1693 value = -1 } #Zhengzhou
		command = { type = province_manpower which = 1620 value = -1 } #Xuzhou
		command = { type = province_manpower which = 1622 value = -1 } #Jinan
		command = { type = province_manpower which = 1565 value = -1 } #Xinxiang
		command = { type = province_manpower which = 1625 value = -1 } #Tianjin
		command = { type = dissent value = 8 }
		command = { type = trigger which = 492032 }
	}
	action_b = {
		name = CEVTACTB_522012
		command = { type = sleepevent which = 522013 } 
	}
}


#  Chengchow Flooding subsides

event = { 
	id = 522013
	random = no
	country = CHI
	
	name = CEVTNAME_522013
	desc = CEVTDESC_522013
	style = 0

	trigger = {
		random = 2
		event = 522012 #Chengchow Flooding
	}

        date = { day = 1 month = july year = 1937 } # historical 1938
        offset = 3
	deathdate = { day = 30 month = december year = 1941 }

	action_a = {
		name = CEVTACTA_522013
		command = { type = infrastructure which = 1693 value = 15 }
		command = { type = infrastructure which = 1620 value = 15 }
		command = { type = infrastructure which = 1622 value = 15 }
		command = { type = infrastructure which = 1565 value = 15 }
		command = { type = infrastructure which = 1625 value = 15 }
		command = { type = industry which = 1693 value = 1 }
		command = { type = industry which = 1620 value = 1 }
		command = { type = industry which = 1622 value = 1 }
		command = { type = industry which = 1565 value = 1 }
		command = { type = industry which = 1625 value = 1 }
	}
}

#########################################################################
#  Chinese Industry to the Interior
#########################################################################
event = { 
	id = 522022
	random = no
	country = CHI
	
	name = CEVTNAME_522022
	desc = CEVTDESC_522022
	style = 0

	trigger = {
		random = 35
		war = { country = CHI country = PAN }
	}

        date = { day = 10 month = february year = 1937 }
        offset = 5
	deathdate = { day = 25 month = october year = 1943 }

	action_a = {
		name = CEVTACTA_522022
		command = { type = industry which = 1563 value = -4 }	#Beijing
		command = { type = industry which = 1565 value = -2 }   #Xinxiang
		command = { type = industry which = 1698 value = -4 }   #Shanghai
		command = { type = industry which = 1699 value = -2 }   #Nantong
		command = { type = industry which = 1697 value = -1 }   #Ningbo
		command = { type = industry which = 1704 value = -4 }   #Guangzhou
		command = { type = industry which = 1702 value = -4 }   #Bobai
		command = { type = industry which = 1700 value = -4 }   #Zhanjiang
		command = { type = supplies value = -1000 }		# resources diverted to move industry
		command = { type = dissent value = 4 } 			# social upheaval
	}
	action_b = {
		name = CEVTACTB_522022
		command = { type = sleepevent which = 522023 } 		# Alternate
		command = { type = dissent value = -2 } 		# reassuring decision
	}
}


# Rebuild Chinese factories

event = { 
	id = 522023
	random = no
	country = CHI
	
	name = CEVTNAME_522023
	desc = CEVTDESC_522023
	style = 0

	trigger = {
		random = 20
		event = 522022 #Chinese Industry to the Interior
	}

        date = { day = 10 month = february year = 1937 }
        offset = 10
	deathdate = { day = 25 month = october year = 1944 }

	action_a = {
		name = CEVTACTA_522023
		command = { type = industry which = 1611 value = 5 }	# Historical (Kunming)
		command = { type = industry which = 1612 value = 5 }    # Wutunghliao
		command = { type = industry which = 1573 value = 5 } 	# Wudu
		command = { type = industry which = 1613 value = 5 } 	# Chengdu
		command = { type = industry which = 1614 value = 5 }    # Guiyang
		command = { type = dissent value = -2 }			# great success
		command = { type = trigger which = 522066 }
	}
}

#Chinese Strategy (AI China vs. HP Japan)

event = { 
	id = 522066
	random = no
	country = CHI
	
	name = "Second Sino-Japanese War"
	desc = ""
	style = 0

	trigger = {
		ai = yes
		flag = chi_global_pan_HumanPlayer  #Human Japan
	}

        action_a = {
		name = "Total War"
	
		command = { type = province_keypoints which = 1542 value = 1 } # Anxi
		command = { type = province_keypoints which = 1543 value = 1 } # Xining
		command = { type = province_keypoints which = 1544 value = 1 } # Zhangye

		command = { type = province_keypoints which = 1563 value = 1 } # Beijing 
		command = { type = province_keypoints which = 1564 value = 1 }  
		command = { type = province_keypoints which = 1565 value = 1 }  
		command = { type = province_keypoints which = 1567 value = 1 }  
		command = { type = province_keypoints which = 1568 value = 1 }  
		command = { type = province_keypoints which = 1569 value = 1 }  
		command = { type = province_keypoints which = 1570 value = 1 }  
		command = { type = province_keypoints which = 1571 value = 1 }  
		command = { type = province_keypoints which = 1572 value = 1 }  
		command = { type = province_keypoints which = 1573 value = 1 }  
		command = { type = province_keypoints which = 1574 value = 1 } # Lanzhou
		command = { type = province_keypoints which = 1601 value = 1 }  
		command = { type = province_keypoints which = 1602 value = 1 }  
		command = { type = province_keypoints which = 1606 value = 1 }  
		command = { type = province_keypoints which = 1609 value = 1 }  
		command = { type = province_keypoints which = 1611 value = 1 }  
		command = { type = province_keypoints which = 1612 value = 1 }  
		command = { type = province_keypoints which = 1613 value = 1 }  
		command = { type = province_keypoints which = 1614 value = 1 }  
		command = { type = province_keypoints which = 1615 value = 1 }  
		command = { type = province_keypoints which = 1616 value = 1 }  
		command = { type = province_keypoints which = 1617 value = 1 }  
		command = { type = province_keypoints which = 1618 value = 1 }  
		command = { type = province_keypoints which = 1620 value = 1 }  
		command = { type = province_keypoints which = 1621 value = 1 }  
		command = { type = province_keypoints which = 1622 value = 1 }  
	
		command = { type = province_keypoints which = 1625 value = 1 }  
		command = { type = province_keypoints which = 1626 value = 1 }  
		command = { type = province_keypoints which = 1691 value = 1 }  
		command = { type = province_keypoints which = 1692 value = 1 }  
		command = { type = province_keypoints which = 1693 value = 1 }  
		command = { type = province_keypoints which = 1694 value = 1 }  
		command = { type = province_keypoints which = 1695 value = 1 }  
		command = { type = province_keypoints which = 1696 value = 1 }  
		command = { type = province_keypoints which = 1697 value = 1 }  
		command = { type = province_keypoints which = 1698 value = 1 } # Shanghai
		command = { type = province_keypoints which = 1699 value = 1 }  
		command = { type = province_keypoints which = 1700 value = 1 }  
		command = { type = province_keypoints which = 1701 value = 1 }  
		command = { type = province_keypoints which = 1702 value = 1 }  
		command = { type = province_keypoints which = 1703 value = 1 } # Kowloon
		command = { type = province_keypoints which = 1704 value = 1 } # Guangzhou
		command = { type = province_keypoints which = 1705 value = 1 }  
		command = { type = province_keypoints which = 1706 value = 1 }  
		command = { type = province_keypoints which = 1707 value = 1 }  
		command = { type = province_keypoints which = 1708 value = 1 }  
		command = { type = province_keypoints which = 1709 value = 1 }  
		command = { type = province_keypoints which = 1710 value = 1 }  
		command = { type = province_keypoints which = 1711 value = 1 }  
		command = { type = province_keypoints which = 1712 value = 1 }  
		command = { type = province_keypoints which = 1713 value = 1 }  
		command = { type = province_keypoints which = 1714 value = 1 }  
		command = { type = province_keypoints which = 1715 value = 1 } 
		command = { type = province_keypoints which = 1724 value = 1 } # Haikou

		command = { type = dissent value = -1 }				# Determined
		command = { type = setflag which = chi_major_pan_SinoJapaneseTotalWar }
	}
	action_b = {
		name = "Limited War"
		command = { type = dissent value = 1 }				# Question leadership
		command = { type = setflag which = chi_major_pan_SinoJapaneseLimitedWar }
	}
}

###########################
#Nationalist China Puppets Sinkiang
###########################

event = { 
	id = 522024
	random = no
	country = CHI
	
	name = CEVTNAME_522024
	desc = CEVTDESC_522024
	style = 0

	# triggered by 1102013

	action_a = {
		name = CEVTACTA_522024
#		command = { type = add_division which = infantry }
		command = { type = add_division which = fighter }		# historically I-15 or I-16
		command = { type = dissent value = 2 }	 			# an unpopular move with some warlords
#		command = { type = peace which = SIK value = 0 }		# peace with Sinkiang
		command = { type = make_puppet which = SIK }			# SIK warlords accept CHI leadership
	}
	action_b = {
		name = CEVTACTB_522024
		command = { type = dissent value = -1 } 			# confidence in own strength
	}
}

event = { 
	id = 522025
	random = no
	country = CHI
	
	name = CEVTNAME_522025
	desc = CEVTDESC_522025
	style = 0

	trigger = {
		garrison = { country = CHI province = 1698 size = 1 }
		war = { country = CHI country = PAN }
	}

        date = { day = 5 month = january year = 1937 }
        offset = 3
	deathdate = { day = 25 month = december year = 1941 }

	action_a = {
		name = CEVTACTA_522025
		command = { type = warentry which = USA value = 1 }
		command = { type = warentry which = PAN value = 3 }
	}
}

#########################################################################
#  522028 Post-Panay Aid from USA - part of Panay Incident Event Chain (by Engineer)
#########################################################################
event = { 
	id = 522028
	random = no
	country = CHI
	
	# triggered by USA Event 322237b
	
	name = CEVTNAME_522028
	desc = CEVTDESC_522028
	style = 0

	action_a = {
		name = CEVTACTA_OK
			command = { type = supplies value = 2000 }
			command = { type = steelpool value = 1000 }
			command = { type = oilpool value = 1000 }
			command = { type = gain_tech which = 1204 } # Land Mines 
			command = { type = gain_tech which = 1300 } # Combat Medical Service 
			command = { type = gain_tech which = 1301 } # Medium Mortar
			command = { type = gain_tech which = 10000 } # Basic Fighter Engine and Aerodynamic Design 
			command = { type = gain_tech which = 10001 } # Basic Short Range Fighter Engine
			command = { type = gain_tech which = 10002 } # Basic Airframes
			command = { type = gain_tech which = 10003 } # Basic Aerodynamics
			
		}
	}
#########################################################################
#  Escalated US Aid - part of Panay Incident Event Chain (by Engineer)
#########################################################################
event = { 
	id = 522029
	random = no
	country = CHI
	
	# triggered by USA Event 32243
	
	name = CEVTNAME_522029
	desc = CEVTDESC_522029
	style = 0

	action_a = {
		name = CEVTACTA_OK
			command = { type = supplies value = 2000 }
			command = { type = steelpool value = 1000 }
			command = { type = oilpool value = 1000 }
			command = { type = add_division which = infantry value = artillery } # China Legion Division
			command = { type = gain_tech which = 1302 } # Penicillin 
			command = { type = gain_tech which = 1303 } # Blood transfusions 
			command = { type = gain_tech which = 14973 } # 12.7 mm machinegun
			command = { type = gain_tech which = 10100 } # Basic Fighter Development 
			command = { type = gain_tech which = 10101 } # Basic SR Fighter Prototype
			command = { type = gain_tech which = 10102 } # Basic Interceptor
			command = { type = gain_tech which = 14006 } # 100 mm field gun
		}
	}
#########################################################################
#  US Joins War Against China - part of Panay Incident Event Chain (by Engineer)
#########################################################################
event = { 
	id = 522030
	random = no
	country = CHI
	
	# triggered by USA Event 322244
	
	name = CEVTNAME_522030
	desc = CEVTDESC_522030
	style = 0

	action_a = {
		name = CEVTACTA_OK
			command = { type = supplies value = 4000 }
			command = { type = steelpool value = 2000 }
			command = { type = oilpool value = 2000 }
			command = { type = access which = USA }
			command = { type = access which = PHI }
			command = { type = gain_tech which = 1302 } # Penicillin 
			command = { type = gain_tech which = 1303 } # Blood transfusions 
			command = { type = gain_tech which = 14973 } # 12.7 mm machine gun
			command = { type = gain_tech which = 10100 } # Basic Fighter Development 
			command = { type = gain_tech which = 10101 } # Basic SR Fighter Prototype
			command = { type = gain_tech which = 10102 } # Basic Interceptor Guarantees that China can locally manufacture 'Wildcat' grade fighters.
			command = { type = gain_tech which = 14006 } # 100 mm field gun
		}
	}

##########################
# 522018 (CHI) League of Nations opens for War Supplies Imports(by Ghost_dk)
##########################

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

	trigger = { 
		war = { country = PAN country = CHI }
	}
	
	name = CEVTNAME_522018
	desc = CEVTDESC_522018
	style = 0

	date = { day = 26 month = september year = 1938 }
	offset = 30 
	deathdate = { day = 29 month = december year = 1947 }

	action_a = { 
		name = CEVTACTA_522018
		command = { type = supplies value = 800 }
	}
}
##########################
# 522019 (CHI) The Pitman Act - Chinese Currency(by Ghost_dk)
##########################

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

	# Triggered by USA 322098

	name = CEVTNAME_522019
	desc = CEVTDESC_522019
	style = 0

	action_a = { 
		name = CEVTACTA_522019
		command = { type = supplies value = 1000 }
		}
}
##########################
# 522021 (CHI) USA Grants Loans to China(by Ghost_dk)
##########################

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

	# Triggered by USA 322080

	name = CEVTNAME_522021
	desc = CEVTDESC_522021
	style = 0

	action_a = {
		name = CEVTACTA_522019
		command = { type = supplies value = 4000 }
		}
}
##########################
# 522020 (CHI) UK Grants Loans to China(by Ghost_dk)
##########################

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

	# Triggered by ENG 272146

	name = CEVTNAME_522020
	desc = CEVTDESC_522020
	style = 0

	action_a = {
		name = CEVTACTA_522019
		command = { type = supplies value = 400 }
		}
}


###########################################
# Chinese persistent uprising event
###########################################
event = { 
	id = 522040 
	random = no
	country = CHI
	persistent = yes 

	# Triggered by PAN 492256/492257
	
	name = CEVTNAME_522040 # Chinese declare independence!
	desc = CEVTDESC_522040 # The inability of the Imperial Army in controlling the guerilla movements in China has finally reached a critical level and a major popular uprising is taking place in China.  Partisan units in several provinces have declared their loyalty to a single Warlord and he's called every man and woman to raise arms against the Japanese to win freedom once again from the foreign devils.  Several garrisons have already been overrun and a vast people's militia is being armed.
	style = 0

	action_a = {
		name = CEVTACTA_522040 # Fight for freedom
		command = { type = influence value = 3 }  
		command = { type = dissent value = -5 }	
		command = { type = add_division which = infantry when = 1611 } # Kunming
		command = { type = add_division which = infantry when = 1621 } # Lianyungang
		command = { type = add_division which = infantry when = 1613 } # Chengdu
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry } #
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry } #
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry }
		command = { type = add_division which = infantry } #
		command = { type = add_division which = militia when = 1612 } # Wutunglhiao
		command = { type = add_division which = militia when = 1615 } # Zuniy
		command = { type = add_division which = militia when = 1609 } # Nanning
		command = { type = add_division which = militia when = 1624 } # Zhangjiakou
		command = { type = add_division which = militia when = 1616 } # Chongqing
		command = { type = add_division which = militia when = 1617 } #	Xi'an
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = add_division which = militia } #
		command = { type = add_division which = militia }
		command = { type = add_division which = militia }
		command = { type = add_division which = militia } #
	}
}

########################################################################
# (AI) NatChi Industrialization plans 1936-37
# events 222069-222075 by Copper Nicus
#######################################################################

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

	trigger = {ai = yes }

	name = AI_EVENT
	desc = ""

	style = 0			
	date = { day = 1 month = january year = 1936 }
	
	action_a = { 
		name = OK
		command = { type = manpowerpool value = -50 } #
		command = { type = construct which = ic value = 1542 } # Anxi
		command = { type = construct which = ic value = 1543 } # Xining
		command = { type = construct which = ic value = 1573 } # Wudu
		command = { type = construct which = ic value = 1574 } # Lanzhou
		command = { type = construct which = ic value = 1611 } # Kunming
		command = { type = construct which = ic value = 1612 } # Wutunghliao
		command = { type = construct which = ic value = 1614 } # Guiyang
		command = { type = construct which = ic value = 1615 } # Zunyi
		command = { type = construct which = ic value = 1617 } # Xi'an
		command = { type = construct which = ic value = 1601 } # Baoshan
		command = { type = construct which = ic value = 1602 } # Mojiang
		command = { type = construct which = ic value = 1606 } # Kaiyuan
		command = { type = construct which = ic value = 1693 } # Zhengzhou
		command = { type = construct which = ic value = 1705 } # Liuzhou
		command = { type = construct which = ic value = 1706 } # Changsha
		command = { type = construct which = ic value = 1707 } # Hengyang
		command = { type = construct which = ic value = 1708 } # Guilin
		command = { type = construct which = ic value = 1709 } # Shagouan
		command = { type = construct which = ic value = 1710 } # Huangshi		
          }		
}

########################################################################
# (AI) Minister Changes
#######################################################################

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

	trigger = {ai = yes }

	name = AI_EVENT
	desc = ""
	style = 0			

	date = { day = 1 month = january year = 1937 }
	
	action_a = { 
		name = OK
		command = { type = chiefofarmy which = 52074 } 		#Li Tsung-jen/Static Defense
		command = { type = armamentminister which = 52044 } 	#Yu Fei-peng/Resource Industrialist	
        }		
}


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

	trigger = {ai = yes }

	name = AI_EVENT
	desc = ""
	style = 0			

	date = { day = 3 month = january year = 1938 } 
	
	action_a = { 
		name = OK
		command = { type = chiefofstaff which = 52069 } 	#Pai Chung-hsi/Mass Combat
				
        }		
}