XMA_tinvald_protokol_decis = {	# has_idea = sudia_men_nationidea_xma
	xma_zen_dobrovoltsy_tinvald = {
		icon = GFX_xma_zen_dobrovoltsy_tinvald	
		allowed = {
			
		}
		available = {
			has_war = yes
			NOT = {
				has_war_with = ZEN
			}
			ZEN = {
				exists = yes
				has_idea = sudia_men_nationidea_kingdoms
			}
		}		
		cost = 20
		days_remove = 32
		fire_only_once = yes			
		complete_effect = {
			add_manpower = 1000	
		}
		modifier = {
			weekly_manpower = 500
		}
		ai_will_do = {
			factor = 100			
		}
	}
	xma_zsh_dobrovoltsy_tinvald = {
		icon = GFX_xma_zen_dobrovoltsy_tinvald	
		allowed = {
			
		}
		available = {
			has_war = yes
			NOT = {
				has_war_with = ZSH
			}
			ZSH = {
				exists = yes
				has_idea = sudia_men_nationidea_kingdoms
			}
		}		
		cost = 20
		days_remove = 32
		fire_only_once = yes			
		complete_effect = {
			add_manpower = 1000	
		}
		modifier = {
			weekly_manpower = 500
		}
		ai_will_do = {
			factor = 100			
		}
	}
	xma_zws_dobrovoltsy_tinvald = {
		icon = GFX_xma_zen_dobrovoltsy_tinvald	
		allowed = {
			
		}
		available = {
			has_war = yes
			NOT = {
				has_war_with = ZWS
			}
			ZWS = {
				exists = yes
				has_idea = sudia_men_nationidea_kingdoms
			}
		}		
		cost = 20
		days_remove = 32
		fire_only_once = yes			
		complete_effect = {
			add_manpower = 1000	
		}
		modifier = {
			weekly_manpower = 500
		}
		ai_will_do = {
			factor = 100			
		}
	}

}

