ZMN_nedeesp_monarch_cat = {					###	has_country_leader "Duan Baoji"		
	zmn_mission_down_stab = {
		icon = generic_civil_support				
		available = {
			OR = {
				NOT = {
					has_idea = zmn_nedeesp_monarch
				}				
				custom_trigger_tooltip = {
					tooltip = zmn_mission_down_stab_chungo_no_massivv_tt
					chungo_is_massivv_trigger = no
				}
			}	
		}
		cancel_if_not_visible = yes
		days_mission_timeout = 90 ## 100		
		activation = {
			has_civil_war = no
			has_idea = zmn_nedeesp_monarch
			chungo_is_massivv_trigger = yes	
			NOT = {
				has_country_flag = zmn_my_vybrali_respubl_flag
				has_country_flag = zmn_my_vybrali_respubl_2_flag
			}
		}
		fixed_random_seed = no
		fire_only_once = no
		is_good = no
		timeout_effect = {
			custom_effect_tooltip = zmn_mission_down_stab_tt_2
			add_stability = -0.05			
		}
	}
	zmn_raspad_na_kuski = {
		icon = generic_scorched_earth				
		available = {
			OR = {
				has_stability > 0.3
				NOT = {
					has_idea = zmn_nedeesp_monarch
				}				
				custom_trigger_tooltip = {
					tooltip = zmn_mission_down_stab_chungo_no_massivv_tt
					chungo_is_massivv_trigger = no
				}
			}	
		}
		cancel_if_not_visible = yes
		days_mission_timeout = 155 ## 140
		#days_remove = 1
		activation = {
			has_stability < 0.3
			has_idea = zmn_nedeesp_monarch
			NOT = {
				has_country_flag = zmn_my_vybrali_respubl_flag
				has_country_flag = zmn_my_vybrali_respubl_2_flag
			}
		}
		fixed_random_seed = no
		fire_only_once = no
		is_good = no
		timeout_effect = {
			custom_effect_tooltip = zmn_raspad_na_kuski_tt 			
			country_event = { id = jungo.20 }	
		}
	}

}
########################################################################################
ZMN_min_monarch_dec_cat = {		# name = "Mao Dong",  chungo_is_massivv_trigger = yes
	zmn_obshaya_loyalnost = {
		icon = generic_political_discourse
		available = {	
			OR = {
				check_variable = { zmn_loyality_omniki_var < 100 }
				check_variable = { zmn_loyality_vanstva_var < 100 }	
			}
			political_power_daily > 0.2	
			has_completed_focus = zmn_ustupki_i_dogovory		
		}
		cost = 0
		# ai_will_do = {
			# factor = 10
			# modifier = {
				# OR = {
					# check_variable = { zmn_loyality_omniki_var < 30 }
					# check_variable = { zmn_loyality_vanstva_var < 30 }	
				# }
				# factor = 20
			# }			
		# }
		modifier = {
			political_power_gain = -0.2
		}
		days_remove = 45
		remove_effect = {
			custom_effect_tooltip = zmn_obshaya_loyalnost_tt
			if = {
				limit = {
					has_stability < 0.4
					NOT = {
						has_country_flag = zmn_omniki_vosstali_min_flag
					}
				}
				zmn_loyality_omniki_plus_1 = yes				
			}	
			else_if = {
				limit = {
					has_stability > 0.39
					has_stability < 0.75
					NOT = {
						has_country_flag = zmn_omniki_vosstali_min_flag
					}
				}
				zmn_loyality_omniki_plus_2 = yes				
			}
			else_if = {
				limit = {
					has_stability > 0.74
					NOT = {
						has_country_flag = zmn_omniki_vosstali_min_flag
					}
				}
				zmn_loyality_omniki_plus_3 = yes				
			}
			#
			if = {
				limit = {
					has_stability < 0.4
				}				
				zmn_loyality_vanstva_plus_1 = yes
			}	
			else_if = {
				limit = {
					has_stability > 0.39
					has_stability < 0.75					
				}				
				zmn_loyality_vanstva_plus_2 = yes
			}
			else_if = {
				limit = {
					has_stability > 0.74						
				}				
				zmn_loyality_vanstva_plus_3 = yes
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
	zmn_izvinitsya_pered_omnikami = {
		icon = generic_political_rally		
		available = {				
			custom_trigger_tooltip = {
				tooltip = zmn_izvinitsya_pered_omnikami_tt				
				has_country_flag = zmn_razognali_omnikov_flag	
			}
		}
		cost = 60
		fire_only_once = yes
		visible = {
			has_country_flag = zmn_razognali_omnikov_flag
			NOT = {
				has_country_flag = zmn_omniki_vosstali_min_flag
			}
		}
		complete_effect = {
			custom_effect_tooltip = zmn_izvinitsya_pered_omnikami_2_tt
			clr_country_flag = zmn_razognali_omnikov_flag
			add_stability = -0.02
			set_country_flag = zmn_ustupki_omnikami_flag
		}
		ai_will_do = {
			factor = 500		
		}
	}
	
	zmn_kompromiss_s_omnikami = {
		icon = generic_political_rally		
		available = {
			OR = {
				AND = {
					has_stability > 0.6			
					custom_trigger_tooltip = {
						tooltip = zmn_omnili_ne_menee_90				
						check_variable = { zmn_loyality_omniki_var > 89 }				
					}
					custom_trigger_tooltip = {
						tooltip = zmn_kompromiss_s_omnikami_tt_2	
						NOT = {	
							has_country_flag = zmn_razognali_omnikov_flag
						}		
					}
					has_completed_focus = zmn_min_vykhod_iz_kriz
				}
				has_country_flag = zmn_my_vybrali_respubl_2_flag
			}
		}
		cost = 30
		fire_only_once = yes
		visible = {
			NOT = {
				has_country_flag = zmn_omniki_vosstali_min_flag
			}
		}
		complete_effect = {
			custom_effect_tooltip = zmn_kompromiss_s_omnikami_tt
			set_country_flag = zmn_kompromiss_s_omnikami_flag
		}
		ai_will_do = {
			factor = 500		
		}
	}
	zmn_kompromiss_s_vanstvami = {
		icon = generic_form_nation		
		available = {
			has_stability > 0.6			
			custom_trigger_tooltip = {
				tooltip = zmn_vanstva_ne_menee_90				
				check_variable = { zmn_loyality_vanstva_var > 89 }				
			}
			has_completed_focus = zmn_min_vykhod_iz_kriz
		}
		cost = 30
		fire_only_once = yes
		visible = {
						
		}
		complete_effect = {
			custom_effect_tooltip = zmn_kompromiss_s_vanstvami_tt
			set_country_flag = zmn_kompromiss_s_vanstvami_flag
		}
		ai_will_do = {
			factor = 500		
		}
	}
	zmn_pobeda_politiki_min = {
		icon = generic_decision		
		available = {
			OR = {
				has_country_flag = zmn_kompromiss_s_omnikami_flag
				has_country_flag = zmn_omniki_vosstali_min_flag
			}	
			has_country_flag = zmn_kompromiss_s_vanstvami_flag
		}
		cost = 30
		fire_only_once = yes
		visible = {
						
		}
		complete_effect = {		
			add_stability = 0.05
			add_political_power = 100
			set_country_flag = zmn_min_malatsa 
			if = {
				limit = {
					has_idea = zmn_upadok_armii
				}
				remove_ideas = zmn_upadok_armii
			}
			custom_effect_tooltip = zmn_pobeda_politiki_min_tt 
			hidden_effect = {
				if = {
					limit = {
						has_template = "Zhimindi Lu"
					}
					set_division_template_lock = {
						division_template = "Zhimindi Lu"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Bubing Shi"
					}
					set_division_template_lock = {
						division_template = "Bubing Shi"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Zhimindi Shi"
					}
					set_division_template_lock = {
						division_template = "Zhimindi Shi"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Qibing Jun"
					}
					set_division_template_lock = {
						division_template = "Qibing Jun"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Zhuangjia Shi"
					}
					set_division_template_lock = {
						division_template = "Zhuangjia Shi"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Jidong Shi"
					}
					set_division_template_lock = {
						division_template = "Jidong Shi"
						is_locked = no
					}
				}
				if = {
					limit = {
						has_template = "Shandi Shi"
					}
					set_division_template_lock = {
						division_template = "Shandi Shi"
						is_locked = no
					}
				}
			}
			country_event = { id = jungo.60 }
		}
		ai_will_do = {
			factor = 500		
		}
	}
	
	zmn_finins_sotsialochka_omni = {
		icon = generic_construction		
		available = {				
			custom_trigger_tooltip = {
				tooltip = zmn_finins_sotsialochka_omni_trigg_tt				
				check_variable = { zmn_loyality_omniki_var < 100 }
			}
		}
		cost = 100
		fire_only_once = no
		days_re_enable = 100
		visible = {
			NOT = {
				has_country_flag = zmn_kompromiss_s_omnikami_flag
			}		
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100 
			zmn_loyality_omniki_plus_2 = yes
		}
		ai_will_do = {
			factor = 100		
		}
	}
	zmn_sovet_vanov = {
		icon = generic_nationalism		
		available = {				
			custom_trigger_tooltip = {
				tooltip = zmn_sovet_vanov_trigg_tt				
				check_variable = { zmn_loyality_vanstva_var < 100 }
			}
		}
		cost = 80
		fire_only_once = no
		days_re_enable = 100
		visible = {
			NOT = {
				has_country_flag = zmn_kompromiss_s_omnikami_flag
			}		
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100 
			zmn_loyality_vanstva_plus_1 = yes
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 100		
		}
	}
}
###########################################################################################################
ZMN_shu_monarch_dec_cat = {		# has_completed_focus = zmn_shu_great_comander
	zmn_go_go_voina_vsem = {
		icon = generic_prepare_civil_war
#		targets = {
#			ZMM XBO
#		}
		target_array = neighbors
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}
			has_stability > 0.42
			has_war_support > 0.42
		}			
		visible = {
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM				
				is_justifying_wargoal_against = FROM
				has_non_aggression_pact_with = FROM
			}
			FROM = {
				exists = yes
				capital_scope = {
					is_on_continent = asia
				}
				NOT = {
					is_subject_of = ZMN
				}
			}				
		}		
		fire_only_once = yes		
		cost = 40
		days_remove = 10
		complete_effect = {
			add_stability = -0.02
			add_war_support = 0.01
			FROM = {
				country_event = { id = jungo.110 }
			}
			every_other_country = {
				limit = { 
					is_subject_of = ZMN
				}				
				add_autonomy_ratio = {
					value = 0.05
					localization = zmn_agressor_shu_ppsh
				}
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZMN
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
			add_ai_strategy = {
				type = conquer
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = antagonize
				id = FROM
				value = 200
			}
		}
		ai_will_do = {
			base = 60
			modifier = {
				add = 50
				strength_ratio = {
					tag = FROM
					ratio < 0.75
				}
			}			
			modifier = {
				add = -75
				has_war = yes
			}
			modifier = {
				add = -9
				FROM = {
					is_in_faction = yes
				}
			}
			modifier = {
				add = -55
				has_opinion = {
					target = FROM
					value > 50
				}
			}
		}
	}

}
###########################################################
ZMN_krizis_dlya_chu_i_ue_cat = {	# jungo.118 zmn_krizis_dlya_chu_i_ue_flag
	zmn_krizis_dlya_chu_i_ue_raspad = {
		icon = generic_scorched_earth				
		available = {
			custom_trigger_tooltip = {
				tooltip = zmn_krizis_dlya_chu_i_ue_raspad_trigg_tt				
				OR = {
					has_completed_focus = zmn_itog_vsego_etogo					
					NOT = {
						has_country_flag = zmn_krizis_dlya_chu_i_ue_flag
					}					
				}
			}			
		}		
		days_mission_timeout = 500 		# проверяем - балансим. 500?
		activation = {
			has_country_flag = zmn_krizis_dlya_chu_i_ue_flag
		}
		fixed_random_seed = no
		fire_only_once = yes		#
		is_good = no
		timeout_effect = {
#			custom_effect_tooltip = zmn_raspad_na_kuski_tt 		
			if = {
				limit = {
					NOT = {
						country_exists = ZRE
					}	
					check_variable = { zmn_kkrrs_omniki_nedovolstvo_var > zmn_kkrrs_beiisty_nedovolstvo_var }
					check_variable = { zmn_kkrrs_omniki_nedovolstvo_var > zmn_kkrrs_vany_nedovolstvo_var }
				}
				country_event = { id = jungo.188 }	# восстание омников
			}
			else_if = {
				limit = {
					NOT = {
						country_exists = ZRE
					}	
					check_variable = { zmn_kkrrs_beiisty_nedovolstvo_var > zmn_kkrrs_omniki_nedovolstvo_var }
					check_variable = { zmn_kkrrs_beiisty_nedovolstvo_var > zmn_kkrrs_vany_nedovolstvo_var }
				}
				country_event = { id = jungo.189 }	# восстание демов
			}
			else_if = {
				limit = {
					NOT = {
						country_exists = ZRE
					}						
					check_variable = {
						var = zmn_kkrrs_vany_nedovolstvo_var
						value = zmn_kkrrs_omniki_nedovolstvo_var
						compare = greater_than_or_equals
					}
					check_variable = {
						var = zmn_kkrrs_vany_nedovolstvo_var
						value = zmn_kkrrs_beiisty_nedovolstvo_var
						compare = greater_than_or_equals
					}
				}
				country_event = { id = jungo.190 }	# восстание ванов
			}
			else = {
				country_event = { id = jungo.119 }		
			}		
		}
	}
	
	zmn_otsrochka_vliyaniu_krizz = {
		icon = generic_political_discourse
		available = {				
										
		}
		cost = 50		
		fire_only_once = yes
		complete_effect = {
			custom_effect_tooltip = odnorazovoe_reshenie 
			add_stability = -0.06
			add_days_mission_timeout  = {
				mission = zmn_krizis_dlya_chu_i_ue_raspad
				days = 145
			}	
		}
		ai_will_do = {
			factor = 25		
		}
	}
	zmn_slujba_imidja_i_reitinga_imneratora = {
		icon = GFX_decision_eng_propaganda_campaigns
		available = {				
										
		}
		cost = 45		
		fire_only_once = yes
		days_remove = 25
		remove_effect = {
			custom_effect_tooltip = zmn_slujba_imidja_i_reitinga_imneratora_tt 
			set_country_flag = zmn_slujba_imidja_i_reitinga_imneratora_flag
		}
		ai_will_do = {
			factor = 0		
		}
	}
	zmn_chu_sgovor_s_fanatikami = {
		icon = GFX_decision_eng_propaganda_campaigns
		available = {				
										
		}
		visible = {
			has_country_leader = {				
				character = ZMN_luo_jiahao
				ruling_only = yes
			}		
		}
		cost = 45		
		fire_only_once = no
		days_remove = 5
		days_re_enable = 240
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = zmn_privlechenie_sichangov_tt
			random_list = {
				30 ={
					add_stability = -0.04
				}
				40 ={
					add_stability = -0.03
				}
				30 ={
					add_stability = -0.02
				}
			}
		}		
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240
			add_days_mission_timeout  = {
				mission = zmn_krizis_dlya_chu_i_ue_raspad
				days = 50
			}
		}
		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				has_stability < 0.12
			}
		}
	}
}

