#Category allowed for GXC YUN SHX XSM

 ###  ##  ###   ##  #  # ###  ## ###      ## #  # ###  ###   ##  ###  ### 
   # #  # #  # #  # ## # #   #   #       #   #  # #  # #  # #  # #  #  #  
   # #### ###  #### # ## ##   #  ##       #  #  # ###  ###  #  # ###   #  
#  # #  # #    #  # #  # #     # #         # #  # #    #    #  # #  #  #  
 ##  #  # #    #  # #  # ### ##  ###     ##   ##  #    #     ##  #  #  #  

political_actions	= {

		YUN_core_state = {
			icon = GFX_decision_infiltrate_state
		
			allowed = {
				original_tag = YUN
			}
			
			visible = {
				has_completed_focus = YUN_strengthen_burmic_ties
			}
			available = {
				NOT = { has_country_flag = IRQ_coring_state_in_progress }
			}

			state_target = any_controlled_state
		    
		  target_trigger = {
		      FROM = {
		      	NOT = { is_core_of = ROOT }
		      	is_fully_controlled_by = ROOT
		      	OR = {
		      		is_claimed_by = ROOT
		      		has_state_flag = YUN_can_integrate_this_flag
		      	}
		      }
		  }
		  on_map_mode = map_only
		  cost = 50		
			fire_only_once = yes
			days_remove = 7
			complete_effect = {
				hidden_effect = {
					set_country_flag = { flag = IRQ_coring_state_in_progress value = 1 days = 31 }
				}
			}
			remove_effect = {
				hidden_effect = {
					clr_country_flag = IRQ_coring_state_in_progress
				}
				FROM = {
					add_core_of = ROOT
				}
			}

			cancel_trigger = {
				FROM = {
					NOT = { is_fully_controlled_by = ROOT }
				}
			}

			cancel_effect = {
				hidden_effect = {
					clr_country_flag = IRQ_coring_state_in_progress
				}
			}
		}

}

CHI_seek_japanese_support = {

	CHI_internal_party_support_fascism = {

		icon = generic_political_discourse

		available = {
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}
			
			JAP = { has_government = fascism }
		}

		fire_only_once = no

		days_remove = 90

		cost = 35

		modifier = {
			fascism_drift = 0.05
			stability_weekly = -0.005
			political_power_gain = -0.5
		}

		complete_effect = {

		}
	}

	CHI_aggresive_prosecution_of_opposition_fascism = {

		icon = generic_civil_support

		available = {
			has_equipment = { infantry_equipment > 499 }
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = fascism }
		}

		fire_only_once = no

		days_remove = 90

		cost = 0

		modifier = {
			fascism_drift = 0.1
			stability_weekly = -0.01
		}

		remove_effect = {

		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
			}
		}
	}

	CHI_internal_party_support_communism = {

		icon = generic_political_discourse

		available = {
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = communism }
		}

		fire_only_once = no

		days_remove = 90

		cost = 35

		modifier = {
			communism_drift = 0.05
			stability_weekly = -0.005
			political_power_gain = -0.5
		}

		complete_effect = {

		}
	}

	CHI_aggresive_prosecution_of_opposition_communism = {

		icon = generic_civil_support

		available = {
			has_equipment = { infantry_equipment > 499 }
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = communism }
		}

		fire_only_once = no

		days_remove = 90

		cost = 0

		modifier = {
			communism_drift = 0.1
			stability_weekly = -0.01
		}

		remove_effect = {

		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
			}
		}
	}

	CHI_internal_party_support_neutrality = {

		icon = generic_political_discourse

		available = {
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = neutrality }
		}

		fire_only_once = no

		days_remove = 90

		cost = 35

		modifier = {
			neutrality_drift = 0.05
			stability_weekly = -0.005
			political_power_gain = -0.5
		}

		complete_effect = {

		}
	}

	CHI_aggresive_prosecution_of_opposition_neutrality = {

		icon = generic_civil_support

		available = {
			has_equipment = { infantry_equipment > 499 }
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = neutrality }
		}

		fire_only_once = no

		days_remove = 90

		cost = 0

		modifier = {
			neutrality_drift = 0.1
			stability_weekly = -0.01
		}

		remove_effect = {

		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
			}
		}
	}

	CHI_internal_party_support_democratic = {

		icon = generic_political_discourse

		available = {
			is_subject = no
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}

			JAP = { has_government = democratic }
		}

		fire_only_once = no

		days_remove = 90

		cost = 35

		modifier = {
			democratic_drift = 0.05
			stability_weekly = -0.005
			political_power_gain = -0.5
		}

		complete_effect = {

		}
	}

	CHI_approach_japan = {

		icon = jap_pacific_guardian

		available = {
			is_subject = no
			if = {
				limit = { JAP = { has_government = fascism } }
				fascism > 0.4
			}
			if = {
				limit = { JAP = { has_government = democratic } }
				democratic > 0.4
			}
			if = {
				limit = { JAP = { has_government = communism } }
				communism > 0.4
			}
			if = {
				limit = { JAP = { has_government = neutrality } }
				neutrality > 0.4
			}
		}

		visible = {
			OR = {
				has_completed_focus = CHI_seek_japanese_support
				has_completed_focus = CHI_sea_seek_japanese_support
			}
		}

		fire_only_once = yes

		complete_effect = {
			JAP = { 
				country_event = {
					id = wtt_warlord.1 
					hours = 1
					random_hours = 2
				}	
			}
			effect_tooltip = {
				JAP = {
					puppet = ROOT 
				}
			}
			add_stability = 0.2
			add_political_power = 100
		}
	}
}

