ZCS_mest_decis = {
	revansh_zja_from_zsc = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			has_war = no
			has_war_support > 0.75
			ZJA = {
				has_war_with = ZNP
			}
			threat > 0.3
			NOT = {				
				controls_state = 805
				controls_state = 794
				controls_state = 803				
			}
			ZJA = {
				controls_state = 805
				controls_state = 794
				controls_state = 803
			}
		}
		visible = {					
			ZJA = {
				has_war_with = ZNP
			}
			NOT = {				
				controls_state = 805
				controls_state = 794
				controls_state = 803				
			}
		}
		fire_only_once = yes
		cost = 5			
		complete_effect = {	
			ZJA = {
				country_event = {
					id = japanimp.23
				}
			}
#			custom_effect_tooltip = revansh_zja_from_zsc_tt	
#			country_event = {
#				id = japanimp.4
#			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zcs_zabrat_ionampho = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			has_war = no
			has_war_support > 0.75
			ZJA = {
				has_war_with = ZNP				
			}
			805 = {
				is_controlled_by = ZJA	
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 805
				}
			}
		}		
		visible = {					
			ZJA = {
				has_war_with = ZNP
				controls_state = 805 
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 805 
			}
		}	
		fire_only_once = yes
		cost = 20			
		complete_effect = {	
			country_event = {
				id = japanimp.17
			}
		}		
		ai_will_do = {
			factor = 50
		}
	}
	
	zcs_zabrat_urajiosutoku = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			has_war = no
			has_war_support > 0.75
			ZJA = {
				has_war_with = ZNP				
			}
			794 = {
				is_controlled_by = ZJA	
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 794
				}
			}			
		}
		visible = {					
			ZJA = {
				has_war_with = ZNP
				controls_state = 794 
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 794
			}
		}	
		fire_only_once = yes
		cost = 22			
		complete_effect = {	
			country_event = {
				id = japanimp.19
			}
		}		
		ai_will_do = {
			factor = 20
		}
	}
	
	zcs_zabrat_resan = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			has_war = no
			has_war_support > 0.75
			ZJA = {
				has_war_with = ZNP				
			}
			803 = {
				is_controlled_by = ZJA	
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 803
				}
			}
			
		}
		visible = {					
			ZJA = {
				has_war_with = ZNP
				controls_state = 803 
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 803 
			}
		}	
		fire_only_once = yes
		cost = 24			
		complete_effect = {	
			country_event = {
				id = japanimp.21
			}	
		}		
		ai_will_do = {
			factor = 20
		}
	}
}
ZCS_nation_decis = {	
	zcs_zatrebovat_dolf_ot_khan = {
		icon = generic_political_discourse
		available = {			
			NOT = {
				has_war_with = ZHA	
			}
			ZHA = {
				exists = yes				
			}
		}
		visible = {
			has_global_flag = zha_zcs_dolg_defolt
			NOT = {
				has_global_flag = zha_zcs_dolg_defolt_cooldown
			}
		}
		fire_only_once = yes		
		cost = 3
		complete_effect = {			
			ZHA = {
				country_event = { id = hanchines.67 }
			}
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 3
				date > 1993.02.02
			}
		}
	}
	zcs_dolf_v_obmen_na_sodeistvie = {
		icon = generic_political_discourse
		available = {
			has_war = yes			
			NOT = {
				has_war_with = ZHA	
			}
			ZHA = {
				exists = yes
				NOT = {
					has_completed_focus = zha_konvfikt_na_vostoke
					has_idea = zha_neutral_politika
				}				
			}			
		}
		visible = {
			has_global_flag = zha_zcs_dolg_defolt
			has_war = yes
			ZHA = {
				NOT = {
					has_completed_focus = zha_konvfikt_na_vostoke
				}
			}
		}
		fire_only_once = yes		
		cost = 3
		complete_effect = {			
			ZHA = {
				country_event = { id = hanchines.67 }
			}
		}
		ai_will_do = {
			factor = 1
		}
	}



}

ZCS_reshenie_po_lige_decis = {
	zcs_vliyania_na_strany = {
		icon = generic_prepare_civil_war
		targets = {
			ZHA ZMN ZRE ZYU XMI ZXS XCH ZVR
			ZUR	ZKM	ZIO	ZTA	XIB	ZLT	ZMJ	ZXR	XNU
			ZTH ZIS ZAX
			ZAN ZBS ZGK ZLF ZCH ZAA ZPN
			ZDT ZCY XMY ZVJ ZWB ZBN XVI ZSH ZTM ZSM ZCC ZLN
		}
		available = {	
			political_power_daily > 0.1
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}			
		}			
		visible = {
			NOT = {
				has_war_with = FROM						
				is_justifying_wargoal_against = FROM
			}
			FROM = {
				has_country_flag = we_love_zcs_flag
				exists = yes
				is_in_faction = no
				NOT = {
					is_subject_of = ZSL
				}
			}				
		}		
		fire_only_once = yes		
		cost = 20
		days_remove = 10
		modifier = {
			political_power_gain = -0.1
		}
		complete_effect = {
			
		}
		remove_effect = {
			FROM = {
				country_event = { id = choson.41 }
			}
		}
		ai_will_do = {
			base = 70
			modifier = {
				add = -5
				strength_ratio = {
					tag = FROM
					ratio > 0.75
				}
			}			
			modifier = {
				add = 50
				is_neighbor_of = FROM
			}			
			modifier = {
				add = -75
				has_war = no
				FROM = {
					has_war = yes
				}	
			}			
		}
	}

}

