CHI_nationalist_historical_plan = {
	name = "Nationalist China historical plan"
	desc = "Essentially historical behavior for Nationalist China"

	allowed = {
		original_tag = CHI
	}
	enable = {
		OR = {
			JAP = { is_ai = no }
			any_country = {
				is_literally_china = yes
				is_ai = no
			}
			JAP = {
				has_volunteers_amount_from = {
					tag = GER
					count > 0
				}
			}
		}
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = CHI_ai_behavior
					option = DEFAULT
				}	
			}
			has_country_flag = CHI_AI_RANDOM_HISTORICAL
			has_game_rule = {
				rule = CHI_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		OR = {
			JAP = {
				OR = {
					has_completed_focus = JAP_strengthen_civilian_government
					has_completed_focus = JAP_the_unthinkable_option 
				}
			}
			has_global_flag = SOV_has_early_war
		}
	}

	ai_national_focuses = {

		CHI_three_principles_of_the_people
		CHI_democracy
		CHI_executive_yuan
		CHI_military_affairs_commission
		CHI_expand_the_academica_sinica
		CHI_unified_industrial_planning
		CHI_chemical_research_institute
		CHI_army_reform
		CHI_nationalism
		CHI_foreign_threats
		CHI_united_front

		CHI_war_of_resistance #check if we are at war anyway
		CHI_war_of_national_liberation
		CHI_war_of_anti_imperialism
		CHI_scorched_earth_tactics
		CHI_forced_conscription

		CHI_invite_foreign_investors
		CHI_reach_out_to_france
		CHI_guarantee_the_hanoi_route

		CHI_taiyuan_arsenal
		CHI_rural_reconstruction_movement

		CHI_mining_commission
		CHI_develop_the_hanyan_arsenal

		CHI_financial_policy
		CHI_price_controls
		CHI_grain_tax
		CHI_dare_to_die_corps
		CHI_reform_the_national_bank
		CHI_forced_loans
		CHI_invite_foreign_investors
		CHI_british_cooperation

		CHI_mission_to_the_us
		CHI_mission_to_the_soviet_union
		CHI_mission_to_germany
		CHI_burma_road
		CHI_construction_battalions

		CHI_bureau_of_investigation_and_statistics
		CHI_whampoa_military_academy
		CHI_fighter_purchases
		CHI_camco
		CHI_hire_chennault

		CHI_the_hump
		CHI_ledo_road
		CHI_modern_logistics
		CHI_rapprochement_with_soviet_union
		CHI_purchase_tanks

		CHI_hire_soviet_designer
		CHI_renegotiate_the_unequal_treaties
		CHI_anti_imperialism
		CHI_guidance_and_support
	}

	research = {

	}
	focus_factors = {
		CHI_one_china_policy = 0
		CHI_conquer_tibet = 0
	}

	ideas = {
		CHI_soong_mei_ling = 10
	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}

CHI_nationalist_historical_plan2 = {
	name = "Nationalist China historical plan"
	desc = "Essentially historical behavior for Nationalist China"

	allowed = {
		original_tag = CHI
	}
	enable = {
		NOT = {
			OR = {
				JAP = { is_ai = no }
				JAP = {
					has_volunteers_amount_from = {
						tag = GER
						count > 0
					}
				}
				any_country = {
					is_literally_china = yes
					is_ai = no
				}
			}
		}
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = CHI_ai_behavior
					option = DEFAULT
				}	
			}
			has_country_flag = CHI_AI_RANDOM_HISTORICAL
			has_game_rule = {
				rule = CHI_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		OR = {
			JAP = {
				OR = {
					has_volunteers_amount_from = {
						tag = GER
						count > 0
					}
					has_completed_focus = JAP_strengthen_civilian_government
					has_completed_focus = JAP_the_unthinkable_option
				}
			}
			has_global_flag = SOV_has_early_war
		}
	}

	ai_national_focuses = {
		CHI_invite_foreign_investors
		CHI_unified_industrial_planning #March 10 1936
		CHI_mission_to_germany #May 20 1936
		CHI_rural_reconstruction_movement #July 30 1936
		CHI_british_cooperation #October 10 1936
		CHI_mission_to_the_us #February 30 1937
		CHI_military_affairs_commission #May 10 1937
		CHI_expand_the_academica_sinica #July 20 1937
		CHI_mission_to_the_soviet_union #September 30 1937
		CHI_hire_chennault #December 10 1937
		CHI_rapprochement_with_soviet_union #February 20 1938
		CHI_invite_soviet_advisers #April 30 1938
		CHI_army_reform #July 10 1938
		CHI_burma_road #September 20 1938
		CHI_the_soviet_volunteer_group #November 30 1938
		CHI_fighter_purchases #February 10 1938
		CHI_camco #April 20 1939
		CHI_three_principles_of_the_people #June 30 1939
		CHI_nationalism #September 10 1939
		CHI_financial_policy #November 20 1939
		CHI_foreign_threats #January 30 1940
		CHI_war_of_resistance #April 10 1940
		CHI_scorched_earth_tactics #June 20 1940
		CHI_mining_commission #August 30 1940
		CHI_welfare #November 10 1940
		CHI_refugee_relief_agency #January 20 1941
		CHI_forced_conscription #March 30 1941
		CHI_purchase_tanks #June 10 1941
		CHI_experimental_mechanised_unit #August 20 1941
		CHI_land_tax_reform #October 30 1941
		CHI_invite_the_flying_tigers #January 10 1942
		CHI_the_hump #March 20 1942
		CHI_chinese_expeditionary_force #May 30 1942
		CHI_sino_american_cooperative_organization #August 10 1942
		CHI_price_controls #October 20 1942
		CHI_ledo_road #December 30 1942
		CHI_the_chu_x_po #March 10 1943
		CHI_new_life_movement #May 20 1943
		CHI_modern_logistics #July 30 1943
	}

	research = {

	}

	ideas = {
		CHI_soong_mei_ling = 10
	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}