########## SIK WAR

CHI_war_in_sinkiang = {
	
	SIK_war_halting = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = SIK 
			has_war_with = KHM
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 365

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
				custom_effect_tooltip = SIK_stalemate_tt
				country_event = {
					id = SEA_warlords.5
					hours = 6
				}
		}
	
	}

	KHM_holding_out = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = KHM 
			has_war_with = SIK
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 365

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
				custom_effect_tooltip = KHM_survival_tt
		}
	
	}

}

###Border war tibet

SIC_xikang_offensive = {
	
	SIC_push_into_xikang = {
		icon = border_war
		allowed = {
			original_tag = SIC
		}

		available = {
			has_completed_focus = SIC_push_back_the_tibetans
			601 = {
				owner = {
					NOT = {
						has_war_with = SIC
						is_in_faction_with = SIC
						has_non_aggression_pact_with = SIC
						is_puppet_of = SIC
					}
				}
			}
		}

		visible = {
			has_completed_focus = SIC_push_back_the_tibetans
			752 = {
				is_controlled_by = SIC
			}
		}

		highlight_states = {
	 		highlight_state_targets = {
				state = 752
				state = 601
			} 
		}
		
		fire_only_once = yes

		cost = 25

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				has_idea = SIC_push_into_xikang_idea
			}
		}

		complete_effect = {

			activate_mission = SIC_push_into_xikang_mission

			custom_effect_tooltip = generic_skip_one_line_tt

			start_border_war = {
				change_state_after_war = no #overrides the transfer of state at the end of war
				combat_width = 180 #combat width for border war
				minimum_duration_in_days = 40 #minimum duration for combat
				attacker = {
					on_win = tsr_sichuan_border_war.1
					on_lose = tsr_sichuan_border_war.2
					on_cancel = tsr_sichuan_border_war.2
					state = 752 # state to start border war
					num_provinces = 2 #number of provinces we want border war to be
					#on_win = <event_id> #effect to call if wins
					#on_lose = <event_id> #effect to call if loses
					
					leader_score = { # Optional score for selecting a leader 
						base = 1
						modifier = {
						    skill > 2
						    factor = 5
						}
						modifier = {
						    skill > 3
						    factor = 10
						}
					}
					
					dig_in_factor = 0 #dig in modifier factor (default value: 1.0)
					terrain_factor = 0 #terrain modifier factor(default value: 1.0)
				}
				
				defender = {
					 state = 601 # state to start border war
					 num_provinces = 2 #number of provinces we want border war to be
					# on_win = <event_id> #effect to call if wins
					on_lose = tsr_sichuan_border_war.1
					on_win = tsr_sichuan_border_war.2
					on_cancel = tsr_sichuan_border_war.2
				}
			}
	
		}
	}

	SIC_push_into_xikang_mission = {
		icon = border_war
		
		allowed = { always = no }

		available = {
			hidden_trigger = { always = no }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 752
				state = 601
			}
		}

		days_mission_timeout = 240

		cancel_trigger = {
			601 = {	
				is_fully_controlled_by = ROOT
			}
		}

		cancel_effect = {
			effect_tooltip = {
				country_event = { id = tsr_sichuan_border_war.1 }
				transfer_state = 601
				601 = {
					add_core_of = SIC
				}
			}
		}

		timeout_effect = { #Fails
			cancel_border_war = {
				attacker = 752
				defender = 601
			}
		}
	}

}

