ZAR_oboron_initiativa_cat = {	# решение на приглашение суннитов  has_completed_focus = zar_araviiskaya_oboronnaya_initsiativa
	zar_priglasit_druga_sunnita_dec = {	
		icon = GFX_decision_generic_operation	
		targets = {
			ZOT ZME ZJB ZDR ZSV ZGU ZZP ZZK ZWB ZDE ZBN ZND ZKD ZKY ZSB ZOR ZUF ZHB ZKK ZDG ZSG ZMD ZJL ZJF ZMG ZCH ZAA ZPS ZAF ZKZ 
		}
		available = {			
			FROM = {							
				NOT = {
					has_war_with = ROOT					
					is_subject = no
					has_government = communism
				}
			}
		}
		visible = {		
			FROM = {
				exists = yes
				is_in_faction = no
			}
		}		
		fire_only_once = no		
		days_re_enable = 150
		cost = 25			
		complete_effect = {		
			custom_effect_tooltip = povtoryaemoe_reshenie_150
			FROM = {
				country_event = { id = arabia.14 }
			}
		}
		ai_will_do = {
			factor = 2				
			modifier = {
				factor = 1.6
				has_war = yes
			}
		}
	}

}

ZAR_strajy_war_cat = {
	zar_strajy_declare_warrrr = {
		icon = generic_prepare_civil_war
		targets = {
			ZGS ZAS	ZMM ZET ZSK		# дописать! хавила ещё
		}
		available = {	
			is_neighbor_of = FROM
			FROM = {
				exists = yes				
			}	
			NOT = {
				has_wargoal_against = FROM	
			}			
		}			
		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 = ZAR
				}
			}				
		}		
		fire_only_once = yes		
		cost = 35
		days_remove = 10
		complete_effect = {
			FROM = {
				country_event = { id = arabia.91 }
			}
		}
		remove_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ZAR
			}
			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
				}
			}
		}
	}

}

