
ZSL_nation_decis = {
	ZSL_ukreplen_natii = {
		icon = generic_political_discourse
		allowed = {
			original_tag = ZSL
		}
		available = {
			has_government = fascism	
		}
		days_remove = 80
		days_re_enable = 270
		cost = 120
		fire_only_once = no
		visible = {
			has_completed_focus = zsl_podderjka_sredi_naseleniya	
		}
		modifier = {
			stability_weekly = 0.005
			war_support_weekly = 0.003			
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 2
				has_stability < 0.3
			}
		}
	}	
#	ZSL_kievan_vopr = {
#		icon = generic_operation
#		allowed = {
#			original_tag = ZSL
#		}
#		available = {
#			has_idea = zsl_kiev_separat
#			has_war = no
#						controls_state = 202
#						controls_state = 198
#						controls_state = 203
#						controls_state = 192
#						controls_state = 197
#						controls_state = 259
#						controls_state = 226
#						controls_state = 196
#						controls_state = 200
#						controls_state = 137
#						controls_state = 227
#						controls_state = 221
#						controls_state = 228
#						controls_state = 218
#						controls_state = 245						
#						controls_state = 238
#						controls_state = 225
#						controls_state = 220
#						controls_state = 240
#						controls_state = 260
#		}
#		cost = 140
#		fire_only_once = yes
#		visible = {
#			has_idea = zsl_kiev_separat
#		}		
#		complete_effect = {
#			custom_effect_tooltip = ZSL_kievan_vopr_tt
#			country_event = {
#				id = slavianic.1
#			}		
#		}
#		ai_will_do = {
#			factor = 10			
#		}
#	}
	
#	ZSL_podavlenie_zfu = {
#		icon = generic_operation
#		allowed = {
#			original_tag = ZSL
#		}
#		available = {
#			ZFU = {
#				is_puppet_of = ZSL
#				fascism > 0.4
#			}		
##		}
#		cost = 100
#		fire_only_once = no
#		visible = {
#			ZFU = {
#				is_puppet_of = ZSL				
#			}
#		}
#		modifier = {
#			
#		}
#		days_remove = 80
#		days_re_enable = 160
#		complete_effect = {
#			ZFU = {
#				add_popularity = { ideology = neutrality popularity = 0.2 }
#			} 		
#		}
##		ai_will_do = {
#			factor = 9			
#		}
#	}
	
#	ZSL_destabilization_zba = {
#			icon = generic_political_discourse
#			allowed = {
#				original_tag = ZSL
#			}
#			available = {
#				country_exists = ZBA
#				has_opinion = {
#						target = ZBA
#						value < 50
#					}
#				ZBA = {
#					has_idea = nacionalnye_conflikty_zba					
#				}				
#			}
#			cost = 75
#			fire_only_once = no
#			visible = {
#				has_country_flag = zsl_anti_baltika1
#				has_government = fascism
#				country_exists = ZBA
#				ZBA = {
#					has_idea = nacionalnye_conflikty_zba
##				}
#			}
#			modifier = {			
#					 
#			}			
#			days_re_enable = 150
#			complete_effect = {
#				ZBA = {
#					country_event = {
#						id = branden.11
#					}
#					add_timed_idea = {
##							idea = zba_slavianik_razv
#							days = 75
#					}	
#				}			
#			}
#			ai_will_do = {
#				factor = 70						
#			}
#	}
	
#	ZSL_kievan_deleteseparatism = {
#		icon = generic_operation
#		allowed = {
#			original_tag = ZSL
#		}
#		available = {
#			has_idea = zsl_kiev_separat
#			has_stability > 0.80
#			has_war = no
#				controls_state = 202						
#		}
#		cost = 140
#		fire_only_once = yes
#		visible = {
#			has_idea = zsl_kiev_separat
#			has_global_flag = form_velikoslavia_kingdom_flag
#			has_government = fascism
#		}		
#		complete_effect = {
#			remove_ideas = zsl_kiev_separat		
#		}
##		ai_will_do = {
#			factor = 10			
#		}
#	}
	