CHI_nationalist_historical_plan_war_with_the_soviet_union = {
	name = "Nationalist China historical plan"
	desc = "Essentially historical behavior for Nationalist China"

	allowed = {
		original_tag = CHI
	}
	enable = {
		has_global_flag = SOV_has_early_war
		OR = {
			AND = {
				is_historical_focus_on = yes
				has_game_rule = {
					rule = CHI_ai_behavior
					option = DEFAULT
				}	
			}
			has_country_flag = CHI_AI_RANDOM_HISTORICAL
			has_game_rule = {
				rule = CHI_ai_behavior
				option = HISTORICAL
			}
		}
	}
	abort = {
		SOV = {
			OR = {
				exists = no
				has_capitulated = yes
				is_subject = yes
				is_in_faction_with = CHI
			}
		}
	}

	ai_strategy = {
		type = alliance
		id = "GER"
		value = 2000
	}

	ai_national_focuses = {
		CHI_three_principles_of_the_people
		CHI_nationalism
		CHI_prioritize_the_interior
		CHI_subjugate_the_warlords
		CHI_anti_communism
		CHI_military_affairs_commission
		CHI_army_reform
		CHI_unified_industrial_planning
		CHI_expand_the_academica_sinica
		CHI_invite_foreign_investors
		CHI_financial_policy

		CHI_three_principles_of_the_people
		CHI_democracy
		CHI_military_affairs_commission
		CHI_expand_the_academica_sinica
		CHI_unified_industrial_planning
		CHI_chemical_research_institute
		CHI_army_reform
		CHI_nationalism
		CHI_foreign_threats
		CHI_united_front

		CHI_war_of_resistance #check if we are at war anyway
		CHI_war_of_national_liberation
		CHI_war_of_anti_imperialism
		CHI_scorched_earth_tactics
		CHI_forced_conscription

		CHI_invite_foreign_investors
		CHI_reach_out_to_france
		CHI_guarantee_the_hanoi_route

		CHI_executive_yuan
		CHI_taiyuan_arsenal
		CHI_rural_reconstruction_movement

		CHI_mining_commission
		CHI_develop_the_hanyan_arsenal

		CHI_financial_policy
		CHI_price_controls
		CHI_grain_tax
		CHI_dare_to_die_corps
		CHI_reform_the_national_bank
		CHI_forced_loans
		CHI_invite_foreign_investors
		CHI_british_cooperation

		CHI_mission_to_the_us
		CHI_mission_to_the_soviet_union
		CHI_mission_to_germany
		CHI_burma_road
		CHI_construction_battalions

		CHI_bureau_of_investigation_and_statistics
		CHI_whampoa_military_academy
		CHI_fighter_purchases
		CHI_camco
		CHI_hire_chennault

		CHI_the_hump
		CHI_ledo_road
		CHI_modern_logistics
		CHI_rapprochement_with_soviet_union
		CHI_purchase_tanks

		CHI_hire_soviet_designer
		CHI_renegotiate_the_unequal_treaties
		CHI_anti_imperialism
		CHI_guidance_and_support
	}

	research = {

	}
	focus_factors = {
		CHI_one_china_policy = 0
		CHI_conquer_tibet = 0
	}

	ideas = {
		CHI_soong_mei_ling = 10
	}

	# Keep small, as it is used as a factor for some things (such as research needs)
	# Recommended around 1.0. Useful for relation between plans
	weight = {
		factor = 1.0
		modifier = {
			factor = 1.0
		}
	}

}