ZAR_arabizatsiya_cat = {
	zar_zie_293_arabizatsiya_dec = {	# Йемен
		icon = GFX_decision_generic_civil_support			
		available = {			
			NOT = {
				country_exists = ZIE
			}	
			controls_state = 293			
		}
		visible = {	
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 293
			}
		}	
		fire_only_once = yes		
		cost = 25
		days_remove = 50			
		remove_effect = {
			# рандом. Либо то либо сё. Указать что второй попытки не будет	
			custom_effect_tooltip = zar_arabizatsiya_cat_tt
			random_list = {
				50 = {
					modifier = {
						factor = 1.2
						has_stability > 0.5
					}
					modifier = {
						factor = 1.2
						has_stability > 0.7
					}
					modifier = {
						factor = 1.2
						has_stability > 0.82
					}
					293 = {
						remove_core_of = ZIE
						save_event_target_as = ZAR_arabizatsiya_cat_state						
					}	
					country_event = { id = arabia.94 }
					if = {
						limit = {
							293 = {
								free_building_slots = {
									building = industrial_complex
									size > 1
									include_locked = yes
								}
							}
						}
						293 = {
							add_extra_state_shared_building_slots = 2
						}
					}	
					if = {
						limit = {
							293 = {
								free_building_slots = {
									building = infrastructure
									size > 0
								}
							}
						}
						293 = {
							add_building_construction = {
								type = infrastructure
								level = 1
								instant_build = yes
							}
						}
					}
				}	
				50 ={	# Провал
					modifier = {
						factor = 1.2
						has_stability < 0.45
					}
					hidden_effect = {
						293 = {						
							save_event_target_as = ZAR_arabizatsiya_cat_state						
						}	
					}	
					country_event = { id = arabia.95 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 80
				has_stability > 0.65
			}
		}	
	}
	zar_zie_294_arabizatsiya_dec = {	# Йемен
		icon = GFX_decision_generic_civil_support			
		available = {			
			NOT = {
				country_exists = ZIE
			}	
			controls_state = 294			
		}
		visible = {	
		
		}
		highlight_states = {
			highlight_state_targets = {
				state = 294
			}	
		}
		fire_only_once = yes		
		cost = 25
		days_remove = 50			
		remove_effect = {
			# рандом. Либо то либо сё. Указать что второй попытки не будет	
			custom_effect_tooltip = zar_arabizatsiya_cat_tt
			random_list = {
				50 = {
					modifier = {
						factor = 1.2
						has_stability > 0.5
					}
					modifier = {
						factor = 1.2
						has_stability > 0.7
					}
					modifier = {
						factor = 1.2
						has_stability > 0.82
					}
					294 = {
						remove_core_of = ZIE
						save_event_target_as = ZAR_arabizatsiya_cat_state						
					}	
					country_event = { id = arabia.94 }
					if = {
						limit = {
							294 = {
								free_building_slots = {
									building = industrial_complex
									size > 1
									include_locked = yes
								}
							}
						}
						294 = {
							add_extra_state_shared_building_slots = 2
						}
					}	
					if = {
						limit = {
							294 = {
								free_building_slots = {
									building = infrastructure
									size > 0
								}
							}
						}
						294 = {
							add_building_construction = {
								type = infrastructure
								level = 1
								instant_build = yes
							}
						}
					}
				}	
				50 ={	# Провал
					modifier = {
						factor = 1.2
						has_stability < 0.45
					}
					hidden_effect = {
						294 = {						
							save_event_target_as = ZAR_arabizatsiya_cat_state						
						}	
					}	
					country_event = { id = arabia.95 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 80
				has_stability > 0.65
			}
		}	
	}
	zar_zie_659_arabizatsiya_dec = {	# Йемен
		icon = GFX_decision_generic_civil_support			
		available = {			
			NOT = {
				country_exists = ZIE
			}	
			controls_state = 659			
		}
		visible = {	
		
		}
		highlight_states = { 
			highlight_state_targets = {
				state = 659
			}
		}	
		fire_only_once = yes		
		cost = 25
		days_remove = 50			
		remove_effect = {
			# рандом. Либо то либо сё. Указать что второй попытки не будет	
			custom_effect_tooltip = zar_arabizatsiya_cat_tt
			random_list = {
				50 = {
					modifier = {
						factor = 1.2
						has_stability > 0.5
					}
					modifier = {
						factor = 1.2
						has_stability > 0.7
					}
					modifier = {
						factor = 1.2
						has_stability > 0.82
					}
					659 = {
						remove_core_of = ZIE
						save_event_target_as = ZAR_arabizatsiya_cat_state						
					}	
					country_event = { id = arabia.94 }
					if = {
						limit = {
							659 = {
								free_building_slots = {
									building = industrial_complex
									size > 1
									include_locked = yes
								}
							}
						}
						659 = {
							add_extra_state_shared_building_slots = 2
						}
					}	
					if = {
						limit = {
							659 = {
								free_building_slots = {
									building = infrastructure
									size > 0
								}
							}
						}
						659 = {
							add_building_construction = {
								type = infrastructure
								level = 1
								instant_build = yes
							}
						}
					}
				}	
				50 ={	# Провал
					modifier = {
						factor = 1.2
						has_stability < 0.45
					}
					hidden_effect = {
						659 = {						
							save_event_target_as = ZAR_arabizatsiya_cat_state						
						}	
					}	
					country_event = { id = arabia.95 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 80
				has_stability > 0.65
			}
		}	
	}
	zar_zie_678_arabizatsiya_dec = {	# Йемен
		icon = GFX_decision_generic_civil_support			
		available = {			
			NOT = {
				country_exists = ZIE
			}	
			controls_state = 678			
		}
		visible = {	
		
		}
		highlight_states = { 
			highlight_state_targets = {
				state = 678
			}
		}	
		fire_only_once = yes		
		cost = 25
		days_remove = 50			
		remove_effect = {
			# рандом. Либо то либо сё. Указать что второй попытки не будет	
			custom_effect_tooltip = zar_arabizatsiya_cat_tt
			random_list = {
				50 = {
					modifier = {
						factor = 1.2
						has_stability > 0.5
					}
					modifier = {
						factor = 1.2
						has_stability > 0.7
					}
					modifier = {
						factor = 1.2
						has_stability > 0.82
					}
					678 = {
						remove_core_of = ZIE
						save_event_target_as = ZAR_arabizatsiya_cat_state						
					}	
					country_event = { id = arabia.94 }
					if = {
						limit = {
							678 = {
								free_building_slots = {
									building = industrial_complex
									size > 1
									include_locked = yes
								}
							}
						}
						678 = {
							add_extra_state_shared_building_slots = 2
						}
					}	
					if = {
						limit = {
							678 = {
								free_building_slots = {
									building = infrastructure
									size > 0
								}
							}
						}
						678 = {
							add_building_construction = {
								type = infrastructure
								level = 1
								instant_build = yes
							}
						}
					}
				}	
				50 ={	# Провал
					modifier = {
						factor = 1.2
						has_stability < 0.45
					}
					hidden_effect = {
						678 = {						
							save_event_target_as = ZAR_arabizatsiya_cat_state						
						}	
					}	
					country_event = { id = arabia.95 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 80
				has_stability > 0.65
			}
		}	
	}
	
	

}