#	ZSL_agitatia_na_kiev = {
#		icon = generic_operation
#		allowed = {
#			original_tag = ZSL
#		}
#		available = {
#			ZKI = {
#				OR = {
#					is_puppet_of = ZSL	
#					is_subject_of = ZSL
#				}	
#			}		
#		}
#		cost = 100
#		fire_only_once = no
#		visible = {
#			ZKI = {
#				OR = {
#					is_puppet_of = ZSL	
#					is_subject_of = ZSL
#				}	
#			}
#			has_completed_focus = zsl_z_8	
#		}
#		modifier = {
#			
#		}
#		days_remove = 80
#		days_re_enable = 150
#		complete_effect = {
#			country_event = {
#				id = slavianic.40
#			}		
#		}
#		ai_will_do = {
#			factor = 9			
#		}
#	}
	ZSL_agitatia_na_kyrlandia = {
		icon = generic_operation
		allowed = {
			original_tag = ZSL
		}
		available = {
			ZKY = {
				OR = {
					is_puppet_of = ZSL	
					is_subject_of = ZSL
				}
				owns_state = 11
				owns_state = 189
				owns_state = 190
			}		
		}
		cost = 100
		fire_only_once = yes
		visible = {
			ZKY = {
				OR = {
					is_puppet_of = ZSL	
					is_subject_of = ZSL
				}	
			}			
		}
		modifier = {
			political_power_factor = -0.25
		}
		days_remove = 50		
		remove_effect = {
			add_stability = -0.05
			ZKY = {
				country_event = {
					id = slavianic.72
				}	
			}	
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_stability > 0.55
			}
		}
	}
	ZSL_agitatia_na_kyrlandia_2 = {
		icon = generic_operation
		allowed = {
			original_tag = ZSL
		}
		available = {
			ZKY = {
				OR = {
					is_puppet_of = ZSL	
					is_subject_of = ZSL
				}
				owns_state = 11
				owns_state = 189
				owns_state = 190
			}		
		}
		cost = 100
		fire_only_once = yes
		visible = {
			has_country_flag = zsl_zky_vozdeistv_etap_odin
			ZKY = {
				OR = {
					is_puppet_of = ZSL	
					is_subject_of = ZSL
				}	
			}			
		}
		modifier = {
			political_power_factor = -0.25
		}
		days_remove = 50		
		remove_effect = {
			add_stability = -0.05
			ZKY = {
				country_event = {
					id = slavianic.55
				}	
			}	
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_stability > 0.55
			}
		}
	}
#	ZSL_integratia_kyrlandii_polnaya = {
#		icon = generic_operation
#		allowed = {
#			original_tag = ZSL
##		}
#		available = {
#			ZKY = {
#				OR = {
#					is_puppet_of = ZSL	
#					is_subject_of = ZSL					
#				}
#				OR = {
#					has_autonomy_state = autonomy_integrated_puppet
#					has_autonomy_state = autonomy_reichskommissariat
#				}
#				compare_autonomy_progress_ratio < 0.27
#			}		
#		}
#		cost = 100
##		fire_only_once = yes
#		visible = {
#			ZKY = {
#				OR = {
#					is_puppet_of = ZSL	
#					is_subject_of = ZSL
#				}	
#			}			
#		}
#		modifier = {
#			
#		}		
#		complete_effect = {				
#			ZKY = {
#				country_event = {
#					id = slavianic.55
#				}	
#			}			
#		}
#		ai_will_do = {
#			base = 0
#			modifier = {
#				add = 30
#				has_stability > 0.65
#			}
#		}
#	}

}

