
ZUF_nation_decis = {
	ZUF_nationaliz_zemli_alash = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no
			controls_state = 587 
			controls_state = 585 
			controls_state = 405 
			controls_state = 586 
			controls_state = 732 
			controls_state = 742 
		}
		visible = {			
			has_completed_focus = zuf_integratia_v_federatsiu	
		}
		fire_only_once = yes
		cost = 100	
		complete_effect = {
			add_stability = -0.1
			set_country_flag = zuf_national_zemli_alash_flag
			587 = { add_core_of = ROOT }
			585 = { add_core_of = ROOT }
			405 = { add_core_of = ROOT }
			586 = { add_core_of = ROOT }
			732 = { add_core_of = ROOT }
			742 = { add_core_of = ROOT }				
		}
		ai_will_do = {
			factor = 40			
		}
	}
	ZUF_perenos_stolitsy = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no
			owns_state = 405 
		}
		visible = {			
			 has_country_flag = zuf_national_zemli_alash_flag
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			add_stability = 0.05
			set_capital = { state = 405	}			
		}
		ai_will_do = {
			factor = 0			
		}
	}
	ZUF_gumpomosh_bulgarii_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no
			country_exists = ZOR
		}
		days_remove = 100
		visible = {	
			OR = {
				has_government = democratic
				has_government = communism				
			}
			has_global_flag = zfu_kagan_dies
			country_exists = ZOR			
			ZOR = {
				is_subject = no
				has_war = no
				NOT = {
					controls_state = 252
					controls_state = 256
					controls_state = 250
					controls_state = 255
					controls_state = 257
					controls_state = 239
					controls_state = 265
					controls_state = 237
				}
			} 
		}
		modifier = {
			consumer_goods_factor = 0.07
			political_power_factor = -0.1		
		}
		fire_only_once = yes
		cost = 120	
		remove_effect = {
			ZOR = {
				country_event = {
					id = ufa.48
				}
			}
			hidden_effect = {
				set_country_flag = ZUF_gumpomosh_bulgarii_pribyla
			}	
		}
		ai_will_do = {
			factor = 20			
		}
	}
	ZUF_programma_pereseleniya = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no
			country_exists = ZOR
		}
		visible = {	
			has_completed_focus = zuf_liberalnoye_ruslo	
			has_country_flag = ZUF_gumpomosh_bulgarii_pribyla
			country_exists = ZOR			
			ZOR = {
				is_subject = no
				has_war = no
				NOT = {
					controls_state = 252
					controls_state = 256
					controls_state = 250
					controls_state = 255
					controls_state = 257
					controls_state = 239
					controls_state = 265
					controls_state = 237
				}
				 has_country_flag = gumponosh_ot_zuf_pribyla
			} 
		}
		fire_only_once = yes
		cost = 120	
		remove_effect = {
			ZOR = {
				country_event = {
					id = ufa.72
				}
			}			
		}
		ai_will_do = {
			factor = 20			
		}
	}
	ZUF_gumpomosh_bulgarii_from_sultansha_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no
			country_exists = ZOR
		}
		days_remove = 100
		visible = {					
			has_completed_focus = zuf_persidsky_leader			
			country_exists = ZOR			
			ZOR = {
				is_subject = no
				has_war = no
				has_government = fascism
				has_stability < 0.4
				NOT = {
					controls_state = 252
					controls_state = 256
					controls_state = 250
					controls_state = 255
					controls_state = 257
					controls_state = 239
					controls_state = 265
					controls_state = 237
				}
			} 
		}
		modifier = {
			consumer_goods_factor = 0.05
			political_power_factor = -0.1		
		}
		fire_only_once = yes
		cost = 100	
		remove_effect = {
			ZOR = {
				country_event = {
					id = ufa.75
				}
			}			
		}
		ai_will_do = {
			factor = 20			
		}
	}
}