ZCS_dogovor_s_esiro_cat_decis = {		# has_country_flag = zcs_esiro_dogovor_po_portam_flag
	zcs_potrebovat_ot_zja_usloviy_dogovora = {
		icon = generic_operation
		available = {
			is_subject = no		
			OR = {	
				ZJA = {
					has_country_leader = {
						character = ZJA_yoshiro
						ruling_only = yes		
					}
					has_war = no
					is_subject = no	
					OR = {
						controls_state = 805
						controls_state = 794
						controls_state = 803
					}
				}
				ZNP = {
					has_country_leader = {
						character = ZJA_yoshiro
						ruling_only = yes			
					}
					has_war = no
					is_subject = no	
					OR = {
						controls_state = 805
						controls_state = 794
						controls_state = 803
						ZJA = {
							AND = {
								is_subject_of = ZNP
								OR = {
									controls_state = 805
									controls_state = 794
									controls_state = 803
								}
							}	
						}
					}
				}
			}
		}
		visible = {					
			NOT = {
				has_war_with = ZJA
				has_war_with = ZNP
			}
		}
		fire_only_once = yes
		cost = 5			
		complete_effect = {	
			if = {
				limit = {
					ZJA = {
						has_country_leader = {
							character = ZJA_yoshiro
							ruling_only = yes			
						}
					}
				}
				ZJA = {
					country_event = {
						id = choson.49
					}
				}
			}
			else_if = {
				limit = {
					ZNP = {
						has_country_leader = {
							character = ZJA_yoshiro
							ruling_only = yes			
						}
					}
				}
				ZNP = {
					country_event = {
						id = choson.49
					}
				}
			}
			
		}		
		ai_will_do = {
			factor = 5
		}
	}

}


ZCS_vliyanie_ligi_v_mire_decis = {
	zcs_peresmotr_torgovyh_marshrytov = {
		icon = GFX_decision_eng_trade_unions_support
		available = {
			is_faction_leader = yes
		}
		visible = {
			has_completed_focus = zcs_liga_peresmoyry
		}
		fire_only_once = no
		days_re_enable = 200
		cost = 8
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_200
			random_list = {
				45 = {
					modifier = {
						factor = 1.2
						has_stability < 0.5
					}
					add_stability = 0.02
				}
				45 = {
					modifier = {
						factor = 1.2
						has_stability > 0.5
					}
					add_political_power = 20
				}
				10 = {
					modifier = {
						factor = 1.2
						has_stability > 0.9
					}
					add_stability = -0.02
				}				
			}
			every_other_country = {
				limit = { 
					is_in_faction_with = ZCS
				}				
				country_event = { id = choson.53 }
			}
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability < 0.6
			}			
		}
	}
	zcs_branden_v_lige_dolgi = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			is_in_faction_with = ZBR
			ZBR = {
				NOT = { any_owned_state = { OR = { is_coastal = yes is_island_state = yes } } }
			}
		}		
		visible = {					
			has_completed_focus = zcs_liga_evropeiskie_dela	
		}			
		fire_only_once = yes
		cost = 20			
		complete_effect = {	
			country_event = { id = branden.159 }
		}		
		ai_will_do = {
			factor = 50
		}
	}
	zcs_hazaria_v_lige_dolgi = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			is_in_faction_with = ZKR
			ZKR = {
				has_war = no
			}
		}		
		visible = {					
			has_completed_focus = zcs_liga_evropeiskie_dela	
		}			
		fire_only_once = yes
		cost = 5			
		complete_effect = {	
			ZKR = {
				country_event = { id = choson.57 }				
				custom_effect_tooltip = needs_approval
			}
			effect_tooltip = {
				add_political_power = 70
			}
		}		
		ai_will_do = {
			factor = 50
		}
	}
	zcs_marionetochaya_frizia = {
		icon = generic_operation
		allowed = {
			original_tag = ZCS
		}
		available = {
			is_subject = no			
			is_in_faction_with = ZBR
			NOT = {
				has_war_with = ZFR
			}			
			ZBR = {
				OR = {
					controls_state = 56
					controls_state = 7
					controls_state = 36
					ZFR = {
						is_subject_of = ZBR
					}
				}
			}
		}		
		visible = {					
			has_completed_focus = zcs_liga_evropeiskie_dela	
		}			
		fire_only_once = yes
		cost = 15
		complete_effect = {	
			if = {
				limit = {
					ZFR = {
						is_subject_of = ZBR
					}
				}
				country_event = { id = choson.60 }
			}
			else_if = {
				limit = {
					NOT = {
						country_exists = ZFR
					}
				}
				country_event = { id = choson.62 }
			}
			else = {
				custom_effect_tooltip = zcs_marionetochaya_frizia_tt
			}
		}		
		ai_will_do = {
			factor = 50
		}
	}




}