ZSL_russian_demokrat_decis = {
	zsl_podderjka_vplus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zsl_veche_support < 100 }			
			not = {
				has_decision = zsl_podderjka_medium_lobby_effort
			}
			OR = {
				political_power_daily > 0.3
				has_political_power > 10
			}
		}
		cost = 0
		ai_will_do = {
			factor = 10
			modifier = {
				zsl_veche_medium_support_trigger = yes
				factor = 0.5
			}
			modifier = {
				zsl_veche_low_support_trigger = yes
				factor = 0.5
			}
			modifier = {
				zsl_veche_high_support_trigger = yes
				factor = 0
			}
		}
		modifier = {
			political_power_gain = -0.3
		}
		days_remove = 30
		remove_effect = {
			zsl_veche_small_support = yes
		}
	}	
	zsl_podderjka_medium_lobby_effort = {
		icon = generic_political_discourse
		available = {
			check_variable = { zsl_veche_support < 100 }
			not = {
				has_decision = zsl_podderjka_vplus
			}
			OR = {
				political_power_daily > 0.75
				has_political_power > 35
			}
		}
		cost = 0
		ai_will_do = {
			factor = 10
			modifier = {
				zsl_veche_medium_support_trigger = yes
				factor = 0.5
			}
			modifier = {
				zsl_veche_low_support_trigger = yes
				factor = 0.5
			}
			modifier = {
				zsl_veche_high_support_trigger = yes
				factor = 0
			}
		}
		days_remove = 45
		modifier = {
			political_power_gain = -0.75
		}
		remove_effect = {
			zsl_veche_medium_support = yes
		}
	}
	zsl_zayavka_v_egida = {
		icon = generic_political_discourse
		available = {			
			has_government = democratic
			NOT = {
				has_war_with = ZVZ
			}			
			has_added_tension_amount < 10			
			is_puppet = no
			is_subject = no
		}			
		visible = {
			is_in_faction = no			
			has_completed_focus = zkr_ally_romea_vizantosy
			ZVZ = {
				is_faction_leader = yes
				
			}
		}
		fire_only_once = no		
		days_re_enable = 350
		cost = 50
		complete_effect = {
			custom_effect_tooltip = zkr_zayavka_v_chernomorsy_allianse_tt
			ZVZ = {
				country_event = { id = ar_political.800 }
			}
		}
		ai_will_do = {
			base = 70
			modifier = {
				add = -40
				has_war = no
				ZVZ = {
					has_war = yes
				}
			}
		}
	}
	zsl_veche_invest_stroik = {
		icon = generic_construction
		available = {
#			has_war_support < 0.7
			zsl_veche_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			production_speed_buildings_factor = 0.1					
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zsl_veche_small_opposition = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zsl_veche_invest_nauka_boost = {
		icon = generic_research
		available = {
#			has_war_support < 0.7	
			zsl_veche_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			research_speed_factor = 0.04
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zsl_veche_small_opposition = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zsl_veche_razvitie_logistiki_dorog = {
		icon = generic_decision
		available = {
#			has_war_support < 0.7	
			zsl_veche_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			production_speed_infrastructure_factor = 0.2
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zsl_veche_small_opposition = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zsl_veche_kyrsy_podgotovki_v_armii = {
		icon = generic_prepare_civil_war
		available = {
#			has_war_support < 0.7	
			zsl_veche_medium_support_trigger = yes
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			training_time_factor = -0.05
			experience_gain_army = 0.03
			mobilization_speed = 0.12
		}
		days_remove = 100
		days_re_enable = 300
		cost = 70
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			zsl_veche_small_opposition = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 500
			}
		}
	}
	zsl_veche_rejim_gotovnosti_dec = {
		icon = GFX_decision_generic_army_support
		available = {
			has_war_support > 0.3
			has_stability > 0.3			
			zsl_veche_medium_support_trigger = yes
			has_completed_focus = zsl_zakon_o_podgotovke_armii
		}
		visible = {
			
		}
		fire_only_once = no
		modifier = {
			training_time_factor = -0.05
			experience_gain_army = 0.03
			production_speed_arms_factory_factor = 0.15
			production_factory_max_efficiency_factor = 0.15
			production_factory_efficiency_gain_factor = 0.32
			equipment_conversion_speed = 0.15
		}
		days_remove = 100
		days_re_enable = 240
		cost = 20
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240			
			random_list = {
				50 = {
					zsl_veche_small_opposition = yes
					add_stability = -0.01
				}
				50 = {
					add_political_power = 10
					add_stability = 0.01
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				add = 10
				has_political_power > 180
			}
		}
	}
}

ZSL_operativnye_shtabu_decis = {	# has_completed_focus = zsl_dss_shtab
	zsl_operativnye_shtab_zkr = {
		icon = generic_prepare_civil_war
		available = {			
			has_government = democratic
			is_in_faction_with = ZKR
			is_faction_leader = yes
		}			
		visible = {
			
		}
		fire_only_once = yes	
		cost = 20
		complete_effect = {
			ZKR = {
				add_ideas = zsl_shtab_operat_plan
				country_event = { id = slavianic.136 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
	zsl_operativnye_shtab_zpv = {
		icon = generic_prepare_civil_war
		available = {			
			has_government = democratic
			is_in_faction_with = ZPV
			is_faction_leader = yes
		}			
		visible = {
			
		}
		fire_only_once = yes	
		cost = 20
		complete_effect = {
			ZPV = {
				add_ideas = zsl_shtab_operat_plan
				country_event = { id = slavianic.136 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
	zsl_operativnye_shtab_zpe = {
		icon = generic_prepare_civil_war
		available = {			
			has_government = democratic
			is_in_faction_with = ZPE
			is_faction_leader = yes
		}			
		visible = {
			
		}
		fire_only_once = yes	
		cost = 20
		complete_effect = {
			ZPE = {
				add_ideas = zsl_shtab_operat_plan
				country_event = { id = slavianic.136 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
	zsl_operativnye_shtab_zor = {
		icon = generic_prepare_civil_war
		available = {			
			has_government = democratic
			is_in_faction_with = ZOR
			is_faction_leader = yes
		}			
		visible = {
			
		}
		fire_only_once = yes	
		cost = 20
		complete_effect = {
			ZOR = {
				add_ideas = zsl_shtab_operat_plan
				country_event = { id = slavianic.136 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
	zsl_operativnye_shtab_zse = {
		icon = generic_prepare_civil_war
		available = {			
			has_government = democratic
			is_in_faction_with = ZSE
			is_faction_leader = yes
		}			
		visible = {
			
		}
		fire_only_once = yes	
		cost = 20
		complete_effect = {
			ZSE = {
				add_ideas = zsl_shtab_operat_plan
				country_event = { id = slavianic.136 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
}

#########################################################################################################
ZSL_mirnoe_vmeshatelstvo_decis = {		# has_completed_focus = zsl_mirnoye_vliyanie
	zsl_fon_razvitia_decl = {			# has_completed_focus = zsl_fond_razvitia
		icon = generic_prepare_civil_war
		targets = {
			ZPV	ZRU ZDU ZGA	ZML
		}
		available = {			
			FROM = {
				is_subject = no
				NOT = { has_government = communism }
			}			
			political_power_daily > 0.3			
		}			
		visible = {
			has_completed_focus = zsl_fond_razvitia
			FROM = {
				exists = yes				
			}	
		}
		target_trigger = {
			FROM = {
				exists = yes
			}
		}
		fire_only_once = no
		cost = 30
		days_remove = 60
		days_re_enable = 60
		modifier = {
			political_power_cost = 0.3
		}
		fixed_random_seed = no	
		complete_effect = {
			random_list = {
				50 = {
					effect_tooltip = {
						country_event = { id = slavianic.171 }
					}					
					hidden_effect = {
						FROM = {
							country_event = { id = slavianic.172 }							
						}
					}
				}
				50 = {
					effect_tooltip = {
						country_event = { id = slavianic.173 }
					}	
					hidden_effect = {
						FROM = {
							ZSL = {
								country_event = { id = slavianic.173 }	
							}	
						}
					}
				}
			}
		}
	}
	zsl_mirnoe_vmeshatelstvo_slav_subj = {
		icon = generic_prepare_civil_war
		targets = {
			ZPV	ZRU ZDU ZGA ZML
		}
		available = {	
			political_power_daily > 0.5	
			FROM = {
				has_stability < 0.62
			}
			FROM = {
				is_subject_of = ZSL
			}				
			FROM = {
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
		}			
		visible = {
			FROM = {
				exists = yes
#				is_subject_of = ZSL				
			}	
		}
		target_trigger = {
			FROM = {
				is_subject_of = ZSL
			}
		}
		fire_only_once = no
		days_remove = 60
		days_re_enable = 60
		modifier = {
			political_power_cost = 0.5
		}
		complete_effect = {
			FROM = { add_timed_idea = { idea = zsl_strana_vliyanie_slavian days = 60 } }
		}
	}
	zsl_mirnoe_agitatsiya_slav_subj = {
		icon = generic_prepare_civil_war
		targets = {
			ZPV	ZRU ZDU ZGA ZML
		}
		available = {				
			FROM = {
				has_stability < 0.62
			}
			FROM = {
				is_subject_of = ZSL
				OR = {
					has_government = fascism
					has_government = communism
				}
			}			
			political_power_daily > 0.5			
		}			
		visible = {
			FROM = {
				exists = yes
#				is_subject_of = ZSL				
			}	
		}		
		target_trigger = {
			FROM = {
				is_subject_of = ZSL
			}
		}
		fire_only_once = no
		days_remove = 60
		days_re_enable = 60
		modifier = {
			political_power_cost = 0.5
		}
		complete_effect = {
			FROM = { add_timed_idea = { idea = zsl_vliyanie_slavian_truepath days = 60 } }
		}
	}
}

ZSL_zfu_zsu_vmesh_decis = {		# has_country_flag = zsl_zfu_zse_vmesh_flag
	zsl_zfu_peredat_orujie = {
		icon = generic_prepare_civil_war
		available = {			
			has_equipment = {
				infantry_equipment > 500
			}
		}			
		visible = {
			
		}
		fire_only_once = no	
		days_re_enable = 60
		cost = 17
		complete_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 500
				target = ZFU
			}
			ZFU = {
				country_event = { id = skandinavia.22 }
			}
		}
		ai_will_do = {
			base = 70			
		}
	}
	zsl_zfu_otpravit_voen_sovetn = {
		icon = generic_prepare_civil_war
		available = {			
			has_army_experience > 10
		}			
		visible = {
			
		}
		fire_only_once = no	
		days_re_enable = 60
		cost = 17
		complete_effect = {
			army_experience = -10
			ZFU = {
				army_experience = 10
				add_war_support = 0.01
				country_event = { id = skandinavia.23 }
			}
		}
		ai_will_do = {
			base = 5			
		}
	}
	zsl_zfu_gumpomosh = {
		icon = generic_prepare_civil_war
		available = {			
			
		}			
		visible = {
			
		}
		fire_only_once = no	
		days_re_enable = 85
		cost = 50
		complete_effect = {			
			ZFU = {
				add_stability = 0.01
				add_timed_idea = {
					idea = zse_zsl_zfu_gumpom
					days = 80
				}
				country_event = { id = skandinavia.24 }
			}
		}
		ai_will_do = {
			base = 50			
		}
	}
	zsl_zfu_precratit_podderjky = {
		icon = generic_prepare_civil_war
		available = {			
			
		}			
		visible = {
			
		}
		fire_only_once = yes		
		cost = 1
		complete_effect = {	
			custom_effect_tooltip = zsl_zfu_precratit_podderjky_tt
			clr_country_flag = zsl_zfu_zse_vmesh_flag
		}
		ai_will_do = {
			base = 0			
		}
	}
}
################################################
################################################
ZSL_patriarh_govorit_decis = {
	ZSL_patriarh_stab_krest = {
		icon = generic_political_discourse
		allowed = {
			original_tag = ZSL
		}
		available = {
			has_stability < 0.85
		}
		days_remove = 120
		days_re_enable = 240
		cost = 80
		fire_only_once = no
		visible = {
			
		}
		modifier = {
			stability_weekly = 0.005		
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240
		}
		ai_will_do = {
			base = 50
			modifier = {
				add = 50
				has_stability < 0.4
			}
		}
	}
	ZSL_patriarh_warsapp_krest = {
		icon = generic_prepare_civil_war
		allowed = {
			original_tag = ZSL
		}
		available = {
			has_war_support < 0.85
		}
		days_remove = 120
		days_re_enable = 240
		cost = 80
		fire_only_once = no
		visible = {
			
		}
		modifier = {
			war_support_weekly  = 0.003		
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240
		}
		ai_will_do = {
			base = 50
			modifier = {
				add = 50
				has_war_support < 0.4
			}
		}
	}
	ZSL_patriarh_priziv_krest = {
		icon = generic_decision
		allowed = {
			original_tag = ZSL
		}
		available = {
			has_war_support > 0.6
			has_stability > 0.6
		}
		days_remove = 150
		days_re_enable = 240
		cost = 90
		fire_only_once = no
		visible = {
			
		}
		modifier = {
			weekly_manpower = 1500	
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_240
		}
		ai_will_do = {
			base = 1			
		}
	}
}

ZSL_manifest_sibir_decis = {	#  has_completed_focus = zsl_manifest_po_sibiri	
	zsl_sibir_manifest_war_dec = {
		icon = generic_prepare_civil_war
		targets = {
			ZUF ZPE ZOR ZSB XIB ZUR ZTY
		}
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}
			has_stability > 0.4
			has_war_support > 0.4
		}			
		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	
				NOT = {
					is_subject_of = ZSL
				}
			}				
		}		
		fire_only_once = yes		
		cost = 35
		days_remove = 10
		complete_effect = {
			FROM = {
				country_event = { id = slavianic.196 }
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZSL
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
			add_ai_strategy = {
				type = conquer
				id = FROM
				value = 200
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 50
				strength_ratio = {
					tag = FROM
					ratio > 0.75
				}
			}			
			modifier = {
				add = 50
				has_army_manpower = { size > 449999 } #ca 40 div
			}
			modifier = {
				add = 20
				has_army_manpower = { size > 849999 } #ca 80 div
			}
			modifier = {
				add = -75
				has_war = yes
			}
			modifier = {
				add = -75
				FROM = {
					is_in_faction = yes
				}
			}
		}
	}
	
	zsl_asia_kres_dec = {
#		icon = onmap_recruit_operative
		icon = onmap_generic_zsl_krest
		available = {
			political_power_daily > 0.3	
			has_stability > 0.5
			has_war = no
		}
		state_target = yes
		target_array = controlled_states
		target_trigger = {
			FROM = {
				is_on_continent = asia
				CONTROLLER = {					
					tag = ZSL					
				}
				NOT = {
					is_core_of = ZSL
				}
				any_neighbor_state = {
					is_core_of = ZSL 
				}
#				is_capital = yes
			}
		}
		visible = {
			has_completed_focus = zsl_krestim_asiu
			FROM = {
				NOT = {
					is_core_of = ZSL
				}
			}
		}
		fire_only_once = no
		cost = 125
		days_remove = 210
#		days_re_enable = 50
		on_map_mode = map_only
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			add_stability = -0.01
		}
		remove_effect = {			
			FROM = {
				add_core_of = ZSL
				set_variable = { religion_var = 4 }
			}
			custom_effect_tooltip = zsl_region_teper_messian_tt
			if = {
				limit = {
					FROM = {
						state_population  > 40000						
					}
				}
				FROM = {
					add_manpower = -39578
					add_to_variable = { global.jertvy_voin = 39578 }
				}
				
			}
			else_if = {
				limit = {
					FROM = {
						state_population  > 8000
						state_population  < 40000
					}
				}
				FROM = {
					add_manpower = -7985
					add_to_variable = { global.jertvy_voin = 7985 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 90
				has_stability > 0.5
			}
		}
	}
	
	zsl_ural_eparhia = {
		icon = generic_nationalism
		available = {			
			controls_state = 398 
			controls_state = 651 
		}			
		visible = {			
		}
		fire_only_once = yes		
		cost = 10
		complete_effect = {	
			add_political_power = 120
			add_stability = 0.05
			add_war_support = 0.03
			set_country_flag = zsl_ural_eparhia_flag
		}
		ai_will_do = {
			base = 100			
		}
	}
	zsl_sibirian_eparhia = {
		icon = generic_nationalism
		available = {			
			controls_state = 40 
			controls_state = 568 
			controls_state = 403			
		}			
		visible = {			
		}
		fire_only_once = yes		
		cost = 10
		complete_effect = {	
			add_political_power = 150
			add_stability = 0.05
			add_war_support = 0.03
			set_country_flag = zsl_sibirian_eparhia_flag
		}
		ai_will_do = {
			base = 100			
		}
	}
	
	
	zsl_asia_dorogi = {
		icon = generic_operation
		available = {			
			political_power_daily > 0.1	
			has_country_flag = zsl_ural_eparhia_flag
			has_country_flag = zsl_sibirian_eparhia_flag
		}			
		visible = {			
		}
		fire_only_once = yes		
		cost = 100
		days_remove = 100
		modifier = {
			political_power_gain = -0.1
		}
		remove_effect = {
			add_stability = 0.02
			random_owned_controlled_state = {
				limit = {
					is_on_continent = asia
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_on_continent = asia
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_on_continent = asia
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_on_continent = asia
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_on_continent = asia
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}
		ai_will_do = {
			base = 100			
		}
	}
}

ZSL_manifest_europa_decis = {
	zsl_europ_manifest_war_dec = {
		icon = generic_prepare_civil_war
		targets = {
			ZPV ZBA ZBJ ZBR ZML TRA ZFU ZKY ZDC ZKQ ZPO ZGA ZRU ZDU ZGF ZGE ZTS ZGH ZVA
		}
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}
			has_stability > 0.4
			has_war_support > 0.4
		}			
		visible = {
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM				
				is_justifying_wargoal_against = FROM
			}
			FROM = {
				exists = yes	
				NOT = {
					is_subject_of = ZSL
				}
			}				
		}		
		fire_only_once = yes		
		cost = 40
		days_remove = 10
		complete_effect = {
			FROM = {
				country_event = { id = slavianic.196 }
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZSL
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
			add_ai_strategy = {
				type = conquer
				id = FROM
				value = 200
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 55
				strength_ratio = {
					tag = FROM
					ratio > 0.77
				}
			}			
			modifier = {
				add = 40
				has_army_manpower = { size > 449999 } #ca 40 div
			}
			modifier = {
				add = 40
				has_army_manpower = { size > 849999 } #ca 80 div
			}
			modifier = {
				add = -85
				has_war = yes
			}
			modifier = {
				add = -85
				FROM = {
					is_in_faction = yes
				}
			}
		}
	}
	zsl_europa_kres_dec = {
		icon = onmap_generic_zsl_krest
		available = {
			political_power_daily > 0.3	
			has_stability > 0.5
			has_war = no
		}
		state_target = yes
		target_array = controlled_states
		target_trigger = {
			FROM = {
				is_on_continent = europe
				CONTROLLER = {					
					tag = ZSL					
				}
				NOT = {
					is_core_of = ZSL
				}
				any_neighbor_state = {
					is_core_of = ZSL 
				}
#				is_capital = yes
			}
		}
		visible = {
			has_completed_focus = zsl_krestim_europu
			FROM = {
				NOT = {
					is_core_of = ZSL
				}
			}
		}
		fire_only_once = no
		cost = 80
		days_remove = 180
#		days_re_enable = 50
		on_map_mode = map_only
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			add_stability = -0.01
			FROM = {
				add_dynamic_modifier = {
					modifier = ar_religiozn_separatism					
					days = 110
				}
			}
		}
		remove_effect = {			
			FROM = {
				add_core_of = ZSL
				set_variable = { religion_var = 4 }
			}
			custom_effect_tooltip = zsl_region_teper_messian_tt
			if = {
				limit = {
					FROM = {
						state_population  > 40000						
					}
				}
				FROM = {
					add_manpower = -39578
					add_to_variable = { global.jertvy_voin = 39578 }
				}
				
			}
			else_if = {
				limit = {
					FROM = {
						state_population  > 8000
						state_population  < 40000
					}
				}
				FROM = {
					add_manpower = -7985
					add_to_variable = { global.jertvy_voin = 7985 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 90
				has_stability > 0.5
			}
		}
	}
}

ZSL_manifest_ierusal_decis = {
	zsl_ierusal_manifest_war_dec = {
		icon = generic_prepare_civil_war
		targets = {
			ZKR ZGO ZAI ZVZ XKO ZAS ZOT ZGS ZKS ZPA ZKZ ZAT
		}
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}
			has_stability > 0.4
			has_war_support > 0.4
		}			
		visible = {
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM				
				is_justifying_wargoal_against = FROM
			}
			FROM = {
				exists = yes	
				NOT = {
					is_subject_of = ZSL
				}
			}				
		}		
		fire_only_once = yes		
		cost = 40
		days_remove = 10
		complete_effect = {
			FROM = {
				country_event = { id = slavianic.196 }
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZSL
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
			add_ai_strategy = {
				type = conquer
				id = FROM
				value = 200
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 50
				strength_ratio = {
					tag = FROM
					ratio > 0.75
				}
			}			
			modifier = {
				add = 50
				has_army_manpower = { size > 449999 } #ca 40 div
			}
			modifier = {
				add = 20
				has_army_manpower = { size > 849999 } #ca 80 div
			}
			modifier = {
				add = -75
				has_war = yes
			}
			modifier = {
				add = -75
				FROM = {
					is_in_faction = yes
				}
			}
		}
	}
	zsl_ierusal_kres_dec = {
		icon = onmap_generic_zsl_krest
		available = {
			political_power_daily > 0.3	
			has_stability > 0.5
			has_war = no
		}
		state_target = yes
		target_array = controlled_states
		target_trigger = {
			FROM = {
				is_on_continent = middle_east
				CONTROLLER = {					
					tag = ZSL					
				}
				NOT = {
					is_core_of = ZSL
				}
				any_neighbor_state = {
					is_core_of = ZSL 
				}
#				is_capital = yes
			}
		}
		visible = {
			has_completed_focus = zsl_krestim_blijny_vostok
			FROM = {
				NOT = {
					is_core_of = ZSL
				}
			}
		}
		fire_only_once = no
		cost = 95
		days_remove = 130
#		days_re_enable = 50
		on_map_mode = map_only
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			add_stability = -0.02
			FROM = {
				add_dynamic_modifier = {
					modifier = ar_religiozn_separatism					
					days = 100
				}
			}
		}
		remove_effect = {			
			FROM = {
				add_core_of = ZSL
				set_variable = { religion_var = 4 }
			}
			custom_effect_tooltip = zsl_region_teper_messian_tt
			if = {
				limit = {
					FROM = {
						state_population  > 40000						
					}
				}
				FROM = {
					add_manpower = -39578
					add_to_variable = { global.jertvy_voin = 39578 }
				}
				
			}
			else_if = {
				limit = {
					FROM = {
						state_population  > 8000
						state_population  < 40000
					}
				}
				FROM = {
					add_manpower = -7985
					add_to_variable = { global.jertvy_voin = 7985 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 90
				has_stability > 0.5
			}
		}
	}
	ZSL_doroga_na_ug_krest = {
		icon = generic_decision
		allowed = {
			original_tag = ZSL
		}
		available = {
			
		}
		days_remove = 365		
		cost = 60
		fire_only_once = no
		visible = {
			
		}
		modifier = {
			production_speed_infrastructure_factor = 0.2
			industry_repair_factor = 0.1
		}		
		ai_will_do = {
			base = 5			
		}
	}

}
#####
ZSL_manifest_africa_decis = {
	zsl_africa_manifest_war_dec = {
		icon = generic_prepare_civil_war
		targets = {
			ZMM XBO
		}
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}
			has_stability > 0.4
			has_war_support > 0.4
		}			
		visible = {
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM				
				is_justifying_wargoal_against = FROM
			}
			FROM = {
				exists = yes	
				NOT = {
					is_subject_of = ZSL
				}
			}				
		}		
		fire_only_once = yes		
		cost = 40
		days_remove = 10
		complete_effect = {
			FROM = {
				country_event = { id = slavianic.196 }
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZSL
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
			add_ai_strategy = {
				type = conquer
				id = FROM
				value = 200
			}
		}
		ai_will_do = {
			base = 2
			modifier = {
				add = 50
				strength_ratio = {
					tag = FROM
					ratio > 0.75
				}
			}			
			modifier = {
				add = 50
				has_army_manpower = { size > 449999 } #ca 40 div
			}
			modifier = {
				add = 20
				has_army_manpower = { size > 849999 } #ca 80 div
			}
			modifier = {
				add = -75
				has_war = yes
			}
			modifier = {
				add = -75
				FROM = {
					is_in_faction = yes
				}
			}
		}
	}
	zsl_africa_kres_dec = {
		icon = onmap_generic_zsl_krest
		available = {
			political_power_daily > 0.3	
			has_stability > 0.5
			has_war = no
		}
		state_target = yes
		target_array = controlled_states	#
		target_trigger = {
			FROM = {
				is_on_continent = africa
				CONTROLLER = {					
					tag = ZSL					
				}
				NOT = {
					is_core_of = ZSL
				}
				any_neighbor_state = {
					is_core_of = ZSL 
				}
#				is_capital = yes
			}
		}
		visible = {			
			FROM = {
				NOT = {
					is_core_of = ZSL
				}
			}
		}
		fire_only_once = no
		cost = 100
		days_remove = 200
#		days_re_enable = 50
		on_map_mode = map_only
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			add_stability = -0.02
			FROM = {
				add_dynamic_modifier = {
					modifier = ar_religiozn_separatism					
					days = 100
				}
			}
		}
		remove_effect = {			
			FROM = {
				add_core_of = ZSL
				set_variable = { religion_var = 4 }
			}
			custom_effect_tooltip = zsl_region_teper_messian_tt
			if = {
				limit = {
					FROM = {
						state_population  > 40000						
					}
				}
				FROM = {
					add_manpower = -39578
					add_to_variable = { global.jertvy_voin = 39578 }
				}
				
			}
			else_if = {
				limit = {
					FROM = {
						state_population  > 8000
						state_population  < 40000
					}
				}
				FROM = {
					add_manpower = -7985
					add_to_variable = { global.jertvy_voin = 7985 }
				}
			}			
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 90
				has_stability > 0.5
			}
		}
	}


}