ZUF_propersian_decis = {
	ZUF_vosstanie_ural_581_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			581 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 581
				}
			}
		}
		highlight_states = {		
			state = 581						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 581
				set_cosmetic_tag = ZPE_PERREBEL					
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_581_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 5			
		}
	}
	ZUF_vosstanie_ural_398_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			398 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 398
				}
			}
		}
		highlight_states = {		
			state = 398						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 398
				set_cosmetic_tag = ZPE_PERREBEL					
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_398_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 20			
		}
	}
	ZUF_vosstanie_ural_400_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			400 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 400
				}
			}
		}
		highlight_states = {		
			state = 400						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 400
				set_cosmetic_tag = ZPE_PERREBEL					
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_400_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 5			
		}
	}
	ZUF_vosstanie_ural_399_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			399 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 399
				}
			}
		}
		highlight_states = {		
			state = 399						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 399
				set_cosmetic_tag = ZPE_PERREBEL	
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_399_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 5			
		}
	}
	ZUF_vosstanie_ural_397_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			397 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 397
				}
			}
		}
		highlight_states = {		
			state = 397						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 397
				set_cosmetic_tag = ZPE_PERREBEL	
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_397_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 5			
		}
	}
	ZUF_vosstanie_ural_784_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			784 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 784
				}
			}
		}
		highlight_states = {		
			state = 784						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 784
				set_cosmetic_tag = ZPE_PERREBEL	
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_784_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 2			
		}
	}
	ZUF_vosstanie_ural_262_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			262 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 262
				}
			}
		}
		highlight_states = {		
			state = 262						
		}	
		visible = {					
			NOT = {
				country_exists = ZPE
				has_global_flag = zuf_sponsored_zpe_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zpe_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZPE = {
				transfer_state = 262
				set_cosmetic_tag = ZPE_PERREBEL	
				hidden_effect = {
					kill_country_leader = yes
					load_oob = "ZPE_262_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZPE
					}
					add_claim_by = ZPE
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 5			
		}
	}
	ZUF_send_weap_to_zpe_rebel = {
		icon = generic_oppression
		allowed = {
			original_tag = ZUF			
		}
		available = {			
			is_subject = no			
			has_war = no			
			ZPE = {
				exists = yes
				has_war_with = ZSL
			}
			has_equipment = {
				infantry_equipment > 350
			}
		}			
		visible = {	
			has_global_flag = zuf_sponsored_zpe_rebels_flag			
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			army_experience = 5
			send_equipment = {
				equipment = infantry_equipment
				amount = 350
				target = ZPE
			}
			ZPE = {
				army_experience = 5
				hidden_effect = {
					add_manpower = 127412
				}
			}
		}
		ai_will_do = {
			factor = 50			
		}
	}
	ZUF_send_weap_to_zbj_rebel = {
		icon = generic_oppression
		allowed = {
			original_tag = ZUF			
		}
		available = {			
			is_subject = no			
			has_war = no			
			ZBJ = {
				exists = yes
				has_war_with = ZSL
			}
			has_equipment = {
				infantry_equipment > 350
			}
		}			
		visible = {	
			has_global_flag = zuf_sponsored_zbj_rebels_flag			
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			army_experience = 5
			send_equipment = {
				equipment = infantry_equipment
				amount = 350
				target = ZBJ
			}
			ZBJ = {
				army_experience = 5
				hidden_effect = {
					add_manpower = 175412
				}
			}
		}
		ai_will_do = {
			factor = 30			
		}
	}
	ZUF_vosstanie_biarmia_784_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			784 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 784
				}
			}
		}
		highlight_states = {		
			state = 784						
		}	
		visible = {					
			NOT = {
				country_exists = ZBJ
				has_global_flag = zuf_sponsored_zbj_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zbj_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZBJ = {
				transfer_state = 784
				hidden_effect = {
					load_oob = "ZPE_784_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZBJ
					}
					add_claim_by = ZBJ
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
#				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 2			
		}
	}
	ZUF_vosstanie_biarmia_262_decis = {
		icon = generic_operation
		allowed = {
			original_tag = ZUF
		}
		available = {			
			is_subject = no			
			has_war = no			
			262 = {
				is_controlled_by = ZSL
			}
			ZSL = {
				divisions_in_state = {				
					size < 1
					state = 262
				}
			}
		}
		highlight_states = {		
			state = 262						
		}	
		visible = {					
			NOT = {
				country_exists = ZBJ
				has_global_flag = zuf_sponsored_zbj_rebels_flag
			}
		}
		fire_only_once = yes
		cost = 20	
		complete_effect = {
			set_global_flag = zuf_sponsored_zbj_rebels_flag
			custom_effect_tooltip = ZUF_vosstanie_ural_581_decis_tt	
			ZBJ = {
				transfer_state = 262
				hidden_effect = {
					load_oob = "ZPE_784_rebel"
					add_manpower = 174842	
				}
				every_state = {
					limit = {
						is_core_of = ZBJ
					}
					add_claim_by = ZBJ
				}
				declare_war_on = {
					type = puppet_wargoal_focus
					target = ZSL
				}
#				news_event = { hours = 3 id = ar_news.714 }
			}
		}
		ai_will_do = {
			factor = 10			
		}
	}
}