#######################################################################################################
ZMN_kkrrs_decis_cat = {		# has_completed_focus = zmn_kkrrs
	zmn_kkrrs_nasilstv_zakritie_chastn_predpriyatii = {
		icon = generic_construction		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_omnikam_tt
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 
			add_to_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }
			add_political_power = 80
			add_stability = -0.03
			add_timed_idea = {
				idea = zmn_kkrs_debuff_stroika
				days = 150
			}
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 1								
				}
				remove_building = {
					type = industrial_complex
					level = 2
				}
			}
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 1								
				}
				remove_building = {
					type = industrial_complex
					level = 2
				}
			}
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 0								
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
			set_country_flag = zmn_kkrrs_nasilstv_zakritie_chastn_predpriyatii_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 20
				}
			}
		}
		ai_will_do = {
			factor = 100	
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}	
		}
	}
	zmn_annulirov_litsenzii_u_bankov = {
		icon = generic_decision		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_respubl_tt
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 
			add_political_power = 80
			add_stability = 0.02
			add_timed_idea = {
				idea = zmn_kkrs_debuff_annul_litsenzii_bankov
				days = 150
			}
			set_country_flag = zmn_annulirov_litsenzii_u_bankov_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 20
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}	
		}
	}
	zmn_kkrs_svod_zakonov_o_chestn_konkurentsii = {
		icon = hol_attract_foreign_investors		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_respubl_tt
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 } 
			add_timed_idea = {
				idea = zmn_prinyat_svod_zakonov_o_konkurentsii
				days = 270
			}
			set_country_flag = zmn_kkrs_svod_zakonov_o_chestn_konkurentsii_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 30
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}	
		}
	}
	zmn_kkrs_formirovanie_skip = {
		icon = ger_mefo_bills		
		available = {				
			political_power_daily > 0.05
		}
		cost = 12
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {	
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_vsem_tt
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 
			add_to_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 } 
			add_timed_idea = {
				idea = zmn_deistvie_skipp
				days = 170
			}
			set_country_flag = zmn_kkrs_formirovanie_skip_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = -10
				}
			}
		}
		ai_will_do = {
			factor = 100	
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}	
		}
	}
	zmn_kkrs_suhoi_zakon = {
		icon = generic_nationalism		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_vsem_tt
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 
			add_to_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 } 
			add_stability = -0.04
			add_timed_idea = {
				idea = zmn_deistvie_suhogo_zakona
				days = 260
			}
			set_country_flag = zmn_kkrs_suhoi_zakon_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = -10
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}
		}
	}
	zmn_kkrs_pustit_v_pravitelsrvo = {
		icon = generic_political_discourse		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_respubl_tt
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 			
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 			
			add_timed_idea = {
				idea = zmn_deistvie_kkrrs_v_pravitelstv
				days = 260
			}
			set_country_flag = zmn_kkrs_pustit_v_pravitelsrvo_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 30
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}
		}
	}
	zmn_kkrs_poshliny_na_vvoz_iz_zagran = {
		icon = generic_nationalism		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {	
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_respubl_tt
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 } 			 
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 			
			add_timed_idea = {
				idea = zmn_deistvie_poshlin_na_vvoz
				days = 260
			}
			set_country_flag = zmn_kkrs_poshliny_na_vvoz_iz_zagran_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = -5
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}
		}
	}
	zmn_kkrs_dengi_na_perevoorujenie = {
		icon = generic_prepare_civil_war		
		available = {				
			political_power_daily > 0.05
		}
		cost = 10
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {	
			custom_effect_tooltip = zmn_kkrrs_decis_plus_odin
			custom_effect_tooltip = zmn_kkrrs_decis_ne_nravitsa_omnikam_tt			
			add_to_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 } 
			add_to_variable = { zmn_reformy_kkrrs_var = 1 } 			
			add_timed_idea = {
				idea = zmn_perevooruj_armii_kkrrs
				days = 250
			}
			set_country_flag = zmn_kkrs_dengi_na_perevoorujenie_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = -10
				}
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}
		}
	}		
	
	##
	zmn_anti_bezrabotitsa_1 = {
		icon = eng_propaganda_campaigns		
		available = {				
			has_idea = zmn_mery_po_borbe_sbezrab
			political_power_daily > 0.05
		}
		cost = 20
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 20
		remove_effect = {		
			add_stability = 0.01
			set_country_flag = zmn_anti_bezrabotitsa_1_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 20
				}
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
	zmn_anti_bezrabotitsa_2 = {
		icon = eng_propaganda_campaigns		
		available = {				
			has_idea = zmn_mery_po_borbe_sbezrab
			political_power_daily > 0.05
		}
		cost = 20
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 20
		remove_effect = {	
			add_stability = 0.01
			set_country_flag = zmn_anti_bezrabotitsa_2_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 20
				}
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
	zmn_anti_bezrabotitsa_3 = {
		icon = eng_propaganda_campaigns		
		available = {				
			has_idea = zmn_mery_po_borbe_sbezrab
			political_power_daily > 0.05
		}
		cost = 20
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 20
		remove_effect = {	
			add_stability = 0.01
			set_country_flag = zmn_anti_bezrabotitsa_3_flag
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}					
					is_in_home_area = yes					
				}
				add_extra_state_shared_building_slots = 1				
			}
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 20
				}
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
	
	zmn_anti_bezrabotitsa_itog = {
		icon = hol_exchange_intelligence_data		
		available = {				
			has_idea = zmn_mery_po_borbe_sbezrab
			has_country_flag = zmn_anti_bezrabotitsa_1_flag
			has_country_flag = zmn_anti_bezrabotitsa_2_flag
			has_country_flag = zmn_anti_bezrabotitsa_3_flag
			political_power_daily > 0.05
		}
		cost = 5
		fire_only_once = yes		
		visible = {
					
		}
		modifier = {
			political_power_gain = -0.05
		}
		days_remove = 5
		remove_effect = {
			remove_ideas = zmn_mery_po_borbe_sbezrab
			add_stability = 0.04
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 3 } 	
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 2 } 	
			subtract_from_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 } 	
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 27
				}
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
	
	##
	zmn_kkrrs_zavershaet_raboty = {
		icon = hol_war_on_pacifism		
		available = {	
			NOT = {
				has_idea = zmn_bezrabot
				has_idea = zmn_mery_po_borbe_sbezrab
			}
			custom_trigger_tooltip = {
				tooltip = zmn_reformy_kkrrs_bolse_5				
#				check_variable = { zmn_reformy_kkrrs_var > 5 }
				check_variable = {
					var = zmn_reformy_kkrrs_var
					value = 5
					compare = greater_than_or_equals
				}
			}
#			has_country_flag = zmn_kkrrs_nasilstv_zakritie_chastn_predpriyatii_flag
#			has_country_flag = zmn_annulirov_litsenzii_u_bankov_flag
#			has_country_flag = zmn_kkrs_svod_zakonov_o_chestn_konkurentsii_flag
#			has_country_flag = zmn_kkrs_formirovanie_skip_flag
#			has_country_flag = zmn_kkrs_suhoi_zakon_flag
		}
		cost = 5
		fire_only_once = yes		
		visible = {
					
		}
		complete_effect = {
			add_stability = 0.01
			custom_effect_tooltip = zmn_kkrrs_zavershaet_raboty_tt  
			set_country_flag = zmn_kkrrs_zavershaet_raboty_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 30
				}
			}
			if = {
				limit = {
					has_idea = zmn_kkrrs_bustt
				}
				remove_ideas = zmn_kkrrs_bustt
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}
}
##################################################################################
ZMN_seishu_meader_cat = {		# has_completed_focus = zmn_min_zashitnik_azii
	zmn_voennye_ucheniya_seishu = {
		icon = generic_nationalism		
		available = {				
			has_war = no
			has_war_support < 0.7
			has_equipment = {
				infantry_equipment > 150
			}
		}
		cost = 80
		fire_only_once = no
		days_re_enable = 360
		visible = {
					
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360 
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -150					
			}
			add_war_support = 0.05
			army_experience = 5
			every_other_country = {
				limit = { 
					is_in_faction_with = ZMN
				}	
				effect_tooltip = {
					add_war_support = 0.05
					army_experience = 5
				}
				country_event = { id = jungo.114 }
			}
		}
		ai_will_do = {
			factor = 100		
		}
	}

}
###############################################################################################################
ZMN_povorot_v_respubliku_cat = {	# has_country_flag = zmn_my_vybrali_respubl_flag
	zmn_start_vosstaniya_respublk = {
		icon = generic_scorched_earth				
		available = {
			hidden_trigger = { always = no }	
		}	
		cancel_if_not_visible = yes
		days_mission_timeout = 150 		# 150 не мало?
		activation = {
			has_country_flag = zmn_my_vybrali_respubl_flag
		}
		fixed_random_seed = no		
		fire_only_once = yes
		is_good = yes
		timeout_effect = {	
			custom_effect_tooltip = zmn_start_vosstaniya_respublk_tt 
			if = {
				limit = {
					check_variable = {
						var = zmn_resp_omniki_var
						value = zmn_resp_demokr_var
						compare = greater_than_or_equals
					}
				}
				custom_effect_tooltip = zmn_start_vosstaniya_respublk_1_tt
				country_event = { id = jungo.122 }	
			}
			if = {
				limit = {
					check_variable = {
						var = zmn_resp_omniki_var
						value = zmn_resp_demokr_var
						compare = less_than
					}
				}
				custom_effect_tooltip = zmn_start_vosstaniya_respublk_2_tt
				country_event = { id = jungo.123 }	
			}
			effect_tooltip = {
				ZRE = {		
					change_tag_from = ZMN			
				}
			}
		}
	}
	
	zmn_prirost_politki_respubliki = {
		icon = generic_political_discourse
		available = {			
			political_power_daily > 0.2				
		}
		cost = 0		
		modifier = {
			political_power_gain = -0.2
		}
		days_remove = 14
		fixed_random_seed = no
		remove_effect = {
			custom_effect_tooltip = zmn_prirost_politki_respubliki_tt  
			hidden_effect = {
				random_list = {
					15 = {
						add_to_variable = { zmn_politochki_var = 5 }
					}
					15 = {
						add_to_variable = { zmn_politochki_var = 7 }
					}
					20 = {
						add_to_variable = { zmn_politochki_var = 8 }
					}
					20 = {
						add_to_variable = { zmn_politochki_var = 9 }
					}
					20 = {
						add_to_variable = { zmn_politochki_var = 10 }
					}
					10 = {
						add_to_variable = { zmn_politochki_var = 11 }
					}
				}	
			}	
		}
		ai_will_do = {
			factor = 100		
		}
	}
	
	zmn_podderjat_omnikov_resp = {
		icon = GFX_institute_press_censorship_omniparism_state
		available = {	
			custom_trigger_tooltip = {
				tooltip = zmn_resp_menee_100_omnikov				
				check_variable = {
					var = zmn_resp_omniki_var
					value = 100
					compare = less_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_decision = zmn_podderjat_demov_resp
			}			
		}
		cost = 0		
		fire_only_once = no
		fixed_random_seed = no
		days_remove = 7		####
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { zmn_politochki_var = 7 }
			}
		}
		remove_effect = {
			custom_effect_tooltip = zmn_podderjat_omnikov_resp_tt  
			hidden_effect = {				
				random_list = {
					25 = {
						add_to_variable = { zmn_resp_omniki_var = 1 }
						subtract_from_variable = { zmn_resp_demokr_var = 1 }						
					}
					25 = {
						add_to_variable = { zmn_resp_omniki_var = 2 }
						subtract_from_variable = { zmn_resp_demokr_var = 2 }						
					}
					25 = {
						add_to_variable = { zmn_resp_omniki_var = 3 }
						subtract_from_variable = { zmn_resp_demokr_var = 3 }						
					}
					25 = {
						add_to_variable = { zmn_resp_omniki_var = 4 }
						subtract_from_variable = { zmn_resp_demokr_var = 4 }						
					}
				}
				clamp_variable = { var = zmn_resp_omniki_var max = 100 min = 0 }
				clamp_variable = { var = zmn_resp_demokr_var max = 100 min = 0 }
				## чтобы суммарно выходило всегда 100
				if = {
					limit = {
						check_variable = { zmn_resp_omniki_var = 100 }
					}
					set_variable = { zmn_resp_demokr_var = 0 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_omniki_var = 99 }
					}
					set_variable = { zmn_resp_demokr_var = 1 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_omniki_var = 98 }
					}
					set_variable = { zmn_resp_demokr_var = 2 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_omniki_var = 97 }
					}
					set_variable = { zmn_resp_demokr_var = 3 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_omniki_var = 96 }
					}
					set_variable = { zmn_resp_demokr_var = 4 }
				}
				#
				if = {
					limit = {
						check_variable = { zmn_resp_demokr_var = 100 }
					}
					set_variable = { zmn_resp_omniki_var = 0 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_demokr_var = 99 }
					}
					set_variable = { zmn_resp_omniki_var = 1 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_demokr_var = 98 }
					}
					set_variable = { zmn_resp_omniki_var = 2 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_demokr_var = 97 }
					}
					set_variable = { zmn_resp_omniki_var = 3 }
				}
				else_if = {
					limit = {
						check_variable = { zmn_resp_demokr_var = 96 }
					}
					set_variable = { zmn_resp_omniki_var = 4 }
				}
			}	
		}
		ai_will_do = {
			factor = 2		
		}
	}
	zmn_podderjat_demov_resp = {
		icon = GFX_institute_press_censorship_democratura_state
		available = {	
			custom_trigger_tooltip = {
				tooltip = zmn_resp_menee_100_demov				
				check_variable = {
					var = zmn_resp_demokr_var
					value = 100
					compare = less_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_decision = zmn_podderjat_omnikov_resp
			}				
		}
		cost = 0		
		fire_only_once = no
		fixed_random_seed = no
		days_remove = 7			####
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { zmn_politochki_var = 7 }
			}
		}
		remove_effect = {
			custom_effect_tooltip = zmn_podderjat_demov_resp_tt  
			hidden_effect = {				
				random_list = {
					25 = {
						add_to_variable = { zmn_resp_demokr_var = 1 }
						subtract_from_variable = { zmn_resp_omniki_var = 1 }
						clamp_variable = { var = zmn_resp_omniki_var max = 100 min = 0 }
						clamp_variable = { var = zmn_resp_demokr_var max = 100 min = 0 }
					}
					25 = {
						add_to_variable = { zmn_resp_demokr_var = 2 }
						subtract_from_variable = { zmn_resp_omniki_var = 2 }
						clamp_variable = { var = zmn_resp_omniki_var max = 100 min = 0 }
						clamp_variable = { var = zmn_resp_demokr_var max = 100 min = 0 }
					}
					25 = {
						add_to_variable = { zmn_resp_demokr_var = 3 }
						subtract_from_variable = { zmn_resp_omniki_var = 3 }
						clamp_variable = { var = zmn_resp_omniki_var max = 100 min = 0 }
						clamp_variable = { var = zmn_resp_demokr_var max = 100 min = 0 }
					}
					25 = {
						add_to_variable = { zmn_resp_demokr_var = 4 }
						subtract_from_variable = { zmn_resp_omniki_var = 4 }
						clamp_variable = { var = zmn_resp_omniki_var max = 100 min = 0 }
						clamp_variable = { var = zmn_resp_demokr_var max = 100 min = 0 }
					}					
				}	
			}	
		}
		ai_will_do = {
			factor = 2		
		}
	}
	
	zmn_zaprosit_dop_vremya_na_podgotovk = {
		icon = generic_political_discourse
		available = {				
										
		}
		cost = 3		
		fire_only_once = yes
		complete_effect = {
			custom_effect_tooltip = odnorazovoe_reshenie
			add_days_mission_timeout  = {
				mission = zmn_start_vosstaniya_respublk
				days = 52
			}	
		}
		ai_will_do = {
			factor = 0		
		}
	}
	
	zmn_podgotovit_orujie = {
		icon = generic_intelligence_operation
		available = {				
										
		}
		cost = 55		
		fire_only_once = yes
		complete_effect = {
			custom_effect_tooltip = zmn_podgotovit_orujie_tt 
			hidden_effect = {
				ZRE = {	
					set_country_flag = zmn_podgotovit_orujie_flag
				}	
			}	
		}
		ai_will_do = {
			factor = 200		
		}
	}
	
	zmn_demoraliz_impersk_armii = {
		icon = hol_attract_foreign_investors
		available = {				
										
		}
		cost = 55		
		fire_only_once = yes
		complete_effect = {
			custom_effect_tooltip = zmn_demoraliz_impersk_armii_tt 	
			set_country_flag = zmn_demoraliz_impersk_armii_flag
		}
		ai_will_do = {
			factor = 200		
		}
	}
	
	zmn_agitatsiya_v_obshestve_imperii = {
		icon = generic_political_discourse
		available = {
			has_stability > 0.1
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		cost = 75		
		fire_only_once = no
		days_re_enable = 80
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { zmn_politochki_var = 7 }
			}
			custom_effect_tooltip = povtoryaemoe_reshenie_80
			add_stability = -0.07
		}
		ai_will_do = {
			factor = 200		
		}
	}
	
	zmn_1115_agitatsya = {
		icon = infiltrate_state
		available = {	
			controls_state = 1115 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {	
			highlight_state_targets = {
				state = 1115 
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_1115_agitatsya_tt 
			hidden_effect = {				
				set_country_flag = zmn_1115_agitatsya_flag				
			}
		}
		ai_will_do = {
			factor = 1		
		}
	}
	zmn_1114_agitatsya = {
		icon = infiltrate_state
		available = {	
			controls_state = 1114 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 1114 
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_1114_agitatsya_tt 
			hidden_effect = {				
				set_country_flag = zmn_1114_agitatsya_flag				
			}
		}
		ai_will_do = {
			factor = 1		
		}
	}
	zmn_1109_agitatsya = {
		icon = infiltrate_state
		available = {	
			controls_state = 1109 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 1109
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_1109_agitatsya_tt 
			hidden_effect = {				
				set_country_flag = zmn_1109_agitatsya_flag				
			}
		}
		ai_will_do = {
			factor = 1		
		}
	}
	zmn_1113_agitatsya = {
		icon = infiltrate_state
		available = {	
			controls_state = 1113 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 1113 
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_1113_agitatsya_tt 
			hidden_effect = {				
				set_country_flag = zmn_1113_agitatsya_flag				
			}
		}
		ai_will_do = {
			factor = 1		
		}
	}
	zmn_750_opolchenie = {
		icon = generic_prepare_civil_war
		available = {	
			controls_state = 750 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 750
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_750_opolchenie_tt 
			hidden_effect = {
				ZRE = {
					set_country_flag = zmn_750_opolchenie_flag	
				}	
			}
		}
		ai_will_do = {
			factor = 35		
		}
	}
	zmn_1085_opolchenie = {
		icon = generic_prepare_civil_war
		available = {	
			controls_state = 1085 
			custom_trigger_tooltip = {
				tooltip = zmn_resp_has_politochki_7					
				check_variable = {
					var = zmn_politochki_var
					value = 7
					compare = greater_than_or_equals
				}
			}							
		}
		highlight_states = {
			highlight_state_targets = {
				state = 1085
			}
		}	
		cost = 80		
		fire_only_once = yes		
		complete_effect = {
			custom_effect_tooltip = zmn_1085_opolchenie_tt 
			hidden_effect = {
				ZRE = {
					set_country_flag = zmn_1085_opolchenie_flag	
				}	
			}
		}
		ai_will_do = {
			factor = 35		
		}
	}

}

#######
ZMN_ue_uchitelya_cat = {	# name = "Bao Duan"  has_completed_focus = zmn_stabilnost_polit_kursa
	##### бейист
	zmn_lui_ksiabo_teacher = {
		icon = GFX_zmn_lui_ksiabo_teacher
		available = {	
										
		}	
		visible = {
			NOT = {
				OR = {
					has_country_flag = zmn_miao_kiy_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}		
		}
		cost = 30		
		fire_only_once = yes		
		complete_effect = {
			set_country_flag = zmn_lui_ksiabo_teacher_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 35
				}
			}
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = zmn_jungo_polit_13
		}
		ai_will_do = {
			factor = 35		
		}
	}	
	xma_lui_ksiabo_urok_1 = {
		icon = GFX_xma_lui_ksiabo_urok_1
		available = {
			has_country_flag = zmn_lui_ksiabo_teacher_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_miao_kiy_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180
		fixed_random_seed = no				
		remove_effect = {
			random_list = {
				25 = {	
					add_country_leader_trait = zmn_spetsialist_rinochneh_otnisheniy
					if = {
						limit = {
							has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
						}
						add_days_mission_timeout  = {
							mission = zmn_krizis_dlya_chu_i_ue_raspad
							days = 30
						}
					}
					subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 2 }
				}
				40 = {
					add_country_leader_trait = zmn_podayschii_nadejdi_finansist	
					if = {
						limit = {
							has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
						}
						add_days_mission_timeout  = {
							mission = zmn_krizis_dlya_chu_i_ue_raspad
							days = 17
						}
					}	
					subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }
				}
				35 = {
					add_country_leader_trait = zmn_bezdarny_finansist	
					if = {
						limit = {
							has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
						}
						add_days_mission_timeout  = {
							mission = zmn_krizis_dlya_chu_i_ue_raspad
							days = -7
						}
					}
					add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }					
				}
			}
			set_country_flag = xma_lui_ksiabo_urok_1_flag
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_lui_ksiabo_urok_2 = {
		icon = GFX_xma_lui_ksiabo_urok_2
		available = {
			has_country_flag = zmn_lui_ksiabo_teacher_flag
			has_country_flag = xma_lui_ksiabo_urok_1_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_miao_kiy_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180
		fixed_random_seed = no				
		remove_effect = {
			country_event = { id = jungo.170 }
			set_country_flag = xma_lui_ksiabo_urok_2_flag
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_lui_ksiabo_urok_3 = {
		icon = GFX_xma_lui_ksiabo_urok_3
		available = {
			has_country_flag = zmn_lui_ksiabo_teacher_flag
			has_country_flag = xma_lui_ksiabo_urok_1_flag
			has_country_flag = xma_lui_ksiabo_urok_2_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_miao_kiy_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180
		fixed_random_seed = no				
		remove_effect = {
			custom_effect_tooltip = xma_lui_ksiabo_urok_3_tt			
			country_event = { id = jungo.171 }
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 5 }
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 10
				}
			}
		}
		ai_will_do = {
			factor = 50			
		}
	}
	#### конфуцион
	zmn_miao_kiy_teacher = {
		icon = GFX_zmn_miao_kiy_teacher
		available = {	
										
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		cost = 30		
		fire_only_once = yes		
		complete_effect = {
			set_country_flag = zmn_miao_kiy_teacher_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 25
				}
			}
			add_to_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = zmn_jungo_polit_14
		}
		ai_will_do = {
			factor = 35		
		}
	}
	xma_miao_kiy_urok_1 = {
		icon = GFX_xma_miao_kiy_urok_1
		available = {
			has_country_flag = zmn_miao_kiy_teacher_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180					
		remove_effect = {
			set_country_flag = xma_miao_kiy_urok_1_flag
			add_country_leader_trait = zmn_li_i_jen_traitt
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 25
				}
			}
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_miao_kiy_urok_2 = {
		icon = GFX_xma_miao_kiy_urok_2
		available = {
			has_country_flag = zmn_miao_kiy_teacher_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180
		fixed_random_seed = no				
		remove_effect = {
			set_country_flag = xma_miao_kiy_urok_2_flag
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 48
				}
			}
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_miao_kiy_urok_3 = {
		icon = GFX_xma_miao_kiy_urok_3
		available = {
			has_country_flag = zmn_miao_kiy_teacher_flag
			has_country_flag = xma_miao_kiy_urok_1_flag
			has_country_flag = xma_miao_kiy_urok_2_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_lei_venking_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180
		fixed_random_seed = no				
		remove_effect = {
			set_country_flag = xma_miao_kiy_urok_3_flag
			custom_effect_tooltip = xma_miao_kiy_urok_3_tt
			country_event = { id = jungo.179 }
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 39
				}
			}
			subtract_from_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }	
			subtract_from_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }			
		}
		ai_will_do = {
			factor = 50			
		}
	}
	#### аграрник
	zmn_lei_venking_teacher = {
		icon = GFX_zmn_lei_venking_teacher
		available = {	
										
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_miao_kiy_teacher_flag
				}
			}	
		}		
		cost = 30		
		fire_only_once = yes		
		complete_effect = {
			set_country_flag = zmn_lei_venking_teacher_flag
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 29
				}
			}
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = zmn_jungo_polit_15
		}
		ai_will_do = {
			factor = 35		
		}
	}
	xma_lei_venking_urok_1 = {
		icon = GFX_xma_lei_venking_urok_1
		available = {
			has_country_flag = zmn_lei_venking_teacher_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_miao_kiy_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180					
		remove_effect = {
			set_country_flag = xma_lei_venking_urok_1_flag
			add_country_leader_trait = zmn_ue_sun_neba_otets_naroda_traitt
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 58
				}
			}
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_lei_venking_urok_2 = {
		icon = GFX_xma_lei_venking_urok_2
		available = {
			has_country_flag = zmn_lei_venking_teacher_flag
			has_country_flag = xma_lei_venking_urok_1_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_miao_kiy_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180					
		remove_effect = {
			set_country_flag = xma_lei_venking_urok_2_flag
			add_country_leader_trait = zmn_ue_priblijenny_k_narodu_traitt
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 63
				}
			}
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_lei_venking_urok_3 = {
		icon = GFX_xma_lei_venking_urok_3
		available = {
			has_country_flag = zmn_lei_venking_teacher_flag
			has_country_flag = xma_lei_venking_urok_1_flag
			has_country_flag = xma_lei_venking_urok_2_flag
		}
		visible = {			
			NOT = {
				OR = {
					has_country_flag = zmn_lui_ksiabo_teacher_flag
					has_country_flag = zmn_miao_kiy_teacher_flag
				}
			}	
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 180					
		remove_effect = {
			custom_effect_tooltip = xma_lei_venking_urok_3_tt  
			hidden_effect = {				
				remove_country_leader_trait = zmn_ue_sun_neba_otets_naroda_traitt
				remove_country_leader_trait = zmn_ue_priblijenny_k_narodu_traitt
			}
			add_country_leader_trait = zmn_ue_narodn_imperat_traitt
			set_country_leader_ideology = socialism
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 83
				}
			}
			subtract_from_variable = { zmn_kkrrs_omniki_nedovolstvo_var = 3 }
			add_to_variable = { zmn_kkrrs_vany_nedovolstvo_var = 1 }
			add_to_variable = { zmn_kkrrs_beiisty_nedovolstvo_var = 1 }
		}
		ai_will_do = {
			factor = 50			
		}
	}
}

