#
# HoI - Nationalist China  
#
#
# LIMIT: 522000 - 551999
#
# Hoi1 CORE(mod-Phoneix)1960
#
#
# 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
	
	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 Sian 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 = march year = 1936 }
	offset = 60
	deathdate = { day = 30 month = december year = 1936 }
	
	action_a = {
		name = ACTIONNAME4101A # Ally with the Commies
		command = { type = peace which = CHC }
		command = { type = warentry which = JAP value = 10 }
		command = { type = access which = CHC }
		command = { type = dissent value = -2 }
	}
	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 JAP 492009
	
	name = CEVTNAME_522001
	desc = CEVTDESC_522001
	style = 0
	
	action_a = {
		name = CEVTACTA_522001
		command = { type = trigger which = 492011 }    # Japanese peace effects

	}
	action_b = {
		name = CEVTACTB_522001
		command = { type = trigger which = 492010 }    # Japanese response to continued Chinese resistance
	}
}

#########################################################################
#  Kiri project succeeds and NatChi becomes a Japanese puppet
#########################################################################
event = { 
	id = 522002
	random = no
	country = CHI
	
	# Triggered by 492011
	
	name = CEVTNAME_522002
	desc = CEVTDESC_522002
	style = 0
	
	action_a = {
		name = CEVTACTA_522002
                command = { type = dissent value = 20 }                       # This is a terrible defeat! 
                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
                command = { type = secedeprovince which = JAP value = 1698 }   # Shanghai
                command = { type = secedeprovince which = JAP value = 1724 }   # Haikou
                command = { type = secedeprovince which = JAP value = 1704 }   # Guangzhou
                command = { type = secedeprovince which = JAP 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
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                command = { type = switch_allegiance which = CHC value = -1 } # the Army is deserting!
                }
}

##################################################################################
# 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 = JAP }
		war = { country = USA country = JAP }
		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 = 1959 }

	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 }
		}
	}

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

	# triggered by Japan 492081 A

	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 = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
	}
}

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

	# triggered by Japan 492081 B

	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 = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
		command = { type = steal_tech which = JAP }
	}
}

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

	action_a = {
		name = CEVTACTA_522003
		command = { type = gain_tech which = 4200 }
		command = { type = gain_tech which = 4201 }
		command = { type = gain_tech which = 1203 }
		command = { type = gain_tech which = 3005 }
		command = { type = gain_tech which = 3006 }
		command = { type = gain_tech which = 3007 }
		command = { type = gain_tech which = 11100 }
		command = { type = gain_tech which = 14100 }
		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 }
	}
	action_b = {
		name = CEVTACTB_522003
		command = { type = gain_tech which = 4200 }
		command = { type = gain_tech which = 4201 }
		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
	}
}

#########################################################################
#  Germany sends a limited mission to China 1936
#########################################################################
event = { 
	id = 522004
	random = no
	country = CHI
	
	# Triggered by 172037
	
	name = CEVTNAME_522004
	desc = CEVTDESC_522004
	style = 0

	action_a = {
		name = CEVTACTA_522003
		command = { type = gain_tech which = 4200 } # 
		command = { type = gain_tech which = 4201 } # 
		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
	}
	action_b = {
		name = CEVTACTB_522003
		command = { type = gain_tech which = 4200 } # 
		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
	}
}


#########################################################################
#  Germany continues military mission in China 1937
#########################################################################
event = { 
	id = 522005
	random = no
	country = CHI
	
	# Triggered by 172038
	
	name = CEVTNAME_522005
	desc = CEVTDESC_522005
	style = 0

	action_a = {
		name = CEVTACTA_522005
		command = { type = gain_tech which = 4202 }
		command = { type = gain_tech which = 4203 }
		command = { type = gain_tech which = 1205 }
		command = { type = gain_tech which = 11104 }
		command = { type = gain_tech which = 11102 }
		command = { type = gain_tech which = 14200 }
		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 1936 or 1937
#########################################################################
event = { 
	id = 522006
	random = no
	country = CHI
	
	# Triggered by 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
	}
}

#########################################################################
#  Germany continues military mission in China 1938
#########################################################################
event = { 
	id = 522007
	random = no
	country = CHI
	
	# Triggered by 5
	
	name = CEVTNAME_522007
	desc = CEVTDESC_522007
	style = 0

	action_a = {
		name = CEVTACTA_522007
		command = { type = gain_tech which = 4300 } 
		command = { type = gain_tech which = 1300 } 
		command = { type = gain_tech which = 1400 } 
		command = { type = gain_tech which = 1976 } 
		command = { type = gain_tech which = 11200 } 
		command = { type = gain_tech which = 11204 } 
		command = { type = gain_tech which = 14300 } 
		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 172038
	
	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 = -1 }
		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 } 		
		command = { type = gain_tech which = 14995 } 		
		command = { type = gain_tech which = 14056 } 		
		command = { type = gain_tech which = 14107 }
		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 }
		}
	}
        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 withdraw as China switches allegiance
########################################################

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

	trigger = {
		event = 522003
		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 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 = JAP country = CHI }
	}

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

	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 = JAP country = CHI }
		control = { province = 1693 data = JAP }
		OR = {
		war = { country = JAP country = CHI }
                control = { province = 1620 data = JAP }
		}
		OR = {
		war = { country = JAP country = CHI }
                control = { province = 1622 data = JAP }
		}
	}

        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 }
		command = { type = province_manpower which = 1693 value = -1 }
		command = { type = province_manpower which = 1620 value = -1 }
		command = { type = province_manpower which = 1622 value = -1 }
		command = { type = province_manpower which = 1565 value = -1 }
		command = { type = province_manpower which = 1625 value = -1 }
		command = { type = dissent value = 8 }
		command = { type = trigger which = 492032 }
	}
	action_b = {
		name = CEVTACTB_522012
		command = { type = sleepevent which = 522013 } # Sleep subside event
	}
}

#########################################################################
#  Chengchow flooding subsides
#########################################################################
event = { 
	id = 522013
	random = no
	country = CHI
	
	name = CEVTNAME_522013
	desc = CEVTDESC_522013
	style = 0

	# Triggered by 522012

	trigger = {
		random = 2
		event = 522012
	}

        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 }
	}
}

#########################################################################
#  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 = JAP }
	}

        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 }	# Historical
		command = { type = industry which = 1565 value = -2 } 
		command = { type = industry which = 1698 value = -4 } 
		command = { type = industry which = 1699 value = -2 } 
		command = { type = industry which = 1697 value = -1 } 
		command = { type = industry which = 1704 value = -4 } 
		command = { type = industry which = 1702 value = -4 } 
		command = { type = industry which = 1700 value = -4 } 
		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
	}
}

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

	trigger = {
		random = 20
		event = 522022
	}

        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
		command = { type = industry which = 1612 value = 5 } 
		command = { type = industry which = 1573 value = 5 } 
		command = { type = industry which = 1613 value = 5 } 
		command = { type = industry which = 1614 value = 5 } 
		command = { type = dissent value = -2 }			# a great success
	}
}

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 = JAP }
	}

        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 = JAP 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 = 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 = 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 = 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
		}
	}

##########################
# Nationalist China
##########################
##########################
# 522018 (CHI)league of nations opens for war supplies imports(by Ghost_dk)
##########################

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

	trigger = { 
		war = { country = JAP 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 = 1959 }

	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
	
	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 } #
	}
}