SND_unclear_loyalties_cat = {
		
	SND_show_support_for_government = {

		icon = GFX_decision_hol_exchange_intelligence_data

		available = {
			
		}

		ai_will_do = {
			base = 100
		}

		cost = 25

		days_remove = 50

		visible = {
			NOT = { has_global_flag = jinan_has_fallen }
			NOT = { has_country_flag = SND_han_fuju_stays }  
		}

		complete_effect = {
			CHI = {
				add_opinion_modifier = {
					target = ROOT
					modifier = large_increase
				}
			}
		}
		
		remove_effect = {
			hidden_effect = {
				set_country_flag = SND_shown_support
			}
		}
	}

	SND_expel_japanese = {

		icon = GFX_decision_generic_break_treaty

		available = {
			has_country_flag = SND_shown_support
		}

		ai_will_do = {
			base = 100
		}

		cost = 25

		days_remove = 50

		visible = {
			NOT = { has_global_flag = jinan_has_fallen }
			NOT = { has_country_flag = SND_han_fuju_stays }  
		}

		complete_effect = {
			JAP = {
				add_opinion_modifier = {
					target = ROOT
					modifier = large_decrease
				}
			}
		}
		
		remove_effect = {
			hidden_effect = {
				set_country_flag = SND_expelled_japanese
			}
		}
	}

	SND_army_integration = {

		icon = GFX_decision_generic_military

		available = {
			has_country_flag = SND_expelled_japanese
		}

		ai_will_do = {
			base = 100
		}

		cost = 25

		days_remove = 50

		visible = {
			NOT = { has_global_flag = jinan_has_fallen }
			NOT = { has_country_flag = SND_han_fuju_stays }  
		}

		complete_effect = {
			army_experience = 50
		}
		
		remove_effect = {
			hidden_effect = {
				set_country_flag = SND_army_integration_flag
			}
		}
	}

	SND_han_fuju_stays = {

		icon = GFX_decision_generic_protection

		available = {
			has_country_flag = SND_army_integration_flag
		}

		ai_will_do = {
			base = 0
		}

		cost = 25

		days_remove = 50

		visible = {
			NOT = { has_global_flag = jinan_has_fallen } 
			NOT = { has_country_flag = SND_han_fuju_stays } 
		}

		complete_effect = {
			custom_effect_tooltip = han_will_flee_if_not_removed_tt
			SND_han_fuju = {
				remove_trait = {
					trait = SND_unreliable_opportunist
					ideology = despotism
				}
				add_trait = {
					trait = SND_proven_loyalty
					ideology = despotism
				}
			}
		}
		
		remove_effect = {
			hidden_effect = {
				set_country_flag = SND_han_fuju_stays
			}
		}
	}

	SND_swear_fealty_to_the_emperor = {

		icon = GFX_decision_JAP_army_faction

		available = {
			JAP = {
				OR = {
					has_government = neutrality
					has_government = fascism
				}
			}
			is_subject = no
		}

		ai_will_do = {
			base = 0
		}

		cost = 150

		visible = {
			NOT = { has_global_flag = jinan_has_fallen }
			NOT = { has_country_flag = SND_han_fuju_stays }  
		}

		complete_effect = {
			CHI = {
				add_opinion_modifier = {
					target = ROOT
					modifier = large_decrease
				}
			}
			IF = {
				limit = {
					has_war_with = JAP
				}
				white_peace = {
					tag = JAP
				}
			}
			JAP = {
				set_autonomy = {
					target=ROOT
					autonomy_state = autonomy_wtt_imperial_protectorate
					freedom_level = 0.5
				}
			}
			SND_han_fuju = {
				remove_trait = {
					trait = SND_unreliable_opportunist
					ideology = despotism
				}
				IF = {
					limit = {
						JAP = {
							has_government = fascism
						}
					}
					add_trait = {
						trait = SND_traitor_warlord
						ideology = rexism
					}
				}
				ELSE = {
					add_trait = {
					trait = SND_traitor_warlord
					ideology = despotism
					}
				}
			}
			hidden_effect = {
				set_country_flag = SND_han_fuju_stays
			}
		}
	}

}

