UKR_operation_boost_armed_resistance_in_west_ukraine = { 
	icon = GFX_operations_boost_resistance
	map_icon = GFX_operations_boost_resistance_map
	name = operation_boost_armed_resistance_in_west_ukraine
	desc = operation_boost_armed_resistance_in_west_ukraine_desc
	priority = 8
	
	days = 30
	network_strength = 35

	allowed = {
		original_tag = UKR
	}
	available = { 
		NOT = { has_war_with = POL }
		NOT = { is_in_faction_with = POL }
		network_strength = {
			target = POL
			#state = 91
			value > 34
		}
	}
	visible = {
		FROM = {
			tag = POL
		}
		has_country_flag = UKR_kyiv_conference_is_available
		count_triggers = {
		    amount = 1
			NOT = { has_country_flag = UKR_resistance_in_wua_is_active }
			NOT = { has_country_flag = UKR_kyiv_conference_is_start }
		}
		89 = { is_owned_and_controlled_by = POL }
		91 = { is_owned_and_controlled_by = POL }
		93 = { is_owned_and_controlled_by = POL }
		1052 = { is_owned_and_controlled_by = POL }
	}

	operatives = 1

	equipment = {
		infantry_equipment = 500
		support_equipment = 50
	}

	risk_chance = 0.1
	experience = 1
	cost_multiplier = 0

	outcome_execute = {
		POL = { country_event = ukraine.374 } 	
	}

	phases = { #infiltration 
		ukr_support_west_resist_infiltration = { base = 100 }
	}
	phases = { 
		ukr_support_west_resist_hide_weapons = { base = 100 }
	}
	phases = { 
		ukr_support_west_resist_exfiltration = { base = 100 }
	}
}

UKR_operation_propaganda_dissemination_in_west_ukraine = { 
	icon = GFX_operations_fake_intel
	map_icon = GFX_operations_fake_intel_map
	name = operation_propaganda_dissemination_in_west_ukraine
	desc = operation_propaganda_dissemination_in_west_ukraine_desc
	priority = 8
	
	days = 30
	network_strength = 40

	allowed = {
		original_tag = UKR
	}
	available = { 
		NOT = { has_war_with = POL }
		NOT = { is_in_faction_with = POL }
		network_strength = {
			target = POL
			#state = 91
			value > 39
		}
	}
	visible = {
		FROM = {
			tag = POL
		}
		has_country_flag = UKR_kyiv_conference_is_available
		count_triggers = {
		    amount = 1
			NOT = { has_country_flag = UKR_resistance_in_wua_is_active }
			NOT = { has_country_flag = UKR_kyiv_conference_is_start }
		}
		89 = { is_owned_and_controlled_by = POL }
		91 = { is_owned_and_controlled_by = POL }
		93 = { is_owned_and_controlled_by = POL }
		1052 = { is_owned_and_controlled_by = POL }
	}

	operatives = 1

	equipment = {
		civilian_factories = {
			amount = 5
			days = 30
		}
	}

	risk_chance = 0.1
	experience = 1
	cost_multiplier = 0

	outcome_execute = {
		POL = { country_event = ukraine.375 } 	
	}

	phases = { #infiltration 
		ukr_propaganda_dissemination_in_west_infiltration = { base = 100 }
	}
	phases = { 
		ukr_propaganda_dissemination_in_west_distribution = { base = 100 }
	}
	phases = { 
		ukr_propaganda_dissemination_in_west_local = { base = 100 }
	}
}