ZMN_ue_senat_chjuhou_cat = { ##	has_country_flag = ZMN_ue_senat_chjuhou_flag   решение xma_lui_ksiabo_urok_3 обучение императора бйеист
	zmn_zhuhou_podderjka_vplus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zmn_zhuhou_support < 100 }			
			not = {
				has_decision = zmn_zhuhou_podderjka_vplus_2
			}			
			political_power_daily > 0.3			
		}
		cost = 0
		ai_will_do = {
			factor = 5
			modifier = {
				check_variable = { zmn_zhuhou_support < 95 }
				factor = 45
			}			
		}
		modifier = {
			political_power_gain = -0.3
		}
		days_remove = 30
		remove_effect = {
			zmn_zhuhou_support_plus_1 = yes
		}
	}
	zmn_zhuhou_podderjka_vplus_2 = {
		icon = generic_political_discourse
		available = {
			check_variable = { zmn_zhuhou_support < 100 }
			not = {
				has_decision = zmn_zhuhou_podderjka_vplus
			}
			OR = {
				political_power_daily > 0.6
				has_political_power > 35
			}
		}
		cost = 0
		ai_will_do = {
			factor = 2
			modifier = {
				check_variable = { zmn_zhuhou_support < 20 }
				factor = 50
			}			
		}
		days_remove = 48
		modifier = {
			political_power_gain = -0.6
		}
		remove_effect = {
			zmn_zhuhou_support_plus_2 = yes
		}
	}
	zmn_zhuhou_invest_stroik = {
		icon = generic_construction
		available = {
			zmn_zhuhou_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			production_speed_buildings_factor = 0.08					
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zmn_zhuhou_support_minus_2 = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zmn_zhuhou_invest_nauka_boost = {
		icon = generic_research
		available = {
			zmn_zhuhou_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			research_speed_factor = 0.05
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zmn_zhuhou_support_minus_2 = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zmn_zhuhou_razvitie_logistiki_dorog = {
		icon = generic_decision
		available = {
			zmn_zhuhou_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			production_speed_infrastructure_factor = 0.18
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zmn_zhuhou_support_minus_2 = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zmn_zhuhou_kyrsy_podgotovki_v_armii = {
		icon = generic_prepare_civil_war
		available = {
			zmn_zhuhou_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			training_time_factor = -0.06
			experience_gain_army = 0.04
			mobilization_speed = 0.15
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zmn_zhuhou_support_minus_2 = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zmn_zhuhou_ue_doverie_timeboost = {
		icon = GFX_decision_eng_propaganda_campaigns
		available = {
			zmn_zhuhou_low_support_trigger = yes
			political_power_daily > 0.5
		}
		visible = {
			has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
		}
		fire_only_once = no
		modifier = {
			political_power_gain = -0.5
		}
		days_remove = 20
		days_re_enable = 360
		cost = 100
		complete_effect = {			
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zmn_zhuhou_support_minus_1 = yes
		}	
		remove_effect = {	
			add_stability = 0.01
			if = {
				limit = {
					has_active_mission = zmn_krizis_dlya_chu_i_ue_raspad
				}
				add_days_mission_timeout  = {
					mission = zmn_krizis_dlya_chu_i_ue_raspad
					days = 70
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 100
			}
		}
	}
}

ZMN_vozdeistvie_na_japan_zomiya_cat = {
	zmn_vozdeistvie_na_japan_zomiya_weapon_v_936 = {
		icon = generic_prepare_civil_war
		available = {
			936 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			has_equipment = {
				infantry_equipment > 100
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		days_remove = 45		
		cost = 20
		complete_effect = {			
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100					
			}
		}
		remove_effect = {
			set_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_936_flag
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_perevorot_v_936 = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_936_flag
			936 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 936
				}
			}
			ZNP = {
				divisions_in_state = {				
					size < 1
					state = 936
				}
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		fixed_random_seed = no
		cost = 20
		complete_effect = {		
			random_list = {
				80 = {
					country_event = { id = jungo.303 }
				}
				20 = {
					country_event = { id = jungo.305 }
				}
			}	
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_weapon_v_937 = {
		icon = generic_prepare_civil_war
		available = {
			937 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			has_equipment = {
				infantry_equipment > 100
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		days_remove = 45		
		cost = 20
		complete_effect = {			
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100					
			}
		}
		remove_effect = {
			set_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_937_flag
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_perevorot_v_937 = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_936_flag
			937 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 937
				}
			}
			ZNP = {
				divisions_in_state = {				
					size < 1
					state = 937
				}
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		fixed_random_seed = no
		cost = 20
		complete_effect = {		
			random_list = {
				80 = {
					country_event = { id = jungo.306 }
				}
				20 = {
					country_event = { id = jungo.308 }
				}
			}	
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_weapon_v_80 = {
		icon = generic_prepare_civil_war
		available = {
			801 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			has_equipment = {
				infantry_equipment > 100
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		days_remove = 45		
		cost = 20
		complete_effect = {			
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100					
			}
		}
		remove_effect = {
			set_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_80_flag
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_perevorot_v_80 = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_80_flag
			801 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 801
				}
			}
			ZNP = {
				divisions_in_state = {				
					size < 1
					state = 801
				}
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		fixed_random_seed = no
		cost = 20
		complete_effect = {		
			random_list = {
				80 = {
					country_event = { id = jungo.309 }
				}
				20 = {
					country_event = { id = jungo.311 }
				}
			}	
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_weapon_v_336 = {
		icon = generic_prepare_civil_war
		available = {
			336 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			has_equipment = {
				infantry_equipment > 100
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		days_remove = 45		
		cost = 20
		complete_effect = {			
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100					
			}
		}
		remove_effect = {
			set_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_336_flag
		}
		ai_will_do = {
			base = 75			
		}
	}
	zmn_vozdeistvie_na_japan_zomiya_perevorot_v_336 = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_country_flag = zmn_vozdeistvie_na_japan_zomiya_weapon_v_336_flag
			336 = {
				OR = {
					is_controlled_by = ZJA
					is_controlled_by = ZNP
				}
			}
			ZJA = {
				divisions_in_state = {				
					size < 1
					state = 336
				}
			}
			ZNP = {
				divisions_in_state = {				
					size < 1
					state = 336
				}
			}
		}
		visible = {			
		}
		fire_only_once = yes		
		fixed_random_seed = no
		cost = 20
		complete_effect = {		
			random_list = {
				80 = {
					country_event = { id = jungo.312 }
				}
				20 = {
					country_event = { id = jungo.314 }
				}
			}	
		}
		ai_will_do = {
			base = 75			
		}
	}

}

ZMN_politika_goszakazov_cat = {	# has_completed_focus = zmn_japanes_vladeniya
	zmn_imperia_goszakaz_tachki = {
		icon = GFX_decision_rubber
		available = {
		
		}
		fire_only_once = no		
		complete_effect = {
			add_ideas = zre_beiisty_dotatsii_avtopromke
		}	
		remove_effect = {
			remove_ideas = zre_beiisty_dotatsii_avtopromke
			custom_effect_tooltip = povtoryaemoe_reshenie_360
		}
		days_remove = 200
		days_re_enable = 360
		cost = 95
		ai_will_do = {
			base = 5						
		}
	}
	zmn_imperia_goszakaz_tanki = {
		icon = GFX_decision_rubber
		available = {
			
		}
		fire_only_once = no		
		complete_effect = {
			add_ideas = zre_beiisty_dotatsii_tanki
		}
		remove_effect = {
			remove_ideas = zre_beiisty_dotatsii_tanki
			custom_effect_tooltip = povtoryaemoe_reshenie_360
		}	
		days_remove = 200	
		days_re_enable = 360
		cost = 95
		ai_will_do = {
			base = 5						
		}
	}
	zmn_imperia_goszakaz_samoletiki = {
		icon = GFX_decision_rubber
		available = {
				
		}
		fire_only_once = no		
		complete_effect = {
			add_ideas = zre_beiisty_dotatsii_aviatsii
		}	
		remove_effect = {
			remove_ideas = zre_beiisty_dotatsii_aviatsii
			custom_effect_tooltip = povtoryaemoe_reshenie_360
		}
		days_remove = 200
		days_re_enable = 360
		cost = 95
		ai_will_do = {
			base = 4						
		}
	}
}

ZMN_marionetk_fanatikov_cat = {
	zmn_privlechenie_sichangov = {
		icon = GFX_decision_generic_prepare_civil_war
		available = {				
			has_stability > 0.3		
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {				
			resistance_target = -0.12
			resistance_damage_to_garrison = -0.25 			
		}
		days_remove = 180
		days_re_enable = 240
		cost = 90
		fixed_random_seed = no
		complete_effect = {
			random_list = {
				50 = {
					add_stability = -0.03
				}
				50 = {
					add_stability = -0.01
				}
			}
		}
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240
			custom_effect_tooltip = zmn_privlechenie_sichangov_tt	
		}
		ai_will_do = {
			base = 20				
			modifier = {
				add = 30
				has_war = yes
			}
			modifier = {
				factor = 0
				has_stability < 0.3
			}		
		}
	}

}

ZMN_rajiganie_japan_konflikta_cat = {	# has_completed_focus = zmn_razjech_konfikt
	zmn_otpravit_orujie_segunam = {
		icon = GFX_decision_generic_prepare_civil_war
		available = {				
			has_equipment = {
				infantry_equipment > 400
			}
			if = {
				limit = {
					has_country_flag = ZMN_ue_senat_chjuhou_flag
					has_government = democratic	
				}
				zmn_zhuhou_low_support_trigger = yes
			}
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {						
		}		
		days_re_enable = 240
		cost = 30
		fixed_random_seed = no
		complete_effect = {
			ZJA = {
				country_event = { id = jungo.397 }
			}
			if = {
				limit = {
					has_country_flag = ZMN_ue_senat_chjuhou_flag
					has_government = democratic	
				}
				zmn_zhuhou_support_minus_1 = yes
			}
		}
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240				
		}
		ai_will_do = {
			base = 1				
			modifier = {
				add = -20
				has_war = yes
			}
			modifier = {
				add = 50
				ZJA = {
					surrender_progress > 0.3
				}					
			}		
		}
	}
	zmn_sodeistvie_rozvedke_segunov = {
		icon = GFX_decision_hol_draw_up_staff_plans
		available = {				
				
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {						
		}		
		days_re_enable = 240
		cost = 30
		fixed_random_seed = no
		complete_effect = {
			ZJA = {
				country_event = { id = jungo.411 }
				effect_tooltip = {
					add_timed_idea = {
						idea = zmn_rozvidka_dlya_zja
						days = 150
					}
				}
			}
		}
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240				
		}
		ai_will_do = {
			base = 1				
			modifier = {
				add = -20
				has_war = yes
			}
			modifier = {
				add = 50
				ZJA = {
					surrender_progress > 0.3
				}					
			}		
		}
	}
	zmn_otpravit_orujie_esiro = {
		icon = GFX_decision_generic_prepare_civil_war
		available = {				
			has_equipment = {
				infantry_equipment > 400
			}
			if = {
				limit = {
					has_country_flag = ZMN_ue_senat_chjuhou_flag
					has_government = democratic	
				}
				zmn_zhuhou_low_support_trigger = yes
			}			
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {						
		}		
		days_re_enable = 240
		cost = 30
		fixed_random_seed = no
		complete_effect = {
			ZNP = {
				country_event = { id = jungo.398 }
			}
			if = {
				limit = {
					has_country_flag = ZMN_ue_senat_chjuhou_flag
					has_government = democratic	
				}
				zmn_zhuhou_support_minus_1 = yes
			}
		}
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240				
		}
		ai_will_do = {
			base = 1				
			modifier = {
				add = -20
				has_war = yes
			}
			modifier = {
				add = 50
				ZNP = {
					surrender_progress > 0.3
				}					
			}		
		}
	}
	zmn_sodeistvie_rozvedke_esiro = {
		icon = GFX_decision_hol_draw_up_staff_plans
		available = {				
				
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {						
		}		
		days_re_enable = 240
		cost = 30
		fixed_random_seed = no
		complete_effect = {
			ZNP = {
				country_event = { id = jungo.412 }
				effect_tooltip = {
					add_timed_idea = {
						idea = zmn_rozvidka_dlya_znp
						days = 150
					}
				}
			}
		}
		remove_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240				
		}
		ai_will_do = {
			base = 1				
			modifier = {
				add = -20
				has_war = yes
			}
			modifier = {
				add = 50
				ZNP = {
					surrender_progress > 0.3
				}					
			}		
		}
	}


}