###### POWER STRUGGLE

CHI_tsr_power_struggle_cat = {

	CHI_seek_party_support = {

		priority = 90

		icon = GFX_decision_hol_exchange_intelligence_data

		visible = {
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}

		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
		}	

		fire_only_once = no

		days_remove = 90

		cost = ROOT.increase_party_support_decision_cost

		cancel_if_not_visible = yes

		complete_effect = {
				add_faction_influence_ratio	= 0.02
				add_to_variable = {
					var = ROOT.increase_party_support_decision_cost
					value = 25
				}
				add_to_variable = {
					var = ROOT.warlord_faction_influence_contribution_factor
					value = 0.02
					tooltip = faction_influence_contribution_factor_tt
				}
				custom_effect_tooltip = CHI_seek_party_support_tt
		}
	
	}

	CHI_tsr_seek_warlord_support = {

		priority = 50
	
		icon = generic_civil_support

		visible = {
			has_country_flag = tsr_warlord_support
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}	
	
		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
		}
	
		target_root_trigger = {
			has_country_flag = tsr_political_struggle
		}
	
		targets = { GXC YUN SHX XSM SIK GDC XIC SND KHM NXM GSM SIC HBC }
		targets_dynamic = yes
	
		target_trigger = {
			FROM = {
				exists = yes
				NOT = { 
					has_country_flag = tsr_political_struggle
					has_war_with = ROOT
				}
				is_chinese_warlord = yes
			}
		}

		fire_only_once = yes
		
		cost = 50

		complete_effect = {
			FROM = { set_country_flag = wtt_negotiating_support_with@ROOT }
			FROM = { country_event = { id = SEA_warlords.14 } }
		}

	}

	TSR_pay_for_support_from_warlord_PP = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		ai_will_do = {
			base = 100
		}

		fire_only_once = yes
	
		cost = 75
		
		fixed_random_seed = no

		days_mission_timeout = 120
		selectable_mission = yes

		timeout_effect = {
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}

		complete_effect = {
			custom_effect_tooltip = TSR_warlord_supports_us
			FROM = {
				effect_tooltip = {
					add_political_power = 100
				}
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = SEA_warlords.19 }
			}
			add_faction_influence_ratio	= 0.03
			add_to_variable = {
				var = ROOT.warlord_faction_influence_contribution_factor
				value = 0.05
				tooltip = faction_influence_contribution_factor_tt
			}
		}
	}

	TSR_pay_for_support_from_warlord_manpower = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { NOT = { has_country_flag = wtt_political_struggle } }
			FROM = { NOT = { has_war_with = ROOT } }
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		available = {
			has_manpower > 5000
		}

		ai_will_do = {
			base = 100
		}

		fire_only_once = yes
	
		cost = 0
		
		fixed_random_seed = no

		days_mission_timeout = 120
		selectable_mission = yes

		timeout_effect = {
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}

		complete_effect = {
			custom_effect_tooltip = TSR_warlord_supports_us
			add_manpower = -5000
			FROM = {
				effect_tooltip = {
					add_manpower = 5000
				}
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = SEA_warlords.20 }
			}
			add_faction_influence_ratio	= 0.03
			add_to_variable = {
				var = ROOT.warlord_faction_influence_contribution_factor
				value = 0.05
				tooltip = faction_influence_contribution_factor_tt
			}
		}
	}

	TSR_pay_for_support_from_warlord_equipment = {
		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		visible = {
			FROM = { 
				NOT = { 
					has_country_flag = wtt_political_struggle
					has_war_with = ROOT 
				} 
			}
			NOT = { event_target:WTT_current_china_leader = { tag = ROOT } }
		}

		available = {
			has_equipment = { infantry_equipment > 1000 }
		}

		ai_will_do = {
			base = 100
		}

		fire_only_once = yes
	
		cost = 0
		
		fixed_random_seed = no

		days_mission_timeout = 120
		selectable_mission = yes

		timeout_effect = {
			clr_country_flag = wtt_negotiating_support_with@ROOT
		}

		complete_effect = {
			custom_effect_tooltip = TSR_warlord_supports_us
			add_equipment_to_stockpile = { 
			 	type = infantry_equipment
			 	amount = -1000 
			 	producer = ROOT
			} 
			FROM = {
				effect_tooltip = {
					add_equipment_to_stockpile = { 
					 	type = infantry_equipment
					 	amount = 1000 
					 	producer = ROOT
					} 
				}
				set_country_flag = warlord_supports_@ROOT
				clr_country_flag = wtt_negotiating_support_with@ROOT
				country_event = { id = SEA_warlords.21 }
			}
			add_faction_influence_ratio	= 0.03
			add_to_variable = {
				var = ROOT.warlord_faction_influence_contribution_factor
				value = 0.05
				tooltip = faction_influence_contribution_factor_tt
			}
		}
	}

	CHI_warlord_propaganda_army = {

		priority = 90

		icon = GFX_decision_SWE_set_army_budget

		visible = {
			has_country_flag = tsr_warlord_propaganda
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}	

		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
			has_army_manpower = {
				size > 174999
			}
		}	

		fire_only_once = yes

		cost = 50

		complete_effect = {
			add_to_variable = {
				var = ROOT.warlord_faction_influence_war_score_factor
				value = 0.05
				tooltip = faction_influence_war_score_factor_tt
			}
			army_experience = 25
		}
	
	}

	CHI_warlord_propaganda_air = {

		priority = 90

		icon = GFX_decision_SWE_set_air_budget

		visible = {
			has_country_flag = tsr_warlord_propaganda
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}	

		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
			has_deployed_air_force_size = {
				size > 99
			}
		}	

		fire_only_once = yes

		cost = 50

		complete_effect = {
			add_to_variable = {
				var = ROOT.warlord_faction_influence_war_score_factor
				value = 0.05
				tooltip = faction_influence_war_score_factor_tt
			}
			air_experience = 25
		}
	
	}

	CHI_warlord_propaganda_navy = {

		priority = 90

		icon = GFX_decision_generic_naval

		visible = {
			has_country_flag = tsr_warlord_propaganda
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}	

		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
			has_navy_size = {
				size > 9
			}
		}	

		fire_only_once = yes

		cost = 50

		complete_effect = {
			add_to_variable = {
				var = ROOT.warlord_faction_influence_war_score_factor
				value = 0.05
				tooltip = faction_influence_war_score_factor_tt
			}
			navy_experience = 25
		}
	
	}

	CHI_warlord_propaganda_stable = {

		priority = 90

		icon = GFX_decision_eng_propaganda_campaigns

		visible = {
			has_country_flag = tsr_warlord_propaganda
			NOT = { original_tag = event_target:WTT_current_china_leader }
		}	

		available = {
			is_subject = no
			is_in_faction_with = event_target:WTT_current_china_leader
			has_stability > 0.70
		}	


		fire_only_once = yes

		cost = 50

		complete_effect = {
			add_to_variable = {
				var = ROOT.warlord_faction_influence_war_score_factor
				value = 0.05
				tooltip = faction_influence_war_score_factor_tt
			}
			add_war_support = 0.05	
		}
	
	}

	CHI_tsr_take_national_leadership = {

		priority = 100

		icon = generic_nationalism

		available = {
			is_subject = no
			event_target:WTT_current_china_leader = {
				is_subject = no
			}
			is_in_faction_with = event_target:WTT_current_china_leader
			NOT = { original_tag = event_target:WTT_current_china_leader }
			faction_influence_ratio > 0.35
			event_target:WTT_current_china_leader = {
				faction_influence_ratio < 0.35
			}
		}	

		ai_will_do = {
			base = 100
		}

		fire_only_once = yes

		cost = 75

		cancel_if_not_visible = yes

		complete_effect = {
				if = {
				limit = {
					WTT_ROOT_is_not_current_leader_of_china = yes
				}
				event_target:WTT_current_china_leader = {
					WTT_political_struggle_remove_current_country = yes
					set_global_flag = { flag = wtt_national_leadership_takeover_in_progress value = 1 days =  14 }
					country_event = wtt_take_national_leadership.1
				}
				custom_effect_tooltip = WTT_national_leadership_accept_tooltip
				custom_effect_tooltip = WTT_national_leadership_join_wars_effect
				effect_tooltip = {
					annex_country = { target = event_target:WTT_current_china_leader transfer_troops = yes }
				}
				custom_effect_tooltip = WTT_national_leadership_refuse_tooltip
				effect_tooltip = {
					event_target:WTT_current_china_leader = { add_ideas = CHI_illegal_regime declare_war_on = { target = ROOT type = annex_everything } }
				}
			}
			else = {
				custom_effect_tooltip = WTT_national_leadership_effect_tooltip_leader
				effect_tooltip = {
					event_target:WTT_current_china_leader = { add_ideas = CHI_illegal_regime }
				}
			}
		}
	
	}


}