UKR_operation_political_assassination_in_west_ukraine = { 
	icon = GFX_operations_targeted_sabotage
	map_icon = GFX_operations_targeted_sabotage_map
	name = operation_political_assassination_in_west_ukraine
	desc = operation_political_assassination_in_west_ukraine_desc
	priority = 8
	
	days = 45
	network_strength = 50

	allowed = {
		original_tag = UKR
	}
	available = { 
		NOT = { has_war_with = POL }
		NOT = { is_in_faction_with = POL }
		network_strength = {
			target = POL
			#state = 91
			value > 49
		}
	}
	visible = {
		FROM = {
			tag = POL
		}
		has_country_flag = UKR_kyiv_conference_is_available
		count_triggers = {
		    amount = 1
			NOT = { has_country_flag = UKR_resistance_in_wua_is_active }
			NOT = { has_country_flag = UKR_kyiv_conference_is_start }
		}
		89 = { is_owned_and_controlled_by = POL }
		91 = { is_owned_and_controlled_by = POL }
		93 = { is_owned_and_controlled_by = POL }
		1052 = { is_owned_and_controlled_by = POL }
	}

	operatives = 1

	equipment = {
		infantry_equipment = 50
		support_equipment = 10
	}

	risk_chance = 0.2
	experience = 1
	cost_multiplier = 0

	outcome_execute = {
		POL = { country_event = ukraine.376 } 	
	}

	phases = { #infiltration 
		ukr_political_assassination_infiltration = { base = 100 }
	}
	phases = { 
		ukr_political_assassination_in_west_action = { base = 100 }
	}
	phases = { 
		ukr_political_assassination_in_west_exfiltration = { base = 100 }
	}
}
UKR_operation_influence_in_turkey_for_access_to_straits = { 
	icon = GFX_operations_collaboration_government
	map_icon = GFX_operations_collaboration_government_map
	name = operation_influence_in_turkey_for_access_to_straits
	desc = operation_influence_in_turkey_for_access_to_straits_desc
	priority = 8
	
	days = 75
	network_strength = 50

	allowed = {
		original_tag = UKR
	}
	available = { 
		OR = {
			any_other_country = {
				is_major = yes
				is_in_faction_with = UKR
			}
			naval_strength_ratio = {
			    tag = TUR
			    ratio > 1
			}
			strength_ratio = {
				tag = TUR
				ratio > 1
			}
		}
	}
	visible = {
		NOT = { has_military_access_to = TUR }
		FROM = {
			tag = TUR
		}
		has_war = yes
		341 = { is_owned_and_controlled_by = TUR }
		797 = { is_owned_and_controlled_by = TUR }
		NOT = { has_war_with = TUR }
		TUR = {	is_in_faction = no }
	}

	operatives = 2

	equipment = {
		
	}

	risk_chance = 0
	experience = 1
	cost_multiplier = 0
	outcome_extra_chance = 0.50

	outcome_execute = {
		UKR = { country_event = ukraine.382 }	
	}
	outcome_extra_execute = {
		TUR = { country_event = ukraine.103 }
	}

	phases = { 
		ukr_influence_in_turkey_infiltration_in_staff = { base = 100 }
	}
	phases = { 
		ukr_influence_in_turkey_prepare_desinformation = { base = 100 }
	}
	phases = { 
		ukr_influence_in_turkey_data_substitution = { base = 100 }
	}
}
UKR_operation_pressure_on_romanian_oil_supplies_to_germany = { 
	icon = GFX_operations_collaboration_government
	map_icon = GFX_operations_collaboration_government_map
	name = operation_pressure_on_romanian_oil_supplies_to_germany
	desc = operation_pressure_on_romanian_oil_supplies_to_germany_desc
	priority = 8
	
	days = 75
	network_strength = 50

	allowed = {
		original_tag = UKR
	}
	available = { 
		46 = { is_owned_and_controlled_by = ROM }
	}
	visible = {
		FROM = {
			tag = ROM
		}
		NOT = { has_country_flag = UKR_oil_embargo_of_romania }
		has_war_with = GER
		NOT = { is_in_faction_with = ROM }
		GER = { has_capitulated = no }
		ROM = {
			has_war = no
			NOT = { is_in_faction_with = GER }
			is_puppet = no
		}
	}

	operatives = 2

	equipment = {
		
	}

	risk_chance = 0
	experience = 1
	cost_multiplier = 0
	outcome_extra_chance = 0.50

	outcome_execute = {
		UKR = { country_event = ukraine.383 }	
	}
	outcome_extra_execute = {
		UKR = { set_country_flag = UKR_oil_embargo_of_romania }
		ROM = { country_event = ukraine.283 }
	}

	phases = { 
		ukr_pressure_on_romanian_oil_supplies_to_germany_infiltration = { base = 100 }
	}
	phases = { 
		ukr_pressure_on_romanian_oil_supplies_to_germany_relations_with_industrialists = { base = 100 }
	}
	phases = { 
		ukr_pressure_on_romanian_oil_supplies_to_germany_relations_with_ministers = { base = 100 }
	}
}
UKR_operation_natcom_infiltrate = { 
	icon = GFX_operations_make_resistance_contacts
	map_icon = GFX_operations_make_resistance_contacts_map
	name = UKR_operation_natcom_infiltrate
	desc = UKR_operation_natcom_infiltrate_desc
	priority = 1

	days = 90
	network_strength = 35
	operatives = 2
	
	allowed = {
		original_tag = UKR
	}

	visible = {
		has_government = communism
		OR = {
			AND = {
				FROM = { original_tag = POL }
				FROM = { controls_state = 91 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_poland }
			}
			AND = {
				FROM = { original_tag = ROM }
				FROM = { controls_state = 78 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_romania }
			}
			AND = {
				FROM = { original_tag = CZE }
				FROM = { controls_state = 73 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_czechoslovakia }
			}
		}
		network_national_coverage = {
			target = FROM
			value > 0
		}
	}

	equipment = {
		
	}

	available = {
		
	}

	risk_chance = 0.1
	outcome_extra_chance = 0.50

	outcome_execute = {
		if = {
			limit = { 
				FROM = { controls_state = 91 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_poland }
			}
			ROOT = { 
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_poland
					days = -90
				}
			}
		}
		if = {
			limit = { 
				FROM = { controls_state = 78 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_romania }
			}
			ROOT = { 
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_romania
					days = -90
				}
			}
		}
		if = {
			limit = { 
				FROM = { controls_state = 73 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_czechoslovakia }
			}
			ROOT = { 
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_czechoslovakia
					days = -90
				}
			}
		}
	}
	outcome_extra_execute = { 
		if = {
			limit = { 
				FROM  = { controls_state = 91 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_poland }
			}
			ROOT = {
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_poland
					days = -120
				}
			}
		}
		if = {
			limit = { 
				FROM  = { controls_state = 78 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_romania }
			}
			ROOT = {
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_romania
					days = -120
				}
			}
		}
		if = {
			limit = { 
				FROM  = { controls_state = 73 }
				ROOT = { has_active_mission = UKR_masons_rebellion_in_czechoslovakia }
			}
			ROOT = {
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_czechoslovakia
					days = -120
				}
			}
		}
	}

	outcome_potential = {
		ROOT = {
			if = {
				limit = { 
					FROM = { controls_state = 91 }
					ROOT = { has_active_mission = UKR_masons_rebellion_in_poland }
				}
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_poland
					days = -120
				}
			}
			if = {
				limit = { 
					FROM = { controls_state = 78 }
					ROOT = { has_active_mission = UKR_masons_rebellion_in_romania }
				}
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_romania
					days = -120
				}
			}
			if = {
				limit = { 
					FROM = { controls_state = 73 }
					ROOT = { has_active_mission = UKR_masons_rebellion_in_czechoslovakia }
				}
				add_days_mission_timeout = {
					mission = UKR_masons_rebellion_in_czechoslovakia
					days = -120
				}
			}
		}
	}

	phases = { #infiltration
		infiltration_diplomatic = {	base = 100	}
	}
	phases = { #infiltrate military
		infiltrate_military_ideological_supporter = { base = 100 }
	}
	phases = { #exfiltration
		exfiltration_border = { base = 100 }
	}
}
UKR_operation_mission_of_lyahovich = { 
	icon = GFX_operation_mission_of_lyahovich
	map_icon = GFX_operation_mission_of_lyahovich_map
	name = operation_mission_of_lyahovich
	desc = operation_mission_of_lyahovich_desc
	priority = 10
	
	days = 75
	network_strength = 50

	allowed = {
		original_tag = UKR
	}
	
	visible = {
		has_completed_focus = UKR_mission_of_lyahovich
		has_government = fascism
		FROM = { tag = ENG }
		91 = {
			owner = {
				original_tag = POL
			}
			controller = {
				original_tag = POL
			}
		}
	}

	available = { 
		NOT = { is_in_faction_with = GER }
		ENG = {
			is_subject = no
			is_major = yes
			NOT = { has_government = communism }
			NOT = { has_war_with = ROOT }
		}
	}

	operatives = 2

	equipment = {
		civilian_factories = {
			amount = 10
			days = 30
		}
	}

	risk_chance = 0.1
	experience = 1
	cost_multiplier = 0
	outcome_extra_chance = 0.50

	outcome_execute = {
		FROM = {
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			country_event = ukraine.646	# negative relations with Poland, remove from faction and guaranties
		}
		
	}
	outcome_extra_execute = {
		FROM = {
			add_popularity = {
				ideology = fascism
				popularity = 0.10
			}
			country_event = ukraine.647 # + guaranties for Ukraine, ultimatum to Poland for cedes Wester Ukraine, wargoal if Poland refuse
		}
	}

	phases = { 
		ukr_media_campaign_in_england = { base = 100 }
	}
	phases = { 
		ukr_bribe_british_lords = { base = 100 }
	}
	phases = { 
		ukr_discussion_in_parliament = { base = 100 }
	}
}
UKR_operation_diplomatic_isolation = { 
	icon = GFX_operation_diplomatic_isolation
	map_icon = GFX_operation_diplomatic_isolation_map
	name = operation_diplomatic_isolation
	desc = operation_diplomatic_isolation_desc
	priority = 10
	
	days = 90
	network_strength = 50

	allowed = {
		original_tag = UKR
	}
	
	visible = {
		OR = {
			has_completed_focus = UKR_fascist_foreign_relations
			has_completed_focus = UKR_agressive_politic
		}
		network_strength = {
			target = FROM
			value > 25
		}
	}

	available = { 
		FROM = {
			NOT = { is_in_faction_with = UKR }
			is_subject = no
			is_faction_leader = no
			NOT = { has_idea = UKR_diplomatic_isolation }
		}
	}

	operatives = 2

	equipment = {
		civilian_factories = {
			amount = 10
			days = 30
		}
	}

	risk_chance = 0.1
	experience = 1
	cost_multiplier = 0
	outcome_extra_chance = 0.50

	outcome_execute = {
		FROM = {
			add_timed_idea = {
				idea = UKR_diplomatic_isolation
				days = 180
			}
			every_other_country = {
				limit = { has_guaranteed = PREV }
				diplomatic_relation = { country = PREV relation = guarantee active = no }
			}
		}
		
	}
	outcome_extra_execute = {
		FROM = {
			add_timed_idea = {
				idea = UKR_diplomatic_isolation
				days = 365
			}
			every_other_country = {
				limit = { has_guaranteed = PREV }
				diplomatic_relation = { country = PREV relation = guarantee active = no }
			}
			if = {
				limit = { 
					is_in_faction = yes 
					is_faction_leader = no
				}
				leave_faction = yes
			}
		}
	}

	outcome_potential = {
		FROM = {
			add_timed_idea = {
				idea = UKR_diplomatic_isolation
				days = 180
			}
			every_other_country = {
				limit = { has_guaranteed = PREV }
				diplomatic_relation = { country = PREV relation = guarantee active = no }
			}
		}
	}

	phases = { 
		ukr_internal_opposition = { base = 100 }
	}
	phases = { 
		ukr_distraction_of_potential_allies = { base = 100 }
	}
	phases = { 
		ukr_international_defamation = { base = 100 }
	}
}
operation_kyiv_uprising = { 
	icon = GFX_operations_boost_resistance
	map_icon = GFX_operations_boost_resistance_map
	name = operation_kyiv_uprising
	desc = operation_kyiv_uprising_desc
	priority = 8
	
	cost_multiplier = 0.25
	
	days = 60
	network_strength = 50
	operatives = 2

	visible = {
		has_completed_focus = UKR_new_rebel_army
		NOT = { has_global_flag = kyiv_liberated_self_flag }
		FROM = {
			core_resistance = {
				occupied_country_tag = UKR
				value > 10
			}
		}
	}
	
	available = {
		network_national_coverage = {
			target = FROM
			value > 0
		}
		has_operation_token = {
			tag = FROM
			token = token_resistance_contacts
		}
		FROM = {
			core_resistance = {
				occupied_country_tag = UKR
				value > 50
			}
		}
	}

	selection_target = {
		targets = { FROM }
	}

	selection_target_state = {
		has_resistance = yes
		is_core_of = UKR
		is_owned_by = UKR
	}

	equipment = {

	}

	required_tokens = {
		token_resistance_contacts
	}
	risk_chance = 0.5
	experience = 1.5
	outcome_extra_chance = 0.25
	outcome_modifiers = { boost_resistance_factor }
	outcome_execute = {
		custom_effect_tooltip = kyiv_uprising_will_happen_tt
		FROM = {
			set_temp_variable = { occupier_country = THIS }
			set_temp_variable = { occupied_country = UKR }
			set_temp_variable = { new_occupied_country = UKR }
			
			set_global_flag = kyiv_liberated_self_flag
			
			
			set_temp_variable = { civil_war_country_picked = 0 }
			
			
			
			# create resistance template for armies to spawn
			var:new_occupied_country = {
				if = {
					limit = { NOT = { has_country_flag = created_civil_war_template } }
					set_country_flag = created_civil_war_template
						
					division_template = {
						name = "Resistance"
						is_locked = yes
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
					}
				}
			}
			
			
			clear_temp_array = checked_neighbours
			every_controlled_state = {
				limit = { 
					OR = {
						state = 202
						state = 193
						state = 194
						state = 203
						state = 259
						state = 225
						state = 199
						state = 198
						state = 201
						state = 192
						state = 196
						state = 197
						state = 1047
						state = 221
						state = 227
						state = 228
						state = 200
						state = 226
					}
					impassable = no
				}
				
				# move our armies to back home
				teleport_armies = {
					limit = { 
						OR = {
							is_ally_with = occupier_country
							has_military_access_to = occupier_country
						}
					}
					to_state_array = owned_controlled_states
				}
				
				# transfer state
				if = {
					limit = { has_resistance = yes }
					set_resistance = 0
				}
				var:new_occupied_country = {
					transfer_state = PREV
				}
				
				if = {
					limit = { 
						var:occupier_country = {
							check_variable = { resistance_already_inited@var:occupied_country = 0 } 
						}
					}
					
					# create resistance units, number is relative to size of industry
					set_temp_variable = { num_units_to_create = building_level@arms_factory }
					add_to_temp_variable = { num_units_to_create = building_level@industrial_complex } 
					divide_temp_variable = { num_units_to_create = 3 }
					add_to_temp_variable = { num_units_to_create = 2 }
					round_temp_variable = num_units_to_create
					clamp_temp_variable = { var = num_units_to_create min = 2 max = 6 }
					for_loop_effect = {
						end = num_units_to_create
						
						create_unit = {
							division = "division_template = \"Resistance\" start_experience_factor = 1 start_equipment_factor = 1"
							owner = new_occupied_country
						}
					}
				}
				
				# also check neighbouring core states of the occupier that are not captured yet
				# move our armies so they are not surrounded/create pockets
				every_neighbor_state = {
					limit = {
						is_owned_and_controlled_by = occupied_country
						is_core_of = occupied_country
						not = { is_in_array = { checked_neighbours = this } }
					}
					add_to_temp_array = { checked_neighbours = this }
					
					teleport_armies = {
						limit = { 
							OR = {
								is_ally_with = occupier_country
								has_military_access_to = occupier_country
							}
						}
						to_state_array = owned_controlled_states
					}
					
					set_state_province_controller = {
						controller = occupied_country
						limit = {
							is_ally_with = occupier_country
						}
					}
				}
			}
		
			# create war if necesarry
			if = {
				limit = { NOT = { has_war_with = new_occupied_country } }
				declare_war_on = { target = new_occupied_country type = annex_everything }
			}
			
			var:occupier_country = {
				set_variable = { resistance_already_inited@var:occupied_country = 1 } 
			}
		}
	}
	outcome_extra_execute = { # SCOPE_OPERATION
	}

	outcome_potential = {
		custom_effect_tooltip = kyiv_uprising_operation_tt
	}

	
	target_weight = {
		base = 100
		
		modifier = {
			add = boost_resistance_chance
		}
		
		modifier = {
			set_temp_variable = { t = distance_to@ROOT.capital }
			divide_temp_variable = { t = 600 }
			clamp_temp_variable = { var = t min = 0 max = 1 }
			multiply_temp_variable = { t = -40 }
			
			add = t
		}
	}
	
	phases = { #infiltration
		infiltration_border = { base = 50 }
		infiltration_submarine = { base = 25 }
		infiltration_paradrop = { 
			base = 25 
		}
	}
	phases = { #resistance support
		resistance_support_arms_depots = { base = 25 }
		resistance_support_distribute_weapons = { base = 25 }
		resistance_support_organize_training = { base = 25 }
		resistance_support_coordinate_groups = { base = 25 }
	}
	phases = { #exfiltration
		exfiltration_air_pickup = { 
			base = 15 
		}
		exfiltration_border = { base = 30 }
		exfiltration_go_to_ground = { base = 30 }
		exfiltration_submarine_pickup = { base = 25 }
	}
}
DKR_brain_drain_for_free_territory = { 
	icon = GFX_operations_brain_drain
	map_icon = GFX_operations_brain_drain_map
	name = operation_brain_drain_for_free_territory
	desc = operation_brain_drain_for_free_territory_desc
	priority = 8
	
	days = 60
	network_strength = 25

	ai_will_do = {
		factor = 10
	}

	allowed = {
		original_tag = DKR
	}
	visible = {
		has_completed_focus = DKR_freethinking
		has_government = neutrality
		network_strength = {
			target = FROM
			value > 10
		}
		FROM = { NOT = { tag = SPC } }
	}
	available = { 
		FROM = { 
			NOT = { has_government = democratic } 
			NOT = { has_idea = DKR_brain_drain_outcoming }
		}
	}

	operatives = 1

	equipment = {
		civilian_factories = {
			amount = 3
			days = 30
		}
	}

	risk_chance = 0.1
	experience = 1
	cost_multiplier = 0

	outcome_potential = {
		ROOT = {
			add_timed_idea = {
				idea = DKR_brain_drain_incoming
				days = 90
			}
		}
	}

	outcome_execute = {
		ROOT = {
			if = {
				limit = {
					has_idea = DKR_brain_drain_incoming
				}
				modify_timed_idea = {
				    idea = DKR_brain_drain_incoming
				    days = 90
				}
			}
			else = {
				add_timed_idea = {
					idea = DKR_brain_drain_incoming
					days = 90
				}
			}
		}
		FROM = { 
			add_timed_idea = {
				idea = DKR_brain_drain_outcoming
				days = 90
			}
		} 	
	}

	phases = { #infiltration 
		dkr_brain_drain_for_free_territory_infiltration = { base = 100 }
	}
	phases = { 
		dkr_brain_drain_for_free_territory_agitation = { base = 100 }
	}
	phases = { 
		dkr_brain_drain_for_free_territory_relocation = { base = 100 }
	}
}
DKR_anarchy_on_export = { 
	icon = GFX_operations_anarchy_on_export
	map_icon = GFX_operations_anarchy_on_export_map
	name = operation_anarchy_on_export
	desc = operation_anarchy_on_export_desc
	priority = 20
	
	days = 120
	network_strength = 75

	ai_will_do = {
		factor = 10
		modifier = {
			factor = 10
			FROM = {
				OR = {
					tag = ROM
					tag = POL
				}
			}
		}
	}

	visible = {
		has_completed_focus = DKR_anarchy_seeding
		has_government = neutrality
		network_strength = {
			target = FROM
			value > 35
		}
		FROM = { 
			NOT = { tag = SPC } 
			NOT = { tag = SOV }
			NOT = { tag = CRM }
			NOT = { has_country_flag = anarchy_seeding_from_ukraine }
			NOT = { has_country_flag = ETH_anarchist_council_flag }
		}
	}
	available = { 
		FROM = {
			has_civil_war = no
			has_capitulated = no
			num_of_controlled_states > 1
		}
	}

	operatives = 2

	equipment = {
		infantry_equipment = 5000
		support_equipment = 500
	}

	will_lead_to_war_with = yes
	risk_chance = 0.16
	experience = 2
	cost_multiplier = 0.10
	#cost_modifiers = { operation_coup_cost }

	outcome_potential = {
		custom_effect_tooltip = DKR_anarchy_seeding_operation_tt
		custom_effect_tooltip = DKR_anarchy_seeding_stability_tt
	}
	
	outcome_execute = {
		if = {
			limit = {
				FROM = { has_stability > 0.50 } #only unrest, -25% stability
			}
			FROM = { country_event = makhno.48 }
			ROOT = { country_event = makhno.50 }
		}
		else_if = {
			limit = {
				FROM = { has_stability > 0.25 } #normal rebellion
			}
			FROM = { country_event = makhno.26 }
		}
		else = { #biggest rebellion
			FROM = { country_event = makhno.49 }
		}

	}

	phases = { #infiltration 
		dkr_anarchy_on_export_infiltration = { base = 100 }
	}
	phases = { 
		dkr_anarchy_on_export_organize_cells = { base = 100 }
	}
	phases = { 
		dkr_anarchy_on_export_take_up_arms = { base = 100 }
	}
}
