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

	allowed = {
		tag = CHI
	}
	enable = {
		original_tag = CHI
		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 = {
		CHI = {
			OR = {
				controls_state = 598
				controls_state = 608
				NOT = { country_exists = PRC }
				is_in_faction_with = USA 
				has_war_together_with = USA 
				has_global_flag = ROC_taiwan
			}
		}
		#has_game_rule = {
		#	rule = CHI_ai_behavior
		#	option = ALTERNATE
		#}
	}

	ai_national_focuses = {
		CHI_Republic_of_China_Armed_Forces
		CHI_Republic_of_China_Army
		CHI_Reformation_of_the_Military
		CHI_American_Arms
		CHI_Urban_Warfare_Training
		CHI_Amphibious_Commando_Operations
		CHI_Declaration_of_Martial_Law
		CHI_The_Fall_of_the_Mainland
		CHI_The_Temporary_Provisions
		CHI_Fall_of_Hainan
		CHI_Fortify_the_Coast
		CHI_Korean_War_Intervention_Offer
		CHI_Reinforced_American_Ties
		CHI_Aid_For_Tibetan_Loyalists
		CHI_Undermine_the_Dalai_Lama
		CHI_Support_Anti_Communist_Insurgents
		CHI_Continue_to_Support_Operations_in_Burma
		CHI_Fortify_Matsu_and_Kinmen
		CHI_Arm_Partisans_on_the_Mainland
		CHI_Raid_Fujian
		CHI_The_Academy_for_the_Study_of_Carrying_out_Revolution
		CHI_Establish_the_Central_Reform_Committee
		CHI_Intensify_the_White_Terror
		CHI_Execute_Aborginee_Leaders
		CHI_Sinification_Campaign
		CHI_Repress_Taiwanese_Activists
		CHI_Ban_the_Formation_of_New_Political_Parties
		CHI_Outlaw_Native_Languages
		CHI_Rename_Street_Names
		CHI_Growing_Paranoia
		CHI_Arrest_Sun_Li_Jen
	}

	# 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_alternate_plan = {
	name = "Nationalist China alternate plan"
	desc = "Essentially alternate behavior for Nationalist China"

	enable = {
		original_tag = CHI
		OR = {
			controls_state = 598
			controls_state = 608
			NOT = { country_exists = PRC }
			is_in_faction_with = USA 
			has_war_together_with = USA 
			has_global_flag = chinapeace_armistice
		}
		OR = {
			AND = {
				is_historical_focus_on = no
				#has_game_rule = {
				#	rule = CHI_ai_behavior
				#	option = DEFAULT
				#}	
			}
			has_country_flag = CHI_AI_RANDOM_HISTORICAL
			#has_game_rule = {
			#	rule = CHI_ai_behavior
			#	option = ALTERNATE
			#}
		}
	}
	abort = {
		OR = {
			PRC = {
				OR = {
					controls_state = 601
					controls_state = 592
					has_global_flag = ROC_taiwan
				}
			}
			#has_game_rule = {
			#	rule = CHI_ai_behavior
			#	option = HISTORICAL
			#}
		}
	}

	ai_national_focuses = {
		CHI_Republic_of_China_Armed_Forces
		CHI_Republic_of_China_Army
		CHI_Reformation_of_the_Military
		CHI_American_Arms
		CHI_Urban_Warfare_Training
		CHI_Amphibious_Commando_Operations
		CHI_Declaration_of_Martial_Law
		CHI_The_Temporary_Provisions
		CHI_The_Academy_for_the_Study_of_Carrying_out_Revolution
		CHI_Establish_the_Central_Reform_Committee
		CHI_Intensify_the_White_Terror
		CHI_Execute_Aborginee_Leaders
		CHI_Sinification_Campaign
		CHI_Repress_Taiwanese_Activists
		CHI_Ban_the_Formation_of_New_Political_Parties
		CHI_Outlaw_Native_Languages
		CHI_Rename_Street_Names
		CHI_Growing_Paranoia
		CHI_Sun_Li_Jen_Coup
	}

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

}