zsh_korol_direct = {
	zsh_warsupp_plus = {
		icon = generic_scorched_earth
		available = {
			has_war_support < 1.0
			has_stability > 0.3
		}
		visible = {
			always = yes
		}
		fire_only_once = no
		modifier = {
			war_support_weekly = 0.001
			stability_weekly = -0.001
			political_power_factor = -0.25
		}
		days_remove = 180
		cost = 100
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_war_support < 0.6
			}
		}
	}

	zsh_peredat_zavod = {		
		icon = generic_industry		
		available = {
			has_stability < 0.5			
			any_owned_state  = {
				industrial_complex > 0
			}
		}		
		cost = 30		
		days_re_enable = 200
		fire_only_once = yes
		visible = {
			is_subject = no			
		}
		complete_effect = {
			add_stability = 0.05
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 1								
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
		}
		ai_will_do = {
			factor = 0		
		}
	}
	
	zsh_edmund_plus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zsh_fract_power < 5 }			
		}
		visible = {
			has_country_flag = zsh_korolu_poplohelo	
			NOT = {
				has_country_flag = zsh_korol_za_davida
			}	
		}
		cost = 10
		fire_only_once = yes
		ai_will_do = {
			factor = 0			
		}		
		complete_effect = {
			custom_effect_tooltip = zsh_edmund_plus_tt
			set_country_flag = zsh_korol_za_ednumda
			add_to_variable = {
				var = zsh_fract_power
				value = 1
			}
			clamp_variable = {
				var = zsh_fract_power
				min = 0
				max = 5
			}
		}
	}	
	zsh_david_plus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zsh_fract_power > 0 }			
		}
		visible = {
			has_country_flag = zsh_korolu_poplohelo	
			NOT = {
				has_country_flag = zsh_korol_za_ednumda
			}
		}
		cost = 10
		fire_only_once = yes
		ai_will_do = {
			factor = 0			
		}		
		complete_effect = {	
			custom_effect_tooltip = zsh_david_plus_tt
			set_country_flag = zsh_korol_za_davida
			subtract_from_variable = {
				var = zsh_fract_power
				value = 1
			}
			clamp_variable = {
				var = zsh_fract_power
				min = 0
				max = 5
			}
		}
	}
	
	zsh_fractia_agitat_plus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zsh_fract_power < 5 }			
		}
		visible = {
			is_subject = no		
		}
		cost = 30
		fire_only_once = yes
		ai_will_do = {
			factor = 0			
		}		
		complete_effect = {
			add_stability = -0.05
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			custom_effect_tooltip = zsh_fractia_agitat_plus_tt
			add_to_variable = {
				var = zsh_fract_power
				value = 1
			}
			clamp_variable = {
				var = zsh_fract_power
				min = 0
				max = 5
			}
		}
	}
	zsh_fractia_minus_david_plus = {
		icon = generic_political_discourse
		available = {			
			check_variable = { zsh_fract_power > 0 }			
		}
		visible = {
			is_subject = no
		}
		cost = 30
		fire_only_once = yes
		ai_will_do = {
			factor = 0			
		}		
		complete_effect = {	
			add_stability = -0.05
			add_war_support = -0.05
			custom_effect_tooltip = zsh_fractia_minus_david_plus_tt
			subtract_from_variable = {
				var = zsh_fract_power
				value = 1
			}
			clamp_variable = {
				var = zsh_fract_power
				min = 0
				max = 5
			}
		}
	}
}

######################################################
zsh_korol_edmund = {
	zsh_sozvat_vseh_lordov = {
		icon = generic_political_discourse
		available = {			
			has_war_with = ZRL			
		}
		visible = {
			is_subject = no
			has_war_with = ZRL		
			ZRL = {
				has_country_leader = {
					character = ZRL_Darin_Gwaid
					ruling_only = yes
				}
			}
		}
		cost = 5
		fire_only_once = yes
		days_remove = 5
		ai_will_do = {
			factor = 10			
		}		
		remove_effect = {
			country_event = { id = erie.52 }
		}
	}
}