########## GDC WAR

CHI_war_in_liangguang = {
	
	CHI_war_in_south_halting = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = CHI 
			has_war_with = GDC
			GDC = {
				has_cosmetic_tag = liangguang_clique
			}
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 184

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			custom_effect_tooltip = CHI_stalemate_tt
			country_event = {
				id = SEA_warlords.49
				hours = 6
			}
		}
	
	}

	GDC_holding_out = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = GDC 
			has_war_with = CHI
			GDC = {
				has_cosmetic_tag = liangguang_clique
			}
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 184

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			custom_effect_tooltip = GDC_survival_tt
		}
	
	}

}

########## 6th ENCIRCLEMENT CAMPAIGN

XIC_war_in_yanan = {
	
	XIC_war_halting = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = XIC 
			has_war_with = PRC
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 180

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
				custom_effect_tooltip = XIC_stalemate_tt
				country_event = {
					id = SEA_warlords.55
					hours = 6
				}
		}
	
	}

	PRC_holding_out = {

		priority = 100

		icon = GFX_decision_generic_ignite_civil_war

		visible = {
			original_tag = XIC 
			has_war_with = PRC
		}

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 180

		fire_only_once = yes

		activation = {
			always = no
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			custom_effect_tooltip = PRC_survival_tt
		}
	
	}

}