XMA_radio_atlantika_nation_decis = {	# has_completed_focus = xma_radiostantsiya_man
	xma_nachat_radioveshanie = {
		icon = GFX_decision_eng_propaganda_campaigns	
		allowed = {
			
		}
		available = {
			NOT = {
				has_global_flag = xma_radio_atlantis_flag
			}
		}
		visible = {				
			NOT = {
				has_global_flag = xma_radio_atlantis_flag
			}
		}
		cost = 30
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = xma_nachat_radioveshanie_tt
			set_global_flag = xma_radio_atlantis_flag	
		}
		ai_will_do = {
			factor = 100			
		}
	}
	xma_prekratit_radioveshanie = {
		icon = GFX_decision_generic_break_treaty	
		allowed = {
			
		}
		available = {			
			has_global_flag = xma_radio_atlantis_flag			
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag			
		}
		cost = 5
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = xma_prekratit_radioveshanie_tt
			clr_global_flag = xma_radio_atlantis_flag	
		}
		ai_will_do = {
			factor = 0			
		}
	}
	xma_rashirit_set_pokritiya_radioveshanie = {
		icon = GFX_decision_eng_trade_unions_support	
		allowed = {
			
		}
		available = {			
			has_completed_focus = xma_rashirit_pokritie_radio				
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag			
		}		
		cost = 100
		fire_only_once = yes			
		complete_effect = {
			custom_effect_tooltip = xma_rashirit_set_pokritiya_radioveshanie_tt
			hidden_effect = {
				every_other_country = {
					limit = { 						
						OR = {						
							original_tag = ZSE original_tag = ZBE original_tag = ZGL original_tag = ZFR original_tag = ZHM original_tag = ZLU original_tag = ZJT original_tag = ZAV original_tag = ZKT original_tag = ZAU original_tag = ZBR original_tag = ZKA original_tag = ZLS
						}	
					}				
					set_country_flag = xma_v_zone_radio_flag
				}
				news_event = { hours = 3 id = ar_news.981 }
			}	
		}
		ai_will_do = {
			factor = 100			
		}
	}
	#################
	xma_radio_tech_deyatelnost_dec = {
		icon = GFX_decision_eng_propaganda_campaigns
		targets = {
			ZRL ZEN ZWS ZSH
		}
		available = {				
			FROM = {
				exists = yes				
			}			
			FROM = {
				NOT = {
					has_tech = radio
				}	
			}			
		}			
		visible = {
			has_global_flag = xma_radio_atlantis_flag
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM					
			}
			FROM = {
				exists = yes
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
					has_tech = radio
				}
				has_country_flag = xma_v_zone_radio_flag
			}				
		}		
		fire_only_once = no 		
		cost = 40 
		days_re_enable = 360	
		complete_effect = {	
			custom_effect_tooltip = povtoryaemoe_reshenie_360
			custom_effect_tooltip = xma_radio_tech_deyatelnost_dec_tt
			FROM = {
				country_event = { id = erie.78 }
				custom_effect_tooltip = needs_approval
			}
		}		
		ai_will_do = {
			factor = 80				
		}
	}
	xma_anti_propaganda_na_sosedei_dec = {
		icon = GFX_decision_eng_propaganda_campaigns
		targets = {
			ZRL ZEN ZWS ZSH ZSE ZBE ZGL ZFR ZHM ZLU ZJT ZAV ZKT ZAU ZBR ZKA ZLS
		}
		available = {				
			FROM = {
				exists = yes				
			}	
			FROM = {
				has_stability < 0.64
			}
			FROM = {
				has_tech = radio
			}
			FROM = {
				NOT = {
					has_idea = xma_totarget_myateji
				}
			}
			political_power_daily > 0.3		
		}			
		visible = {
			has_global_flag = xma_radio_atlantis_flag
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM					
			}
			FROM = {
				exists = yes
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
			}				
		}		
		fire_only_once = no		
		cost = 25
		days_remove = 35
		days_re_enable = 50	# povtoryaemoe_reshenie_50   А НАДО ЛИ?
		fixed_random_seed = no
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50	###
		}
		remove_effect = {
#			custom_effect_tooltip = xma_anti_propaganda_na_sosedei_dec_tt_2
			custom_effect_tooltip = xma_anti_propaganda_na_sosedei_dec_tt_main
			effect_tooltip = {
				random_list = {
					65 = {	
						modifier = {
							factor = 1.2
							has_completed_focus = xma_radio_issled
						}
						modifier = {
							factor = 1.2
							has_completed_focus = xma_novey_radioperedatchiki
						}
						custom_effect_tooltip = xma_anti_propaganda_na_sosedei_dec_tt_main_udacha
					}	
					35 = {
						custom_effect_tooltip = xma_anti_propaganda_na_sosedei_dec_tt_main_proval
					}
				}
			}
			hidden_effect = {
				random_list = {
					65 = {	
						modifier = {
							factor = 1.2
							has_completed_focus = xma_radio_issled
						}
						modifier = {
							factor = 1.2
							has_completed_focus = xma_novey_radioperedatchiki
						}						
						country_event = { id = erie.69 }
						
						FROM = {
							if = {
								limit = {
									visokaya_podderjka_vlasti_trigger = yes
								}					
								country_event = { id = erie.64 }							
#								custom_effect_tooltip = xma_anti_propaganda_na_sosedei_dec_tt 
							}				
							else = {
								country_event = { id = erie.68 }
							}
						}
					}
					35 = {
						country_event = { id = erie.70 }	
					}			
				}
			}	
		}
		ai_will_do = {
			factor = 80				
		}
	}
	xma_smeschenie_vlasti_u_sosedei_dec = {
		icon = GFX_decision_eng_propaganda_campaigns
		targets = {
			ZRL ZEN ZWS ZSH ZSE ZBE ZGL ZFR ZHM ZLU ZJT ZAV ZKT ZAU ZBR ZKA ZLS
		}
		available = {
			has_equipment = {
				infantry_equipment > 200
			}
			FROM = {
				exists = yes				
			}	
			FROM = {
				has_stability < 0.43
			}
			FROM = {
				has_tech = radio
			}
			FROM = {				
				has_idea = xma_totarget_myateji				
			}			
		}			
		visible = {
			has_global_flag = xma_radio_atlantis_flag
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM					
			}
			FROM = {
				exists = yes
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
				has_idea = xma_totarget_myateji	
			}				
		}		
		fire_only_once = no		
		cost = 35		
		days_re_enable = 100	# povtoryaemoe_reshenie_100   А НАДО ЛИ?
		fixed_random_seed = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100	###
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200				
			}			
			random_list = {
				63 = {	
					modifier = {
						factor = 1.2
						has_completed_focus = xma_radio_issled
					}
					modifier = {
						factor = 1.2
						has_completed_focus = xma_novey_radioperedatchiki
					}
					FROM = {
						country_event = { id = erie.71 }				
					}
				}
				37 = {					
					country_event = { id = erie.72 }										
				}			
			}
		}
		ai_will_do = {
			factor = 80				
		}
	}
	###
	xma_anti_zsh_propogan_radio = {
		icon = GFX_decision_eng_abdication_crisis	
		allowed = {
			
		}
		available = {
			ZSH = {
				exists = yes	
				has_government = neutrality
				OR = {
					has_country_leader = {			## стоит ли конкретизировать?
						character = ZSH_edward_viii_bruce						
						ruling_only = yes
					}	
					has_country_leader = {			## стоит ли конкретизировать?
						character = ZSH_Edmund_Bruce						
						ruling_only = yes
					}
					has_country_leader = {			## стоит ли конкретизировать?
						character = ZSH_David_2_Bruce						
						ruling_only = yes
					}
				}
			}
			ZSH = {
				has_tech = radio
			}
			political_power_daily > 0.3		
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag
			has_completed_focus = xma_kompromat_na_britt
			#
			NOT = {
				has_war_with = ZSH
				is_in_faction_with = ZSH					
			}
			ZSH = {
				exists = yes	
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
			}	
		}		
		cost = 25
		days_remove = 30
		days_re_enable = 50	# povtoryaemoe_reshenie_100   А НАДО ЛИ?
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50	###
		}
		modifier = {
			political_power_gain = -0.3
		}
		remove_effect = {
			custom_effect_tooltip = zmn_minus_stabka_im_tt
			ZSH = {
				country_event = { id = erie.67 }
			}	
		}
		ai_will_do = {
			factor = 50			
		}
	}
	xma_anti_zws_propogan_radio = {
		icon = GFX_decision_eng_abdication_crisis	
		allowed = {
			
		}
		available = {
			ZWS = {
				exists = yes	
				has_government = neutrality
				has_country_leader = {			## стоит ли конкретизировать?
					character = ZWS_owain_ix_glindur						
					ruling_only = yes
				}	
			}
			ZWS = {
				has_tech = radio
			}
			political_power_daily > 0.3		
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag
			has_completed_focus = xma_kompromat_na_britt
			#
			NOT = {
				has_war_with = ZWS
				is_in_faction_with = ZWS					
			}
			ZWS = {
				exists = yes	
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
			}	
		}		
		cost = 25
		days_remove = 30
		days_re_enable = 50	# povtoryaemoe_reshenie_100   А НАДО ЛИ?
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50	###
		}
		modifier = {
			political_power_gain = -0.3
		}
		remove_effect = {
			custom_effect_tooltip = zmn_minus_stabka_im_tt
			ZWS = {
				country_event = { id = erie.76 }
			}	
		}
		ai_will_do = {
			factor = 40			
		}
	}
	xma_anti_zen_propogan_radio = {
		icon = GFX_decision_eng_abdication_crisis	
		allowed = {
			
		}
		available = {
			ZEN = {
				exists = yes	
				has_government = neutrality
				has_country_leader = {			## стоит ли конкретизировать?
					character = ZEN_victor_iv_lancaster						
					ruling_only = yes
				}	
			}
			ZEN = {
				has_tech = radio
			}
			political_power_daily > 0.3		
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag
			has_completed_focus = xma_kompromat_na_britt
			#
			NOT = {
				has_war_with = ZEN
				is_in_faction_with = ZEN					
			}
			ZEN = {
				exists = yes	
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
			}	
		}		
		cost = 25
		days_remove = 30
		days_re_enable = 50	# povtoryaemoe_reshenie_100   А НАДО ЛИ?
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50	###
		}
		modifier = {
			political_power_gain = -0.3
		}
		remove_effect = {
			custom_effect_tooltip = zmn_minus_stabka_im_tt
			ZEN = {
				country_event = { id = erie.77 }
			}	
		}
		ai_will_do = {
			factor = 40			
		}
	}
	xma_anti_zrl_propogan_radio = {
		icon = GFX_decision_eng_abdication_crisis	
		allowed = {
			
		}
		available = {
			ZRL = {
				exists = yes	
				has_government = neutrality
				custom_trigger_tooltip = {
					tooltip = xma_anti_zrl_propogan_radio_tt				
					ZRL = {
						OR = {
							has_country_leader = {
								character = ZRL_Darin_Gwaid								
								ruling_only = yes
							}
							has_country_leader = {
								character = ZRL_Darin_i_Gwaid		
								ruling_only = yes
							}
						}	
					}
				}	
			}
			ZRL = {
				has_tech = radio
			}
			political_power_daily > 0.3		
		}
		visible = {			
			has_global_flag = xma_radio_atlantis_flag
			has_completed_focus = xma_kompromat_na_britt
			#
			NOT = {
				has_war_with = ZRL
				is_in_faction_with = ZRL					
			}
			ZRL = {
				exists = yes	
				has_civil_war = no
				NOT = {
					is_subject_of = XMA
				}
				has_country_flag = xma_v_zone_radio_flag
			}	
		}		
		cost = 30
		days_remove = 30
		days_re_enable = 50	
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50	
		}
		modifier = {
			political_power_gain = -0.3
		}
		remove_effect = {
			custom_effect_tooltip = zmn_minus_stabka_im_tt
			ZRL = {
				country_event = { id = erie.82 }
			}	
		}
		ai_will_do = {
			factor = 40			
		}
	}
	xma_radio_agitatsiya_naemnikov = {
		icon = GFX_decision_eng_blackshirt_march	
		allowed = {
			
		}
		available = {
			has_war = yes			
		}		
		cost = 20
		days_remove = 75
		days_re_enable = 100
		fire_only_once = no			
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100
		}
		modifier = {
			weekly_manpower = 220
		}
		ai_will_do = {
			factor = 100			
		}
	}
	
}
################################################################################################################
XMA_palata_shesti_decis = {	# has_completed_focus = xma_projekt_po_marionetkam
	xma_umenshenie_avtonomii = {
		icon = eng_propaganda_campaigns
		days_remove = 120
		cost = 20		
		available = {
			FROM = {
				is_subject_of = ROOT
			}		
			political_power_daily > 0.5			
		}
		visible = {			
			FROM = {
				is_subject_of = ROOT				
			}
		}
		target_array = subjects
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
			}
		}
		complete_effect = {
			FROM = { add_timed_idea = { idea = xma_intagr_marionetki days = 120 } }
		}
		modifier = {
			political_power_cost = 0.5
		}
		ai_will_do = {
			factor = 50
		}
	}
	xma_polnaya_integratsiya = {
		icon = GFX_decision_eng_trade_unions_demand
		days_remove = 20
		cost = 30		
		available = {
			FROM = {
				is_subject_of = ROOT				
				compare_autonomy_progress_ratio < 0.5
			}
			FROM = {
				compare_autonomy_state < autonomy_puppet
			}			
			political_power_daily > 0.5			
		}
		visible = {			
			FROM = {
				is_subject_of = ROOT				
			}
		}
		target_array = subjects
		target_trigger = {
			FROM = {
				is_subject_of = ROOT
			}
		}
		remove_effect = {
			FROM = { country_event = { id = erie.66 } }
		}
		modifier = {
			political_power_cost = 0.5
		}
		ai_will_do = {
			factor = 50
		}
	}
}
###############################################################################################################################
XMA_izluchenie_cat_decis = {
	xma_izluchenie_na_stabku = {
		icon = GFX_decision_generic_nationalism
		available = {
			has_stability < 1.0	
			political_power_daily > 0.5	
			has_completed_focus = xma_izluchenie_na_grazdan_patriotizm	
		}
		visible = {
			always = yes
		}
		fire_only_once = no
		modifier = {
			stability_weekly = 0.002
			political_power_cost = 0.5
			production_factory_max_efficiency_factor = 0.1
			industrial_capacity_factory = 0.1
			industrial_capacity_dockyard = 0.2
		}
		days_remove = 180
		days_re_enable = 100
		cost = 90
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 25
				has_stability < 0.85
			}			
		}
	}
	xma_izluchenie_na_warsapp = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_war_support < 1.0	
			political_power_daily > 0.5	
			has_completed_focus = xma_voennoye_rvenie	
		}
		visible = {
			always = yes
		}
		fire_only_once = no
		modifier = {
			war_support_weekly = 0.002
			political_power_cost = 0.5
			mobilization_speed = 0.18
			surrender_limit = 0.2
		}
		days_remove = 180
		days_re_enable = 100
		cost = 90
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 25
				has_war_support < 0.85
			}	
			modifier = {
				add = 25
				has_war = yes
			}	
		}
	}
	xma_izluchenie_na_territorii = {
		icon = GFX_decision_eng_trade_unions_demand
		available = {				
			political_power_daily > 0.5	
			has_completed_focus = xma_voennoye_rvenie	
		}
		visible = {
			always = yes
		}
		fire_only_once = no
		modifier = {			
			political_power_cost = 0.5	
			resistance_target = -0.1
			resistance_damage_to_garrison = -0.25 
			foreign_subversive_activites = -0.3	
		}
		days_remove = 180
		days_re_enable = 100
		cost = 90
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_100
		}
		ai_will_do = {
			base = 20				
			modifier = {
				add = 30
				has_war = yes
			}	
		}
	}

}

#############################################################
XMA_britt_tinvald_cat_decis = {		## has_completed_focus = xma_britansky_tinvald
	xma_usranenie_vliyania_v_133 = {
		icon = generic_political_discourse
		available = {
			controls_state = 133
			political_power_daily > 0.3	
		}
		visible = {			
			133 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}		
		highlight_states = {
			state = 133
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			133 = {
				add_core_of = XMA
#				remove_core_of = ZSH
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_usranenie_vliyania_v_131 = {
		icon = generic_political_discourse
		available = {
			controls_state = 131 
			political_power_daily > 0.3		
		}
		visible = {			
			131 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}		
		highlight_states = {
			state = 131
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			131 = {
				add_core_of = XMA
#				remove_core_of = ZSH
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_usranenie_vliyania_v_130 = {
		icon = generic_political_discourse
		available = {
			controls_state = 130 
			political_power_daily > 0.3		
		}	
		visible = {			
			130 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}
		highlight_states = {
			state = 130
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			130 = {
				add_core_of = XMA
#				remove_core_of = ZSH
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_usranenie_vliyania_v_132 = {
		icon = generic_political_discourse
		available = {
			controls_state = 132 	
			political_power_daily > 0.3		
		}	
		visible = {			
			132 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}	
		highlight_states = {
			state = 132
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			132 = {
				add_core_of = XMA
#				remove_core_of = ZWS
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_usranenie_vliyania_v_1074 = {
		icon = generic_political_discourse
		available = {
			controls_state = 1074 	
			political_power_daily > 0.3		
		}
		visible = {			
			1074 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}		
		highlight_states = {
			state = 1074
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			1074 = {
				add_core_of = XMA
#				remove_core_of = ZWS
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_usranenie_vliyania_v_119 = {
		icon = generic_political_discourse
		available = {
			controls_state = 119 	
			political_power_daily > 0.3		
		}	
		visible = {			
			119 = {
				NOT = {
					is_core_of = XMA
				}
			}
		}	
		highlight_states = {
			state = 119
		}
		fire_only_once = yes			
		cost = 50
		days_remove = 70
		modifier = {			
			political_power_cost = 0.3				
		}
		remove_effect = {
			119 = {
				add_core_of = XMA
#				remove_core_of = ZRL
				if = {
					limit = {						
						infrastructure < 10						
					}					
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}					
				}
				if = {
					limit = {						
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}					
					}					
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}					
				}
			}			
			add_stability = 0.01
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
}


XMA_region_federat_cat_decis = {	# has_completed_focus = xma_regionalnoye_pravikelstvo
	xma_regional_federat_form = {
		icon = GFX_decision_eng_trade_unions_support
		available = {
			custom_trigger_tooltip = {
				tooltip = xma_controlled_states_26_tt
				num_of_controlled_states > 30
			}	
		}		
		fire_only_once = yes			
		cost = 50		
		complete_effect = {
			set_global_flag = xma_regional_federat_formed_flag
			custom_effect_tooltip = xma_regional_federat_form_tt
			set_cosmetic_tag = XMA_REGIONAL
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_zemnaya_federat_form = {
		icon = GFX_decision_generic_decision
		available = {
			has_global_flag = xma_regional_federat_formed_flag
			all_state = {
				is_controlled_by = XMA
			}
			has_completed_focus = xma_objedinenie_chelovechestva
		}		
		fire_only_once = yes			
		cost = 5		
		complete_effect = {
			set_cosmetic_tag = XMA_ALLWRLD
			add_stability = -0.8
			add_war_support = -0.8
			add_political_power = 800
			every_state = {
				limit = {
					NOT = {
						is_core_of = XMA
					}	
				}
				add_core_of = XMA				
			}
			country_event = { id = erie.83 }
#			hidden_effect = {
#				country_event = { id = erie.83 days = 2 random = 24 }
#			}
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_nationaliz_zemly = {
		icon = GFX_decision_eng_trade_unions_support
		available = {
			political_power_daily > 0.3	
			has_stability > 0.5
			has_war = no
		}
		state_target = yes
		target_array = controlled_states
		target_trigger = {
			FROM = {				
				CONTROLLER = {					
					tag = XMA					
				}
				NOT = {
					is_core_of = XMA
				}
				OR = {
					any_neighbor_state = {
						is_core_of = XMA 
					}
					is_coastal = yes
				}			
			}
		}
		visible = {
#			has_global_flag = xma_regional_federat_formed_flag	
			FROM = {
				NOT = {
					is_core_of = XMA
				}
			}
		}
		fire_only_once = no
#		cost = 100
		cost = mtth:zma_cost_of_nationalozation_of_world
		days_remove = 110
		on_map_mode = map_only
		modifier = {
			political_power_gain = -0.3
		}
		complete_effect = {
			add_stability = -0.01
			custom_effect_tooltip = xma_nationaliz_zemly_tt
		}
		remove_effect = {			
			FROM = {
				add_core_of = XMA
			}
			if = {
				limit = {
					FROM = {
						state_population  > 40000						
					}
				}
				FROM = {
					add_manpower = -39578
					add_to_variable = { global.jertvy_voin = 49751 }
				}				
			}
			else_if = {
				limit = {
					FROM = {
						state_population  > 8000
						state_population  < 40000
					}
				}
				FROM = {
					add_manpower = -7985
					add_to_variable = { global.jertvy_voin = 8741 }
				}
			}
		}
		ai_will_do = {
			base = 1
			modifier = {
				add = 120
				has_stability > 0.4
			}
		}
	}
}

XMA_tenevye_shemy_cat_decis = {		#has_completed_focus = xma_palata_shesti_temevye_sxemy
	xma_tenevye_grajd_fabriki = {
		icon = GFX_decision_generic_construction
		available = {
			
		}		
		fire_only_once = yes			
		cost = 40		
		complete_effect = {
			add_offsite_building = { type = industrial_complex level = 1 }
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_tenevye_voenny_fabriki = {
		icon = GFX_decision_generic_industry
		available = {
			any_other_country = {
				has_government = fascism
				capital_scope = { is_on_continent = europe }
			}
		}		
		fire_only_once = yes			
		cost = 40		
		complete_effect = {
			add_offsite_building = { type = arms_factory level = 1 }
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_tenevye_voenny_fabriki_2 = {
		icon = GFX_decision_generic_industry
		available = {
			any_other_country = {
				has_government = fascism
				capital_scope = { is_on_continent = asia }
			}
		}		
		fire_only_once = yes			
		cost = 45		
		complete_effect = {
			add_offsite_building = { type = arms_factory level = 1 }
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_tenevye_verfi_depl = {
		icon = GFX_decision_generic_naval
		available = {
			
		}		
		fire_only_once = yes			
		cost = 45		
		complete_effect = {
			add_offsite_building = { type = dockyard level = 1 }
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_razrabotat_tenevye_shemy_postavki_orujiya = {
		icon = GFX_decision_hol_draw_up_staff_plans
		available = {
			
		}		
		fire_only_once = yes			
		cost = 75		
		complete_effect = {
			set_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 50
				is_historical_focus_on = yes
			}
		}
	}
	xma_zakupki_pekhotnogo_orujiua = {
		icon = GFX_decision_generic_civil_support
		available = {
			has_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}		
		fire_only_once = no		
		days_re_enable = 50
		cost = 100
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50
			custom_effect_tooltip = xma_zakupki_pekhotnogo_orujiua_tt  			
			hidden_effect = {
				random_list = {
					14 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 52
							producer = ZMN
						}
					}
					14 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 84
							producer = ZSL
						}
					}
					20 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 116
							producer = ZRI
						}
					}
					18 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 148
							producer = ZBR
						}
					}
					14 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 180
							producer = ZKR
						}
					}
					14 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 212
							producer = ZPA
						}
					}
					14 = {
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 249
							producer = ZJA
						}
					}
				}	
			}
		}
		ai_will_do = {
			base = 0				
			modifier = {
				add = 50
				has_war = yes
			}
			modifier = {
				add = 50
				has_equipment = {
					infantry_equipment < 200
				}	
			}
		}
	}
	xma_zakupki_konvoi = {
		icon = GFX_decision_generic_decision
		available = {
			has_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}		
		fire_only_once = no		
		days_re_enable = 50
		cost = 50
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50
			custom_effect_tooltip = xma_zakupki_konvoi_tt  
			
			hidden_effect = {
				random_list = {
					25 = {
						add_equipment_to_stockpile = {
							type = convoy
							amount = 5
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = convoy
							amount = 10
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = convoy
							amount = 15
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = convoy
							amount = 20
						}
					}					
				}	
			}
		}
		ai_will_do = {
			base = 0				
			modifier = {
				add = 60
				has_war = yes
			}
			modifier = {
				add = 50
				has_equipment = {
					convoy < 200
				}	
			}
		}
	}
	xma_zakupki_transport_avia = {
		icon = GFX_decision_generic_air
		available = {
			has_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}		
		fire_only_once = no		
		days_re_enable = 50
		cost = 75
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50
			custom_effect_tooltip = xma_zakupki_transport_avia_tt  			
			hidden_effect = {
				random_list = {
					25 = {
						add_equipment_to_stockpile = {
							type = transport_plane_equipment
							amount = 5
							producer = ZJA
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = transport_plane_equipment
							amount = 10
							producer = ZMN
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = transport_plane_equipment
							amount = 15
							producer = ZRI
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = transport_plane_equipment
							amount = 20
							producer = ZPA
						}
					}					
				}	
			}
		}
		ai_will_do = {
			base = 0				
			modifier = {
				add = 2
				has_war = yes
			}	
		}
	}
	xma_zakupki_snaryagi_equip = {
		icon = GFX_decision_eng_support_imperialist_coup
		available = {
			has_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}		
		fire_only_once = no		
		days_re_enable = 50
		cost = 75
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50
			custom_effect_tooltip = xma_zakupki_snaryagi_equip_tt  			
			hidden_effect = {
				random_list = {
					25 = {
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 15
							producer = ZJA
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 25
							producer = ZMN
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 38
							producer = ZRI
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = support_equipment
							amount = 50
							producer = ZPA
						}
					}					
				}	
			}
		}
		ai_will_do = {
			base = 0				
			modifier = {
				add = 60
				has_war = yes
			}
			modifier = {
				add = 50
				has_equipment = {
					support_equipment < 200
				}	
			}
		}
	}
	xma_zakupki_avto_equip = {
		icon = GFX_decision_eng_support_imperialist_coup
		available = {
			has_country_flag = xma_razrabotat_tenevye_shemy_postavki_orujiya_flag
		}		
		fire_only_once = no		
		days_re_enable = 50
		cost = 75
		fixed_random_seed = no
		complete_effect = {
			custom_effect_tooltip = povtoryaemoe_reshenie_50
			custom_effect_tooltip = xma_zakupki_avto_equip_tt  			
			hidden_effect = {
				random_list = {
					25 = {
						add_equipment_to_stockpile = {
							type = motorized_equipment
							amount = 10
							producer = ZJA
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = motorized_equipment
							amount = 20
							producer = ZMN
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = motorized_equipment
							amount = 30
							producer = ZRI
						}
					}
					25 = {
						add_equipment_to_stockpile = {
							type = motorized_equipment
							amount = 40
							producer = ZPA
						}
					}					
				}	
			}
		}
		ai_will_do = {
			base = 0				
			modifier = {
				add = 10
				has_war = yes
			}
			modifier = {
				add = 50
				has_equipment = {
					motorized_equipment < 50
				}	
			}
		}
	}

}

XMA_komissiya_bezopasnosti_cat_decis = {	# has_completed_focus = xma_palata_shesti_vihodit_iz_teni
	xma_osnovat_agenstvo_bezopasnosti = {
		icon = GFX_decision_generic_prepare_civil_war	
		allowed = {
			
		}
		available = {
			has_intelligence_agency = no
		}	
		visible = {			
			has_intelligence_agency = no
		}
		cost = 50		
		fire_only_once = yes			
		complete_effect = {
			create_intelligence_agency = yes
		}		
		ai_will_do = {
			factor = 100			
		}
	}

}



