UKR_prospect_for_resources = {
	UKR_dnepr_donets_oil = { #259
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 259
			}
		}
		available = {
			has_tech = excavation1
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 259
			controls_state = 259
		}

		visible = {
			owns_state = 259
			controls_state = 259
			259 = {
				NOT = {
					has_state_flag = UKR_dnepr_donets_oil_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			259 = { set_state_flag = UKR_dnepr_donets_oil_1 } 
			259 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}	
	}

	UKR_carpation_oil = { #89
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 89
			}
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 89
			controls_state = 89
		}

		visible = {
			owns_state = 89
			controls_state = 89
			89 = {
				NOT = {
					has_state_flag = UKR_carpation_oil_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			89 = { set_state_flag = UKR_carpation_oil_1 } 
			89 = {
				add_resource = {
					type = oil
					amount = 8
				}
			}
		}	
	}

	UKR_bujak_oil = { #766
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 766
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 766
			controls_state = 766
		}

		visible = {
			owns_state = 766
			controls_state = 766
			766 = {
				NOT = {
					has_state_flag = UKR_bujak_oil_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			766 = { set_state_flag = UKR_bujak_oil_1 } 
			766 = {
				add_resource = {
					type = oil
					amount = 6
				}
			}
		}	
	}

	UKR_kerch_iron = { #137
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 137
			controls_state = 137
		}

		visible = {
			owns_state = 137
			controls_state = 137
			137 = {
				NOT = {
					has_state_flag = UKR_kerch_iron_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			137 = { set_state_flag = UKR_kerch_iron_1 } 
			137 = {
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}	
	}
	UKR_kremenchuk_iron = { #259
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 259
			}
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 259
			controls_state = 259
		}

		visible = {
			owns_state = 259
			controls_state = 259
			259 = {
				NOT = {
					has_state_flag = UKR_kremenchuk_iron_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			259 = { set_state_flag = UKR_kremenchuk_iron_1 } 
			259 = {
				add_resource = {
					type = steel
					amount = 6
				}
			}
		}	
	}
	UKR_belozer_iron = { #200
		
		icon = steel

		highlight_states = {
			highlight_state_targets = {
				state = 200
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 200
			controls_state = 200
		}

		visible = {
			owns_state = 200
			controls_state = 200
			200 = {
				NOT = {
					has_state_flag = UKR_belozer_iron_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			200 = { set_state_flag = UKR_belozer_iron_1 } 
			200 = {
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}	
	}
	UKR_transcarpathian_aluminium = { #73
		
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 73
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 73
			controls_state = 73
		}

		visible = {
			NOT = { original_tag = CUA } #CUA have own focus
			owns_state = 73
			controls_state = 73
			73 = {
				NOT = {
					has_state_flag = UKR_transcarpathian_aluminium_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			73 = { set_state_flag = UKR_transcarpathian_aluminium_1 } 
			73 = {
				add_resource = {
					type = aluminium
					amount = 10
				}
			}
		}	
	}
	UKR_azov_aluminium = { #227
		
		icon = aluminium

		highlight_states = {
			highlight_state_targets = {
				state = 227
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 227
			controls_state = 227
		}

		visible = {
			owns_state = 227
			controls_state = 227
			227 = {
				NOT = {
					has_state_flag = UKR_azov_aluminium_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			227 = { set_state_flag = UKR_azov_aluminium_1 } 
			227 = {
				add_resource = {
					type = aluminium
					amount = 7
				}
			}
		}	
	}
	UKR_buhs_chromium = { #1047
		
		icon = chromium

		highlight_states = {
			highlight_state_targets = {
				state = 1047
			}
		}
		available = {
			has_tech = excavation2
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 1047
			controls_state = 1047
		}

		visible = {
			owns_state = 1047
			controls_state = 1047
			1047 = {
				NOT = {
					has_state_flag = UKR_buhs_chromium_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			1047 = { set_state_flag = UKR_buhs_chromium_1 } 
			1047 = {
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}	
	}
	UKR_zhitomir_metals = { #201
		
		icon = chromium

		highlight_states = {
			highlight_state_targets = {
				state = 201
			}
		}
		available = {
			has_tech = excavation3
			num_of_civilian_factories_available_for_projects > 3
			owns_state = 201
			controls_state = 201
		}

		visible = {
			owns_state = 201
			controls_state = 201
			201 = {
				NOT = {
					has_state_flag = UKR_zhitomir_metals_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			201 = { set_state_flag = UKR_zhitomir_metals_1 } 
			201 = {
				add_resource = {
					type = chromium
					amount = 5
				}
			}
		}	
	}
}

UKR_diplomatic_decisions = {

	UKR_pressure_on_romania = {
		icon = generic_civil_support

		available = {
			has_completed_focus = UKR_bukovina_bessarabia_claims
			NOT = { has_war_with = ROM }
			NOT = { is_in_faction_with = ROM }
			NOT = { has_decision = UKR_pressure_on_romania_with_germany }
		}

		visible = {
			has_government = fascism
			78 = { is_owned_and_controlled_by = ROM } 
			80 = { is_owned_and_controlled_by = ROM }
			766 = { is_owned_and_controlled_by = ROM }
		}

		war_with_on_remove = ROM

		complete_effect = {
			if = {
				limit = {
					FRA = {
						NOT = { has_war_with = UKR }
						has_guaranteed = ROM
					}
				}
				FRA = { country_event = ukraine.366 }
			}
		}

		remove_effect = {
			ROM = { country_event = ukraine.96 }
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		ai_will_do = {
			factor = 1
		}
	}
	UKR_pressure_on_romania_with_germany = {
		icon = generic_civil_support

		available = {
			has_completed_focus = UKR_bukovina_bessarabia_claims
			NOT = { has_war_with = ROM }
			NOT = { has_decision = UKR_pressure_on_romania }
		}

		visible = {
			has_government = fascism
			78 = { is_owned_and_controlled_by = ROM } 
			80 = { is_owned_and_controlled_by = ROM }
			766 = { is_owned_and_controlled_by = ROM }
			is_in_faction_with = GER
		}

		war_with_on_remove = ROM

		complete_effect = {
			if = {
				limit = {
					FRA = {
						NOT = { has_war_with = UKR }
						has_guaranteed = ROM
					}
				}
				FRA = { country_event = ukraine.366 }
			}
			if = {
				limit = { has_country_flag = UKR_has_OUN_struggle }
				oun_increase_control_small = yes
			}
		}

		remove_effect = {
			GER = { country_event = ukraine.113 }
		}

		fire_only_once = yes

		days_remove = 3
		cost = 75

		ai_will_do = {
			factor = 2
		}
	}
	UKR_access_for_black_sea_straits = {
		icon = generic_civil_support

		allowed = { NOT = { has_dlc = "La Resistance" } }

		available = {
			NOT = { has_military_access_to = TUR }
			has_navy_size = { size > 9 }
		}

		visible = {
			341 = { is_controlled_by = TUR } 
			797 = { is_controlled_by = TUR } 
			has_war = yes
			#NOT = { has_government = neutrality }
			NOT = { has_war_with = TUR }
			TUR = {
				is_in_faction = no
			}
		}

		remove_effect = {
			TUR = { country_event = ukraine.103 }
		}

		fire_only_once = no

		days_remove = 2
		days_re_enable = 365
		cost = 50

		ai_will_do = {
			factor = 0
		}
	}
	UKR_request_for_transfer_of_carpathian_ukraine = {
		icon = generic_civil_support

		available = {
			
		}

		visible = {
			any_country = {
				is_in_faction_with = UKR 
				controls_state = 73
				owns_state = 73
				NOT = { tag = UKR }
				NOT = { tag = CUA }
				is_neighbor_of = UKR
			}
			OR = {
				has_completed_focus = UKR_carpathian_ukraine_claims
				has_completed_focus = UKR_ukrainian_community
				has_completed_focus = UKR_ukrainian_irredentism
				has_completed_focus = UKR_natcom_claimes
				AND = {
					UKR_wilhelm_von_habsburg = {
						is_country_leader = yes 
					}
					is_power_balance_in_range = {
						id = UKR_power_balance
						range > UKR_king_low_control_range
					}
				}
			}
		}

		remove_effect = {
			random_country = {
				limit = {
					is_in_faction_with = UKR 
					controls_state = 73
					owns_state = 73
					NOT = { tag = UKR }
					NOT = { tag = CUA }
				}
				country_event = { id = ukraine.106 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_bessarabia = {
		icon = generic_civil_support

		visible = {
			any_country = {
				is_in_faction_with = UKR 
				controls_state = 78
				owns_state = 78
				NOT = { tag = UKR }
				NOT = { tag = MOL }
			}
			OR = {
				has_completed_focus = UKR_bukovina_bessarabia_claims
				has_completed_focus = UKR_romanian_revolution
				has_completed_focus = UKR_natcom_claimes
			}
		}

		remove_effect = {
			random_country = {
				limit = {
					is_in_faction_with = UKR 
					controls_state = 78
					owns_state = 78
					NOT = { tag = UKR }
					NOT = { tag = MOL }
				}
				country_event = { id = ukraine.109 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_bukovina = {
		icon = generic_civil_support

		visible = {
			any_country = {
				is_in_faction_with = UKR 
				controls_state = 80
				owns_state = 80
				NOT = { tag = UKR }
			}
			OR = {
				has_completed_focus = UKR_bukovina_bessarabia_claims
				has_completed_focus = UKR_ukrainian_community
				has_completed_focus = UKR_romanian_revolution
				has_completed_focus = UKR_natcom_claimes
				AND = {
					UKR_wilhelm_von_habsburg = {
						is_country_leader = yes 
					}
					is_power_balance_in_range = {
						id = UKR_power_balance
						range > UKR_king_low_control_range
					}
					NOT = { is_in_faction_with = ROM }
				}
			}
		}

		remove_effect = {
			random_country = {
				limit = {
					is_in_faction_with = UKR 
					controls_state = 80
					owns_state = 80
					NOT = { tag = UKR }
				}
				country_event = { id = ukraine.110 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}

	UKR_request_for_transfer_of_budjak = {
		icon = generic_civil_support

		visible = {
			any_country = {
				is_in_faction_with = UKR 
				controls_state = 766
				owns_state = 766
				NOT = { tag = UKR }
			}
			OR = {
				has_completed_focus = UKR_bukovina_bessarabia_claims
				has_completed_focus = UKR_ukrainian_community
				has_completed_focus = UKR_romanian_revolution
				has_completed_focus = UKR_natcom_claimes
			}
		}

		remove_effect = {
			random_country = {
				limit = {
					is_in_faction_with = UKR 
					controls_state = 766
					owns_state = 766
					NOT = { tag = UKR }
				}
				country_event = { id = ukraine.271 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}

	UKR_request_for_transfer_of_polesie = {
		icon = generic_civil_support

		visible = {
			any_country = {
				OR = {
					is_in_faction_with = UKR 
					is_puppet_of = UKR
				} 
				controls_state = 94
				owns_state = 94
				NOT = { tag = UKR }
			}
			has_completed_focus = UKR_berestia
		}

		remove_effect = {
			random_country = {
				limit = {
					OR = {
						is_in_faction_with = UKR 
						is_puppet_of = UKR
					}  
					controls_state = 94
					owns_state = 94
					NOT = { tag = UKR }
				}
				country_event = { id = ukraine.111 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_gomel = {
		icon = generic_civil_support

		visible = {
			any_country = {
				OR = {
					is_in_faction_with = UKR 
					is_puppet_of = UKR
				} 
				controls_state = 204
				owns_state = 204
				NOT = { tag = UKR }
			}
			has_completed_focus = UKR_berestia
		}

		remove_effect = {
			random_country = {
				limit = {
					OR = {
						is_in_faction_with = UKR 
						is_puppet_of = UKR
					}  
					controls_state = 204
					owns_state = 204
					NOT = { tag = UKR }
				}
				country_event = { id = ukraine.601 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_starodub = {
		icon = generic_civil_support

		visible = {
			any_country = {
				OR = {
					is_in_faction_with = UKR 
					is_puppet_of = UKR
				} 
				controls_state = 1048
				owns_state = 1048
				NOT = { tag = UKR }
			}
			OR = {
				has_completed_focus = UKR_berestia
				has_completed_focus = UKR_ukrainian_community
			}
			
		}

		remove_effect = {
			random_country = {
				limit = {
					OR = {
						is_in_faction_with = UKR 
						is_puppet_of = UKR
					}  
					controls_state = 1048
					owns_state = 1048
					NOT = { tag = UKR }
				}
				country_event = { id = ukraine.304 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_west_ukraine = {
		icon = generic_civil_support

		available = {
			199 = { is_owned_and_controlled_by = ROOT }
		}

		visible = {
			any_country = {
				OR = {
					is_in_faction_with = ROOT 
					is_puppet_of = ROOT
				}
				OR = {
					AND = {
						controls_state = 89
						owns_state = 89
					}
					AND = {
						controls_state = 91
						owns_state = 91
					}
					AND = {
						controls_state = 93
						owns_state = 93
					}
					AND = {
						controls_state = 1052
						owns_state = 1052
					}
				}
				NOT = { tag = UKR }
				NOT = { tag = WUA }
			}
			OR = {
				has_completed_focus = UKR_ukrainian_community
				has_completed_focus = UKR_revanchism
				has_completed_focus = UKR_natcom_claimes

				AND = {
					UKR_wilhelm_von_habsburg = {
						is_country_leader = yes 
					}
					is_power_balance_in_range = {
						id = UKR_power_balance
						range > UKR_king_low_control_range
					}
					NOT = { is_in_faction_with = POL }
				}
			}
		}

		remove_effect = {
			random_country = {
				limit = {
					OR = {
						is_in_faction_with = ROOT 
						is_puppet_of = ROOT
					}
					OR = {
						AND = {
							controls_state = 89
							owns_state = 89
						}
						AND = {
							controls_state = 91
							owns_state = 91
						}
						AND = {
							controls_state = 93
							owns_state = 93
						}
						AND = {
							controls_state = 1052
							owns_state = 1052
						}
					}
					NOT = { tag = UKR }
					NOT = { tag = WUA }
				}
				country_event = { id = ukraine.112 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_belgorod = {
		icon = generic_civil_support

		available = {
			
		}

		visible = {
			SOV = {
				is_in_faction_with = UKR 
				controls_state = 240
				owns_state = 240
			}
			has_completed_focus = UKR_ukrainian_community
		}

		remove_effect = {
			SOV = {
				country_event = { id = ukraine.155 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_request_for_transfer_of_crimea = {
		icon = generic_civil_support

		available = {
			
		}

		visible = {
			SOV = {
				is_in_faction_with = UKR 
				controls_state = 137
				owns_state = 137
				controls_state = 1051
				owns_state = 1051
			}
			has_completed_focus = UKR_ukrainian_community
		}

		remove_effect = {
			SOV = {
				country_event = { id = ukraine.156 days = 1 }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_get_autocephaly_church = {

		icon = generic_civil_support

		fire_only_once = yes
		fixed_random_seed = no #savescumming enable

		visible = {
			has_completed_focus = UKR_our_holy_church
		}

		days_remove = 180

		remove_effect = {
			random_list = {
				50 = { 
					modifier = {
						factor = 2
						OR = {
							797 = { is_controlled_by = UKR } #Constantinopol
							any_other_country = {
								controls_state = 797
								is_in_faction_with = UKR
							}
						}
					}
					modifier = {
						factor = 1.5
						CRM = {
							OR = {
								exists = no
								is_in_faction_with = ROOT
								is_puppet_of = ROOT
							}
						}
					}
					modifier = {
						factor = 1.5
						has_idea = UKR_metropolitan_vasyl	
					}
					modifier = {
						factor = 0.5
						has_country_flag = UKR_king_is_catholic
					}
					modifier = {
						factor = 2
						has_completed_focus = UKR_united_church
					}
					country_event = ukraine.196 #Succesfull
				} 
				50 = { 
					modifier = {
						add = -10
						is_in_faction_with = YUG	
					}
					modifier = {
						add = -10
						is_in_faction_with = BUL	
					}
					modifier = {
						add = -10
						is_in_faction_with = ROM	
					}
					modifier = {
						add = -15
						is_in_faction_with = GRE	
					}
					country_event = ukraine.197 #Fail 
				}
			}
		}
	}
	UKR_provocation_against_dksr = {
		icon = generic_ignite_civil_war

		available = {
			
		}

		visible = {
			DKR = {
				exists = yes
				is_puppet_of = SOV
			}
			NOT = { is_in_faction_with = SOV }
			is_puppet = no
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}

		remove_effect = {
			create_wargoal = {
				type = annex_everything
				target = DKR
			}
			hidden_effect = { news_event = { hours = 1 id = news.556 } }
		}

		fire_only_once = yes

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 0
		}
	}
	UKR_support_german_nazi_in_civil_war = {
		icon = generic_decision

		visible = {
			NOT = { has_country_flag = UKR_support_german_junta }
			GER = { 
				OR = {
					has_completed_focus = GER_oppose_hitler
					has_completed_focus = GER_oppose_hitler_ww
				}
				has_civil_war = yes 
			}
			any_other_country = {
				original_tag = GER
				has_government = fascism
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			set_country_flag = UKR_support_german_nazi
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			random_other_country = {
				limit = {
					original_tag = GER
					has_government = fascism
				}	
				add_opinion_modifier = { target = UKR modifier = UKR_support_us_in_civil_war }
			}
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				has_completed_focus = UKR_revanchism
			}
			modifier = {
				add = 2
				OR = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCIST
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCIST_ALTERNATE
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCIST_TRUE
					}
				}
			}
		}
	}
	UKR_support_german_junta_in_civil_war = {
		icon = generic_decision

		visible = {
			NOT = { has_country_flag = UKR_support_german_nazi }
			GER = { 
				OR = {
					has_completed_focus = GER_oppose_hitler
					has_completed_focus = GER_oppose_hitler_ww
				}
				has_civil_war = yes 
			}
			any_other_country = {
				original_tag = GER
				has_government = neutrality
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			set_country_flag = UKR_support_german_junta
			add_popularity = {
				ideology = fascism
				popularity = -0.05
			}
			random_other_country = {
				limit = {
					original_tag = GER
					has_government = neutrality
				}	
				add_opinion_modifier = { target = UKR modifier = UKR_support_us_in_civil_war }
			}
			add_ideas = UKR_war_support_for_junta
			set_rule = { 
				can_send_volunteers = yes
			}
			add_ai_strategy = {
				type = send_volunteers_desire
				id = GER
				value = 200
			}
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				OR = {
					has_completed_focus = UKR_old_course
					has_completed_focus = UKR_democratic_reforms
				}
			}
			modifier = {
				add = 2
				OR = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = DEMOCRATIC
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = NEUTRALITY
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = NEUTRALITY_MONARCHY
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = NEUTRALITY_REPUBLIC
					}
				}
			}
		}
	}
	UKR_hetmans_visit_to_new_germany = {
		icon = generic_decision

		available = {
			GER = { has_civil_war = no }
			has_government = neutrality
		}

		visible = {
			has_country_flag = UKR_support_german_junta
			NOT = { has_country_flag = UKR_bop_hetman_is_retired }
			has_government = neutrality
			GER = { 
				OR = {
					has_completed_focus = GER_oppose_hitler
					has_completed_focus = GER_oppose_hitler_ww
				}
				has_government = neutrality
				NOT = { has_war_with = ROOT }
			}
		}

		remove_effect = {
			GER = { country_event = ukraine.262 }
		}

		fire_only_once = yes
		
		days_remove = 7
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_shelter_for_nazi_generals = {
		icon = ger_reichskommissariats

		available = {
			GER = { has_civil_war = no }
			has_government = fascism
		}

		visible = {
			has_country_flag = UKR_support_german_nazi
			GER = { 
				NOT = { has_government = fascism }
			}
		}

		remove_effect = {
			army_experience = 10
			add_ideas = UKR_german_advisors
			if = {
				limit = { has_country_flag = UKR_has_OUN_struggle }
				oun_increase_control_small = yes
			}
		}

		fire_only_once = yes
		
		days_remove = 7
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_pressure_on_romanian_oil_supplies_to_germany = {
		icon = oil

		allowed = { NOT = { has_dlc = "La Resistance" } }

		available = {
			has_capitulated = no
			46 = { is_owned_and_controlled_by = ROM }
		}

		visible = {
			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
			}
		}

		remove_effect = {
			ROM = { country_event = { id = ukraine.283 days = 1 } }
		}

		fire_only_once = yes

		days_remove = 0
		cost = 75

		ai_will_do = {
			factor = 0
		}
	}
	UKR_new_union_treaty_with_ussr = {
		icon = generic_decision

		available = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				is_subject_of = ROOT
				has_autonomy_state = autonomy_integrated_puppet
				has_civil_war = no
			}
		}

		visible = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				OR = {
					is_puppet_of = ROOT
					is_subject_of = ROOT
				}
			}
			has_government = communism
			has_completed_focus = UKR_humane_communism
		}

		remove_effect = {
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
					is_puppet_of = ROOT
				}
				country_event = { id = ukraine.447 }
			}
		}

		fire_only_once = yes

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_new_union_treaty_with_ussr_for_nikita = {
		icon = generic_decision

		available = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				is_in_faction_with = UKR
				surrender_progress > 0.8
			}
			surrender_progress < 0.2
		}

		visible = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				is_in_faction_with = UKR
				has_war = yes
			}
			has_government = communism
			has_war = yes
			has_completed_focus = UKR_purge
		}

		remove_effect = {
			country_event = { id = ukraine.450 }
		}

		fire_only_once = yes

		days_remove = 0
		cost = 0

		ai_will_do = {
			factor = 1
		}
	}
}

UKR_integration_of_native_land = {
	UKR_form_great_ukraine_decision = {

		visible = {
			NOT = { has_completed_focus = UKR_coronation }
			NOT = { has_country_flag = UKR_form_new_ussr }
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = form_great_ukraine_base_states_tt
				controls_state = 192
				controls_state = 193
				controls_state = 194
				controls_state = 196
				controls_state = 197
				controls_state = 198
				controls_state = 199
				controls_state = 200
				controls_state = 201
				controls_state = 202
				controls_state = 203
				controls_state = 221
				controls_state = 225
				controls_state = 226
				controls_state = 227
				controls_state = 228
				controls_state = 259
				controls_state = 1047
			}
			custom_trigger_tooltip = {
				tooltip = form_great_ukraine_west_states_tt
				controls_state = 89
				controls_state = 91
				controls_state = 93
				controls_state = 1052
			}
			controls_state = 78
			controls_state = 80
			controls_state = 766
			controls_state = 137
			controls_state = 1051
			controls_state = 1048
			controls_state = 204
			controls_state = 94
			controls_state = 834
			controls_state = 73
			controls_state = 1049
			controls_state = 1054
			controls_state = 240
			controls_state = 1053
			controls_state = 234
		}

		remove_effect = {
			if = {
				limit = { has_idea = UKR_limited_expansionism }
				swap_ideas = {
					add_idea = UKR_limited_expansionism_adv
					remove_idea = UKR_limited_expansionism
				}
			} 
			else = {
				add_ideas = UKR_limited_expansionism_adv
			}
			every_owned_state = {
				limit  = {
					NOT = { is_core_of = ROOT }
				}
				add_compliance = 20
			}
			set_country_flag = UKR_form_great_ukraine_decision_flag
		}


		fire_only_once = yes	

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 100
		}
	}
	UKR_integration_of_bessarabia = {

		highlight_states = {
			highlight_state_targets = {
				state = 78
			}
		}
	
		visible = {
			OR = {
				AND = {
					MOL = {
						is_puppet_of = UKR
						has_war = no
					}
					78 = {
						is_owned_and_controlled_by = MOL
					}
				}
				78 = {
					is_owned_and_controlled_by = UKR
				}
			}
		}

		remove_effect = {
			country_event = ukraine.299
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}


		fire_only_once = yes	

		days_remove = 0
		cost = 0

		ai_will_do = {
			factor = 1
		}
	}

	UKR_integration_of_bukovina = {

		highlight_states = {
			highlight_state_targets = {
				state = 80
			}
		}
		
		visible = {
			80 = { 
				is_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			if = {
				limit = { 
					80 = { 
						owner = { NOT = { tag = ROOT } }
					} 
				}
				custom_trigger_tooltip = {
					tooltip = UKR_annexation_without_ownership
					80 = { compliance > 35 }
				}
			}
		}

		remove_trigger = {
			80 = { NOT = { is_controlled_by = UKR } } 
		}

		remove_effect = {
			country_event = ukraine.55
			if = {
				limit = { 
					80 = {
						owner = {
							NOT = { tag = ROOT }
							NOT = { has_war_with = ROOT }
						}
					}
				}
				80 = {
					owner = { 
						country_event = ukraine.313 
						add_opinion_modifier = { target = ROOT modifier = UKR_annexed_our_lands }
					}
				}
			}
			if = {
				limit = { 80 = { NOT = { is_owned_by = ROOT } } }
				80 = { set_state_owner_to = ROOT }
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}

	UKR_integration_of_budjak = {

		highlight_states = {
			highlight_state_targets = {
				state = 766
			}
		}
		
		visible = {
			766 = { 
				is_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			if = {
				limit = { 
					766 = { 
						owner = { NOT = { tag = ROOT } }
					} 
				}
				custom_trigger_tooltip = {
					tooltip = UKR_annexation_without_ownership
					766 = { compliance > 35 }
				}
			}
		}

		remove_trigger = {
			766 = { NOT = { is_controlled_by = UKR } } 
		}

		remove_effect = {
			country_event = ukraine.272
			if = {
				limit = { 
					766 = {
						owner = {
							NOT = { tag = ROOT }
							NOT = { has_war_with = ROOT }
						}
					}
				}
				766 = {
					owner = { 
						country_event = ukraine.313 
						add_opinion_modifier = { target = ROOT modifier = UKR_annexed_our_lands }
					}
				}
			}
			if = {
				limit = { 766 = { NOT = { is_owned_by = ROOT } } }
				766 = { set_state_owner_to = ROOT }
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}

	UKR_integration_of_carpathian_ukraine = {

		highlight_states = {
			highlight_state_targets = {
				state = 73
			}
		}

		visible = {
			73 = { 
				is_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			if = {
				limit = { 
					73 = { 
						owner = { NOT = { tag = ROOT } }
					} 
				}
				custom_trigger_tooltip = {
					tooltip = UKR_annexation_without_ownership
					73 = { compliance > 35 }
				}
			}
		}

		remove_effect = {
			country_event = ukraine.56
			if = {
				limit = { 
					73 = {
						owner = {
							NOT = { tag = ROOT }
							NOT = { has_war_with = ROOT }
						}
					}
				}
				73 = {
					owner = { 
						country_event = ukraine.313 
						add_opinion_modifier = { target = ROOT modifier = UKR_annexed_our_lands }
					}
				}
			}
			if = {
				limit = { 73 = { NOT = { is_owned_by = ROOT } } }
				73 = { set_state_owner_to = ROOT }
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			73 = { NOT = { is_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_kuban = {

		highlight_states = {
			highlight_state_targets = {
				state = 234
			}
		}

		visible = {
			234 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
			NOT = { has_completed_focus = UKR_coronation }
		}

		remove_effect = {
			country_event = ukraine.102
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			234 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_polesie = {

		highlight_states = {
			highlight_state_targets = {
				state = 94
			}
		}
		
		visible = {
			94 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
			NOT = { has_completed_focus = UKR_coronation }
		}

		available = {
			OR = {
				has_completed_focus = UKR_berestia
				94 = { compliance > 69 }
			}
		}

		remove_effect = {
			add_state_core = 94
			set_province_name = { id = 3392 name = UKR_berestia_city }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			94 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_gomel = {

		highlight_states = {
			highlight_state_targets = {
				state = 204
			}
		}
		
		visible = {
			204 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
			NOT = { has_completed_focus = UKR_coronation }
		}

		available = {
			OR = {
				has_completed_focus = UKR_berestia
				204 = { compliance > 69 }
			}
		}

		remove_effect = {
			country_event = ukraine.602
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			204 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_mozyr = { #Starodub

		highlight_states = {
			highlight_state_targets = {
				state = 1048
			}
		}
		
		visible = {
			1048 = { 
				is_owned_and_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
			NOT = { has_completed_focus = UKR_coronation }
		}

		available = {
			OR = {
				has_completed_focus = UKR_berestia
				has_completed_focus = UKR_ukrainian_community
				1048 = { compliance > 69 }
			}
		}
	
		remove_effect = {
			add_state_core = 1048
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}
	
		remove_trigger = {
			1048 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}
	
		modifier = {
			consumer_goods_factor = 0.05
		}
	
		fire_only_once = no	
	
		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small
	
		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_rostov = {

		highlight_states = {
			highlight_state_targets = {
				state = 218
			}
		}
		
		visible = {
			218 = { 
				is_owned_and_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
			has_completed_focus = UKR_ukrainian_irredentism
		}

		remove_effect = {
			add_state_core = 218
		}

		remove_trigger = {
			218 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_belgorod = {

		highlight_states = {
			highlight_state_targets = {
				state = 240
			}
		}

		visible = {
			240 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR } 
			}
			NOT = { has_completed_focus = UKR_coronation } 
		}

		available = {
			OR = {
				has_completed_focus = UKR_ukrainian_irredentism
				has_completed_focus = UKR_ukrainian_community
				240 = { compliance > 69 }
			}
		}

		remove_effect = {
			add_state_core = 240
		}

		remove_trigger = {
			240 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_east_sloboda = {

		highlight_states = {
			highlight_state_targets = {
				state = 1053
			}
		}

		visible = {
			1053 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR } 
			} 
			NOT = { has_completed_focus = UKR_coronation }
		}

		available = {
			OR = {
				has_completed_focus = UKR_ukrainian_irredentism
				has_completed_focus = UKR_ukrainian_community
				1053 = { compliance > 69 }
			}
		}

		remove_effect = {
			add_state_core = 1053
		}

		remove_trigger = {
			1053 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_millerovo = {

		highlight_states = {
			highlight_state_targets = {
				state = 245
			}
		}
		
		visible = {
			245 = { 
				is_owned_and_controlled_by = UKR 
				NOT = { is_core_of = UKR }
			} 
			has_completed_focus = UKR_ukrainian_irredentism
		}

		remove_effect = {
			add_state_core = 245
		}

		remove_trigger = {
			245 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_crimea = {
		
		visible = {
			OR = {
				AND = {
					CRM = {
						is_puppet_of = UKR
					}
					137 = {
						is_owned_and_controlled_by = CRM
					}
					1051 = {
						is_owned_and_controlled_by = CRM
					}
				}
				AND = {
					137 = {
						is_owned_and_controlled_by = UKR
					}
					1051 = {
						is_owned_and_controlled_by = UKR
					}
				}
			}
			1051 = { NOT = { is_core_of = CRI } }
			NOT = { has_completed_focus = UKR_coronation } # for russians kings are own decisions
		}

		remove_effect = {
			country_event = ukraine.85
		}


		fire_only_once = yes	

		days_remove = 0
		cost = 0

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_lithuania = {
		
		visible = {
			11 = { 
				is_owned_and_controlled_by = ROOT 
				NOT = { is_core_of = ROOT }
			}
			189 = { 
				is_owned_and_controlled_by = ROOT 
				NOT = { is_core_of = ROOT }
			} 
			has_completed_focus = UKR_reunion_of_lithuania
		}

		remove_effect = {
			every_owned_state = {
				limit = {
					is_core_of = LIT
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			11 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_big
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_belarus = {
		
		visible = {
			206 = { 
				is_owned_and_controlled_by = ROOT 
				NOT = { is_core_of = ROOT }
			} 
			has_completed_focus = UKR_lands_of_white_russia
		}

		remove_effect = {
			every_owned_state = {
				limit = {
					is_core_of = BLR
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			206 = { NOT = { is_owned_and_controlled_by = ROOT } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_big
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_green_ukraine = {
		
		visible = {
			has_country_flag = UKR_can_integrated_far_east
			any_owned_state = { 
				is_owned_and_controlled_by = ROOT 
				is_core_of = ZKL
			} 
		}

		remove_effect = {
			every_owned_state = {
				limit = {
					is_core_of = ZKL
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
				remove_core_of = ZKL
			}
			country_event = { id = ukraine.282 }
			set_country_flag = UKR_green_ukraine_integrated
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = yes	

		days_remove = var_ukr_integration_days_big
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_gray_ukraine = {
		
		visible = {
			has_country_flag = UKR_can_integrated_siberia
			any_owned_state = { 
				is_owned_and_controlled_by = ROOT 
				is_core_of = SKL
			} 
		}

		remove_effect = {
			every_owned_state = {
				limit = {
					is_core_of = SKL
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
				remove_core_of = SKL
			}
			country_event = { id = ukraine.580 }
			set_country_flag = UKR_gray_ukraine_integrated
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = yes	

		days_remove = var_ukr_integration_days_big
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_yellow_ukraine = {
		
		visible = {
			has_completed_focus = UKR_yellow_wedge
		}

		available = {
			count_triggers = {
				amount = 3
				236 = {	is_owned_and_controlled_by = ROOT }
				217 = {	is_owned_and_controlled_by = ROOT }
				265 = {	is_owned_and_controlled_by = ROOT }
				829 = {	is_owned_and_controlled_by = ROOT }
				239 = {	is_owned_and_controlled_by = ROOT }
				401 = {	is_owned_and_controlled_by = ROOT }
			}
		}

		remove_effect = {
			if = {
				limit = { 236 = { is_owned_and_controlled_by = ROOT } }
				236 = { add_core_of = ROOT }
			}
			if = {
				limit = { 217 = { is_owned_and_controlled_by = ROOT } }
				217 = { add_core_of = ROOT }
			}
			if = {
				limit = { 265 = { is_owned_and_controlled_by = ROOT } }
				265 = { add_core_of = ROOT }
			}
			if = {
				limit = { 829 = { is_owned_and_controlled_by = ROOT } }
				829 = { add_core_of = ROOT }
				set_province_name = { id = 9432 name = UKR_baronsk }
				set_province_name = { id = 11523 name = UKR_pokrovsk }
			}
			if = {
				limit = { 239 = { is_owned_and_controlled_by = ROOT } }
				239 = { add_core_of = ROOT }
			}
			if = {
				limit = { 401 = { is_owned_and_controlled_by = ROOT } }
				401 = { add_core_of = ROOT }
			}
			country_event = { id = ukraine.644 }
			set_country_flag = UKR_yellow_ukraine_integrated
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = yes	

		days_remove = var_ukr_integration_days_big
		cost = var_ukr_integration_cost_big

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_transcurzonia = {

		highlight_states = {
			highlight_state_targets = {
				state = 834
			}
		}

		visible = {
			834 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			834 = { 
				OR = {
					is_claimed_by = UKR
					compliance > 69
				}
			}
		}

		remove_effect = {
			country_event = ukraine.399
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			834 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_presov = {

		highlight_states = {
			highlight_state_targets = {
				state = 1049
			}
		}

		visible = {
			1049 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			1049 = { 
				compliance > 69
			}
		}

		remove_effect = {
			add_state_core = 1049
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			1049 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_marmaros = {

		highlight_states = {
			highlight_state_targets = {
				state = 1054
			}
		}

		visible = {
			1054 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			} 
		}

		available = {
			OR = {
				has_completed_focus = UKR_rusyns_go_home
				1054 = { 
					compliance > 69
				}
			}
		}

		remove_effect = {
			add_state_core = 1054
			set_province_name = { id = 9704 name = UKR_sygit }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			1054 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = var_ukr_integration_days_small
		cost = var_ukr_integration_cost_small

		ai_will_do = {
			factor = 1
		}
	}
	UKR_forced_annexation_of_west_ukraine_in_poland = {
		visible = {
			91 = { 
				is_owned_and_controlled_by = POL 
			}
			199 = {
				is_owned_and_controlled_by = UKR
			}
			POL = { is_subject_of = UKR } 
		}

		available = {
			divisions_in_state = {
				state = 91	
				size > 3
			}
			if = {
				limit = { 89 = { is_owned_and_controlled_by = POL } }
				divisions_in_state = {
					state = 89	
					size > 3
				}
			}
			if = {
				limit = { 93 = { is_owned_and_controlled_by = POL } }
				divisions_in_state = {
					state = 93	
					size > 3
				}
			}
			if = {
				limit = { 1052 = { is_owned_and_controlled_by = POL } }
				divisions_in_state = {
					state = 1052	
					size > 3
				}
			}
		}

		remove_effect = {
			POL = {
				country_event = { id = ukraine.503 }
			}
			WUA = {
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 1052
				transfer_state = 89
				transfer_state = 91
				transfer_state = 93
				transfer_state = 1052
				inherit_technology = POL
				set_research_slots = 2
			}
			puppet = WUA
			if = {
				limit = {
					NOT = { has_government = communism }
				}
				UKR_kost_levytsky = { set_nationality = WUA }
				WUA = {
					set_politics = { ruling_party = democratic elections_allowed = yes }
					promote_character = UKR_kost_levytsky
					add_popularity = { ideology = democratic popularity = 0.5 }
					set_cosmetic_tag = WUA_C
				}
			}
			if = {
				limit = {
					has_government = communism
				}
				WUA = {
					set_politics = { ruling_party = communism elections_allowed = no }
					add_popularity = { ideology = communism popularity = 0.5 }
					set_cosmetic_tag = WUA_C
				}
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 0
		}
	}
	UKR_autonomy_west_ukraine_mission = {

		icon = generic_operation

		allowed = { always = no } #Activated from effect

		available = { #success effect
			divisions_in_state = {
				state = 89	
				size > 3
			} 
			89 = { controller = { original_tag = POL } }
			divisions_in_state = {
				state = 91	
				size > 3
			} 
			91 = { controller = { original_tag = POL } }
			divisions_in_state = {
				state = 93	
				size > 3
			} 
			93 = { controller = { original_tag = POL } }
			divisions_in_state = {
				state = 1052	
				size > 3
			} 
			1052 = { controller = { original_tag = POL } }
		}

		days_mission_timeout = 30

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		#Fail
		timeout_effect = {
			WUA = {
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 1052
			}
			if = {
				limit = {
					divisions_in_state = {
						state = 89	
						size > 3
					} 
					89 = { controller = { original_tag = POL } }
				}
				WUA = {
					transfer_state = 89
				}
			}
			if = {
				limit = {
					divisions_in_state = {
						state = 91	
						size > 3
					} 
					91 = { controller = { original_tag = POL } }
				}
				WUA = {
					transfer_state = 91
				}
			}
			if = {
				limit = {
					divisions_in_state = {
						state = 93	
						size > 3
					}
					93 = { controller = { original_tag = POL } } 
				}
				WUA = {
					transfer_state = 93
				}
			}
			if = {
				limit = {
					divisions_in_state = {
						state = 1052	
						size > 3
					}
					1052 = { controller = { original_tag = POL } } 
				}
				WUA = {
					transfer_state = 1052
				}
			}
			if = {
				limit = {
					WUA = {
						num_of_controlled_states > 0
					}
				}
				random_other_country = {
					limit = {
						original_tag = POL
						is_in_faction_with = ROOT
					}
					puppet = WUA
				}
				country_event = ukraine.517
				hidden_effect = {
					UKR_kost_levytsky = { set_nationality = WUA }
					WUA = {
						inherit_technology = POL
						set_research_slots = 2
						set_politics = { ruling_party = democratic elections_allowed = yes }
						promote_character = UKR_kost_levytsky
						add_popularity = { ideology = democratic popularity = 0.5 }
						set_cosmetic_tag = WUA_C
					}
					random_other_country = {
						limit = {
							original_tag = POL 
			 				is_in_faction_with = ROOT
			 				has_capitulated = yes
						}
						country_event = ukraine.515
					}
				}
			}
			else = {
				country_event = ukraine.516
			}
		}
		#Success
		complete_effect = {
			WUA = {
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 1052
				transfer_state = 89
				transfer_state = 91
				transfer_state = 93
				transfer_state = 1052
			}
			random_other_country = {
				limit = {
					original_tag = POL
					is_in_faction_with = ROOT
				}
				puppet = WUA
			}
			hidden_effect = {
				UKR_kost_levytsky = { set_nationality = WUA }
				WUA = {
					inherit_technology = POL
					set_research_slots = 2
					set_politics = { ruling_party = democratic elections_allowed = yes }
					promote_character = UKR_kost_levytsky
					add_popularity = { ideology = democratic popularity = 0.5 }
					set_cosmetic_tag = WUA_C
				}
				country_event = ukraine.517
				random_other_country = {
					limit = {
						original_tag = POL 
		 				is_in_faction_with = ROOT
		 				has_capitulated = yes
					}
					country_event = ukraine.515
				}
			}
		}
	}
	UKR_annexation_of_kuban = {

		targets = { KUB }

		visible = {
			234 = { 
				is_owned_and_controlled_by = KUB 
				NOT = { is_core_of = UKR }
			}
			KUB = { is_puppet_of = UKR } 
		}

		available = {
			divisions_in_state = {
				state = 234	
				size > 4
			}
			if = {
				limit = { 233 = { is_owned_and_controlled_by = KUB } }
				divisions_in_state = {
					state = 233	
					size > 2
				}
			}
			if = {
				limit = { 1050 = { is_owned_and_controlled_by = KUB } }
				divisions_in_state = {
					state = 1050	
					size > 2
				}
			}
		}

		remove_effect = {
			KUB = {
				country_event = { id = ukraine.118 days = 1 }
			}
			custom_effect_tooltip = UKR_annexation_of_kuban_tt
			if = { #for case while Kuban was nationalised by self, but Ukraine annexated it before event kuban.4
				limit = {
					234 = { is_core_of = ROOT }
				}
				set_country_flag = UKR_crimson_ukraine_integrated
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 150

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				KUB = { 
					OR = {
						has_completed_focus = KUB_our_free_nation
						has_completed_focus = KUB_cossaks_autonomy
					}
				}
			}
		}
	}
	UKR_annexation_of_carphatian_ukraine = {

		targets = { CUA }

		visible = {
			73 = { 
				is_owned_and_controlled_by = CUA 
				NOT = { is_core_of = UKR }
			}
			CUA = { is_puppet_of = UKR	}
		}

		available = {
			OR = {
				CUA = { is_neighbor_of = ROOT }
				89 = { controller = { tag = ROOT } }
			}
		}

		remove_effect = {
			CUA = {
				country_event = { id = ukraine.120 days = 1 }
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_annexation_of_west_ukraine = {

		targets = { WUA }

		visible = {
			country_exists = WUA
			NOT = { has_war_with = ROOT }
			OR = {
				WUA = {	is_subject_of = UKR	}
				WUA = {	is_subject = no	}
			}
		}

		available = {
			WUA = { 
				has_capitulated = no 
			}
			OR = {
				WUA = { has_war = no }
				any_other_country = {
					has_war_with = ROOT
					has_war_with = WUA
				}
			}
		}

		remove_effect = {
			WUA = {
				country_event = { id = ukraine.42 days = 1 }
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_annexation_of_green_ukraine = {

		targets = { ZKL }

		visible = {
			ZKL = {
				exists = yes
				surrender_progress < 0.1
				OR = {
					has_completed_focus = ZKL_our_green_ukraine
					has_completed_focus = ZKL_union_with_ukraine
				}
				
			}
		}

		available = {
			ZKL = {
				NOT = { has_war_with = ROOT }
				OR = {
					is_puppet_of = ROOT
					is_puppet = no
				}
			}
		}

		remove_effect = {
			ZKL = {
				country_event = { id = ukraine.279 days = 1 }
			}
		}

		fire_only_once = no	

		days_remove = 0
		days_re_enable = 180
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_declare_of_carphatian_ukraine_autonomy = {
		visible = {
			has_war = yes
			73 = {
				OR = {
					is_owned_and_controlled_by = CZE
					AND = {
						is_owned_and_controlled_by = CUA
						CUA = {
							is_puppet_of = CZE
							has_completed_focus = CUA_proukrainian_government 
						}
					}
				} 
				is_core_of = CUA 
			}
			is_in_faction_with = CZE

		}

		available = {
			CZE = { has_capitulated = yes }
			73 = { 
				OR = {
					is_owned_and_controlled_by = CZE
					AND = {
						is_owned_and_controlled_by = CUA
						CUA = {
							is_puppet_of = CZE
							has_completed_focus = CUA_proukrainian_government 
						}
					}
				}
				is_core_of = CUA 
			}
		}

		remove_effect = {
			if = {
				limit = { NOT = { country_exists = CUA } }
				CZE = {	release = CUA }
			}
			puppet = CUA
			CUA = { set_politics = { ruling_party = democratic elections_allowed = yes } }
			CZE = {
				add_opinion_modifier = { target = UKR modifier = UKR_claimed_carpatian_ruthenia }
				country_event = { id = ukraine.276 hours = 6 }
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_forced_annexation_of_bessarabia = {
		icon = border_war

		visible = {
			any_other_country = {
				NOT = { is_in_faction_with = UKR }
				NOT = { has_war_with = UKR }
				has_capitulated = yes
				owns_state = 78
			}
			78 = { is_claimed_by = UKR }
			UKR = {
				controls_state = 78
			}
		}

		remove_effect = {
			custom_effect_tooltip = UKR_forced_annexation_tt
			random_other_country = {
				limit = {
					owns_state = 78
				}
				add_opinion_modifier = { target = UKR modifier = UKR_annexed_our_lands }
				country_event = { id = ukraine.313 hours = 6 }
			}
			transfer_state = 78
		}

		fire_only_once = yes

		days_remove = 0
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_take_control_over_WUA = {

		icon = generic_civil_support

		targets = { WUA }

		visible = {
			WUA = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			if = {
				limit = {
					WUA = { is_ai = yes }
				}
				WUA = { change_tag_from = ROOT }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 0
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_take_control_over_KUB = {

		icon = generic_civil_support

		targets = { KUB }

		visible = {
			KUB = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			if = {
				limit = {
					KUB = { is_ai = yes }
				}
				KUB = { change_tag_from = ROOT }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 0
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_take_control_over_ZKL = {

		icon = generic_civil_support

		targets = { ZKL }

		visible = {
			ZKL = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			if = {
				limit = {
					ZKL = { is_ai = yes }
				}
				ZKL = { change_tag_from = ROOT }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 0
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_take_control_over_SKL = {

		icon = generic_civil_support

		targets = { SKL }

		visible = {
			SKL = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			if = {
				limit = {
					SKL = { is_ai = yes }
				}
				SKL = { change_tag_from = ROOT }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 0
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
}

UKR_take_control_over_UKR_category = {
	UKR_take_control_over_UKR_for_wedges = {

		icon = generic_civil_support

		targets = { UKR }

		visible = {
			UKR = {
				exists = yes
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			if = {
				limit = {
					UKR = { is_ai = yes }
				}
				UKR = { change_tag_from = ROOT }
			}
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 0
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
}

UKR_investitions = {
	UKR_usa_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_decision = UKR_uk_investments }
			NOT = { has_decision = UKR_french_investments }
			NOT = { has_decision = UKR_german_investments }
			USA = { has_opinion = { target = UKR value > 34 } }
		}

		fire_only_once = yes

		modifier = {
			industrial_capacity_factory = 0.1
		}

		days_remove = 180
		cost = 50

		remove_effect = {
			if = {
				limit = { has_idea = civilian_economy }
				add_stability = 0.03
				add_tech_bonus = {
					name = UKR_usa_investments
					bonus = 1.0
					uses = 2
					category = industry
				}
			}
			else = {
				add_stability = 0.02
				add_tech_bonus = {
					name = UKR_usa_investments
					bonus = 1.0
					uses = 1
					category = industry
				}
			}
			custom_effect_tooltip = UKR_biggest_investmens_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_uk_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_decision = UKR_usa_investments }
			NOT = { has_decision = UKR_french_investments }
			NOT = { has_decision = UKR_german_investments }
			ENG = { has_opinion = { target = UKR value > 34 } }
		}

		fire_only_once = yes

		modifier = {
			production_speed_buildings_factor = 0.1
		}

		days_remove = 180
		cost = 50

		remove_effect = {
			if = {
				limit = { has_idea = civilian_economy }
				add_stability = 0.03
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = industrial_complex
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				add_stability = 0.02
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = industrial_complex
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			custom_effect_tooltip = UKR_biggest_investmens_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_french_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_decision = UKR_uk_investments }
			NOT = { has_decision = UKR_usa_investments }
			NOT = { has_decision = UKR_german_investments }
			FRA = { has_opinion = { target = UKR value > 34 } }
		}

		fire_only_once = yes

		modifier = {
			local_resources_factor = 0.1
		}

		days_remove = 180
		cost = 50

		remove_effect = {
			if = {
				limit = { has_idea = civilian_economy }
				add_stability = 0.03
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = infrastructure
											size > 1
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				add_stability = 0.02
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = infrastructure
											size > 0
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			custom_effect_tooltip = UKR_biggest_investmens_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_german_investments = {

		icon = hol_attract_foreign_investors

		visible = {
			GER = {
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
		}

		available = {
			NOT = { has_decision = UKR_uk_investments }
			NOT = { has_decision = UKR_usa_investments }
			NOT = { has_decision = UKR_french_investments }
			GER = { 
				has_civil_war = no
				has_opinion = { target = UKR value > 34 } 
			}
		}

		fire_only_once = yes

		modifier = {
			research_speed_factor = 0.10
		}

		days_remove = 180
		cost = 50

		remove_effect = {
			if = {
				limit = { has_idea = civilian_economy }
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			custom_effect_tooltip = UKR_biggest_investmens_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_foreign_credits = {
		icon = eng_trade_unions_support

		complete_effect = {
			add_offsite_building = { type = industrial_complex level = 10 }
		}

		remove_effect = {
			add_offsite_building = { type = industrial_complex level = -10 }
			country_event = ukraine.364
		}


		fire_only_once = yes

		days_remove = 365
		cost = 25
		ai_will_do = {
			factor = 1
		}
	}
	UKR_pay_credits = {
		icon = eng_trade_unions_support

		visible = {
			always = no
		}

		modifier = { civilian_factory_use = 3 }

		fire_only_once = yes

		days_remove = 800

	}
	UKR_forced_pay_credits = {
		icon = eng_trade_unions_support

		visible = {
			always = no
		}

		modifier = { civilian_factory_use = 6 }

		fire_only_once = yes

		days_remove = 400

	}
}

UKR_megaprojects_decisions = {
	UKR_build_kyiv_dam = { #202
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 202
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 202
			controls_state = 202
		}

		cancel_trigger = {
			202 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			202 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 525
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			add_to_variable = { var_ukr_dam_numb = 1 }
			if = {
				limit = { check_variable = { var_ukr_dam_numb > 5 } }
				set_country_flag = UKR_all_dams_are_built
			}
		}	
	}	
	UKR_build_kaniv_dam = { #203
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 203
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 203
			controls_state = 203
		}

		cancel_trigger = {
			203 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			203 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 11454
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			add_to_variable = { var_ukr_dam_numb = 1 }
			if = {
				limit = { check_variable = { var_ukr_dam_numb > 5 } }
				set_country_flag = UKR_all_dams_are_built
			}
		}	
	}	
	UKR_build_kremenchuk_dam = { #259
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 259
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 259
			controls_state = 259
		}

		cancel_trigger = {
			259 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			259 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 6495
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			add_to_variable = { var_ukr_dam_numb = 1 }
			if = {
				limit = { check_variable = { var_ukr_dam_numb > 5 } }
				set_country_flag = UKR_all_dams_are_built
			}
		}	
	}	
	UKR_build_middledniper_dam = { #226
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 226
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 226
			controls_state = 226
		}

		cancel_trigger = {
			226 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			226 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 9433
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			add_to_variable = { var_ukr_dam_numb = 1 }
			if = {
				limit = { check_variable = { var_ukr_dam_numb > 5 } }
				set_country_flag = UKR_all_dams_are_built
			}
		}	
	}	
	UKR_build_kakhovka_dam = { #196
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 196
			}
		}
		available = {
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 196
			controls_state = 196
		}

		cancel_trigger = {
			196 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			196 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 737
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
			add_to_variable = { var_ukr_dam_numb = 1 }
			if = {
				limit = { check_variable = { var_ukr_dam_numb > 5 } }
				set_country_flag = UKR_all_dams_are_built
			}
		}	
	}
	UKR_build_dniester_dam = { #78
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 78
			}
		}
		available = {
			has_completed_focus = UKR_reconstruction_of_bessarabia
			num_of_civilian_factories_available_for_projects > 7
			owns_state = 78
			controls_state = 78
			owns_state = 198
			controls_state = 198
		}

		cancel_trigger = {
			202 = {
				NOT = { is_owned_and_controlled_by = ROOT }
			}
		}

		fire_only_once = yes

		cost = 75
		days_remove = 365

		modifier = {
			civilian_factory_use = 8
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			78 = {	
				add_building_construction = {
					type = dam
					level = 1
					instant_build = yes
					province = {
						id = 414
					}
				}
				custom_effect_tooltip = {
					localization_key = building_state_modifier|dam
					INDENT = "    "
				}
			}
		}	
	}		
}

UKR_masons_category = {
	UKR_masons_rebellion_in_poland = {

		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		available = {
			91 = { 
				controller = { 
					OR = { 
						has_war_with = ROOT 
						is_in_faction_with = ROOT
						tag = ROOT
					}
				} 
			}
		}

		days_mission_timeout = 500

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = yes

		# success
		timeout_effect = {
			if = {
				limit = {
					91 = { controller = { original_tag = POL }	} 
				}
				random_other_country = {
					limit = {
						original_tag = POL
						controls_state = 91
					}
					country_event = ukraine.550
				}
			}
			else = {
				random_other_country = {
					limit = {
						NOT = { original_tag = WUA }
						controls_state = 91
					}
					country_event = ukraine.554
				}
			}
		}
		# fail
		complete_effect = {
			
		}
	}
	UKR_natcon_weapons_in_poland = {
		icon = infiltrate_state
		visible = {
			has_active_mission = UKR_masons_rebellion_in_poland
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 60
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_poland
				days = -90
			}
		}
	}	
	UKR_masons_rebellion_in_romania = {

		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		available = {
			78 = { 
				controller = { 
					OR = { 
						has_war_with = ROOT 
						is_in_faction_with = ROOT
						tag = ROOT
					}
				} 
			}
		}

		days_mission_timeout = 500

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = yes

		# success
		timeout_effect = {
			if = {
				limit = {
					78 = { controller = { original_tag = ROM }	} 
				}
				random_other_country = {
					limit = {
						original_tag = ROM
						controls_state = 78
					}
					country_event = ukraine.559
				}
			}
			else = {
				random_other_country = {
					limit = {
						NOT = { original_tag = MOL }
						controls_state = 78
					}
					country_event = ukraine.562
				}
			}
		}
		# fail
		complete_effect = {
			
		}
	}
	UKR_natcon_weapons_in_romania = {
		icon = infiltrate_state
		visible = {
			has_active_mission = UKR_masons_rebellion_in_romania
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 60
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_romania
				days = -90
			}
		}
	}
	UKR_masons_rebellion_in_czechoslovakia = {

		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		available = {
			73 = { 
				controller = { 
					OR = { 
						has_war_with = ROOT 
						is_in_faction_with = ROOT
						tag = ROOT
					}
				} 
			}
		}

		days_mission_timeout = 500

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = yes

		# success
		timeout_effect = {
			if = {
				limit = {
					73 = { controller = { original_tag = CZE }	} 
				}
				random_other_country = {
					limit = {
						original_tag = CZE
						controls_state = 73
					}
					country_event = ukraine.572
				}
			}
			else = {
				random_other_country = {
					limit = {
						NOT = { original_tag = CUA }
						controls_state = 73
					}
					country_event = ukraine.575
				}
			}
		}
		# fail
		complete_effect = {
			
		}
	}
	UKR_natcon_weapons_in_czechoslovakia = {
		icon = infiltrate_state
		visible = {
			has_active_mission = UKR_masons_rebellion_in_czechoslovakia
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 60
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_czechoslovakia
				days = -90
			}
		}
	}
}

UKR_state_plan_category = {
	UKR_four_year_plan = {
		icon = generic_construction

		modifier = { production_speed_buildings_factor = 0.05 }

		fire_only_once = yes

		days_remove = 1460

	}
	UKR_build_factory_for_plan = {
		icon = generic_merge_plant_materiel
		available = {
			custom_trigger_tooltip = {
				tooltip = UKR_build_factory_for_plan_tt
				any_owned_state = {
					has_state_flag = UKR_natcom_build_factory
					check_variable = { factory_goal < industrial_complex_level }
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				has_state_flag = UKR_natcom_build_factory
			}
		}

		days_mission_timeout = var_ukr_fyp_factory_time
		is_good = no
		activation = {
			any_owned_state = {
				has_state_flag = UKR_natcom_build_factory
			}
		}
		timeout_effect = {
			ROOT = {
				if = {
					limit = { # indulgence for AI and party root with DKR
						OR = {
							is_ai = yes
							has_subject = DKR
						}
					}
					add_stability = -0.005
					add_popularity = {
						ideology = communism
						popularity = -0.01
					}
				}
				else = {
					add_stability = -0.01
					add_popularity = {
						ideology = communism
						popularity = -0.05
					}
				}
				add_to_variable = { UKR_natcom_failed_missions = 1 }
				country_event = ukraine.589
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_factory
					}
					clr_state_flag = UKR_natcom_build_factory
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
		complete_effect = {
			ROOT = {
				add_political_power = 30
				add_stability = 0.01
				add_to_variable = { UKR_natcom_successful_missions = 1 }
				country_event = ukraine.588
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_factory
					}
					clr_state_flag = UKR_natcom_build_factory
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
	}
	UKR_build_arms_factory_for_plan = {
		icon = generic_merge_plant_tank
		available = {
			custom_trigger_tooltip = {
				tooltip = UKR_build_arms_factory_for_plan_tt
				any_owned_state = {
					has_state_flag = UKR_natcom_build_arms_factory
					check_variable = { factory_goal < arms_factory_level }
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				has_state_flag = UKR_natcom_build_arms_factory
			}
		}

		days_mission_timeout = var_ukr_fyp_arms_time
		is_good = no
		activation = {
			any_owned_state = {
				has_state_flag = UKR_natcom_build_arms_factory
			}
		}
		timeout_effect = {
			ROOT = {
				if = {
					limit = { # indulgence for AI and party root with DKR
						OR = {
							is_ai = yes
							has_subject = DKR
						}
					}
					add_stability = -0.005
					add_popularity = {
						ideology = communism
						popularity = -0.01
					}
				}
				else = {
					add_stability = -0.01
					add_popularity = {
						ideology = communism
						popularity = -0.05
					}
				}
				add_to_variable = { UKR_natcom_failed_missions = 1 }
				country_event = ukraine.589
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_arms_factory
					}
					clr_state_flag = UKR_natcom_build_arms_factory
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
		complete_effect = {
			ROOT = {
				add_political_power = 30
				add_stability = 0.01
				add_to_variable = { UKR_natcom_successful_missions = 1 }
				country_event = ukraine.588
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_arms_factory
					}
					clr_state_flag = UKR_natcom_build_arms_factory
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
	}
	UKR_build_dockyard_for_plan = {
		icon = generic_merge_plant_ship
		available = {
			custom_trigger_tooltip = {
				tooltip = UKR_build_dockyard_for_plan_tt
				any_owned_state = {
					has_state_flag = UKR_natcom_build_dockyard
					check_variable = { factory_goal < building_level@dockyard }
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				has_state_flag = UKR_natcom_build_dockyard
			}
		}

		days_mission_timeout = var_ukr_fyp_dockyard_time
		is_good = no
		activation = {
			any_owned_state = {
				has_state_flag = UKR_natcom_build_dockyard
			}
		}
		timeout_effect = {
			ROOT = {
				if = {
					limit = { # indulgence for AI and party root with DKR
						OR = {
							is_ai = yes
							has_subject = DKR
						}
					}
					add_stability = -0.005
					add_popularity = {
						ideology = communism
						popularity = -0.01
					}
				}
				else = {
					add_stability = -0.01
					add_popularity = {
						ideology = communism
						popularity = -0.05
					}
				}
				add_to_variable = { UKR_natcom_failed_missions = 1 }
				country_event = ukraine.589
			}
			
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_dockyard
					}
					clr_state_flag = UKR_natcom_build_dockyard
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
		complete_effect = {
			ROOT = {
				add_political_power = 30
				add_stability = 0.01
				add_to_variable = { UKR_natcom_successful_missions = 1 }
				country_event = ukraine.588
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_dockyard
					}
					clr_state_flag = UKR_natcom_build_dockyard
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
	}
	UKR_build_infrastructure_for_plan = {
		icon = generic_trucks
		available = {
			custom_trigger_tooltip = {
				tooltip = UKR_build_infrastructure_for_plan_tt
				any_owned_state = {
					has_state_flag = UKR_natcom_build_infrastructure
					check_variable = { factory_goal < infrastructure_level }
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				has_state_flag = UKR_natcom_build_infrastructure
			}
		}

		days_mission_timeout = var_ukr_fyp_infra_time
		is_good = no
		activation = {
			any_owned_state = {
				has_state_flag = UKR_natcom_build_infrastructure
			}
		}
		timeout_effect = {
			ROOT = {
				if = {
					limit = { # indulgence for AI and party root with DKR
						OR = {
							is_ai = yes
							has_subject = DKR
						}
					}
					add_stability = -0.005
					add_popularity = {
						ideology = communism
						popularity = -0.01
					}
				}
				else = {
					add_stability = -0.01
					add_popularity = {
						ideology = communism
						popularity = -0.05
					}
				}
				add_to_variable = { UKR_natcom_failed_missions = 1 }
				country_event = ukraine.589
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_infrastructure
					}
					clr_state_flag = UKR_natcom_build_infrastructure
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
		complete_effect = {
			ROOT = {
				add_political_power = 30
				add_stability = 0.01
				add_to_variable = { UKR_natcom_successful_missions = 1 }
				country_event = ukraine.588
			}
			hidden_effect = {
				random_owned_state = {
					limit = {
						has_state_flag = UKR_natcom_build_infrastructure
					}
					clr_state_flag = UKR_natcom_build_infrastructure
					clear_variable = factory_goal
				}
				country_event = { id = ukraine.537 hours = 4 }
			}
		}
	}
}

UKR_naval_focus = {
	UKR_industry_for_fleet = {
		icon = generic_naval

		fire_only_once = no

		remove_trigger = {
			hidden_trigger = {
				has_country_flag = ukr_cancel_fleet
			}
		}

		modifier = {
			industrial_capacity_dockyard = 0.15
			production_speed_dockyard_factor = 0.15
			production_speed_arms_factory_factor = -0.2
		}

		days_remove = -1
		days_re_enable = 90
		cost = 100

		complete_effect = {
			if = {
				limit = { has_country_flag = ukr_cancel_fleet }
				clr_country_flag = ukr_cancel_fleet
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_cancel_of_naval_focus = {
		icon = generic_naval

		fire_only_once = no

		visible = {
			has_decision = UKR_industry_for_fleet
		}

		days_remove = 0
		cost = 25

		complete_effect = {
			set_country_flag = ukr_cancel_fleet
		}
	}
	UKR_bases_on_baltic = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = { 6314 9340 3152 }
		}

		available = {
			num_of_civilian_factories_available_for_projects > 4
		}

		visible = {
			has_completed_focus = UKR_baltic_infrastructure
			OR = {
				is_in_faction_with = LIT
				is_in_faction_with = LAT
				is_in_faction_with = EST
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = {
			if = { 
				limit = { 
					189 = { is_owned_and_controlled_by = LIT } 
					LIT = { is_in_faction_with = UKR }
				}
				189 = {
					add_building_construction = {
						type = naval_base
						level = 2
						province = 6314
						instant_build = yes
					}
				}
			} 
			if = { 
				limit = { 
					12 = { is_owned_and_controlled_by = LAT } 
					LAT = { is_in_faction_with = UKR }
				}
				12 = {
					add_building_construction = {
						type = naval_base
						level = 2
						province = 9340
						instant_build = yes
					}
				}
			} 
			if = { 
				limit = { 
					13 = { is_owned_and_controlled_by = EST }
					EST = { is_in_faction_with = UKR } 
				}
				13 = {
					add_building_construction = {
						type = naval_base
						level = 2
						province = 3152
						instant_build = yes
					}
				}
			} 
		}	
	}
	UKR_road_to_baltic = { 
		
		icon = generic_construction

		#highlight_provinces = {  }

		available = {
			num_of_civilian_factories_available_for_projects > 4
		}

		visible = {
			has_completed_focus = UKR_baltic_infrastructure
			94 = {
				controller = {
					OR = {
						tag = ROOT
						is_in_faction_with  = ROOT
					}
				}
			}
			95 = {
				controller = {
					OR = {
						tag = ROOT
						is_in_faction_with  = ROOT
					}
				}
			}
			784 = {
				controller = {
					OR = {
						tag = ROOT
						is_in_faction_with  = ROOT
					}
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			94 = {
				if = {
					limit = {
						controller = {
							OR = {
								tag = ROOT
								is_in_faction_with  = ROOT
							}
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			95 = {
				if = {
					limit = {
						controller = {
							OR = {
								tag = ROOT
								is_in_faction_with  = ROOT
							}
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			784 = {
				if = {
					limit = {
						controller = {
							OR = {
								tag = ROOT
								is_in_faction_with  = ROOT
							}
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	UKR_baltic_docks = { 
		
		icon = generic_construction

		available = {
			num_of_civilian_factories_available_for_projects > 6
		}

		visible = {
			has_completed_focus = UKR_baltic_infrastructure
			OR = {
				is_in_faction_with = LIT
				is_in_faction_with = LAT
				is_in_faction_with = EST
			}
		}

		fire_only_once = yes

		cost = 30
		days_remove = 90

		modifier = {
			civilian_factory_use = 6
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = {
			LIT = {
				if = {
					limit = { is_in_faction_with = UKR }
					add_offsite_building = { type = dockyard level = 1 }
				}
			}
			LAT = {
				if = {
					limit = { is_in_faction_with = UKR }
					add_offsite_building = { type = dockyard level = 1 }
				}
			}
			EST = {
				if = {
					limit = { is_in_faction_with = UKR }
					add_offsite_building = { type = dockyard level = 1 }
				}
			}
		}	
	}
	UKR_preventing_communist_threat_from_poland = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = POL
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = POL
				}
			}
			strength_ratio = {
				tag = POL
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			POL = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			POL = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
			modifier = {#dont need war with USSR
				factor = 0
				POL = { has_government = communism }
				SOV = { has_government = communism }
			}
		}
	}
	UKR_preventing_communist_threat_from_romania = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = ROM
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = ROM
				}
			}
			strength_ratio = {
				tag = ROM
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			ROM = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			ROM = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_preventing_communist_threat_from_hungary = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = HUN
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = HUN
				}
			}
			strength_ratio = {
				tag = HUN
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			HUN = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			HUN = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_preventing_communist_threat_from_yugoslavia = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = YUG
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = YUG
				}
			}
			strength_ratio = {
				tag = YUG
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			YUG = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			YUG = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_preventing_communist_threat_from_bulgaria = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = BUL
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = BUL
				}
			}
			strength_ratio = {
				tag = BUL
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			BUL = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			BUL = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_preventing_communist_threat_from_czechoslovakia = {
		icon = oppression

		available = {
			OR = {
				is_neighbor_of = CZE
				any_other_country = {
					is_in_faction_with = UKR
					is_neighbor_of = CZE
				}
			}
			strength_ratio = {
				tag = CZE
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_council_of_defence
			is_faction_leader = yes
			CZE = {
				exists = yes
				is_puppet = no
				has_war = no
				OR = {
					communism > 0.3
					has_government = communism
				}
			}
		}

		complete_effect = {
			CZE = { country_event = ukraine.320 }
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					check_variable = { var_ucr_support_of_guards_of_order < 100 }
				}
				ucr_support_of_guards_big = yes
			}
			if = {
				limit = { 
					has_country_flag = UKR_cossack_republic
					NOT = { has_country_flag = UKR_black_rada_is_rulers }
					check_variable = { var_ucr_support_of_black_rada > 0 }
				}
				ucr_opposition_of_black_small = yes
			}
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_czechoslovakia = {
		icon = hol_exchange_intelligence_data

		available = {
			OR = {
				is_neighbor_of = CZE
				any_other_country = {
					is_in_faction_with = ROOT
					is_neighbor_of = CZE
				}
			}
			CZE = { 
				has_opinion = { target = ROOT value > 75 } 
				NOT = { has_government = communism }
			}
			ic_ratio = {
				tag = CZE
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_expand_our_alliance
			is_faction_leader = yes
			CZE = {
				exists = yes
				is_puppet = no
				is_in_faction = no
			}
			NOT = { has_war_with = CZE }

		}

		complete_effect = {
			CZE = { country_event = { id = ukraine.57 days = 2 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_hungaria = {
		icon = hol_exchange_intelligence_data

		available = {
			OR = {
				is_neighbor_of = HUN
				any_other_country = {
					is_in_faction_with = ROOT
					is_neighbor_of = HUN
				}
			}
			HUN = { 
				has_opinion = { target = ROOT value > 75 } 
				NOT = { has_government = communism }
			}
			ic_ratio = {
				tag = HUN
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_expand_our_alliance
			is_faction_leader = yes
			HUN = {
				exists = yes
				is_puppet = no
				is_in_faction = no
			}
			NOT = { has_war_with = HUN }

		}

		complete_effect = {
			HUN = { country_event = { id = ukraine.57 days = 2 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_yugoslavia = {
		icon = hol_exchange_intelligence_data

		available = {
			OR = {
				is_neighbor_of = YUG
				any_other_country = {
					is_in_faction_with = ROOT
					is_neighbor_of = YUG
				}
			}
			YUG = { 
				has_opinion = { target = ROOT value > 75 } 
				NOT = { has_government = communism }
			}
			ic_ratio = {
				tag = YUG
				ratio > 1
			}
		}

		visible = {
			has_completed_focus = UKR_expand_our_alliance
			is_faction_leader = yes
			YUG = {
				exists = yes
				is_puppet = no
				is_in_faction = no
			}
			NOT = { has_war_with = YUG }

		}

		complete_effect = {
			YUG = { country_event = { id = ukraine.57 days = 2 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_austria = {
		icon = hol_exchange_intelligence_data

		available = {
			OR = {
				is_neighbor_of = AUS
				any_other_country = {
					is_in_faction_with = ROOT
					is_neighbor_of = AUS
				}
			}
			AUS = { 
				has_opinion = { target = ROOT value > 75 } 
				NOT = { has_government = communism }
			}
			ic_ratio = {
				tag = AUS
				ratio > 1
			}
		}

		visible = {
			GER = { NOT = { has_government = fascism } }
			has_completed_focus = UKR_expand_our_alliance
			is_faction_leader = yes
			AUS = {
				exists = yes
				is_puppet = no
				is_in_faction = no
			}
			NOT = { has_war_with = AUS }

		}

		complete_effect = {
			AUS = { country_event = { id = ukraine.57 days = 2 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_concession_for_persian_oil = {
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 411
			}
		}

		available = {
			has_equipment = {
				infantry_equipment > 1999
			}
			has_equipment = {
				artillery_equipment > 199
			}
			has_equipment = {
				support_equipment > 299
			}
			PER = { 
				has_opinion = { target = ROOT value > 25 } 
			}
			411 = {
				is_owned_and_controlled_by = PER
			}
		}

		visible = {
			has_completed_focus = UKR_persian_platform
			is_faction_leader = yes
			PER = {
				exists = yes
				is_puppet = no
			}
			NOT = { has_war_with = PER }

		}

		complete_effect = {
			PER = { country_event = { id = ukraine.332 days = 1 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_concession_for_iraqui_oil = {
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 676
			}
		}

		available = {
			has_equipment = {
				infantry_equipment > 1999
			}
			has_equipment = {
				artillery_equipment > 199
			}
			has_equipment = {
				support_equipment > 299
			}
			IRQ = { 
				has_opinion = { target = ROOT value > 25 } 
			}
			676 = {
				is_owned_and_controlled_by = IRQ
			}
		}

		visible = {
			has_completed_focus = UKR_persian_platform
			is_faction_leader = yes
			IRQ = {
				exists = yes
				is_puppet = no
			}
			NOT = { has_war_with = IRQ }

		}

		complete_effect = {
			IRQ = { country_event = { id = ukraine.332 days = 1 } }
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_persian_infrastructure = {
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 411
			}
		}

		available = {
			PER = { 
				has_opinion = { target = ROOT value > 25 } 
			}
			411 = {
				is_owned_and_controlled_by = PER
				has_state_flag = UKR_oil_concession
			}
			num_of_civilian_factories_available_for_projects > 5
		}

		visible = {
			has_completed_focus = UKR_persian_platform
			is_faction_leader = yes
			411 = {
				has_state_flag = UKR_oil_concession
			}
			PER = {
				exists = yes
				is_puppet = no
			}
			NOT = { has_war_with = PER }

		}

		modifier = {
			civilian_factory_use = 5
		}

		remove_effect = {
			411 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = { NOT = { has_country_flag = UKR_research_for_infrastructure } }
				add_tech_bonus = {
					name = UKR_improve_persian_infrastructure
					bonus = 1.0
					uses = 1
					category = construction_tech
				}
				set_country_flag = UKR_research_for_infrastructure
			}
			PER = {
				add_ai_strategy = {
					type = alliance
					id = "UKR"
					value = 200
				}
			}
		}

		remove_trigger = {
			411 = { NOT = { is_owned_and_controlled_by = PER } } 
		}

		fire_only_once = yes

		days_remove = 60
		cost = 25

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_iraqui_infrastructure = {
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 676
			}
		}

		available = {
			IRQ = { 
				has_opinion = { target = ROOT value > 25 } 
			}
			676 = {
				is_owned_and_controlled_by = IRQ
				has_state_flag = UKR_oil_concession
			}
			num_of_civilian_factories_available_for_projects > 5
		}

		visible = {
			has_completed_focus = UKR_persian_platform
			is_faction_leader = yes
			676 = {
				has_state_flag = UKR_oil_concession
			}
			IRQ = {
				exists = yes
				is_puppet = no
			}
			NOT = { has_war_with = IRQ }
		}

		modifier = {
			civilian_factory_use = 5
		}

		remove_effect = {
			676 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = { NOT = { has_country_flag = UKR_research_for_infrastructure } }
				add_tech_bonus = {
					name = UKR_improve_iraqui_infrastructure
					bonus = 1.0
					uses = 1
					category = construction_tech
				}
				set_country_flag = UKR_research_for_infrastructure
			}
			IRQ = {
				add_ai_strategy = {
					type = alliance
					id = "UKR"
					value = 200
				}
			}
		}

		remove_trigger = {
			676 = { NOT = { is_owned_and_controlled_by = IRQ } } 
		}

		fire_only_once = yes

		days_remove = 60
		cost = 25

		ai_will_do = {
			factor = 1
		}
	}
	UKR_purchase_of_kuwait = {
		icon = eng_trade_unions_support.

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}

		available = {
			OR = {
				291 = { is_owned_and_controlled_by = UKR }
				any_other_country = {
					is_in_faction_with = UKR
					controls_state = 291
				}
				413 = { is_owned_and_controlled_by = UKR }
				any_other_country = {
					is_in_faction_with = UKR
					controls_state = 413
				}
				675 = { is_owned_and_controlled_by = UKR }
				any_other_country = {
					is_in_faction_with = UKR
					controls_state = 413
				}
			}
			num_of_civilian_factories_available_for_projects > 8
		}

		visible = {
			656 = {
				is_owned_and_controlled_by = ENG
			}
			has_completed_focus = UKR_persian_platform
			is_faction_leader = yes
			NOT = { has_war_with = ENG }
		}

		complete_effect = {
			ENG = { country_event = { id = ukraine.335 days = 1 } }
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_tax_for_kuwait = {
		icon = hol_attract_foreign_investors

		visible = {
			has_country_flag = UKR_purchase_of_kuwait_accepted
		}

		modifier = {
			civilian_factory_use = 8
		}

		remove_effect = {
			ENG = {
				add_offsite_building = { type = industrial_complex level = -8 }
			}
		}

		remove_trigger = {
			has_war_with = ENG
		}

		fire_only_once = yes

		days_remove = 365
	}
	UKR_kuwait_oil = { #656
		
		icon = oil

		highlight_states = {
			highlight_state_targets = {
				state = 656
			}
		}
		available = {
			has_tech = excavation4
			num_of_civilian_factories_available_for_projects > 2
			owns_state = 656
			controls_state = 656
		}

		visible = {
			owns_state = 656
			controls_state = 656
			656 = {
				NOT = {
					has_state_flag = UKR_kuwait_oil_1
				}
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			656 = { set_state_flag = UKR_kuwait_oil_1 } 
			656 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
		}	
	}
	UKR_equipment_support_for_west_ukraine = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		visible = {
			NOT = { has_war_with = POL }
			WUA = { 
				exists = yes
				OR = {
					is_puppet_of = UKR
					is_puppet_of = POL
				}
			}
		}

		remove_trigger = { has_equipment = { infantry_equipment < 2000 } }

		fire_only_once = yes

		days_remove = 7

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1


		ai_will_do = {
			factor = 2
		}

		remove_effect = {
			send_equipment = {
				target = WUA
				type = infantry_equipment
				amount = 2000
			}
		}
	}
	UKR_equipment_support_for_belarus = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 1999 }
		}

		visible = {
			NOT = { has_war_with = POL }
			BLR = { 
				exists = yes
				OR = {
					is_puppet_of = UKR
					is_puppet_of = POL
				}
			}
		}

		remove_trigger = { has_equipment = { infantry_equipment < 2000 } }

		fire_only_once = yes

		days_remove = 7

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1


		ai_will_do = {
			factor = 2
		}

		remove_effect = {
			send_equipment = {
				target = BLR
				type = infantry_equipment
				amount = 2000
			}
		}
	}
	UKR_military_training_with_west_neighbors = {
		icon = generic_army_support

		visible = {
			NOT = { has_war_with = POL }
			WUA = { 
				exists = yes
				OR = {
					is_puppet_of = UKR
					is_puppet_of = POL
				}
			}
			BLR = { 
				exists = yes
				OR = {
					is_puppet_of = UKR
					is_puppet_of = POL
				}
			}
		}

		remove_effect = {
			army_experience = 15
			WUA = { country_event = ukraine.347 }
			BLR = { country_event = ukraine.347 }
		}

		fire_only_once = yes
		
		days_remove = 14
		cost = 25

		ai_will_do = {
			factor = 1
		}
	}
	UKR_industrial_support_for_west_ukraine = {
		icon = generic_industry

		available = { 
			num_of_military_factories > 15
			num_of_civilian_factories_available_for_projects > 5 
		}

		visible = {
			NOT = { has_war_with = POL }
			WUA = { 
				exists = yes
				OR = {
					is_puppet_of = UKR
					is_puppet_of = POL
				}
			}
		}

		modifier = {
			civilian_factory_use = 5
		}

		remove_effect = {
			WUA = { 
				country_event = generic.19 
				add_offsite_building = { type = arms_factory level = 2 }
			}
		}

		fire_only_once = yes
		
		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}
	}
	UKR_build_north_crimean_canal = {

		icon = hol_drain_water_lines

		visible = {
			OR = {
				AND = {
					has_completed_focus = UKR_support_for_fleet
					1051 = {
						is_owned_and_controlled_by = CRM
					}
				}
				1051 = {
					is_owned_and_controlled_by = ROOT
				}
			}
			NOT = { has_global_flag = north_crimean_canal_is_built }
		}

		cancel_trigger = {
			OR = {
				196 = {
					NOT = { is_owned_and_controlled_by = ROOT }
				}
				has_war_with = CRM
			}
		}

		fire_only_once = yes

		days_remove = 365
		cost = 0

		modifier = {
			consumer_goods_factor = 0.10
		}

		remove_effect = {
			set_country_flag = CRI_north_crimean_canal_is_built
			set_global_flag = north_crimean_canal_is_built
			196 = { 
				set_state_category = town 
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
			1051 = { 
				set_state_category = town 
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
			137 = {
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
			if = {
				limit = { 1051 = { has_dynamic_modifier = { modifier = CRI_no_water } } }
				1051 = { remove_dynamic_modifier = {	modifier = CRI_no_water } }
			}
			if = {
				limit = { 137 = { has_dynamic_modifier = { modifier = CRI_no_water } } }
				137 = { remove_dynamic_modifier = {	modifier = CRI_no_water } }
			}
		}
	}
}

UKR_foreign_interventions = {

	UKR_training_support_for_republic = {
		icon = generic_army_support

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 809
			}
			has_equipment = {
				artillery_equipment > 11
			}
			has_equipment = {
				support_equipment > 29
			}
		}

		visible = {
			has_completed_focus = UKR_democratic_reforms
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = democratic
			}
		}

		fire_only_once = yes

		days_remove = 35
		cost = 25

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -810 producer = UKR }
			add_equipment_to_stockpile = { type = artillery_equipment amount = -12 producer = UKR }
			add_equipment_to_stockpile = { type = support_equipment amount = -30 producer = UKR }
		}

		remove_effect = {
			army_experience = 10
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = democratic
				}
				hidden_effect = {
					division_template = {
						name = "División de Infantería [Ukr. support]" 		

						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
						}
						support = {
							artillery = { x = 0 y = 0 }  
							engineer = { x = 0 y = 1 }  
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"Ukrainian support\" division_template = \"División de Infantería [Ukr. support]\" start_experience_factor = 0.3"
							owner = PREV
							prioritize_location = 3938
						}
					}
				}
				custom_effect_tooltip = UKR_eight_infantry_template_tt
			}
		}
	}

	UKR_equipment_support_for_republic = {
		icon = generic_prepare_civil_war

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = democratic
			}
		}

		visible = {
			has_completed_focus = UKR_democratic_reforms
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = democratic
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			army_experience = 10
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = democratic
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = UKR }
			}
		}
	}

	UKR_training_support_for_franko = {
		icon = generic_army_support

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 809
			}
			has_equipment = {
				artillery_equipment > 11
			}
			has_equipment = {
				support_equipment > 29
			}
		}

		visible = {
			has_completed_focus = UKR_revanchism
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				OR = {
					has_government = neutrality
					has_government = fascism
				}
				NOT = { has_completed_focus = SPA_supremacy_of_the_communion }
				NOT = { has_completed_focus = SPR_regional_defense_council_of_aragon }
			}
		}

		fire_only_once = yes

		days_remove = 35
		cost = 25

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -810 producer = UKR }
			add_equipment_to_stockpile = { type = artillery_equipment amount = -12 producer = UKR }
			add_equipment_to_stockpile = { type = support_equipment amount = -30 producer = UKR }
		}

		remove_effect = {
			army_experience = 10
			random_other_country = {
				limit = {
					original_tag = SPR
					OR = {
						has_government = neutrality
						has_government = fascism
					}
					NOT = { has_completed_focus = SPA_supremacy_of_the_communion }
					NOT = { has_completed_focus = SPR_regional_defense_council_of_aragon }
				}
				hidden_effect = {
					division_template = {
						name = "División de Infantería [Ukr. support]" 		

						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
						}
						support = {
							artillery = { x = 0 y = 0 }  
							engineer = { x = 0 y = 1 }  
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"Ukrainian support\" division_template = \"División de Infantería [Ukr. support]\" start_experience_factor = 0.3"
							owner = PREV
							prioritize_location = 758
						}
					}
				}
				custom_effect_tooltip = UKR_eight_infantry_template_tt
			}
		}
	}

	UKR_equipment_support_for_franko = {
		icon = generic_prepare_civil_war

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
		}

		visible = {
			has_completed_focus = UKR_revanchism
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				OR = {
					has_government = neutrality
					has_government = fascism
				}
				NOT = { has_completed_focus = SPA_supremacy_of_the_communion }
				NOT = { has_completed_focus = SPR_regional_defense_council_of_aragon }
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			army_experience = 10

			random_other_country = {
				limit = {
					original_tag = SPR
					OR = {
						has_government = neutrality
						has_government = fascism
					}
					NOT = { has_completed_focus = SPA_supremacy_of_the_communion }
					NOT = { has_completed_focus = SPR_regional_defense_council_of_aragon }
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = UKR }
			}
		}
	}

	UKR_equipment_support_for_traditionalists = {
		icon = generic_prepare_civil_war

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = neutrality
				has_completed_focus = SPA_supremacy_of_the_communion
			}
		}

		visible = {
			has_completed_focus = UKR_old_course
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = neutrality
				has_completed_focus = SPA_supremacy_of_the_communion
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			army_experience = 10
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = neutrality
					has_completed_focus = SPA_supremacy_of_the_communion
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = UKR }
			}
			if = {
				limit = { NOT = { has_country_flag = UKR_support_for_spain_monarchy } }
				set_country_flag = UKR_support_for_spain_monarchy
			}
		}
	}

	UKR_volunteers_for_traditionalists = {
		icon = generic_army_support

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = neutrality
				has_completed_focus = SPA_supremacy_of_the_communion
			}
		}

		visible = {
			has_completed_focus = UKR_old_course
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = neutrality
				has_completed_focus = SPA_supremacy_of_the_communion
			}
		}

		fire_only_once = yes
		days_remove = -1
		cost = 25

		modifier = {
            send_volunteer_size = 1
			send_volunteers_tension = -0.5
			send_volunteer_divisions_required = -1
        }

        remove_trigger = {
        	any_other_country = {
				original_tag = SPR
				has_civil_war = no
			}
        }

        complete_effect = {
        	if = {
        		limit = { NOT = { has_rule = can_send_volunteers} }
        		set_rule = { 
					can_send_volunteers = yes
				}
        	}
        	if = {
				limit = { NOT = { has_country_flag = UKR_support_for_spain_monarchy } }
				set_country_flag = UKR_support_for_spain_monarchy
			}
        }
	}

	UKR_equipment_support_for_communists = {
		icon = generic_prepare_civil_war

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = communism
			}
		}

		visible = {
			has_completed_focus = UKR_communism_propaganda
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = communism
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			army_experience = 10
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = communism
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = UKR }
			}
		}
	}

	UKR_air_support_for_communists = {
		icon = generic_air

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_equipment = {
				small_plane_airframe > 24
			}
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = communism
			}
		}

		visible = {
			has_completed_focus = UKR_communism_propaganda
			any_other_country = {
				original_tag = SPR
				has_civil_war = yes
				has_government = communism
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		remove_trigger = {
			has_equipment = {
				small_plane_airframe < 25
			}
		}

		remove_effect = {
			air_experience = 15
			add_equipment_to_stockpile = { type = small_plane_airframe amount = -25 producer = UKR }
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = communism
				}
				if = { 
					limit = { has_dlc = "By Blood Alone" } 
					add_equipment_to_stockpile = { type = small_plane_airframe_0 amount = 25 producer = UKR variant_name = "MS BV-1" }
				}
				else = {
					add_equipment_to_stockpile = { type = small_plane_airframe amount = 25 producer = UKR }
				}
			}
		}
	}

	UKR_equipment_support_for_finland = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_get_help_for_finns
			NOT = { has_war_with = SOV }
			FIN = {
				has_war_with = SOV
				NOT = { has_war_with = ROOT }
				is_in_faction = no
			}
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
		}

		fire_only_once = no

		days_remove = 15
		days_re_enable = 15
		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			army_experience = 10
			FIN = {
				add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 producer = UKR }
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_volunteers_for_finland = {
		icon = generic_army_support

		visible = {
			has_country_flag = UKR_get_help_for_finns
			NOT = { has_war_with = SOV }
			FIN = {
				has_war_with = SOV
				NOT = { has_war_with = ROOT }
				is_in_faction = no
			}
		}

		available = {
			has_manpower > 2999
		}

		fire_only_once = yes

		days_remove = 15
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = { 
			add_command_power = -30
			add_manpower = -3000
		}

		remove_effect = {
			SOV = {
				add_opinion_modifier = { target = ROOT modifier = UKR_support_finns }
			}
			FIN = {
				country_event = ukraine.675
				event_option_tooltip = ukraine.675.a
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_romanian_interbrigades = {
		icon = generic_army_support

		available = {
			has_equipment = {
				infantry_equipment > 1199
			}
			has_manpower > 11999
		}

		visible = {
			has_government = communism
			has_completed_focus = UKR_romanian_revolution
			ROM = {
				has_civil_war = yes
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 50

		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -1200 producer = UKR }
			add_manpower = -12000
		}

		remove_effect = {
			random_other_country = {
				limit = {
					original_tag = ROM
					has_government = communism
					controls_state = 78
					controls_state = 766
				}
				hidden_effect = { load_oob = UKR_romanian_battalions }
				custom_effect_tooltip = UKR_romanian_battalions_tt
				set_country_flag = ROM_ukrainian_support
				add_ai_strategy = {
					type = alliance
					id = "UKR"
					value = 50
				}
			}
		}
	}
	UKR_humanitarian_convoy = {

		icon = generic_ignite_civil_war

		allowed = {
			original_tag = UKR
		}

		visible = {
			NOT = { has_government = communism }
		}

		#Fail trigger
		available = {
			OR = {
				check_variable = { var_hum_convoys = 5 }
				any_other_country = {
					original_tag = SOV
					has_civil_war = no
				}
			}
		}

		days_mission_timeout = 120

		fire_only_once = yes

		is_good = no

		activation = {
			has_country_flag = UKR_limited_intervention
		}

		#Fail
		timeout_effect = {
			clr_country_flag = UKR_limited_intervention
			set_country_flag = UKR_dont_intervention
			custom_effect_tooltip = UKR_white_civil_war_tt
		}
		#Success
		complete_effect = {
			clr_country_flag = UKR_limited_intervention
			add_stability = 0.02
			custom_effect_tooltip = UKR_success_of_limited_intervention_tt
		}
	}
	UKR_send_humanitarian_convoy = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
			has_equipment = {
				artillery_equipment > 49
			}
			has_equipment = {
				support_equipment > 99
			}
			has_manpower > 1999
		}

		visible = {
			check_variable = { var_hum_convoys < 5 }
			has_country_flag = UKR_limited_intervention
			any_other_country = {
				original_tag = SOV
				has_civil_war = yes
			}
		}

		fire_only_once = no

		days_remove = 7
		days_re_enable = 0
		cost = 0

		ai_will_do = {
			factor = 2
		}

		complete_effect = { 
			add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } 
			add_equipment_to_stockpile = { type = artillery_equipment amount = -50 producer = UKR } 
			add_equipment_to_stockpile = { type = support_equipment amount = -100 producer = UKR } 
			add_manpower = -2000
			add_to_variable = {
    			var = var_hum_convoys
   				value = 1
			}
		}

		remove_effect = {
			random_other_country = {
				limit = {
					original_tag = SOV
					NOT = { has_government = communism }
					has_civil_war = yes
				}
				country_event = ukraine.213
			}
		}
	}
	UKR_send_weapons_to_carpathian_ukraine = {
		icon = generic_prepare_civil_war

		available = {
			has_equipment = { infantry_equipment > 999 }
			CUA = { has_equipment = { infantry_equipment < 2001 } }
		}

		visible = {
			CUA = { 
				has_completed_focus = CUA_ukrainian_support 
				has_capitulated = no
				NOT = { is_puppet_of = UKR }
				exists = yes
			}
		}

		remove_trigger = { has_equipment = { infantry_equipment < 1000 } }

		fire_only_once = no

		days_remove = 14
		days_re_enable = 0

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1


		ai_will_do = {
			factor = 2
		}

		remove_effect = {
			send_equipment = {
				target = CUA
				type = infantry_equipment
				amount = 1000
			}
			army_experience = 10
			CUA = { country_event = carpathian.16 }
		}
	}
}
UKR_support_left_right_opposition = {
	UKR_recognize_oppositional_rebels = {
		icon = generic_decision

		fire_only_once = yes

		cost = 50

		complete_effect = {
			SOV = { add_opinion_modifier = { target = UKR modifier = UKR_support_us_in_civil_war } }
			add_to_variable = { var_ukr_relations_with_new_ussr = 1 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_credits_for_arms_for_SOV = {
		icon = generic_industry

		available = {
			num_of_civilian_factories_available_for_projects > 2
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {
			SOV = { add_offsite_building = { type = arms_factory level = 3 } }
			add_to_variable = { var_ukr_relations_with_new_ussr = 1 }
		}

		remove_effect = {
			SOV = { add_offsite_building = { type = arms_factory level = -3 } }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_instructors_for_SOV = {
		icon = generic_military

		fire_only_once = yes

		custom_cost_trigger = {
			command_power > 15
		}
		custom_cost_text = 15_command_power_1
		days_remove = 14

		complete_effect = {
			add_command_power = -15
			add_to_variable = { var_ukr_relations_with_new_ussr = 1 }
		}

		remove_effect = {
			SOV = {
				add_timed_idea = {
					idea = ukr_foreign_instructors
					days = 120
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
}
form_commonwealth_of_three_nations_category = {
	form_commonwealth_of_three_nations = {

		icon = generic_form_nation

		fire_only_once = yes

		available = {
			any_other_country = {
				has_war_with = POL
				has_war_with = UKR
			}
			surrender_progress < 0.2
			POL = {
				surrender_progress > 0.65
				is_puppet = no
				is_neighbor_of = UKR
				has_capitulated = no
				has_civil_war = no
			}
		}

		complete_effect = {
			random_other_country = {
				limit = {
					original_tag = POL
					is_in_faction_with = ROOT
				}
				country_event = { id = ukraine.236 days = 1 }
			}
		}

		ai_will_do = {
			factor = 200
		}
	}
}
UKR_defense_of_ukraine = {
	UKR_hold_kiev = {

		icon = generic_civil_support

		allowed = {
			original_tag = UKR
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 202 }
		}

		days_mission_timeout = 90

		fire_only_once = yes

		is_good = yes

		activation = {
			has_war = yes
			has_civil_war = no
			NOT = { has_country_flag = UKR_start_of_anarchy_rebellion }
			202 = {
				is_controlled_by = ROOT
				OR = {
					any_neighbor_state = {
						CONTROLLER = {
							has_war_with = ROOT
						}
						OWNER = { tag = ROOT }
					}
					NOT = { is_fully_controlled_by = ROOT }
				}
			}
		}

		#Success
		timeout_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			202 = { save_event_target_as = state }			
			country_event = ukraine.123
		}
		#Fail
		complete_effect = {
			202 = { save_event_target_as = state }			
			country_event = ukraine.124
		}
	}
	UKR_defense_of_kiev = {

		icon = generic_civil_support

		highlight_states = {
			highlight_provinces = { 504 525 3494 3543 }
		}

		visible = {
			any_owned_state = { NOT = { is_fully_controlled_by = ROOT } }
			has_capitulated = no
		}

		available = {
			202 = {
				is_controlled_by = ROOT
				OR = {
					any_neighbor_state = {
						CONTROLLER = {
							has_war_with = ROOT
						}
						OWNER = { tag = ROOT }
					}
					NOT = { is_fully_controlled_by = ROOT }
				}
			}
		}

		fire_only_once = yes

		days_remove = 10
		cost = 25

		remove_effect = {
			202 = {
				add_building_construction = {
					type = bunker
					level = 3
					province = 525
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 3543
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 504
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 3494
					instant_build = yes
				}
			}
		}

		remove_trigger = {
			202 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_organize_partisans_movement = {

		icon = generic_civil_support

		visible = {
			NOT = { has_idea = UKR_partisan_headquarters }
			OR = {
				has_capitulated = no
				has_government = communism # communists dont have focuses for exile fight
			}
			any_state = {
				is_core_of = UKR
				is_owned_by = UKR
				NOT = {
					is_controlled_by = UKR
				}
			}
			has_civil_war = no
		}

		fire_only_once = no

		days_remove = 14
		cost = 50

		remove_effect = {
			add_ideas = UKR_partisan_headquarters
			if = {
				limit = { has_government = communism }
				custom_effect_tooltip = UKR_organize_partisans_movement_tt
				set_country_flag = UKR_sidor_kovpak_recruit
			}
		}

		ai_will_do = {
			factor = 3
		}
	}
	UKR_reserve_fortifications = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = { 3757 9465 11409 11424 }
		}

		available = {
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 192
			controls_state = 202
			controls_state = 203
		}

		visible = {
			has_idea = UKR_defense_plan_west2
		}

		remove_trigger = {
			OR = {
				192 = { NOT = { is_owned_and_controlled_by = UKR } } 
				202 = { NOT = { is_owned_and_controlled_by = UKR } }
				203 = { NOT = { is_owned_and_controlled_by = UKR } }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			192 = {
				add_building_construction = {
					type = bunker
					province = 3757
					level = 2
					instant_build = yes
				}
			}
			1047 = {
				add_building_construction = {
					type = bunker
					province = 11409
					level = 2
					instant_build = yes
				}
			}
			203 = {
				add_building_construction = {
					type = bunker
					province = 11424
					level = 2
					instant_build = yes
				}
			}
			202 = {
				add_building_construction = {
					type = bunker
					province = 9465
					level = 2
					instant_build = yes
				}
			}
		}	
	}
	UKR_high_dnipro_fortifications = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = { 6495 6507 9463 9491 9543 11530 }
		}

		available = {
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 202
			controls_state = 259
		}

		visible = {
			has_idea = UKR_defense_plan_west3
		}

		remove_trigger = {
			OR = {
				202 = { NOT = { is_owned_and_controlled_by = UKR } }
				259 = { NOT = { is_owned_and_controlled_by = UKR } }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			202 = {
				add_building_construction = {
					type = bunker
					province = 9543
					level = 2
					instant_build = yes
				}
			}
			203 = {
				add_building_construction = {
					type = bunker
					province = 11530
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 9491
					level = 2
					instant_build = yes
				}
			}
			259 = {
				add_building_construction = {
					type = bunker
					province = 6495
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 6507
					level = 2
					instant_build = yes
				}
			}
			226 = {
				add_building_construction = {
					type = bunker
					province = 9463
					level = 2
					instant_build = yes
				}
			}
		}	
	}
	UKR_low_dnipro_fortifications = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = {	721 737 588 3573 11405 11437 }
		}

		available = {
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 226
			controls_state = 200
			controls_state = 196
		}

		visible = {
			has_idea = UKR_defense_plan_west3
		}

		remove_trigger = {
			OR = {
				226 = { NOT = { is_owned_and_controlled_by = UKR } }
				200 = { NOT = { is_owned_and_controlled_by = UKR } }
				196 = { NOT = { is_owned_and_controlled_by = UKR } }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			226 = {
				add_building_construction = {
					type = bunker
					province = 11437
					level = 3
					instant_build = yes
				}
			}
			200 = {
				add_building_construction = {
					type = bunker
					province = 11405
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 588
					level = 2
					instant_build = yes
				}
			}
			196 = {
				add_building_construction = {
					type = bunker
					province = 3573
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 737
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 721
					level = 2
					instant_build = yes
				}
			}
		}	
	}
	UKR_high_dnipro_fortifications_right = { #right side of Dnipro
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = { 488 3468 6478 11454 }
		}

		available = {
			has_war_with = SOV
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 203
			controls_state = 1047
		}

		visible = {
			has_idea = UKR_defense_plan_east2
		}

		remove_trigger = {
			OR = {
				203 = { NOT = { is_owned_and_controlled_by = UKR } }
				1047 = { NOT = { is_owned_and_controlled_by = UKR } }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			203 = {
				add_building_construction = {
					type = bunker
					province = 11454
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 488
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 3468
					level = 2
					instant_build = yes
				}
			}
			1047 = {
				add_building_construction = {
					type = bunker
					province = 6478
					level = 2
					instant_build = yes
				}
			}
		}	
	}
	UKR_low_dnipro_fortifications_right = { #right side of Dnipro
		
		icon = generic_construction

		highlight_states = {
			highlight_provinces = { 9419 9433 11422 11437 11715 3755 }
		}

		available = {
			has_war_with = SOV
			num_of_civilian_factories_available_for_projects > 5
			controls_state = 197
			controls_state = 226
		}

		visible = {
			has_idea = UKR_defense_plan_east2
		}

		remove_trigger = {
			OR = {
				197 = { NOT = { is_owned_and_controlled_by = UKR } }
				226 = { NOT = { is_owned_and_controlled_by = UKR } }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		modifier = {
			civilian_factory_use = 5
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = { 
			226 = {
				add_building_construction = {
					type = bunker
					province = 9433
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 11437
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 11422
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					province = 9419
					level = 2
					instant_build = yes
				}
			}
			196 = {
				add_building_construction = {
					type = bunker
					province = 11715
					level = 2
					instant_build = yes
				}
			}
			197 = {
				add_building_construction = {
					type = bunker
					province = 3755
					level = 2
					instant_build = yes
				}
			}
		}	
	}
	UKR_scorched_earth_west = {

		icon = generic_scorched_earth

		allowed = {
			NOT = { has_dlc = "No Step Back" }
		}

		available = {
			has_equipment = {
				support_equipment > 24
			}
		}

		cost = 25
		fire_only_once = yes
		visible = {
			OR = {
				controls_state = 194
				controls_state = 198
				controls_state = 199
				controls_state = 201
			}
			OR = {
				has_idea = UKR_defense_plan_west2
				has_idea = UKR_defense_plan_west3
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -25
			}
			if = {
				limit = {
					controls_state = 194
				}
				194 = {
					damage_building = {
						type = infrastructure
						damage = 1
					}
				}
			}
			if = {
				limit = {
					controls_state = 198
				}
				198 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 199
				}
				199 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 201
				}
				201 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_scorched_earth_center = {

		icon = generic_scorched_earth

		allowed = {
			NOT = { has_dlc = "No Step Back" }
		}

		available = {
			has_equipment = {
				support_equipment > 24
			}
		}

		cost = 25
		fire_only_once = yes
		visible = {
			OR = {
				controls_state = 192
				controls_state = 203
				controls_state = 1047
			}
			has_idea = UKR_defense_plan_west3
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -25
			}
			if = {
				limit = {
					controls_state = 192
				}
				192 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 203
				}
				203 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 1047
				}
				1047 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_scorched_earth_north = {

		icon = generic_scorched_earth

		allowed = {
			NOT = { has_dlc = "No Step Back" }
		}

		available = {
			has_equipment = {
				support_equipment > 24
			}
		}

		cost = 25
		fire_only_once = yes
		visible = {
			OR = {
				controls_state = 193
				controls_state = 225
				controls_state = 259
			}
			has_idea = UKR_defense_plan_east2
			has_war_with = SOV
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -25
			}
			if = {
				limit = {
					controls_state = 193
				}
				193 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 225
				}
				225 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 259
				}
				259 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_scorched_earth_east = {

		icon = generic_scorched_earth

		allowed = {
			NOT = { has_dlc = "No Step Back" }
		}

		available = {
			has_equipment = {
				support_equipment > 34
			}
		}

		cost = 25
		fire_only_once = yes
		visible = {
			OR = {
				controls_state = 221
				controls_state = 227
				controls_state = 228
			}
			has_idea = UKR_defense_plan_east2
			has_war_with = SOV
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -35
			}
			if = {
				limit = {
					controls_state = 221
				}
				221 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 227
				}
				227 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 228
				}
				228 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_relocate_industry_from_kharkiv = {

		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 221
			}
		}	

		available = {
			221 = {
				is_owned_and_controlled_by = UKR
				arms_factory > 1
			} 
			203 = { is_owned_and_controlled_by = UKR } 
			226 = { is_owned_and_controlled_by = UKR } 
		}

		fire_only_once = yes

		cost = 25
		days_remove = 15

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				221 = { is_fully_controlled_by = ROOT }
			}
		}

		visible = {
			has_war_with = SOV
		}

		remove_effect = {
			if = {
				limit = {
					controls_state = 221
				}
				221 = { 
					remove_building = {
						type = arms_factory
						level = 2
					}
				}
				203 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
	
					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.3 }
					}
				}
				226 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				
					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.3 }
					}
				}
				custom_effect_tooltip = relocate_industry_repair
			}
			custom_effect_tooltip = UKR_relocate_industry_from_kharkiv_tt
		}
	}
	UKR_relocate_capital_to_kharkiv = {

		icon = generic_decision

		highlight_states = {
			highlight_state_targets = {
				state = 202
			}
		}	

		available = {
			202 = {
				is_owned_and_controlled_by = UKR
			} 
			NOT = { has_full_control_of_state = 202 }
			has_full_control_of_state = 221
		}

		visible = {
			202 = { is_capital = yes }
			surrender_progress > 0
		}

		fire_only_once = yes

		cost = 25
		days_remove = 14

		ai_will_do = {
			factor = 0
		}

		remove_trigger = {
			OR = {
				NOT = { 202 = { is_owned_and_controlled_by = UKR } }
				NOT = { 221 = { is_owned_and_controlled_by = UKR } }
			}
		}

		remove_effect = {
			set_capital = { state = 221 }
			set_country_flag = UKR_capital_in_kharkiv
			add_stability = 0.03
			202 = { add_manpower = -150000 }
			221 = { add_manpower = 150000 }
			if = {
				limit = {
					202 = { industrial_complex > 0 }
				}
				202 = { 
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				221 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					202 = { arms_factory > 0 }
				}
				202 = { 
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				221 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	UKR_mined_south_coasts = {

		icon = generic_naval_mine

		available = {
			num_of_civilian_factories_available_for_projects > 5
			has_completed_focus = UKR_black_sea_forts
		}

		visible = {
			has_dlc = "Man the Guns" 
			any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
		}

		modifier = {
			civilian_factory_use = 5
		}

		fire_only_once = yes

		cost = 25
		days_remove = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_mines = { region = 30 amount = 200 }
		}
	}
	UKR_penal_battalions_period = {
		icon = generic_independence

		visible = { has_completed_focus = UKR_penal_battalions }

		fire_only_once = yes

		days_remove = 365
		cost = 0

		ai_will_do = {
			factor = 0
		}

		remove_trigger = {
			has_war = no
		}

		remove_effect = {
			delete_unit_template_and_units = {
			    division_template = "Shtrafna Chastyna"
			    disband = no
			}
			hidden_effect = {
				set_technology = { penal_infantry = 0 popup = no }
			}
		}
	}
}
UKR_operations_of_ukraine = {

	UKR_capture_crimean_fleet = {

		icon = generic_intelligence_operation

		cost = 50
		fire_only_once = yes
		fixed_random_seed = no

		visible = {
			original_tag = UKR
			CRM = { 
				is_puppet_of = ROOT
				has_navy_size = { size > 5 } 
			}
			137 = { is_owned_and_controlled_by = CRM }
		}

		available = {
			divisions_in_state = {
				state = 137	
				size > 4
			}
		}
		ai_will_do = {
			factor = 1
		}
		complete_effect = {
			random_list = {
				30 = {
					country_event = { id = ukraine.140 days = 3 } #Succesfull
				}
				40 = {
					country_event = { id = ukraine.141 days = 3 } #Partial success
				}
				30 = {
					country_event = { id = ukraine.142 days = 3 } #Fail
				}
			}
		}
	}
	UKR_rebellion_on_kuban = {
		visible = {
			234 = { is_owned_and_controlled_by = SOV }
			OR = {
				has_completed_focus = UKR_clay_colossus 
				has_completed_focus = UKR_expansion_on_east
			}
			
		}

		available = {
			has_war_with = SOV
			has_equipment = {
				infantry_equipment > 3839
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -3840 producer = UKR }
		}

		remove_effect = {
			KUB = {
				transfer_state = 234
				if = {
					limit = { 233 = { is_owned_and_controlled_by = SOV } }
					transfer_state = 233
				}
				if = {
					limit = { 1050 = { is_owned_and_controlled_by = SOV } }
					transfer_state = 1050
				}
				hidden_effect = { load_oob = KUB_rebels }
				custom_effect_tooltip = KUB_rebels_tt
				add_timed_idea = {
					idea = KUB_ZKL_liberation_movement
					days = 365
				}
			}
			puppet = KUB
		}

		fire_only_once = yes	

		days_remove = 14
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_rebellion_on_green_ukraine = {
		icon = generic_prepare_civil_war
		visible = {
			408 = { is_owned_and_controlled_by = SOV }
			409 = { is_owned_and_controlled_by = SOV }
			560 = { is_owned_and_controlled_by = SOV }
			657 = { is_owned_and_controlled_by = SOV }
			OR = {
				has_completed_focus = UKR_clay_colossus 
				has_completed_focus = UKR_expansion_on_east
			}
			
		}

		available = {
			has_war_with = SOV
			NOT = { has_war_with = JAP }
			has_equipment = {
				infantry_equipment > 4439
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -4440 producer = UKR }
		}

		remove_effect = {
			ZKL = {
				transfer_state = 408
				transfer_state = 409
				transfer_state = 560
				transfer_state = 657
				if = {
					limit = { 655 = { is_owned_and_controlled_by = SOV } }
					transfer_state = 655
				}
				hidden_effect = { 
					load_oob = ZKL_rebels
				}
				custom_effect_tooltip = ZKL_rebels_tt
				add_timed_idea = {
					idea = KUB_ZKL_liberation_movement
					days = 365
				}
			}
			puppet = ZKL
			KUB = {
				set_politics = { ruling_party = democratic elections_allowed = yes }
				add_popularity = { ideology = democratic popularity = 0.50 }
			}
			hidden_effect = { news_event = { id = news.561 days = 1 } }
		}

		fire_only_once = yes	

		days_remove = 21
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_rebellion_on_green_ukraine_in_ciwil_war = {
		icon = generic_prepare_civil_war
		visible = {
			OR = {
				408 = {
					owner = {
						original_tag = SOV
						has_government = communism
					}
					controller = {
						original_tag = SOV
						has_government = communism
					}
				}
				409 = {
					owner = {
						original_tag = SOV
						has_government = communism
					}
					controller = {
						original_tag = SOV
						has_government = communism
					}
				}
			}
			has_country_flag = participation_in_sov_civ_war
		}

		available = {
			any_other_country = {
				original_tag = SOV
				has_war_with = ROOT
				has_civil_war = yes
			}
			has_equipment = {
				infantry_equipment > 4439
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -4440 producer = UKR }
		}

		remove_effect = {
			ZKL = {
				transfer_state = 408
				transfer_state = 409
				transfer_state = 560
				transfer_state = 657
				if = {
					limit = { 655 = { is_owned_and_controlled_by = SOV } }
					transfer_state = 655
				}
				hidden_effect = { 
					load_oob = ZKL_rebels
				}
				custom_effect_tooltip = ZKL_rebels_tt
				add_timed_idea = {
					idea = KUB_ZKL_liberation_movement
					days = 365
				}
			}
			puppet = ZKL
		}

		fire_only_once = yes	

		days_remove = 14
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_rebellion_on_gray_ukraine = {
		icon = generic_prepare_civil_war
		visible = {
			has_country_flag = UKR_support_for_gray_ukraine
			NOT = { country_exists = SKL }
			KAZ = { has_war = yes }
			OR = {
				583 = { is_owned_and_controlled_by = KAZ }
				590 = { is_owned_and_controlled_by = KAZ }
				882 = { is_owned_and_controlled_by = KAZ }
			}
		}

		available = {
			NOT = { has_war_with = KAZ }
			has_equipment = {
				infantry_equipment > 2999
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -3000 producer = UKR }
		}

		remove_effect = {
			KAZ = { country_event = grayukraine.3 }
		}

		fire_only_once = yes	

		days_remove = 14
		cost = 25

		ai_will_do = {
			factor = 3
		}
	}
	UKR_give_refuge_ussr = {

		icon = generic_research

		visible = {
	    	SOV = { 
	    		exists = yes
	    		has_completed_focus = SOV_the_centre 
	    		NOT = { has_government = ROOT }
	    	}
	    	has_capitulated = no
		}

        cost = 100
        fire_only_once = yes
        
        days_remove = -1

        available = {
            SOV = { NOT = { has_government = ROOT } }
        }

        modifier = {
            research_speed_factor = 0.05
            stability_factor = -0.05
        }

        remove_trigger = {
        	SOV = { has_government = ROOT }
        }

        ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				has_completed_focus = UKR_old_course
			}
		}
    }
    UKR_give_refuge_for_poland_scientists = {

		icon = generic_research

		visible = {
	    	has_country_flag = UKR_united_with_poland
	    	NOT = { has_completed_focus = UKR_university_of_commonwealth }
		}

        cost = 50
        fire_only_once = yes
        
        days_remove = -1

        available = {
            NOT = { has_completed_focus = UKR_university_of_commonwealth }
        }

        modifier = {
            research_speed_factor = 0.10
            consumer_goods_factor = 0.05
        }

        remove_trigger = {
        	OR = {
        		NOT = { has_country_flag = UKR_united_with_poland }
        		has_completed_focus = UKR_university_of_commonwealth
        	}
	    }

        ai_will_do = {
			factor = 1
		}
    }
    UKR_chongar_incident_decision = {
		icon = border_war
		allowed = {
			original_tag = UKR
		}

		available = {
		}

		visible = {
			has_completed_focus = UKR_chongar_incident
			NOT = {
				has_war_with = CRM
				is_in_faction_with = CRM
			}
			CRM = { exists = yes }
			CRM = { is_puppet = no }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1051
				state = 196
			}
		}
		fire_only_once = yes

		days_remove = 30
		cost = 25
		war_with_on_remove = CRM
		complete_effect = {
			CRM = {
				country_event = { id = ukraine.363 days = 1 }
				activate_targeted_decision = { target = UKR decision = UKR_chongar_incident_warning_CRM }
			}
		}
		remove_effect = {
			#activate_targeted_decision = { target = CRM decision = UKR_chongar_incident_escalate }
			custom_effect_tooltip = UKR_chongar_incident_decision_tt
			activate_decision = UKR_chongar_incident_escalate
		}

		ai_will_do = {
			factor = 10
		}
	}
	UKR_chongar_incident_warning_CRM = {

		icon = border_war

		allowed = { always = no } #Activated from effect

		available = {
			hidden_trigger = { always = no }
		}

		war_with_target_on_timeout = yes
		ai_will_do = {
			base = 0
			modifier = {
				
			}
		}

		days_mission_timeout = 30

		fire_only_once = yes

		is_good = no
		
		timeout_effect = {
			custom_effect_tooltip = escalation_possible_tooltip_for_defender
			custom_effect_tooltip = effects_if_border_conflict_is_lost
			hidden_effect = {
				remove_targeted_decision = { target = UKR decision = UKR_chongar_incident_warning_CRM }
			}
		}
	}
	UKR_chongar_incident_escalate = {

		icon = border_war

		allowed = { always = no } #Activated from effect

		available = {
			196 = {
				OR = {
					is_fully_controlled_by = ROOT
				}
			}
			divisions_in_border_state = {
				state = 196
				border_state = 1051
				size > 0
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 196
				state = 1051
			}	
		}

		ai_will_do = {
			base = 10
			modifier = { 
				has_war = no
				factor = 10
			}
		}

		fire_only_once = yes

		complete_effect = {
			1051 = {
				damage_building = { type = coastal_bunker province = 9718 damage = 3 }
				damage_building = { type = bunker province = 3722 damage = 3 }
			}
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 196
					num_provinces = 2
					on_win = ukraine.361
					on_lose = ukraine.362
				}
				
				defender = {
					state = 1051
					num_provinces = 2
				}
			}
		}
	}
	UKR_improve_skills_of_kubiyovych = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_volodymyr_kubiyovych
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_volodymyr_kubiyovych
				slot = high_command
				trait = army_artillery_1
			}
			add_trait = {
				character = UKR_volodymyr_kubiyovych
				slot = high_command
				trait = army_artillery_2
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_bolbochan = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_petro_bolbochan
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
			NOT = { has_country_flag = bolbochan_goes_from_staff }
			NOT = { has_country_leader = { character = UKR_petro_bolbochan ruling_only = yes } }
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_petro_bolbochan
				slot = high_command
				trait = army_infantry_2
			}
			add_trait = {
				character = UKR_petro_bolbochan
				slot = high_command
				trait = army_infantry_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_completed_focus = UKR_Ukraine_first
			}
		}
	}
	UKR_improve_skills_of_kedrowsky = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_volodymyr_kedrowsky
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_volodymyr_kedrowsky
				slot = high_command
				trait = army_regrouping_2
			}
			add_trait = {
				character = UKR_volodymyr_kedrowsky
				slot = high_command
				trait = army_regrouping_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_biskupsky = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_vasily_biskupsky
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
			NOT = { has_country_flag = UKR_white_civil_war } 
			NOT = { has_country_flag = UKR_purge_of_staff }
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_vasily_biskupsky
				slot = high_command
				trait = army_cavalry_2
			}
			add_trait = {
				character = UKR_vasily_biskupsky
				slot = high_command
				trait = army_cavalry_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_gagarin = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_yevhen_gagarin
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
			has_government = neutrality
			has_country_flag = UKR_yevhen_gagarin_is_available
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_yevhen_gagarin
				slot = high_command
				trait = army_cavalry_1
			}
			add_trait = {
				character = UKR_yevhen_gagarin
				slot = high_command
				trait = army_cavalry_2
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_nikogda = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_gavrilo_nikogda
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			army_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_gavrilo_nikogda
				slot = high_command
				trait = army_commando_2
			}
			add_trait = {
				character = UKR_gavrilo_nikogda
				slot = high_command
				trait = army_commando_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_army_experience > 49.99
		}
		custom_cost_text = 50_army_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_kanukov = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_jambulat_kanukov
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			air_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_jambulat_kanukov
				slot = high_command
				trait = air_air_combat_training_2
			}
			add_trait = {
				character = UKR_jambulat_kanukov
				slot = high_command
				trait = air_air_combat_training_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_air_experience > 49.99
		}
		custom_cost_text = 50_air_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_murashko = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_vasily_murashko
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			air_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_vasily_murashko
				slot = high_command
				trait = air_tactical_bombing_2
			}
			add_trait = {
				character = UKR_vasily_murashko
				slot = high_command
				trait = air_tactical_bombing_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_air_experience > 49.99
		}
		custom_cost_text = 50_air_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_shramchenko = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_sviatoslav_shramchenko
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			navy_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_sviatoslav_shramchenko
				slot = high_command
				trait = navy_fleet_logistics_2
			}
			add_trait = {
				character = UKR_sviatoslav_shramchenko
				slot = high_command
				trait = navy_fleet_logistics_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_navy_experience > 49.99
		}
		custom_cost_text = 50_navy_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_improve_skills_of_klochkovskyi = {
		icon = hol_draw_up_staff_plans

		available = {
			has_character = UKR_vyacheslav_klochkovskyi
			NOT = { has_country_flag = UKR_improving_staff_skills_is_active }
		}

		visible = {
			has_completed_focus = UKR_reforms_for_staff
		}

		complete_effect = {
			navy_experience = -50
			set_country_flag = UKR_improving_staff_skills_is_active
		}

		modifier = {
			command_power_gain = -0.25
		}

		remove_effect = {
			remove_trait = {
				character = UKR_vyacheslav_klochkovskyi
				slot = high_command
				trait = navy_submarine_2
			}
			add_trait = {
				character = UKR_vyacheslav_klochkovskyi
				slot = high_command
				trait = navy_submarine_3
			}
			clr_country_flag = UKR_improving_staff_skills_is_active
		}

		fire_only_once = yes

		days_remove = 120
		custom_cost_trigger = {
			has_navy_experience > 49.99
		}
		custom_cost_text = 50_navy_experience_1

		ai_will_do = {
			factor = 1
		}
	}
	UKR_concentrate_troops_in_the_south = {

		icon = generic_operation

		allowed = { always = no } #Activated from effect

		available = { #success effect
			if = {
				limit = { is_ai = yes }
				always = yes
			}
			else = {
				divisions_in_state = {
					state = 196	
					size > 5
				} 
			}
		}

		days_mission_timeout = 30

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		#Fail
		timeout_effect = {
			CRM = { country_event = crimea.67 }
		}
		#Success
		complete_effect = {
			1051 = { 
				add_core_of = CRI
				transfer_state_to = CRI
				remove_claim_by = UKR 
				remove_core_of = CRM 
			}
			puppet = CRI
			set_autonomy = {
				target = CRI
				autonomous_state = autonomy_colony
				freedom_level = 0.5
			}
			CRI = {
				set_politics = { ruling_party = democratic elections_allowed = yes }
				add_popularity = { ideology = democratic popularity = 0.5 }
				inherit_technology = CRM
				set_research_slots = 2
				country_event = qirimlar.2
			}
		}
	}
	UKR_forming_local_uss = {

		icon = generic_military

		visible = {
			has_war = yes
			has_completed_focus = UKR_revive_uss
		}

		available = {
			FROM = {
				is_core_of = ROOT
				is_controlled_by = ROOT
			}
		}

		state_target = yes

		on_map_mode = map_only

		target_array = controlled_states

		target_trigger = {
			FROM = {
				is_core_of = ROOT
			}
		}

		custom_cost_trigger = {
			command_power > 15
		}
		custom_cost_text = 15_command_power_1

		fire_only_once = yes

		days_remove = 7

		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			add_command_power = -15
		}

		cancel_trigger = {
			FROM = {
				NOT = { is_controlled_by = ROOT }
			}
		}

		remove_effect = {
			if = {
				limit = { NOT = { has_template = "Legion sichovyh striltsiv" } }
				division_template = {
					name = "Legion sichovyh striltsiv" 
					is_locked = yes		
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
					}
				}
			}
			FROM = {
				create_unit = {
					division = "name = \"Sichovi striltsi\" division_template = \"Legion sichovyh striltsiv\" start_experience_factor = 0.3 start_equipment_factor = 0.75" 
					owner = ROOT
				}
				add_dynamic_modifier = {
					modifier = UKR_uss_modifier
					days = 365
				}
			}
		}
	}
	UKR_disband_uss = {
		icon = generic_military

		available = {
			has_war = no
		}

		visible = {
			has_completed_focus = UKR_revive_uss
			has_template = "Legion sichovyh striltsiv"
		} 

		fire_only_once = no

		days_remove = 0
		days_re_enable = 1 
		cost = 50

		remove_effect = {
			delete_unit_template_and_units = {
				division_template = "Legion sichovyh striltsiv"
				disband = yes
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_invite_igor_sikorsky = {
		icon = generic_air

		available = {
			has_deployed_air_force_size = { size > 999 }
			country_exists = USA
			NOT = { has_war_with = USA }
		}

		visible = {
			NOT = { has_country_flag = UKR_igor_sikorsky_is_available }
			has_completed_focus = UKR_aviant
		}

		remove_effect = {
			set_country_flag = UKR_igor_sikorsky_is_available
			custom_effect_tooltip = UKR_invite_igor_sikorsky_decision_tt
		}

		fire_only_once = yes

		days_remove = 30
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_discord_in_CPU = {
	UKR_dealing_with_DKSR = {

		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		available = { #success effect
			OR = {
				has_completed_focus = UKR_war_answer_for_dksr
				has_completed_focus = UKR_negotiations_with_opposition
				DKR = { is_subject_of = ROOT }
				NOT = { country_exists = DKR }
			}
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		#Fail
		timeout_effect = {
			random_other_country = {
				limit = {
					original_tag = SOV
					has_government = communism
					has_completed_focus = SOV_the_centre
				}
				country_event = ukraine.533
			}
			effect_tooltip = {
				SOV = { puppet = DKR }
			}
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					NOT = { has_completed_focus = UKR_war_answer_for_dksr }
					NOT = { has_completed_focus = UKR_negotiations_with_opposition }
				}
				hidden_effect = { unlock_national_focus = UKR_negotiations_with_opposition }
			}
		}
	}
	UKR_operation_against_DKSR = {

		icon = generic_ignite_civil_war

		allowed = { always = no } #Activated from effect

		available = { #success effect
			OR = {
				NOT = { country_exists = DKR }
				DKR = { is_subject_of = ROOT }
			}
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		#Fail
		timeout_effect = {
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						has_government = communism
						has_civil_war = yes
						has_completed_focus = SOV_the_centre
						NOT = { has_war_with = ROOT }
						NOT = { is_in_faction_with = ROOT }
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						has_completed_focus = SOV_the_centre
						NOT = { has_war_with = UKR }
					}
					country_event = ukraine.539
				}
			}
			else_if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						has_government = communism
						exists = yes
						has_civil_war = no
						NOT = { has_war_with = ROOT }
						NOT = { is_in_faction_with = ROOT }
					}
				}
				country_event = ukraine.536
				every_state = {
					limit = {
						is_controlled_by = ROOT
						is_owned_by = DKR
					}
					set_state_owner_to = ROOT
					remove_core_of = DKR
				}
				white_peace = {
					tag = DKR 
				} 
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						#has_completed_focus = SOV_the_centre
						NOT = { has_war_with = UKR }
					}
					country_event = ukraine.533
				}
				effect_tooltip = {
					SOV = { puppet = DKR }
				}
			}
		}
		#Success
		complete_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
			every_owned_state = {
				limit = {
					is_core_of = DKR
				}
				remove_core_of = DKR
			}
		}
	}
	UKR_political_pressure_on_dksr = {

		icon = generic_political_discourse

		fire_only_once = no

		visible = {
			DKR = {
				is_subject_of = ROOT
			}
		}

		days_remove = 30
		days_re_enable = 60

		cost = 75

		remove_effect = {
			DKR = {
				add_autonomy_score = {
					value = -200
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_economic_pressure_on_dksr = {

		icon = generic_factory

		fire_only_once = no

		visible = {
			DKR = {
				is_subject_of = ROOT
			}
		}

		days_remove = 90
		days_re_enable = 30

		cost = 25

		modifier = {
			consumer_goods_factor = 0.10
		}

		remove_effect = {
			DKR = {
				add_autonomy_score = {
					value = -200
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_military_pressure_on_dksr = {

		icon = generic_military

		fire_only_once = no

		visible = {
			DKR = {
				is_subject_of = ROOT
			}
		}

		available = {
			divisions_in_state = {
				state = 221	
				size > 2
			}
			divisions_in_state = {
				state = 259	
				size > 2
			}
			divisions_in_state = {
				state = 1047	
				size > 2
			}
			divisions_in_state = {
				state = 197	
				size > 2
			}
		}

		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}

		remove_effect = {
			DKR = {
				add_autonomy_score = {
					value = -200
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_socialist_community = {
	
	UKR_divide_of_poland = {

		icon = generic_decision

		fire_only_once = yes

		days_remove = 0
		cost = 150

		visible = {
			has_government = communism
			is_faction_leader = yes
			is_in_faction_with = POL
			91 = {
				is_owned_and_controlled_by = POL
			}
			NOT = { country_exists = WUA }
		}

		available = {
			strength_ratio = {
    			tag = POL
    			ratio > 1
			}
			ic_ratio = {
    			tag = POL
    			ratio > 1
			}
		}

		remove_effect = {
			POL = { country_event = { id = ukraine.157 days = 1 } }
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_influence_on_west_ukraine = {

		icon = generic_decision

		fire_only_once = yes

		days_remove = 180
		cost = 150

		visible = {
			is_faction_leader = yes
			is_in_faction_with = POL
			WUA = {
				exists = yes
				is_puppet_of = POL
			}
		}

		remove_trigger = {
			WUA = { exists = no } 
		}

		available = {
			has_war = no
		}

		remove_effect = {
			POL = { country_event = { id = ukraine.162 days = 1 } }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_strengthening_of_faction = {

		icon = eng_propaganda_campaigns

		days_remove = 60
		
		available = {
			FROM = {
				is_in_faction_with = ROOT
				ic_ratio = {
					tag = ROOT
					ratio < 1
				}
			}
		}

		visible = {
			has_government = communism
			has_completed_focus = UKR_internationalism
			is_faction_leader = yes
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				NOT = { has_country_flag = UKR_puppeting_stage1 }
			}
		}

		target_array = allies

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				NOT = { has_country_flag = UKR_puppeting_stage1 }
			}
		}

		complete_effect = {
			FROM = { add_timed_idea = {	idea = UKR_international_influence_max days = 60 } }
		}

		remove_effect = {
			FROM = {
				country_event = ukraine.351
			}
		}

		modifier = {
			#political_power_cost = 0.2
		}

		fire_only_once = no

		cost = 50

		ai_will_do = {
			factor = 0.5
		}
	}
	UKR_unity_of_command = {

		icon = generic_army_support

		days_remove = 60
		
		available = {
			FROM = {
				is_in_faction_with = ROOT
				strength_ratio = {
					tag = ROOT
					ratio < 1
				}
			}
		}

		visible = {
			has_government = communism
			has_completed_focus = UKR_internationalism
			is_faction_leader = yes
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				has_country_flag = UKR_puppeting_stage1
				NOT = { has_country_flag = UKR_puppeting_stage2 }
			}
		}

		target_array = allies

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				has_country_flag = UKR_puppeting_stage1
				NOT = { has_country_flag = UKR_puppeting_stage2 }
			}
		}

		complete_effect = {
			FROM = { add_timed_idea = {	idea = UKR_international_influence_max days = 60 } }
		}

		remove_effect = {
			FROM = {
				country_event = ukraine.354
			}
		}

		modifier = {
			#political_power_cost = 0.2
		}

		fire_only_once = no

		cost = 50

		ai_will_do = {
			factor = 0.5
		}
	}
	UKR_unification_of_domestic_policy = {

		icon = oppression

		days_remove = 60
		
		available = {
			FROM = {
				is_in_faction_with = ROOT
				strength_ratio = {
					tag = ROOT
					ratio < 0.8
				}
				ic_ratio = {
					tag = ROOT
					ratio < 0.8
				}
				#communism > 0.25
			}
		}

		visible = {
			has_government = communism
			has_completed_focus = UKR_internationalism
			is_faction_leader = yes
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				has_country_flag = UKR_puppeting_stage1
				has_country_flag = UKR_puppeting_stage2
				NOT = { has_country_flag = UKR_puppeting_stage3 }
			}
		}

		target_array = allies

		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
				is_puppet = no
				has_country_flag = UKR_puppeting_stage1
				has_country_flag = UKR_puppeting_stage2
				NOT = { has_country_flag = UKR_puppeting_stage3 }
			}
		}

		complete_effect = {
			FROM = { add_timed_idea = {	idea = UKR_international_influence_max days = 60 } }
		}

		remove_effect = {
			FROM = {
				country_event = ukraine.355
			}
		}

		modifier = {
			#political_power_cost = 0.2
		}

		fire_only_once = no

		cost = 50

		ai_will_do = {
			factor = 0.5
		}
	}
	UKR_integration_of_belarussian_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = BLR
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			every_owned_state = {
				limit = {
					is_core_of = BLR
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = BLR
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_polish_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = POL
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			if = {
				limit = {
					POL = { has_character = POL_wanda_wasilewska }
				}
				POL = { POL_wanda_wasilewska = { set_nationality = ROOT } }
			}
			every_owned_state = {
				limit = {
					is_core_of = POL
					NOT = { is_core_of = ROOT }
					NOT = { is_core_of = BLR }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = POL
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_czechoslovakian_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = CZE
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			every_owned_state = {
				limit = {
					is_core_of = CZE
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = CZE
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_bulgarian_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = BUL
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			if = {
				limit = {
					has_dlc = "Battle for the Bosporus"
					BUL = { has_character = BUL_todor_pavlov }
				}
				BUL = { BUL_todor_pavlov = { set_nationality = ROOT } }
			}
			every_owned_state = {
				limit = {
					is_core_of = BUL
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = BUL
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_yugoslavian_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = YUG
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			every_owned_state = {
				limit = {
					is_core_of = YUG
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = YUG
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_russian_people = {
		
		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			any_owned_state = {
				is_core_of = SOV
				NOT = { is_core_of = KAZ }
				NOT = { is_core_of = GEO }
				NOT = { is_core_of = AZR }
				NOT = { is_core_of = ARM }
				NOT = { is_core_of = TMS }
				NOT = { is_core_of = TAJ }
				NOT = { is_core_of = UZB }
				NOT = { is_core_of = KYR }
				NOT = { is_core_of = BLR }
				NOT = { is_core_of = ROOT }
				is_owned_and_controlled_by = ROOT
			}
		}

		remove_effect = {
			add_stability = -0.01
			add_to_variable = { count_of_slav_integrations = 1 }
			if = {
				limit = { check_variable = { count_of_slav_integrations > 5 } }
				set_country_flag = cua_panslavic_socialism_flag
			}
			if = {
				limit = {
					SOV = { has_character = SOV_karl_radek }
				}
				SOV = { SOV_karl_radek = { set_nationality = ROOT } }
			}
			every_owned_state = {
				limit = {
					is_core_of = SOV
					NOT = { is_core_of = KAZ }
					NOT = { is_core_of = GEO }
					NOT = { is_core_of = AZR }
					NOT = { is_core_of = ARM }
					NOT = { is_core_of = TMS }
					NOT = { is_core_of = TAJ }
					NOT = { is_core_of = UZB }
					NOT = { is_core_of = KYR }
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_core_of = ROOT
			}
		}

		remove_trigger = {
			NOT = {
				any_owned_state = {
					is_core_of = SOV
					NOT = { is_core_of = KAZ }
					NOT = { is_core_of = GEO }
					NOT = { is_core_of = AZR }
					NOT = { is_core_of = ARM }
					NOT = { is_core_of = TMS }
					NOT = { is_core_of = TAJ }
					NOT = { is_core_of = UZB }
					NOT = { is_core_of = KYR }
					NOT = { is_core_of = ROOT } 
					is_owned_and_controlled_by = ROOT
				}
			}
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_form_pan_slavic_commonwealth = {

		icon = generic_form_nation

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = UKR_form_pan_slavic_commonwealth_tt
				check_variable = { count_of_slav_integrations > 2 }
			}
		}

		visible = {
			has_completed_focus = UKR_world_of_cyril_and_methodius
			NOT = { has_global_flag = form_pan_slavic_commonwealth_flag }
		}

		complete_effect = {
			set_cosmetic_tag = UKR_PSC
			add_stability = 0.20
			hidden_effect = {
				#news_event = { id = ... hours = 6 }
				set_global_flag = form_pan_slavic_commonwealth_flag
			}
		}

		ai_will_do = {
			factor = 200
		}
	}
}
UKR_socialist_competition = {
	UKR_miners_competition = {

		icon = generic_construction

		available = {
			check_variable = { ukr_sc_number_of_comp < 10 }
		}

		modifier = {
			local_resources_factor = 0.03
			fuel_gain_factor = 0.02
		}

		days_remove = 365
		days_re_enable = 0
		cost = 75

		complete_effect = {
			add_to_variable = { ukr_sc_number_of_comp = 1 }
			if = {
				limit = { NOT = { has_country_flag = UKR_event_of_semivolos } }
				hidden_effect = {
					country_event = { id = ukraine.220 days = 10 }
				}
			}
		}

		remove_effect = {
			add_to_variable = { ukr_sc_war_support = -0.01 }
			add_to_variable = { ukr_sc_local_resources = 0.03 }
			add_to_variable = { ukr_sc_production_oil = 0.02 }
			if = {
				limit = { check_variable = { ukr_sc_number_of_comp = 10 } }
				clr_country_flag = UKR_start_of_socialist_competition
				set_country_flag = cua_red_champion_flag
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_farmers_competition = {

		icon = generic_construction

		available = {
			check_variable = { ukr_sc_number_of_comp < 10 }
		}

		modifier = {
			stability_factor = 0.03
			MONTHLY_POPULATION = 0.03
		}

		days_remove = 365
		days_re_enable = 0
		cost = 75

		complete_effect = {
			add_to_variable = { ukr_sc_number_of_comp = 1 }
			if = {
				limit = { NOT = { has_country_flag = UKR_event_of_demchenko } }
				hidden_effect = {
					country_event = { id = ukraine.221 days = 15 }
				}
			}
		}

		remove_effect = {
			add_to_variable = { ukr_sc_war_support = -0.01 }
			add_to_variable = { ukr_sc_stability = 0.03 }
			add_to_variable = { ukr_sc_population = 0.03 }
			if = {
				limit = { has_idea = UKR_famine_in_Ukraine }
				modify_timed_idea = {
					idea = UKR_famine_in_Ukraine
					days = -180
				}
			}
			if = {
				limit = { check_variable = { ukr_sc_number_of_comp = 10 } }
				clr_country_flag = UKR_start_of_socialist_competition
				set_country_flag = cua_red_champion_flag
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_workers_competition = {

		icon = generic_construction

		available = {
			check_variable = { ukr_sc_number_of_comp < 10 }
		}

		modifier = {
			industrial_capacity_factory = 0.03
			industrial_capacity_dockyard = 0.03
			production_factory_efficiency_gain_factor = 0.01
		}

		days_remove = 365
		days_re_enable = 0
		cost = 75

		complete_effect = {
			add_to_variable = { ukr_sc_number_of_comp = 1 }
			if = {
				limit = { NOT = { has_country_flag = UKR_event_of_mazay } }
				hidden_effect = {
					country_event = { id = ukraine.397 days = 20 }
				}
			}
		}

		remove_effect = {
			add_to_variable = { ukr_sc_war_support = -0.01 }
			add_to_variable = { ukr_sc_capacity_factory = 0.03 }
			add_to_variable = { ukr_sc_capacity_dockyard = 0.03 }
			add_to_variable = { ukr_sc_production_factory = 0.01 }
			if = {
				limit = { check_variable = { ukr_sc_number_of_comp = 10 } }
				clr_country_flag = UKR_start_of_socialist_competition
				set_country_flag = cua_red_champion_flag
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
}

UKR_nationalisation = {

	UKR_freeze_price_increases = {

		icon = generic_decision

		fire_only_once = yes

		modifier = {
			stability_weekly = 0.003
		}

		days_remove = 180

		cost = 75

		complete_effect = {
			add_to_variable = { UKR_steps_of_nationalisation = 1 }
			if = {
				limit = { check_variable = { UKR_steps_of_nationalisation = 5 } }
				set_country_flag = UKR_start_of_economic_regulation
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_industry_nationalisation = {

		icon = generic_construction

		fire_only_once = yes

		modifier = {
			production_speed_buildings_factor = -0.2
		}

		days_remove = 60
		cost = 50

		complete_effect = {
			add_to_variable = { UKR_steps_of_nationalisation = 1 }
			if = {
				limit = { check_variable = { UKR_steps_of_nationalisation = 5 } }
				set_country_flag = UKR_start_of_economic_regulation
			} 
		}

		remove_effect = {
			add_stability = -0.02
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_infrastructure_nationalisation = {

		icon = generic_construction

		available = {
			
		}

		fire_only_once = yes

		modifier = {
			production_speed_buildings_factor = -0.2
		}

		days_remove = 60
		cost = 50

		complete_effect = {
			add_to_variable = { UKR_steps_of_nationalisation = 1 } 
			if = {
				limit = { check_variable = { UKR_steps_of_nationalisation = 5 } }
				set_country_flag = UKR_start_of_economic_regulation
			}
		}

		remove_effect = {
			add_stability = -0.02
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 2
		}
	}
	UKR_capital_goods_nationalisation = {

		icon = generic_industry

		fire_only_once = yes

		modifier = {
			consumer_goods_factor = 0.1
		}

		days_remove = 60
		cost = 50

		complete_effect = {
			add_to_variable = { UKR_steps_of_nationalisation = 1 }
			if = {
				limit = { check_variable = { UKR_steps_of_nationalisation = 5 } }
				set_country_flag = UKR_start_of_economic_regulation
			} 
		}

		remove_effect = {
			add_stability = -0.02
			add_ideas = UKR_autarky_idea
		}

		ai_will_do = {
			factor = 2
		}
	}
	UKR_social_sphere_nationalisation = {

		icon = generic_political_discourse

		fire_only_once = yes

		modifier = {
			consumer_goods_factor = 0.1
		}

		days_remove = 90
		cost = 75

		complete_effect = {
			add_to_variable = { UKR_steps_of_nationalisation = 1 } 
			if = {
				limit = { check_variable = { UKR_steps_of_nationalisation = 5 } }
				set_country_flag = UKR_start_of_economic_regulation
			}
		}

		remove_effect = {
			add_stability = 0.04
		}

		ai_will_do = {
			factor = 2
		}
	}
}
UKR_last_crusade = {
	UKR_belgorod_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 240
			}
		}

		visible = {
			240 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			240 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_belgorod }
			custom_effect_tooltip = UKR_six_infantry_template_tt
		}
	}
	UKR_voronezh_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 260
			}
		}

		visible = {
			260 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			260 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_voronezh }
			custom_effect_tooltip = UKR_six_infantry_template_tt
		}
	}
	UKR_kursk_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 220
			}
		}

		visible = {
			220 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			220 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_kursk }
			custom_effect_tooltip = UKR_six_infantry_template_tt
		}
	}
	UKR_bryansk_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 224
			}
		}

		visible = {
			224 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			224 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_bryansk }
			custom_effect_tooltip = UKR_six_infantry_template_tt
		}
	}
	UKR_rostov_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 218
			}
		}

		visible = {
			218 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			218 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_rostov }
			custom_effect_tooltip = UKR_add_cossacks_div_tt
		}
	}
	UKR_millerovo_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 245
			}
		}

		visible = {
			245 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			245 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_millerovo }
			custom_effect_tooltip = UKR_add_cossacks_div_tt
		}
	}
	UKR_volgodonsk_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 238
			}
		}

		visible = {
			238 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 6000
			238 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_volgodonsk }
			custom_effect_tooltip = UKR_add_cossacks_div_tt
		}
	}
	UKR_dagestan_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 232
			}
		}

		visible = {
			232 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 4000
			232 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_kavkaz1 }
			custom_effect_tooltip = UKR_four_mountain_template_tt
		}
	}
	UKR_osetian_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 828
			}
		}

		visible = {
			828 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 4000
			828 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_kavkaz2 }
			custom_effect_tooltip = UKR_four_mountain_template_tt
		}
	}
	UKR_slutsk_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 204
			}
		}

		visible = {
			204 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 8000
			204 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_belarus1 }
			custom_effect_tooltip = UKR_eight_infantry_template_tt
		}
	}
	UKR_gomel_polizei = {
		icon = generic_prepare_civil_war

		highlight_states = {
			highlight_state_targets = {
				state = 241
			}
		}

		visible = {
			241 = {
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		fire_only_once = yes

		days_remove = 14
		cost = 10

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			add_manpower = 8000
			241 = { add_compliance = 15	}
			hidden_effect = { load_oob = UKR_polizei_belarus2 }
			custom_effect_tooltip = UKR_eight_infantry_template_tt
		}
	}
	UKR_defection_of_vlasov = {
		icon = generic_army_support

		available = {
			SOV = {
				surrender_progress > 0.2
			}
		}

		visible = {
			has_capitulated = no
			SOV = {
				has_government = communism
				has_character = SOV_andrey_vlasov
			}
		}

		fire_only_once = yes

		days_remove = 10
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			country_event = ukraine.291
			SOV = {
				country_event = ukraine.292
			}
		}
	}
}
UKR_anti_religious_category = {
	UKR_anti_religious_decision = {
		icon = eng_propaganda_campaigns

		fire_only_once = yes

		days_remove = 365
		cost = 0

		ai_will_do = {
			factor = 0
		}

		complete_effect = {
			hidden_effect = {
				country_event = { id = ukraine.294 days = 60 }
				country_event = { id = ukraine.295 days = 120 }
				country_event = { id = ukraine.296 days = 180 }
				country_event = { id = ukraine.297 days = 240 }
			}
		}

		remove_effect = {
			set_country_flag = UKR_success_of_anti_religious_campaign
			if = {
				limit = { has_idea = UKR_church_opposition }
				remove_ideas = UKR_church_opposition
			}
			add_ideas = UKR_atheistic_society
		}
	}
}
UKR_bear_trap_category = {
	UKR_infiltration_in_rostov = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 218
			}
			218 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			DON = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 218
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			218 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_salsk = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 238
			}
			238 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			DON = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 238
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			238 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_millerovo = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 245
			}
			245 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			DON = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 245
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			245 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_propaganda_for_don_cossaks = {

		icon = eng_propaganda_campaigns

		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 218
			}
			DON = { exists = no }
		}


		fire_only_once = yes

		days_remove = 30
		cost = 50

		remove_effect = {
			custom_effect_tooltip = UKR_propaganda_for_rebels_tt
			set_country_flag = UKR_advocacy_in_don
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_uprising_on_don = {
		icon = generic_ignite_civil_war

		visible = {
			DON = { exists = no }
		}
	
		available = {
			OR = {
				218 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				238 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				245 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
			}
		}

		fire_only_once = yes

		days_remove = 30

		war_with_on_remove = SOV

		cost = 25

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					218 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					238 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					245 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
				}
			}
			modifier = {
				factor = 0
				any_other_country = {
					original_tag = SOV
					controls_state = 218
					NOT = { has_government = communism }
				}
			}
		}

		complete_effect = {
			
		}
	
		remove_effect = {
			custom_effect_tooltip = UKR_war_after_rebellion_tt
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 218
					}
					218 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				DON = { 
					transfer_state = 218 
					hidden_effect = { load_oob = DON_rostov_rebels }
					custom_effect_tooltip = UKR_don_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 238
					}
					238 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				DON = { 
					transfer_state = 238
					hidden_effect = { load_oob = DON_salsk_rebels }
					custom_effect_tooltip = UKR_don_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 245
					}
					245 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				DON = { 
					transfer_state = 245
					hidden_effect = { load_oob = DON_millerovo_rebels }
					custom_effect_tooltip = UKR_don_rebels_army_tt
				}
			}
			puppet = DON
			if = {
				limit = {
					DON = {
						exists = yes
						is_puppet_of = ROOT
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						NOT = { has_war_with = ROOT }
						is_neighbor_of = ROOT
					}
					country_event = ukraine.323
				}
			}
			if = {
				limit = {
					has_war_with = SOV
					has_country_flag = UKR_advocacy_in_don
					DON = {
						is_puppet_of = ROOT
					}
				}
				DON = { add_ideas = KUB_ZKL_liberation_movement }
			}
		}
	}
	UKR_infiltration_in_kuban = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 234
			}
			234 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 234
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			234 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_black_sea_cost = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 233
			}
			233 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 233
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			233 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_adygea = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 1050
			}
			1050 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1050
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			1050 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_propaganda_for_kuban_cossaks = {

		icon = eng_propaganda_campaigns

		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 234
			}
			KUB = { exists = no }
		}


		fire_only_once = yes

		days_remove = 30
		cost = 50

		remove_effect = {
			custom_effect_tooltip = UKR_propaganda_for_rebels_tt
			set_country_flag = UKR_advocacy_in_kuban
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_uprising_on_kuban = {
		icon = generic_ignite_civil_war

		visible = {
			KUB = { exists = no }
		}
	
		available = {
			OR = {
				234 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				233 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				1050 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
			}
		}

		fire_only_once = yes

		days_remove = 30

		war_with_on_remove = SOV

		cost = 25

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					234 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					233 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					1050 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
				}
			}
			modifier = {
				factor = 0
				any_other_country = {
					original_tag = SOV
					controls_state = 234
					NOT = { has_government = communism }
				}
			}
		}

		complete_effect = {
			
		}
	
		remove_effect = {
			custom_effect_tooltip = UKR_war_after_rebellion_tt
			hidden_effect = {
				KUB = {
					division_template = {
						name = "Kuban Cossacks"					

						regiments = {
							cavalry = { x = 0 y = 0 }
							cavalry = { x = 0 y = 1 }
							cavalry = { x = 0 y = 2 }
					   		cavalry = { x = 1 y = 0 }
							cavalry = { x = 1 y = 1 }
						}
						support = {

						}
					}
					division_template = {
						name = "Kuban militia"					

						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
					   		militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
						}
						support = {

						}
					}
					division_template = {
						name = "Kavkaz militia"					

						regiments = {
							mountaineers = { x = 0 y = 0 }
							mountaineers = { x = 0 y = 1 }
							mountaineers = { x = 0 y = 2 }
							mountaineers = { x = 0 y = 3 }
					   		mountaineers = { x = 1 y = 0 }
							mountaineers = { x = 1 y = 1 }
							mountaineers = { x = 1 y = 2 }
						}
						support = {

						}
					}
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 234
					}
					234 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				KUB = { 
					transfer_state = 234 
					hidden_effect = { load_oob = KUB_main_rebels }
					custom_effect_tooltip = UKR_don_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 233
					}
					233 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				KUB = { 
					transfer_state = 233 
					hidden_effect = { load_oob = KUB_sochy_rebels }
					custom_effect_tooltip = UKR_kub_mountain_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 1050
					}
					1050 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				KUB = { 
					transfer_state = 1050 
					hidden_effect = { load_oob = KUB_adygea_rebels }
					custom_effect_tooltip = UKR_kub_mountain_army_tt
				}
			}
			puppet = KUB
			KUB = {
				set_politics = { ruling_party = democratic elections_allowed = yes }
				add_popularity = { ideology = democratic popularity = 0.35 }
			}

			if = {
				limit = {
					KUB = {
						exists = yes
						is_puppet_of = ROOT
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						NOT = { has_war_with = ROOT }
						is_neighbor_of = ROOT
					}
					country_event = ukraine.327
				}
			}
			if = {
				limit = {
					has_war_with = SOV
					has_country_flag = UKR_advocacy_in_kuban
					KUB = {
						is_puppet_of = ROOT
					}
				}
				KUB = { add_ideas = KUB_ZKL_liberation_movement }
			}
		}
	}
	UKR_infiltration_in_minsk = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 206
			}
			206 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 206
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			206 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_bobruysk = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 204
			}
			204 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 204
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			204 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_gomel = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 241
			}
			241 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 241
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			241 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_vitebsk = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 207
			}
			207 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 207
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			207 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_propaganda_for_belarusians = {

		icon = eng_propaganda_campaigns

		visible = {
			any_other_country = {
				original_tag = SOV
				controls_state = 206
			}
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}


		fire_only_once = yes

		days_remove = 30
		cost = 50

		remove_effect = {
			custom_effect_tooltip = UKR_propaganda_for_rebels_tt
			set_country_flag = UKR_advocacy_in_blr
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_uprising_in_belarus = {
		icon = generic_ignite_civil_war

		visible = {
			BLR = { exists = no }
			NOT = { has_country_flag = UKR_begin_upr_in_blr }
		}
	
		available = {
			OR = {
				204 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				206 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				207 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				241 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
			}
		}

		fire_only_once = yes

		days_remove = 30

		war_with_on_remove = SOV

		cost = 25

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					204 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					206 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					207 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					241 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
				}
			}
		}

		complete_effect = {
			
		}
	
		remove_effect = {
			set_country_flag = UKR_begin_upr_in_blr
			custom_effect_tooltip = UKR_war_after_rebellion_tt
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 206
					}
					206 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				BLR = { 
					transfer_state = 206 
					hidden_effect = { load_oob = BLR_minsk_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 207
					}
					207 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				BLR = { 
					transfer_state = 207
					hidden_effect = { load_oob = BLR_vitebsk_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 241
					}
					241 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				BLR = { 
					transfer_state = 241
					hidden_effect = { load_oob = BLR_gomel_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = SOV
						controls_state = 204
					}
					204 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				BLR = { 
					transfer_state = 204
					hidden_effect = { load_oob = BLR_bobruysk_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			puppet = BLR
			if = {
				limit = {
					BLR = {
						exists = yes
						is_puppet_of = ROOT
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						NOT = { has_war_with = ROOT }
					}
					country_event = ukraine.338
				}
			}
			if = {
				limit = {
					has_war_with = SOV
					has_country_flag = UKR_advocacy_in_blr
					BLR = {
						is_puppet_of = ROOT
					}
				}
				BLR = { add_ideas = KUB_ZKL_liberation_movement }
			}
		}
	}
}
UKR_extended_cossaks_idea = {
	UKR_rostov_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 218
			}
		}

		visible = {
			218 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			218 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_millerovo_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 245
			}
		}

		visible = {
			245 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			245 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_salsk_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 238
			}
		}

		visible = {
			238 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			238 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_starodub_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 1048
			}
		}

		visible = {
			1048 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			1048 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_berestian_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 94
			}
		}

		visible = {
			94 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			94 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_bessarabian_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 78
			}
		}

		visible = {
			78 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			78 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
	UKR_crimean_register = {
		icon = generic_nationalism

		highlight_states = {
			highlight_state_targets = {
				state = 1051
			}
		}

		visible = {
			1051 = { 
				is_owned_and_controlled_by = ROOT
				NOT = { is_core_of = ROOT } 
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 25

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			1051 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.25
					}
				}
			}
			add_stability = -0.01
		}
	}
}
UKR_request_allied_favors = {
	
	UKR_radio_svoboda = {

		icon = eng_propaganda_campaigns

		allowed = {
			tag = UKR
		}

		available = {
			has_war = yes
			NOT = { controls_state = 202 }
			has_capitulated = yes
		}

		days_remove = 90

		cost = 50

		fire_only_once = no

		modifier = {
			war_support_weekly = 0.01
			resistance_growth_on_our_occupied_states = 0.5 
		}

	}

	UKR_obtain_dockyard_access = {

		icon = generic_naval

		allowed = {
			tag = UKR
		}

		days_remove = 30

		cost = 50

		fire_only_once = yes

		visible = {
			tag = UKR
			any_other_country = {
				is_major = yes
				is_in_faction_with = ROOT
				has_war = yes
				num_of_naval_factories > 10
			}
		}

		remove_effect = {
			add_offsite_building = { type = dockyard level = 2 }
		}

	}

	UKR_assemble_air_squadron = {

		icon = generic_air

		allowed = {
			tag = UKR
		}

		visible = {
			tag = UKR
			any_other_country = {
				is_major = yes
				is_in_faction_with = ROOT
				has_war = yes
			}
		}

		days_remove = 30
		days_re_enable = 180

		cost = 50

		fire_only_once = no

		remove_effect = {
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
				}
				add_equipment_to_stockpile = {
					type = fighter_equipment_1
					amount = 75
					producer = UKR
				}
			}
			else = {
				create_equipment_variant = {
					name = "Hawker Hurricane" 
					type = small_plane_airframe_1
					allow_without_tech = yes
					modules = {
						fixed_main_weapon_slot = light_mg_4x
						fixed_auxiliary_weapon_slot_1 = light_mg_4x
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_ENG_fighter1_medium"
				}
				add_equipment_to_stockpile = {
					type = small_plane_airframe
					amount = 75
					producer = UKR
					variant_name = "Hawker Hurricane"
				}	
			}
		}

	}

	UKR_request_infantry_equipment = {

		icon = generic_prepare_civil_war

		allowed = {
			tag = UKR
		}

		days_remove = 60
		days_re_enable = 180

		cost = 50

		fire_only_once = no

		visible = {
			tag = UKR
			any_other_country = {
				is_major = yes
				is_in_faction_with = ROOT
				has_war = yes
			}
		}

		modifier = {
		}

		complete_effect = {
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 3000
			    producer = UKR
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 300
			    producer = UKR
			}
			add_equipment_to_stockpile = {
			    type = artillery_equipment
			    amount = 200
			    producer = UKR
			}
		}

	}

	UKR_pull_strings_with_british_industrialists = {

		icon = generic_industry

		allowed = {
			tag = UKR
		}

		available = {
			has_war = yes
			is_in_faction_with = ENG
		}

		days_remove = 60

		cost = 75

		fire_only_once = yes

		remove_effect = {
			add_offsite_building = { type = arms_factory level = 1 }
			add_offsite_building = { type = industrial_complex level = 1 }
		}

	}
}
UKR_moldavian_project_category = {
	UKR_infiltration_in_bessarabia = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = ROM
				controls_state = 78
			}
			78 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			MOL = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 78
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			78 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_moldova = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = ROM
				controls_state = 79
			}
			79 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			MOL = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 79
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			79 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_bukovina = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = ROM
				controls_state = 80
			}
			80 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			MOL = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 80
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			80 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_infiltration_in_bujak = {
		icon = infiltrate_state
		visible = {
			any_other_country = {
				original_tag = ROM
				controls_state = 766
			}
			766 = {
				has_state_flag = {
					flag = UKR_discovered_infiltration
					value < 2
				}
			}
			MOL = { exists = no }
		}
		available = {
			has_equipment = { infantry_equipment > 999 }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 766
			}
		}
		
		modifier = {
			command_power_gain = -0.1
		}
		
		days_remove = 10
		days_re_enable = 0
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			766 = {
				if = {
					limit = { has_state_flag = { flag = UKR_discovered_infiltration value = 0 } }
					modify_state_flag = {
						flag = UKR_discovered_infiltration
						value = 1
					}
					else = {
						modify_state_flag = {
							flag = UKR_discovered_infiltration
							value = 2
						}
					}
				}
			}
		}
	}
	UKR_uprising_in_moldova = {
		icon = generic_ignite_civil_war

		visible = {
			MOL = { exists = no }
		}
	
		available = {
			NOT = { is_in_faction_with = ROM }
			ROM = { exists = yes }
			OR = {
				78 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				79 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				80 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				766 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
			}
		}

		fire_only_once = yes

		days_remove = 30

		war_with_on_remove = ROM

		cost = 25

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					78 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					79 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					80 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
					766 = { has_state_flag = { flag = UKR_discovered_infiltration value < 2 } }
				}
			}
		}

		complete_effect = {
			
		}
	
		remove_effect = {
			custom_effect_tooltip = UKR_war_with_romania_tt
			if = {
				limit = {
					any_other_country = {
						original_tag = ROM
						controls_state = 78
					}
					78 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				MOL = { 
					transfer_state = 78 
					hidden_effect = { load_oob = MOL_bessarabian_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = ROM
						controls_state = 79
					}
					79 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				MOL = { 
					transfer_state = 79
					add_state_core = 79
					hidden_effect = { load_oob = MOL_moldavian_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = ROM
						controls_state = 80
					}
					80 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				MOL = { 
					transfer_state = 80
					add_state_core = 80
					hidden_effect = { load_oob = MOL_bukovins_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			if = {
				limit = {
					any_other_country = {
						original_tag = ROM
						controls_state = 766
					}
					766 = { has_state_flag = { flag = UKR_discovered_infiltration value > 1 } }
				}
				MOL = { 
					transfer_state = 766
					add_state_core = 766
					hidden_effect = { load_oob = MOL_bujaks_rebels }
					custom_effect_tooltip = UKR_blr_rebels_army_tt
				}
			}
			puppet = MOL
			ROM = { country_event = ukraine.357 }
		}
	}
	UKR_true_split_of_moldova = {

		available = {
			MOL = { 
				is_puppet_of = UKR 
				NOT = { has_war_with = ROM }
			} 
			OR = {
				80 = { is_owned_and_controlled_by = MOL }
				766 = { is_owned_and_controlled_by = MOL }
			}
		}

		remove_effect = {
			if = {
				limit = { 80 = { is_owned_and_controlled_by = MOL } }
				transfer_state = 80
			}
			if = {
				limit = { 766 = { is_owned_and_controlled_by = MOL } }
				transfer_state = 766
			}
			clr_country_flag = UKR_moldavian_project_enable
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_death_or_freedom = {
	UKR_czech_industrial_advisors = {
		icon = ger_military_buildup

		available = { has_war = yes }

		visible = { 
			OR = {
				is_in_faction_with = CZE 
				CZE = { exists = no }
			}
		}

		modifier = {
			industrial_capacity_factory = 0.10
		}

		days_remove = -1

		remove_trigger = {
			has_war = no
		}

		fire_only_once = yes
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_french_engineering_advisors = {
		icon = generic_construction

		available = { has_war = yes }

		visible = { 
			OR = {
				is_in_faction_with = FRA 
				FRA = { exists = no }
			}
		}

		modifier = {
			production_speed_bunker_factor = 0.20
			production_speed_anti_air_building_factor = 0.20
			production_speed_radar_station_factor = 0.20
		}

		days_remove = -1

		remove_trigger = {
			has_war = no
		}

		fire_only_once = yes
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_polish_military_advisors = {
		icon = generic_army_support

		available = { has_war = yes }

		visible = { 
			OR = {
				is_in_faction_with = POL 
				POL = { exists = no }
			}
		}

		modifier = {
			cavalry_attack_factor = 0.15
			cavalry_defence_factor = 0.15
			motorized_attack_factor = 0.15
			motorized_defence_factor = 0.15
		}

		days_remove = -1

		remove_trigger = {
			has_war = no
		}

		fire_only_once = yes
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_dutch_bicycle_troops = {
		icon = generic_prepare_civil_war

		available = { has_war = yes }

		visible = { 
			OR = {
				is_in_faction_with = HOL 
				HOL = { exists = no }
			}
		}

		days_remove = 30

		remove_trigger = {
			has_war = no
		}

		remove_effect = {
			set_technology = { bicycle_infantry = 1 }
			custom_effect_tooltip = UKR_dutch_bicycle_troops_tt
			division_template = {
				name = "Lisapedna Brihada"		

				regiments = {
					bicycle_battalion = { x = 0 y = 0 }
					bicycle_battalion = { x = 0 y = 1 }
					bicycle_battalion = { x = 0 y = 2 }
					bicycle_battalion = { x = 1 y = 0 }
					bicycle_battalion = { x = 1 y = 1 }
					bicycle_battalion = { x = 1 y = 2 }
				}
			}
		}

		fire_only_once = yes
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_influence_in_crimea_category = {
	UKR_connections_with_crimean_opposition = {

		icon = generic_political_discourse

		fire_only_once = yes

		days_remove = 60

		cost = 50

		remove_effect = {
			add_to_variable = { UKR_crimean_supports = 1 }
			if = {
				limit = { check_variable = { UKR_crimean_supports = 5 } }
				CRM = { country_event = ukraine.371 }
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_support_of_ukrainians_organizations = {

		icon = generic_nationalism

		fire_only_once = yes

		days_remove = 60

		cost = 50

		remove_effect = {
			CRM = { add_political_power = -50 }
			add_to_variable = { UKR_crimean_supports = 1 }
			if = {
				limit = { check_variable = { UKR_crimean_supports = 5 } }
				CRM = { country_event = ukraine.371 }
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_propaganda_for_native_crimeans = {

		icon = eng_propaganda_campaigns

		fire_only_once = yes

		days_remove = 60

		cost = 50

		remove_effect = {
			CRM = {
				add_stability = -0.05
			}
			add_to_variable = { UKR_crimean_supports = 1 }
			if = {
				limit = { check_variable = { UKR_crimean_supports = 5 } }
				CRM = { country_event = ukraine.371 }
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_prepare_treats_with_west_leaders = {

		icon = hol_exchange_intelligence_data

		fire_only_once = yes

		days_remove = 60

		cost = 50

		available = {
			any_other_country = {
				is_major = yes
				has_government = democratic
				has_opinion = { target = UKR value > 69 }
			}
		}

		remove_effect = {
			add_to_variable = { UKR_crimean_supports = 1 }
			if = {
				limit = { check_variable = { UKR_crimean_supports = 5 } }
				CRM = { country_event = ukraine.371 }
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_discredit_of_crimean_government = {

		icon = generic_political_rally

		fire_only_once = yes

		days_remove = 60

		cost = 50

		remove_effect = {
			CRM = {
				add_stability = -0.02
				add_war_support = -0.02
			}
			add_to_variable = { UKR_crimean_supports = 1 }
			if = {
				limit = { check_variable = { UKR_crimean_supports = 5 } }
				CRM = { country_event = ukraine.371 }
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_kyiv_conference_category = {
	UKR_start_of_kyiv_conference = {
		icon = generic_decision

		available = {
			OR = {
				threat < 0.25
				has_completed_focus = UKR_galician_operations
			}
			is_puppet = no
			NOT = { is_in_faction_with = POL }
			NOT = { has_war_with = POL }
			POL = { has_civil_war = no }
			has_country_flag = UKR_kyiv_conference_is_start
		}

		visible = {
			OR = {
				has_completed_focus = UKR_galician_operations
				threat < 0.80
			}
			89 = { owner = { original_tag = POL } }
			91 = { owner = { original_tag = POL } }
			93 = { owner = { original_tag = POL } }
			1052 = { owner = { original_tag = POL } }
			has_country_flag = UKR_kyiv_conference_is_available
			NOT = { has_completed_focus = UKR_alliance_with_Poland }
		}

		complete_effect = {
			91 = { owner = { country_event = ukraine.245 } }
			set_variable = { UKR_participant_of_conference = 1 }
			hidden_effect = {
				news_event = { hours = 6 id = news.558 }
				country_event = { id = ukraine.248 days = 7 }
			}
		}

		remove_effect = {
			if = {
				limit = {
					GER = {
						is_puppet = no
						NOT = { is_in_faction_with = POL }
						NOT = { has_war_with = POL }
						NOT = { has_war_with = UKR }
					}
					85 = { is_owned_and_controlled_by = POL }
					86 = { is_owned_and_controlled_by = POL }
					762 = { is_owned_and_controlled_by = POL }
				}
				GER = { country_event = ukraine.241 }
			}
			if = {
				limit = {
					BLR = {
						is_puppet = no
						NOT = { is_in_faction_with = POL }
						NOT = { has_war_with = POL }
						NOT = { has_war_with = UKR }
					}
					94 = { is_owned_and_controlled_by = POL }
					95 = { is_owned_and_controlled_by = POL }
					96 = { is_owned_and_controlled_by = POL }
					97 = { is_owned_and_controlled_by = POL }
				}
				BLR = { country_event = ukraine.242 }
			}
			if = {
				limit = {
					LIT = {
						is_puppet = no
						NOT = { is_in_faction_with = POL }
						NOT = { has_war_with = POL }
						NOT = { has_war_with = UKR }
					}
					784 = { is_owned_and_controlled_by = POL }
				}
				LIT = { country_event = ukraine.243 }
			}
			if = {
				limit = {
					CZE = {
						is_puppet = no
						NOT = { is_in_faction_with = POL }
						NOT = { has_war_with = POL }
						NOT = { has_war_with = UKR }
					}
					88 = { is_owned_and_controlled_by = POL }
				}
				CZE = { country_event = ukraine.244 }
			}
		}

		fire_only_once = yes

		days_remove = 5
		cost = 150

		ai_will_do = {
			factor = 0
		}
	}
	UKR_wargoal_against_poland_after_unsuccessful_conference = {
		icon = generic_ignite_civil_war

		available = {
			threat > 0.25
		}

		visible = {
			has_country_flag = UKR_kyiv_conference_is_fail
			POL = {	exists = yes }
			NOT = { is_in_faction_with = POL }
			NOT = { has_war_with = POL }
			is_puppet = no
			89 = { owner = { original_tag = POL } }
			91 = { owner = { original_tag = POL } }
			93 = { owner = { original_tag = POL } }
			1052 = { owner = { original_tag = POL } }
		}

		remove_effect = {
			91 = { owner = { save_event_target_as = poland_in_galicia_target } }	
			create_wargoal = {
				type = take_state_focus
				target = event_target:poland_in_galicia_target
				generator = { 89 91 93 1052 }
			}
		}

		fire_only_once = yes

		war_with_on_remove = POL

		days_remove = 30
		cost = 100

		ai_will_do = {
			factor = 0
		}
	}
}
UKR_recovery_after_communist_purge_category = {
	UKR_prepare_army_commissars = {

		icon = generic_army_support

		fire_only_once = yes

		days_remove = 60

		cost = 25

		remove_effect = {
			set_variable = { var_ukr_comm_morale_debuff = 0 }
			add_to_variable = { var_ukr_steps_of_purge_recovery = 1 }
			custom_effect_tooltip = UKR_prepare_army_commissars_tt
			if = {
				limit = { check_variable = { var_ukr_steps_of_purge_recovery = 5 } }
				country_event = ukraine.398
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_massive_army_maneuvers = {

		icon = generic_prepare_civil_war

		fire_only_once = yes

		days_remove = 30

		custom_cost_trigger = {
			has_army_experience > 14.99
		}
		custom_cost_text = 15_army_experience_1

		complete_effect = {
			army_experience = -15
		}

		remove_effect = {
			set_variable = { var_ukr_comm_org_debuff = 0 }
			add_to_variable = { var_ukr_steps_of_purge_recovery = 1 }
			custom_effect_tooltip = UKR_massive_army_maneuvers_tt
			if = {
				limit = { check_variable = { var_ukr_steps_of_purge_recovery = 5 } }
				country_event = ukraine.398
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_reorganize_red_fleet = {

		icon = generic_naval

		fire_only_once = yes

		days_remove = 60

		custom_cost_trigger = {
			has_navy_experience > 14.99
		}
		custom_cost_text = 15_navy_experience_1

		complete_effect = {
			navy_experience = -15
		}

		remove_effect = {
			set_variable = { var_ukr_comm_naval_debuff = 0 }
			add_to_variable = { var_ukr_steps_of_purge_recovery = 1 }
			custom_effect_tooltip = UKR_reorganize_red_fleet_tt
			if = {
				limit = { check_variable = { var_ukr_steps_of_purge_recovery = 5 } }
				country_event = ukraine.398
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_mix_air_command = {

		icon = generic_air

		fire_only_once = yes

		days_remove = 60

		custom_cost_trigger = {
			has_air_experience > 14.99
		}
		custom_cost_text = 15_air_experience_1

		complete_effect = {
			air_experience = -15
		}

		remove_effect = {
			set_variable = { var_ukr_comm_air_debuff = 0 }
			add_to_variable = { var_ukr_steps_of_purge_recovery = 1 }
			custom_effect_tooltip = UKR_mix_air_command_tt
			if = {
				limit = { check_variable = { var_ukr_steps_of_purge_recovery = 5 } }
				country_event = ukraine.398
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}

	UKR_raise_loyal_young_officers = {

		icon = generic_military

		fire_only_once = yes

		days_remove = 45

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
			hidden_effect = { country_event = { id = ukraine.430 days = 10 random_days = 5 } }
		}

		remove_effect = {
			set_variable = { var_ukr_comm_plan_debuff = 0 }
			add_to_variable = { var_ukr_steps_of_purge_recovery = 1 }
			custom_effect_tooltip = UKR_raise_loyal_young_officers_tt
			if = {
				limit = { check_variable = { var_ukr_steps_of_purge_recovery = 5 } }
				country_event = ukraine.398
			} 
		}

		ai_will_do = {
			factor = 2
		}
	}
}
UKR_between_two_giants_category = {
	UKR_MRP_mission = {

		icon = hol_exchange_intelligence_data

		allowed = { always = no } #Activated from effect

		available = { #success effect
			OR = {
				AND = {
					is_in_faction = yes
					is_faction_leader = no
				}
				has_idea = UKR_deliveries_to_germany
				AND = {
					SOV = {
						has_opinion = {
							target = ROOT
							value > 99
						} 
					}
					GER = {
						has_opinion = {
							target = ROOT
							value > 99
						} 
					}
				}
				has_non_aggression_pact_with = SOV
			}
		}

		cancel_trigger = {
			OR = {
				has_war_with = GER
				has_war_with = SOV
			}
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = { # fail
			SOV = { country_event = ukraine.764 }
		}

		complete_effect = { # success
			ROOT = { country_event = { id = ukraine.765 days = 2 } }
		}
	}
	UKR_hold_soviet_invasion = {

		icon = generic_political_address

		visible = {
			has_idea = UKR_comintern_influence
		}

		days_remove = 90
		days_re_enable = 90
		cost = UKR_hold_sov_invasion_cost

		modifier = {
			communism_drift = 0.05 
		}

		complete_effect = {
			multiply_variable = { UKR_hold_sov_invasion_cost = 2 }
			custom_effect_tooltip = UKR_decision_cost_increase_tt
			modify_timed_idea = {
			    idea = UKR_comintern_influence
			    days = 180
			}
		}

		remove_effect = {
			 
		}

		ai_will_do = {
			factor = 1
		}
	}
}
UKR_cossack_republic_decisions = {
	UKR_hetmans_yearly_elections = {

		icon = generic_civil_support

		allowed = { always = no } #Activated from effect

		available = {
			NOT = { has_government = neutrality }
		}

		days_mission_timeout = 365

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = yes

		timeout_effect = {
			hidden_effect = {
				country_event = ukraine.470
			}
		}
	}
	UKR_how_it_work = {
		icon = generic_political_rally

		visible = {
			NOT = { has_country_flag = UKR_dont_need_manual_for_UCR }
		}

		complete_effect = {
			country_event = ukraine.474
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 1
		cost = 0

		ai_will_do = {
			factor = 0
		}
	}
	UKR_unionists_bribe = {
		icon = ukr_unionists_bribe

		visible = {
			check_variable = { var_ucr_support_of_unionists < 100 } 
			NOT = { has_country_flag = UKR_unionists_is_rulers }
		}

		remove_effect = {
			ucr_support_of_unionists_small = yes
		}

		modifier = {
			consumer_goods_factor = 0.03
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 30
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_unionists_compromise = { #compromising evidence
		icon = ukr_unionists_compromise

		visible = {
			check_variable = { var_ucr_support_of_unionists < 100 } 
			NOT = { has_country_flag = UKR_unionists_is_rulers }
		}

		remove_effect = {
			random_list = {
				75 = {
					ucr_support_of_unionists_big = yes
				}
				25 = {
					ucr_opposition_of_unionists_big = yes
				}
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		cost = 35

		ai_will_do = {
			factor = 0
		}
	}
	UKR_guards_of_order_bribe = {
		icon = ukr_guards_of_order_bribe

		visible = {
			check_variable = { var_ucr_support_of_guards_of_order < 100 } 
			NOT = { has_country_flag = UKR_guards_of_order_is_rulers }
		}

		remove_effect = {
			ucr_support_of_guards_small = yes
		}

		modifier = {
			consumer_goods_factor = 0.03
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 30
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_guards_of_order_compromise = { #compromising evidence
		icon = ukr_guards_of_order_compromise

		visible = {
			check_variable = { var_ucr_support_of_guards_of_order < 100 } 
			NOT = { has_country_flag = UKR_guards_of_order_is_rulers }
		}

		remove_effect = {
			random_list = {
				75 = {
					ucr_support_of_guards_big = yes
				}
				25 = {
					ucr_opposition_of_guards_big = yes
				}
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		cost = 35

		ai_will_do = {
			factor = 0
		}
	}
	UKR_right_wing_bribe = {
		icon = ukr_right_wing_bribe

		visible = {
			check_variable = { var_ucr_support_of_right_wing < 100 } 
			NOT = { has_country_flag = UKR_right_wing_is_rulers }
		}

		remove_effect = {
			ucr_support_of_right_small = yes
		}

		modifier = {
			consumer_goods_factor = 0.03
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 30
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_right_wing_compromise = { #compromising evidence
		icon = ukr_right_wing_compromise

		visible = {
			check_variable = { var_ucr_support_of_right_wing < 100 }
			NOT = { has_country_flag = UKR_right_wing_is_rulers }
		}

		remove_effect = {
			random_list = {
				75 = {
					ucr_support_of_right_big = yes
				}
				25 = {
					ucr_opposition_of_right_big = yes
				}
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		cost = 35

		ai_will_do = {
			factor = 0
		}
	}
	UKR_black_rada_bribe = {
		icon = ukr_black_rada_bribe

		visible = {
			check_variable = { var_ucr_support_of_black_rada < 100 } 
			NOT = { has_country_flag = UKR_black_rada_is_rulers }
		}

		remove_effect = {
			ucr_support_of_black_small = yes
		}

		modifier = {
			consumer_goods_factor = 0.03
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 30
		cost = 25

		ai_will_do = {
			factor = 0
		}
	}
	UKR_black_rada_compromise = { #compromising evidence
		icon = ukr_black_rada_compromise

		visible = {
			check_variable = { var_ucr_support_of_black_rada < 100 }
			NOT = { has_country_flag = UKR_black_rada_is_rulers }
		}

		remove_effect = {
			random_list = {
				75 = {
					ucr_support_of_black_big = yes
				}
				25 = {
					ucr_opposition_of_black_big = yes
				}
			}
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90
		cost = 35

		ai_will_do = {
			factor = 0
		}
	}
	UKR_promise_position = { #give a positions in government structures
		icon = hol_exchange_intelligence_data

		visible = {
			check_variable = { var_ucr_promised_positions < 5 }
			OR = {
				check_variable = { var_ucr_support_of_unionists < 100 } 
				check_variable = { var_ucr_support_of_guards_of_order < 100 }
				check_variable = { var_ucr_support_of_right_wing < 100 }
				check_variable = { var_ucr_support_of_black_rada < 100 }
			}
		}

		complete_effect = {
			country_event = ukraine.471
		}

		fire_only_once = no

		days_remove = 0
		days_re_enable = 30
		cost = 50

		ai_will_do = {
			factor = 0
		}
	}
	UKR_conscript_collaborants = { #decision for unionists
		icon = generic_police_action

		visible = {
			has_country_flag = UKR_unionists_is_rulers
		}

		available = {
			any_state = {
				NOT = {
					is_core_of = ROOT
				}
				is_controlled_by = ROOT
			}
		}

		modifier = {
			resistance_growth = -0.5
			non_core_manpower = 0.03
		}

		fire_only_once = no

		days_remove = 90
		days_re_enable = 180
		cost = 50

		ai_will_do = {
			factor = 1
		}
	}
	UKR_power_of_supreme_council = { #decision for unionists
		icon = eng_trade_unions_support

		visible = {
			has_country_flag = UKR_unionists_is_rulers
			has_character = UKR_pavlo_skoropadskyi	
		}

		complete_effect = {
			add_political_power = 125
			ucr_support_of_guards_small = yes
			ucr_support_of_right_small = yes
			ucr_support_of_black_small = yes
		}

		remove_effect = {
			add_political_power = -150
			ucr_opposition_of_guards_big = yes
			ucr_opposition_of_right_big = yes
			ucr_opposition_of_black_big = yes
		}

		fire_only_once = no

		days_remove = 30
		days_re_enable = 365
		cost = 0

		ai_will_do = {
			factor = 0
		}
	}
	UKR_union_treaty_with_russia = { #decision for guards of order
		icon = eng_trade_unions_support

		allowed = {
			has_dlc = "No Step Back"
		}

		available = {
			SOV = {
				exists = yes
				is_puppet = no
				NOT = { has_government = communism }
				NOT = { has_war_with = ROOT }
				has_civil_war = no
			}
		}

		visible = {
			has_country_flag = UKR_guards_of_order_is_rulers
			NOT = {
				is_in_faction_with = SOV
			}
		}

		remove_effect = {
			SOV = {
				country_event = ukraine.475
			}
			ucr_opposition_of_right_full = yes
		}

		fire_only_once = yes

		days_remove = 1
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_red_menace_prepare = {  #decision for guards of order

		icon = generic_tank

		fire_only_once = no
	

		visible = {
			has_country_flag = UKR_guards_of_order_is_rulers
		}
		
		available = {
			SOV = { has_government = communism }
			NOT = { has_war_with = SOV }
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}

		days_remove = 90
		days_re_enable = 360
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_connections_with_white_emigre = { #decision for guards of order
		icon = recruit_operative

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			has_intelligence_agency = yes
		}

		visible = {
			has_country_flag = UKR_guards_of_order_is_rulers
		}

		remove_effect = {
			add_ideas = UKR_operatives_from_white_emigre
		}

		fire_only_once = yes

		days_remove = 30
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_full_conscription = { #decision for right wing
		icon = generic_military

		available = {
			has_war_support > 0.6
			NOT = {
				has_idea = service_by_requirement
				has_idea = all_adults_serve
				has_idea = scraping_the_barrel
			}
		}

		visible = {
			has_country_flag = UKR_right_wing_is_rulers
		}

		remove_effect = {
			add_ideas = service_by_requirement
			if = {
				limit = { has_war = no }
				ucr_opposition_of_black_big = yes
			}
		}

		fire_only_once = yes

		days_remove = 1
		cost = 150

		ai_will_do = {
			factor = 1
		}
	}
	UKR_strengthen_unity = { #decision for right wing
		icon = generic_nationalism

		available = {
			any_owned_state = { 
				is_owned_and_controlled_by = ROOT 
				NOT = { is_core_of = ROOT }
			} 
		}

		visible = {
			has_country_flag = UKR_right_wing_is_rulers
		}

		modifier = {
			stability_weekly = 0.002
			war_support_weekly = 0.002
			compliance_growth = 0.5
			resistance_damage_to_garrison = 0.25
			required_garrison_factor = 0.25
		}

		fire_only_once = no

		days_remove = 120
		days_re_enable = 365
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_no_step_back = { #decision for right wing
		icon = generic_police_action

		available = {
			any_owned_state = { 
				NOT = { is_controlled_by = ROOT }
				is_core_of = ROOT
			} 
		}

		visible = {
			has_war = yes
			has_country_flag = UKR_right_wing_is_rulers
		}

		modifier = {
			compliance_growth_on_our_occupied_states = -0.50
			resistance_growth_on_our_occupied_states = 0.30
			max_dig_in = 5
			army_attack_factor = 0.05
		}

		fire_only_once = no

		days_remove = 90
		days_re_enable = 180
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	UKR_distribute_land_to_landless_cossacks = { #decision for black rada
		icon = generic_decision

		available = {
			has_stability < 0.8
		}

		visible = {
			has_country_flag = UKR_black_rada_is_rulers
		}

		modifier = {
			stability_weekly = 0.002
			neutrality_drift = 0.05
			party_popularity_stability_factor = 0.15
		}

		fire_only_once = no

		days_remove = 180
		days_re_enable = 360
		cost = 100

		ai_will_do = {
			factor = 2
		}
	}
	UKR_economic_demilitarization = { #decision for black rada
		icon = generic_construction

		available = {
			has_war = no
			has_war_support > 0.5
		}

		visible = {
			has_country_flag = UKR_black_rada_is_rulers
		}

		modifier = {
			industrial_capacity_factory = 0.10
			production_speed_buildings_factor = 0.10
			war_support_weekly = -0.05
		}

		remove_trigger = {
			has_war = yes
		}

		fire_only_once = no

		days_remove = 120
		days_re_enable = 360
		cost = 80

		ai_will_do = {
			factor = 1
		}
	}
	UKR_annexation_of_don = {
		visible = {
			218 = { is_owned_and_controlled_by = DON }
			DON = { is_subject_of = UKR } 
		}

		available = {
			divisions_in_state = {
				state = 218	
				size > 4
			}
			if = {
				limit = { 238 = { is_owned_and_controlled_by = DON } }
				divisions_in_state = {
					state = 238	
					size > 2
				}
			}
			if = {
				limit = { 245 = { is_owned_and_controlled_by = DON } }
				divisions_in_state = {
					state = 245	
					size > 2
				}
			}
		}

		remove_effect = {
			DON = {
				country_event = { id = ukraine.478 days = 1 }
			}
		}

		fire_only_once = yes	

		days_remove = 0
		cost = 150

		ai_will_do = {
			factor = 1
		}
	}
	UKR_integration_of_don = {

		visible = {
			218 = { 
				is_owned_and_controlled_by = UKR
				NOT = { is_core_of = UKR }
			}

		}

		remove_effect = {
			country_event = ukraine.479
			if = {
				limit = { 
					check_variable = { var_ucr_support_of_right_wing < 100 }
				}
				ucr_support_of_right_big = yes
			}
		}

		remove_trigger = {
			218 = { NOT = { is_owned_and_controlled_by = UKR } } 
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = no	

		days_remove = 90
		cost = 100

		ai_will_do = {
			factor = 1
		}
	}
	UKR_appointment_of_klochkovskyi_mission = {

		icon = generic_political_discourse

		allowed = { always = no } #Activated from effect

		available = { #success effect
			has_idea = UKR_vyacheslav_klochkovskyi
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_trigger = {
			has_country_flag = UKR_unionists_is_rulers
		}

		is_good = no

		#Fail
		timeout_effect = {
			ucr_opposition_of_unionists_big = yes
		}
		#Success
		complete_effect = {
			ucr_support_of_unionists_full = yes
		}
	}
	UKR_appointment_of_biskupsky_mission = {

		icon = generic_political_discourse

		allowed = { always = no } #Activated from effect

		available = { #success effect
			has_idea = UKR_vasily_biskupsky
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_trigger = {
			has_country_flag = UKR_guards_of_order_is_rulers
		}

		is_good = no

		#Fail
		timeout_effect = {
			ucr_opposition_of_guards_big = yes
		}
		#Success
		complete_effect = {
			ucr_support_of_guards_full = yes
		}
	}
	UKR_appointment_of_kubiyovych_mission = {

		icon = generic_political_discourse

		allowed = { always = no } #Activated from effect

		available = { #success effect
			has_idea = UKR_volodymyr_kubiyovych
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_trigger = {
			has_country_flag = UKR_right_wing_is_rulers
		}

		is_good = no

		#Fail
		timeout_effect = {
			ucr_opposition_of_right_big = yes
		}
		#Success
		complete_effect = {
			ucr_support_of_right_full = yes
		}
	}
	UKR_appointment_of_kedrowsky_mission = {

		icon = generic_political_discourse

		allowed = { always = no } #Activated from effect

		available = { #success effect
			has_idea = UKR_volodymyr_kedrowsky
		}

		days_mission_timeout = 120

		fire_only_once = yes

		cancel_trigger = {
			has_country_flag = UKR_black_rada_is_rulers
		}

		is_good = no

		#Fail
		timeout_effect = {
			ucr_opposition_of_black_big = yes
		}
		#Success
		complete_effect = {
			ucr_support_of_black_full = yes
		}
	}
}
UKR_OUN_factions = {
	UKR_debug_oun_authority_up = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			oun_increase_authority_big = yes
		}
	}
	UKR_debug_oun_control_up = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			oun_increase_control_big = yes
		}
	}
	UKR_debug_oun_onslaught_up = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			oun_increase_onslaught_big = yes
		}
	}
	UKR_increase_authority = {

		visible = {
			check_variable = { var_oun_authority_of_conovalets < 100 }
			oun_strong_power_of_konovalets_trigger = no
		}

		available = {
			has_completed_focus = UKR_overcome_party_split
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_increase_authority_small = yes
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
			modifier = {
				add = 3
				has_game_rule = {
					rule = UKR_ai_behavior
					option = FASCIST_TRUE
				}
			}
		}
	}
	UKR_lower_authority = {

		visible = {
			check_variable = { var_oun_authority_of_conovalets > 0 }
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_lower_authority_small = yes
			add_popularity = {
				ideology = fascism
				popularity = -0.02
			}
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
		}
	}
	UKR_increase_control = {

		visible = {
			check_variable = { var_oun_control_of_melnyk < 100 }
			oun_strong_power_of_melnyk_trigger = no
			has_character = UKR_andriy_melnyk
		}

		available = {
			has_completed_focus = UKR_overcome_party_split
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_increase_control_small = yes
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
			modifier = {
				add = 3
				has_game_rule = {
					rule = UKR_ai_behavior
					option = FASCIST
				}
			}
		}
	}
	UKR_lower_control  = {

		visible = {
			check_variable = { var_oun_control_of_melnyk > 0 }
			has_character = UKR_andriy_melnyk
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_lower_control_small = yes
			add_popularity = {
				ideology = fascism
				popularity = -0.01
			}
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
		}
	}
	UKR_increase_onslaught = {

		visible = {
			check_variable = { var_oun_onslaught_of_bandera < 100 }
			oun_strong_power_of_bandera_trigger = no
			has_character = UKR_stepan_bandera
		}

		available = {
			has_completed_focus = UKR_overcome_party_split
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_increase_onslaught_small = yes
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
			modifier = {
				add = 3
				has_game_rule = {
					rule = UKR_ai_behavior
					option = FASCIST_ALTERNATE
				}
			}
		}
	}
	UKR_lower_onslaught = {

		visible = {
			check_variable = { var_oun_onslaught_of_bandera > 0 }
			has_character = UKR_stepan_bandera
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_oun_decisions }
		}

		complete_effect = {
			set_country_flag = UKR_have_active_oun_decisions
		}

		remove_effect = {
			oun_lower_onslaught_small = yes
			add_popularity = {
				ideology = fascism
				popularity = -0.01
			}
			clr_country_flag = UKR_have_active_oun_decisions
		}

		fire_only_once = no	

		days_remove = 14
		days_re_enable = 14
		cost = 15

		ai_will_do = {
			factor = 0
		}
	}
	UKR_decrease_radicalisation_decision = {

		icon = generic_political_discourse

		visible = {
			check_variable = { var_oun_radicalisation_level > 1 }
		}

		modifier = {
			war_support_weekly = -0.005
		}

		remove_effect = {
			oun_decrease_radicalisation = yes
		}

		fire_only_once = no	

		days_remove = 60
		days_re_enable = 30
		cost = 50

		ai_will_do = {
			factor = 2
		}
	}
}
UKR_nat_propaganda_campaigns = {
	UKR_propaganda_add_slot = { 

		icon = generic_decision

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = UKR_propaganda_add_slot_tt
				OR = {
					check_variable = { UKR_poster_center_icon_frame = UKR_propaganda_locked_slot_index }
					check_variable = { UKR_poster_right_icon_frame = UKR_propaganda_locked_slot_index }
				}
			}
		}

		days_remove = 90

		days_re_enable = 365

		cost = 50

		modifier = {
			consumer_goods_factor = 0.10
		}

		remove_effect = {
			UKR_unlock_propaganda_campaign_slot_effect = yes
		}
	}
	UKR_propaganda_for_united_ukraine = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war_with = POL
			91 = {
				is_owned_and_controlled_by = POL
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_for_united_ukraine_cost

		modifier = {
			weekly_manpower = 300
			training_time_factor = -0.1
		}

		complete_effect = {
			add_timed_idea = {
				idea = UKR_antipolish_propaganda_idea
				days = 180
			}
			set_variable = { UKR_new_propaganda_campaign = 3 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 3 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_for_united_ukraine_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_for_united_ukraine_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_propaganda_glory_for_heroes = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}
		
		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war = yes
			any_enemy_country = {
				is_major = yes
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_glory_for_heroes_cost

		modifier = {
			army_attack_against_major_factor = 0.1
			army_defence_against_major_factor = 0.1
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 4 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 4 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_glory_for_heroes_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_glory_for_heroes_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_prison_of_the_peoples = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war_with = SOV
			OR = {
				has_completed_focus = UKR_menace_from_east
				has_completed_focus = UKR_bear_trap
			}
			any_state = {
				is_core_of = SOV
				is_owned_by = SOV
				is_controlled_by = ROOT
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_prison_of_the_peoples_cost

		modifier = {
			compliance_gain = 0.02
			resistance_growth = -0.1
		}

		complete_effect = {
			add_timed_idea = {
				idea = UKR_antibolshevik_propaganda_idea
				days = 180
			}
			set_variable = { UKR_new_propaganda_campaign = 5 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 5 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_prison_of_the_peoples_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_prison_of_the_peoples_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_destroy_agents_of_the_kremlin = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		allowed = {
			has_dlc	= "La Resistance"
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			country_exists = SOV
			SOV = {
				has_government = communism
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_destroy_agents_of_the_kremlin_cost

		modifier = {
			intelligence_agency_defense = 0.5
			agency_upgrade_time = -0.25
			civilian_intel_to_others = -10
			airforce_intel_to_others = -10
			army_intel_to_others = -10
			navy_intel_to_others = -10
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 6 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 6 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_destroy_agents_of_the_kremlin_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_destroy_agents_of_the_kremlin_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_combat_fund_for_tanks = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			OR = {
				has_war = yes
				has_war_support > 0.5
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_combat_fund_for_tanks_cost

		complete_effect = {
			add_timed_idea = {
				idea = UKR_peoples_tank
				days = 180
			}
			set_variable = { UKR_new_propaganda_campaign = 7 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 7 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_combat_fund_for_tanks_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_combat_fund_for_tanks_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_combat_fund_common = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			OR = {
				has_war = yes
				has_war_support > 0.5
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_combat_fund_common_cost

		modifier = {
			consumer_goods_factor = -0.10
			industrial_capacity_factory = 0.05
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 8 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 8 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_combat_fund_common_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_combat_fund_common_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_propaganda_for_ukrainian_state = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_defensive_war = yes
			surrender_progress > 0.2
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_for_ukrainian_state_cost

		modifier = {
			army_morale_factor = 0.07
			command_power_gain_mult = 0.20
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 9 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 9 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_for_ukrainian_state_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_for_ukrainian_state_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
	UKR_natcom_equality = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_natcom_equality_cost

		modifier = {
			communism_drift = 0.05
			stability_weekly = 0.002
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 10 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.05
			}
			set_variable = { UKR_propaganda_campaign_to_remove = 10 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_natcom_equality_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_natcom_equality_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_education = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_natcom_education_cost

		modifier = {
			research_speed_factor = 0.08
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 11 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 11 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_natcom_education_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_natcom_education_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_cooperation = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_cooperation_cost

		modifier = {
			industrial_capacity_factory = 0.05
			production_speed_buildings_factor = 0.05
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 12 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 12 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_cooperation_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_cooperation_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_red_cavalry = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war = yes
			has_completed_focus = UKR_red_cossacks
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_red_cavalry_cost

		modifier = {
			cavalry_attack_factor = 0.10
			weekly_manpower = 1000
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 13 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
			set_variable = { UKR_propaganda_campaign_to_remove = 13 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_red_cavalry_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_red_cavalry_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_fight_for_future = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_fight_for_future_cost

		modifier = {
			training_time_army_factor = -0.20
			war_support_weekly = 0.002
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 14 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 14 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_fight_for_future_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_fight_for_future_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_revolution_is_calling = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_revolution_is_calling_cost

		modifier = {
			army_morale_factor = 0.05
			army_org_factor = 0.05
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 15 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 15 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_revolution_is_calling_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_revolution_is_calling_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_historymakers = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war = yes
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_historymakers_cost

		modifier = {
			army_core_defence_factor = 0.10
			dig_in_speed_factor = 0.25
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 16 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 16 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_historymakers_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_historymakers_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_destroy_capitalism = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_war = yes
			any_enemy_country = {
				is_major = yes
				NOT = { has_government = communism }
			}
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_destroy_capitalism_cost

		modifier = {
			army_attack_against_major_factor = 0.1
			army_defence_against_major_factor = 0.1
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 17 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 17 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_destroy_capitalism_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_destroy_capitalism_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_red_revival = { 

		icon = eng_propaganda_campaigns

		allowed = {
			has_dlc	= "La Resistance"
		}

		visible = {
			has_government = communism
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
		}

		
		ai_will_do = {
			factor = 1
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_natcom_red_revival_cost

		modifier = {
			resistance_growth = -0.15
			intelligence_agency_defense = 0.5
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 18 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 18 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_natcom_red_revival_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_natcom_red_revival_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_away_the_shackles = { 

		icon = eng_propaganda_campaigns

		visible = {
			has_government = communism
			NOT = { has_completed_focus = UKR_icebreaker }
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_active_mission = UKR_masons_rebellion_in_poland
		}

		
		ai_will_do = {
			factor = 1
		}

		days_remove = 180
		fire_only_once = yes

		cost = 100

		modifier = {
			
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 19 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 19 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_poland
				days = -120
			}
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_do_not_be_slave = { 

		icon = eng_propaganda_campaigns

		visible = {
			has_government = communism
			NOT = { has_completed_focus = UKR_icebreaker }
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_active_mission = UKR_masons_rebellion_in_romania
		}
		
		ai_will_do = {
			factor = 1
		}

		days_remove = 180
		fire_only_once = yes

		cost = 100

		modifier = {
			
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 20 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 20 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_romania
				days = -120
			}
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_natcom_time_for_new_world = { 

		icon = eng_propaganda_campaigns

		visible = {
			has_government = communism
			NOT = { has_completed_focus = UKR_icebreaker }
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			has_active_mission = UKR_masons_rebellion_in_czechoslovakia
		}

		
		ai_will_do = {
			factor = 1
		}

		days_remove = 180
		fire_only_once = yes

		cost = 100

		modifier = {
			
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 21 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 21 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			add_days_mission_timeout = {
				mission = UKR_masons_rebellion_in_czechoslovakia
				days = -120
			}
			add_to_variable = { var_ukr_natcom_prop_campaigns = 1 }
		}
	}
	UKR_propaganda_for_partisans = { 

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 1
		}

		visible = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		available = {
			UKR_propaganda_poster_slot_available = yes
			surrender_progress > 0.1
		}

		days_remove = 180

		days_re_enable = 90

		cost = UKR_propaganda_for_partisans_cost

		modifier = {
			resistance_damage_to_garrison_on_our_occupied_states = 0.15
			resistance_growth_on_our_occupied_states = 0.25
		}

		complete_effect = {
			set_variable = { UKR_new_propaganda_campaign = 22 }
			UKR_pick_propaganda_campaign_slot_effect = yes
		}

		remove_effect = {
			set_variable = { UKR_propaganda_campaign_to_remove = 22 }
			UKR_reset_propaganda_campaign_slot_effect = yes
			set_variable = { UKR_propaganda_cost = UKR_propaganda_for_partisans_cost }
			UKR_increase_propaganda_campaign_cost_effect = yes
			set_variable = { UKR_propaganda_for_partisans_cost = UKR_propaganda_cost }
			clear_variable = UKR_propaganda_cost
			if = {
				limit = {
					check_variable = { var_ukr_fu_bunkers < 0.2 }
				}
				add_to_variable = { var_ukr_fu_bunkers = 0.02 }
				add_to_variable = { var_ukr_fu_attack_factor = 0.02 }
				add_to_variable = { var_ukr_fu_defence_factor = 0.02 }
				custom_effect_tooltip = UKR_increase_for_Ukraine_bonuses_tt
			}
			custom_effect_tooltip = UKR_propaganda_campaign_cooldown_tt
		}
	}
}
UKR_union_support_subjects_category = {
	UKR_union_support_one_subject = {

		icon = generic_construction

		available = {
			num_of_civilian_factories_available_for_projects > 1
		}

		target_array = UKR_array_of_noncore_republics

		target_trigger = {
			FROM = {
				is_subject_of = ROOT
				has_capitulated = no
			}
		}

		cost = 50
		fire_only_once = yes
		days_remove = 60

		ai_will_do = {
			factor = 1
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					is_subject_of = ROOT
				}
			} 
		}

		modifier = {
			civilian_factory_use = 2
		}

		remove_effect = {
			add_political_power = 75
			add_stability = 0.01
			FROM = {
				add_popularity = {
					ideology = communism
					popularity = 0.1
				}
				capital_scope = {
					if = {
						limit = {
							free_building_slots = {
								building = industrial_complex
								size > 1
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}
	}
}
UKR_union_integrate_republics_category = {
	UKR_union_integrate_one_nation = {

		icon = generic_form_nation

		available = {
			any_owned_state = {
				is_owned_and_controlled_by = ROOT 
				is_core_of = FROM
				NOT = { is_core_of = ROOT }
				compliance > 50
			}
		}

		target_array = UKR_array_of_noncore_republics

		target_non_existing = yes

		target_trigger = {
			FROM = {
				any_core_state = {
					is_owned_and_controlled_by = ROOT 
					NOT = { is_core_of = ROOT }
				}
			}
		}

		cancel_trigger = {
			FROM = {
				exists = yes
			} 
		}

		cost = 100
		fire_only_once = yes
		days_remove = 90

		ai_will_do = {
			factor = 1
		}


		remove_effect = {
			every_owned_state = {
				limit = {
					is_core_of = FROM
					NOT = { is_core_of = ROOT }
				}
				add_core_of = ROOT
			}
		}
	}
}
UKR_new_world_revolution = {
	UKR_ignite_revolutionary_uprisings = {
		priority = 5

		icon = generic_political_rally

		target_trigger = {
			FROM = {
				exists = yes
				NOT = { is_in_faction_with = ROOT }
				NOT = { tag = ROOT }
				has_capitulated = no
				NOT = { has_government = communism }
			}
		}

		ai_will_do = {
			base = 2
		}

		available = {
			NOT = { has_war_with = FROM }
			FROM = {
				NOT = { has_government = communism }
			}
			NOT = { has_country_flag = UKR_ignite_revolutionary_uprisings_is_active }
		}

		visible = {
			country_exists = FROM
			NOT = { has_war_with = FROM }
			FROM = {
				NOT = { is_in_faction_with = ROOT }
				has_capitulated = no
				NOT = { has_government = communism }
				any_controlled_state = {
					is_in_home_area = yes
					any_neighbor_state = {
						is_controlled_by = ROOT
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		days_remove = 120

		complete_effect = {
			set_country_flag = UKR_ignite_revolutionary_uprisings_is_active
			FROM = {
				add_timed_idea = {
					idea = UKR_revolutionary_agitators
					days = 120
				}
			}
			hidden_effect = {
				FROM = {
					add_ai_strategy = {
						type = prepare_for_war
						id = ROOT
						value = 100
					}
				}
			}
		}

		remove_effect = {
			clr_country_flag = UKR_ignite_revolutionary_uprisings_is_active
			FROM = {
				if = {
					limit = {
						NOT = { has_idea = mutiny_1 }
						NOT = { has_idea = mutiny_2 }
						NOT = { has_idea = mutiny_3 }
					}
					add_timed_idea = {
						idea = mutiny_1
						days = 30
					}
				}
			}
			create_wargoal = {
				type = topple_government
				target = FROM
				expire = 90
			}
			add_stability = -0.05
		}
	}
}
UKR_course_towards_alliance_with_eng = {
	UKR_mission_to_london = {
		icon = eng_install_government

		available = {
			NOT = { has_war_with = ENG }
			ENG = {
				exists = yes
				is_faction_leader = yes
				has_government = democratic
			}
			custom_trigger_tooltip = {
				tooltip = UKR_mission_to_london_tt
				check_variable = { var_ukr_trust_of_london > 25 }
			}
		}

		remove_effect = {
			ENG = { country_event = ukraine.139 }
		}

		fire_only_once = no
		
		days_remove = 7
		days_re_enable = 90
		cost = 100

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 5
				check_variable = { var_ukr_trust_of_london > 50 }
			}
		}
	}
	UKR_argument_of_army = {
		icon = generic_prepare_civil_war

		available = {
			has_army_manpower = { size > 349999 }
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 25 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 25

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_threat = {
		icon = generic_ignite_civil_war

		available = {
			threat > 0.25
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 25 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 25

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_agression = {
		icon = hol_draw_up_staff_plans

		available = {
			GER = {
				has_government = fascism
			}
			OR = {
				69 = { is_owned_and_controlled_by = GER }
				GER = { has_war = yes }
			}
			
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 25 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 25

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_democracy = {
		icon = SWI_swiss_democratic_tradition_campaign

		available = {
			democratic > 0.65
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 15 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 15

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_stability = {
		icon = generic_decision

		available = {
			has_stability > 0.7
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 15 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 15

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_guarantees = {
		icon = hol_war_on_pacifism

		available = {
			POL = {
				exists = yes
				has_war = no
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
			has_guaranteed = POL
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 15 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 15

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_relations = {
		icon = hol_exchange_intelligence_data

		available = {
			ENG = {
				has_opinion = {
					target = ROOT
					value > 99
				}
			}
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 15 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 15

		ai_will_do = {
			factor = 2
		}
	}
	UKR_argument_of_agents = {
		icon = SWI_expand_covert_operations

		allowed = { has_dlc = "La Resistance" }

		available = {
			network_strength = {
				target = ENG
				value > 50
			}
		}

		complete_effect = {
			add_to_variable = { var_ukr_trust_of_london = 25 }
			UKR_increase_trust_of_london = yes
		}

		fire_only_once = yes
		
		days_remove = 0
		cost = 25

		ai_will_do = {
			factor = 2
		}
	}
}
UKR_altdem_diplomacy = {
	UKR_altdem_invite = {

		icon = generic_decision

		days_remove = 0
		days_re_enable = 90
		
		visible = {
			FROM = {
				exists = yes
				is_in_faction = no
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
		}

		available = {
			FROM = {
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
			if = {
				limit = {
					has_country_flag = UKR_altdem_rada_victory
				}
				rada_low_support_trigger = yes
			}
		}

		target_array = UKR_altdem_diplomacy_list

		target_trigger = {
			FROM = {
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		complete_effect = {
			FROM = {
				country_event = { id = ukraine.688 days = 1 }
			}
		}

		fire_only_once = no

		cost = 50

		ai_will_do = {
			factor = 2
		}
	}
	UKR_altdem_influence = {

		icon = eng_propaganda_campaigns

		days_remove = 180
		days_re_enable = 90
		
		visible = {
			FROM = {
				exists = yes
				OR = {
					has_government = fascism
					has_government = communism
				}
			}
		}

		available = {
			FROM = {
				is_puppet = no
				democratic < 0.5
			}
		}

		target_array = UKR_altdem_diplomacy_list

		target_trigger = {
			FROM = {
				is_puppet = no
				OR = {
					has_government = fascism
					has_government = communism
				}
			}
		}

		complete_effect = {
			FROM = {
				add_timed_idea = {
					idea = UKR_altdem_ideology_boost
					days = 180
				}
			}
		}

		modifier = {
			political_power_cost = 0.1
		}

		fire_only_once = no

		cost = 50

		ai_will_do = {
			factor = 0
		}
	}
	UKR_altdem_pressure = {

		icon = SWI_swiss_democratic_tradition_campaign

		days_remove = 0
		
		available = {
			strength_ratio = {
				tag = FROM
				ratio > 1
			}
			FROM = {
				is_puppet = no
				has_war = no
				democratic > 0.35
			}
			if = {
				limit = {
					has_country_flag = UKR_altdem_rada_victory
				}
				rada_medium_support_trigger = yes
			}
		}

		visible = {
			FROM = {
				exists = yes
				OR = {
					has_government = fascism
					has_government = communism
				}
				NOT = { is_in_faction_with = ROOT }
			}
		}

		target_array = UKR_altdem_diplomacy_list

		target_trigger = {
			FROM = {
				is_puppet = no
				has_war = no
				NOT = { is_in_faction_with = ROOT }
			}
		}

		complete_effect = {
			FROM = {
				country_event = { id = ukraine.691 days = 1 }
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 0
		}
	}
}
UKR_self_defence_decisions = {
	UKR_set_up_home_guard_forces = {
		icon = generic_prepare_civil_war

		visible = {
			FROM = {
				NOT = { has_state_flag = has_activated_home_guard }
			}
		}

		available = {
			FROM = {
				is_fully_controlled_by = ROOT
			}
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					is_fully_controlled_by = ROOT
				}
			}
		}
		on_map_mode = map_only
		state_target = yes

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1
		days_remove = 30
		target_trigger = {
			FROM = {
				is_core_of = ROOT
				controller = {
					tag = ROOT
				}
				check_variable = { UKR_has_added_home_guard < 3 }
			}
		}

		complete_effect = {
			hidden_effect = { add_command_power = -30 }
		}

		remove_effect = {
			custom_effect_tooltip = SWE_set_up_home_guard_forces_tt
			FROM = {
				add_to_variable = { UKR_has_added_home_guard = 1 }
			}
		}
	}

	UKR_activate_home_guard = {

		icon = generic_civil_support

		visible = {
			FROM = {
				NOT = { has_state_flag = has_activated_home_guard }
			}
		}

		available = {
			has_war = yes
			FROM = {
				controller = {
					tag = ROOT
				}
			}
		}


		on_map_mode = map_only	
		state_target = yes

		target_trigger = {
			FROM = {
				is_core_of = UKR
				check_variable = { UKR_has_added_home_guard > 0 }
			}
		}

		complete_effect = {
			custom_effect_tooltip = SWE_activate_home_guard_tt
			FROM = {
				while_loop_effect = {
					limit = { check_variable = { UKR_has_added_home_guard > 0 } }
					subtract_from_variable = { UKR_has_added_home_guard = 1 }
					create_unit = {
						division = "name = \"Zagin Samooborony\" division_template = \"Mistseva Samooborona\" start_experience_factor = 0.1 start_equipment_factor = 0.6 start_manpower_factor = 0.7"
						allow_spawning_on_enemy_provs = no
						owner = ROOT
					}
				}
				set_state_flag = has_activated_home_guard
			}
		}
	}

	UKR_activate_all_home_guard = {

		icon = generic_military

		visible = {
			any_core_state = {
				check_variable = { UKR_has_added_home_guard > 0 }
			}
			any_core_state = {
				NOT = { has_state_flag = has_activated_home_guard }
			}
		}

		available = {
			has_war = yes
		}

		complete_effect = {
			custom_effect_tooltip = SWE_activate_all_home_guard_tt
			every_core_state = {
				limit = {
					NOT = { has_state_flag = has_activated_home_guard }
				}
				set_state_flag = has_activated_home_guard
				while_loop_effect = {
					limit = { check_variable = { UKR_has_added_home_guard > 0 } }
					subtract_from_variable = { UKR_has_added_home_guard = 1 }
					create_unit = {
						division = "name = \"Zagin Samooborony\" division_template = \"Mistseva Samooborona\" start_experience_factor = 0.1"
						allow_spawning_on_enemy_provs = no
						owner = ROOT
					}
				}
			}

			set_division_template_lock = {
				division_template = "Mistseva Samooborona"
				is_locked = no
			}
		}
	}
}
UKR_ukrainian_prometheism_category = {
	UKR_create_european_department = {
		icon = generic_decision

		cost = 50

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				206 = { is_owned_and_controlled_by = SOV }
				234 = { is_owned_and_controlled_by = SOV }
			}
		}

		fire_only_once = yes
		days_remove = 30

		complete_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = UKR_promt_first_depart }
				}
				set_country_flag = UKR_promt_first_depart
			}
			else_if = {
				limit = {
					NOT = { has_idea = UKR_prometheism_idea_1 }
				}
				add_ideas = UKR_prometheism_idea_1
			}
			else = {
				UKR_promt_upgrade_department = yes
			}
		}

		remove_effect = {
			set_country_flag = UKR_promt_europe_available
			set_variable = { var_promt_europe_radicalism = 0 }
		}
	}
	UKR_create_caucasian_department = {
		icon = generic_decision

		cost = 50

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				231 = { is_owned_and_controlled_by = SOV }
				229 = { is_owned_and_controlled_by = SOV }
				230 = { is_owned_and_controlled_by = SOV }
			}
		}

		fire_only_once = yes
		days_remove = 30

		complete_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = UKR_promt_first_depart }
				}
				set_country_flag = UKR_promt_first_depart
			}
			else_if = {
				limit = {
					NOT = { has_idea = UKR_prometheism_idea_1 }
				}
				add_ideas = UKR_prometheism_idea_1
			}
			else = {
				UKR_promt_upgrade_department = yes
			}
		}

		remove_effect = {
			set_country_flag = UKR_promt_caucasus_available
			set_variable = { var_promt_caucasus_radicalism = 0 }
		}
	}
	UKR_create_idelural_department = {
		icon = generic_decision

		cost = 50

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				249 = { is_owned_and_controlled_by = SOV }
				651 = { is_owned_and_controlled_by = SOV }
			}
		}

		fire_only_once = yes
		days_remove = 30

		complete_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = UKR_promt_first_depart }
				}
				set_country_flag = UKR_promt_first_depart
			}
			else_if = {
				limit = {
					NOT = { has_idea = UKR_prometheism_idea_1 }
				}
				add_ideas = UKR_prometheism_idea_1
			}
			else = {
				UKR_promt_upgrade_department = yes
			}
		}

		remove_effect = {
			set_country_flag = UKR_promt_idelural_available
			set_variable = { var_promt_idelural_radicalism = 0 }
		}
	}
	UKR_create_asia_department = {
		icon = generic_decision

		cost = 50

		ai_will_do = {
			factor = 1
		}

		available = {
			OR = {
				405 = {	is_owned_and_controlled_by = SOV }
				586 = {	is_owned_and_controlled_by = SOV }
			}
		}

		fire_only_once = yes
		days_remove = 30

		complete_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = UKR_promt_first_depart }
				}
				set_country_flag = UKR_promt_first_depart
			}
			else_if = {
				limit = {
					NOT = { has_idea = UKR_prometheism_idea_1 }
				}
				add_ideas = UKR_prometheism_idea_1
			}
			else = {
				UKR_promt_upgrade_department = yes
			}
		}

		remove_effect = {
			set_country_flag = UKR_promt_asia_available
			set_variable = { var_promt_asia_radicalism = 0 }
		}
	}
	UKR_create_fareast_department = {
		icon = generic_decision

		cost = 50

		ai_will_do = {
			factor = 1
		}

		available = {
			408 = { is_owned_and_controlled_by = SOV }
		}

		fire_only_once = yes
		days_remove = 30

		complete_effect = {
			if = {
				limit = {
					NOT = { has_country_flag = UKR_promt_first_depart }
				}
				set_country_flag = UKR_promt_first_depart
			}
			else_if = {
				limit = {
					NOT = { has_idea = UKR_prometheism_idea_1 }
				}
				add_ideas = UKR_prometheism_idea_1
			}
			else = {
				UKR_promt_upgrade_department = yes
			}
		}

		remove_effect = {
			set_country_flag = UKR_promt_fareast_available
			set_variable = { var_promt_fareast_radicalism = 0 }
		}
	}
	UKR_infiltration_in_europe = {
		icon = SWI_expand_covert_operations

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_europe_available
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 206
						value > 50
					}
					network_strength = {
						target = SOV
						state = 234
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			set_country_flag = UKR_promt_europe_infiltrate
		}
	}
	UKR_infiltration_in_caucasus = {
		icon = SWI_expand_covert_operations

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_caucasus_available
		}
		
		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 231
						value > 50
					}
					network_strength = {
						target = SOV
						state = 229
						value > 50
					}
					network_strength = {
						target = SOV
						state = 230
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			set_country_flag = UKR_promt_caucasus_infiltrate
		}
	}
	UKR_infiltration_in_idelural = {
		icon = SWI_expand_covert_operations

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_idelural_available
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 249
						value > 50
					}
					network_strength = {
						target = SOV
						state = 651
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			set_country_flag = UKR_promt_idelural_infiltrate
		}
	}
	UKR_infiltration_in_asia = {
		icon = SWI_expand_covert_operations

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_asia_available
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 405
						value > 50
					}
					network_strength = {
						target = SOV
						state = 586
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			set_country_flag = UKR_promt_asia_infiltrate
		}
	}
	UKR_infiltration_in_fareast = {
		icon = SWI_expand_covert_operations

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_fareast_available
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				network_strength = {
					target = SOV
					state = 408
					value > 50
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			set_country_flag = UKR_promt_fareast_infiltrate
		}
	}
	UKR_radicalisation_of_europe = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_promt_europe_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 206
						value > 50
					}
					network_strength = {
						target = SOV
						state = 234
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			random_list = {
				50 = {
					custom_effect_tooltip = UKR_promt_add_20_radicals_tt
					add_to_variable = { var_promt_europe_radicalism = 20 }
				}
				50 = {
					custom_effect_tooltip = UKR_promt_add_10_radicals_tt
					add_to_variable = { var_promt_europe_radicalism = 10 }
				}
			}
		}
	}
	UKR_sway_in_europe = {
		icon = generic_nationalism

		cost = 50

		visible = {
			has_country_flag = UKR_promt_europe_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 206
						value > 50
					}
					network_strength = {
						target = SOV
						state = 234
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		remove_effect = {
			SOV = { add_stability = -0.02 }
		}
	}

	UKR_activisation_in_europe = {
		icon = generic_independence

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_europe_infiltrate
		}

		available = {
			OR = {
				206 = {	is_owned_and_controlled_by = SOV }
				234 = {	is_owned_and_controlled_by = SOV }
			}
			custom_trigger_tooltip = {
				tooltip = UKR_promt_activisation_trigger_tt
				check_variable = { var_promt_europe_radicalism > 49 }
			}
			SOV = { 
				OR = {
					has_stability < 0.25 
					surrender_progress > 0.33
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}


		remove_effect = {
			set_temp_variable_to_random = {
				var = temp_radicalism
				min = 10
				max = 50
				integer = yes
			}
			subtract_from_variable = { var_promt_europe_radicalism = temp_radicalism }
			custom_effect_tooltip = UKR_promt_activisation_tt
			hidden_effect = {
				if = {limit = { NOT = { country_exists = BLR } } add_to_array = { UKR_promt_european_countries = BLR } } 
				if = {limit = { NOT = { country_exists = KAR } } add_to_array = { UKR_promt_european_countries = KAR } } 
				if = {limit = { NOT = { country_exists = KUB } } add_to_array = { UKR_promt_european_countries = KUB } } 
				if = {limit = { NOT = { country_exists = DON } } add_to_array = { UKR_promt_european_countries = DON } } 
				for_each_scope_loop = {
					array = UKR_promt_european_countries
					random_list = {
						30 = {#full success
							modifier = {
								factor = 2
								check_variable = { var_promt_europe_radicalism > 79 }
							}
							modifier = {
								factor = 2
								SOV = { has_war = yes }
							}
							SOV = { 
								release = PREV
								declare_war_on = {
									target = PREV
									type = annex_everything
								}
								set_variable = { UKR_promt_rebellion_country = PREV }
								UKR_promt_rebellion_in_SOV_go = yes
							}
						}
						30 = {#partial success
							SOV = {
								every_controlled_state = {
									limit = {
										is_core_of = PREV.PREV
									}
									add_dynamic_modifier = {
										modifier = UKR_promt_skirmishes
										days = 90
										scope = SOV
									}
								}
							}
						}
						40 = {#fail
							modifier = {
								factor = 0.5
								SOV = { has_stability < 0.1 }
							}
							SOV = { add_stability = -0.01 }
						}
					}
				}
			}
		}
	}
	UKR_radicalisation_of_caucasus = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_promt_caucasus_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 231
						value > 50
					}
					network_strength = {
						target = SOV
						state = 229
						value > 50
					}
					network_strength = {
						target = SOV
						state = 230
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			random_list = {
				50 = {
					custom_effect_tooltip = UKR_promt_add_20_radicals_tt
					add_to_variable = { var_promt_caucasus_radicalism = 20 }
				}
				50 = {
					custom_effect_tooltip = UKR_promt_add_10_radicals_tt
					add_to_variable = { var_promt_caucasus_radicalism = 10 }
				}
			}
		}
	}
	UKR_sway_in_caucasus = {
		icon = generic_nationalism

		cost = 50

		visible = {
			has_country_flag = UKR_promt_caucasus_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 231
						value > 50
					}
					network_strength = {
						target = SOV
						state = 229
						value > 50
					}
					network_strength = {
						target = SOV
						state = 230
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		remove_effect = {
			SOV = { add_stability = -0.02 }
		}
	}

	UKR_activisation_in_caucasus = {
		icon = generic_independence

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_caucasus_infiltrate
		}

		available = {
			OR = {
				231 = {	is_owned_and_controlled_by = SOV }
				229 = {	is_owned_and_controlled_by = SOV }
				230 = {	is_owned_and_controlled_by = SOV }
			}
			custom_trigger_tooltip = {
				tooltip = UKR_promt_activisation_trigger_tt
				check_variable = { var_promt_caucasus_radicalism > 49 }
			}
			SOV = { 
				OR = {
					has_stability < 0.25 
					surrender_progress > 0.33
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}


		remove_effect = {
			set_temp_variable_to_random = {
				var = temp_radicalism
				min = 10
				max = 50
				integer = yes
			}
			subtract_from_variable = { var_promt_caucasus_radicalism = temp_radicalism }
			custom_effect_tooltip = UKR_promt_activisation_tt
			hidden_effect = {
				if = {limit = { NOT = { country_exists = GEO } } add_to_array = { UKR_promt_caucasus_countries = GEO } } 
				if = {limit = { NOT = { country_exists = ARM } } add_to_array = { UKR_promt_caucasus_countries = ARM } } 
				if = {limit = { NOT = { country_exists = AZR } } add_to_array = { UKR_promt_caucasus_countries = AZR } } 
				if = {limit = { NOT = { country_exists = KBK } } add_to_array = { UKR_promt_caucasus_countries = KBK } } 
				if = {limit = { NOT = { country_exists = NOA } } add_to_array = { UKR_promt_caucasus_countries = NOA } } 
				if = {limit = { NOT = { country_exists = CIN } } add_to_array = { UKR_promt_caucasus_countries = CIN } } 
				if = {limit = { NOT = { country_exists = DAG } } add_to_array = { UKR_promt_caucasus_countries = DAG } } 
				for_each_scope_loop = {
					array = UKR_promt_caucasus_countries
					random_list = {
						30 = {#full success
							modifier = {
								factor = 2
								check_variable = { var_promt_caucasus_radicalism > 79 }
							}
							modifier = {
								factor = 2
								SOV = { has_war = yes }
							}
							SOV = { 
								release = PREV
								declare_war_on = {
									target = PREV
									type = annex_everything
								}
								set_variable = { UKR_promt_rebellion_country = PREV }
								UKR_promt_rebellion_in_SOV_go = yes
							}
						}
						30 = {#partial success
							SOV = {
								every_controlled_state = {
									limit = {
										is_core_of = PREV.PREV
									}
									add_dynamic_modifier = {
										modifier = UKR_promt_skirmishes
										days = 90
										scope = SOV
									}
								}
							}
						}
						40 = {#fail
							modifier = {
								factor = 0.5
								SOV = { has_stability < 0.1 }
							}
							SOV = { add_stability = -0.01 }
						}
					}
				}
			}
		}
	}
	UKR_radicalisation_of_idelural = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_promt_idelural_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 249
						value > 50
					}
					network_strength = {
						target = SOV
						state = 651
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			random_list = {
				50 = {
					custom_effect_tooltip = UKR_promt_add_20_radicals_tt
					add_to_variable = { var_promt_idelural_radicalism = 20 }
				}
				50 = {
					custom_effect_tooltip = UKR_promt_add_10_radicals_tt
					add_to_variable = { var_promt_idelural_radicalism = 10 }
				}
			}
		}
	}
	UKR_sway_in_idelural = {
		icon = generic_nationalism

		cost = 50

		visible = {
			has_country_flag = UKR_promt_idelural_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 249
						value > 50
					}
					network_strength = {
						target = SOV
						state = 651
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		remove_effect = {
			SOV = { add_stability = -0.02 }
		}
	}

	UKR_activisation_in_idelural = {
		icon = generic_independence

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_idelural_infiltrate
		}

		available = {
			OR = {
				249 = {	is_owned_and_controlled_by = SOV }
				651 = {	is_owned_and_controlled_by = SOV }
			}
			custom_trigger_tooltip = {
				tooltip = UKR_promt_activisation_trigger_tt
				check_variable = { var_promt_idelural_radicalism > 49 }
			}
			SOV = { 
				OR = {
					has_stability < 0.25 
					surrender_progress > 0.33
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}


		remove_effect = {
			set_temp_variable_to_random = {
				var = temp_radicalism
				min = 10
				max = 50
				integer = yes
			}
			subtract_from_variable = { var_promt_idelural_radicalism = temp_radicalism }
			custom_effect_tooltip = UKR_promt_activisation_tt
			hidden_effect = {
				if = {limit = { NOT = { country_exists = TAT } } add_to_array = { UKR_promt_idelural_countries = TAT } } 
				if = {limit = { NOT = { country_exists = BSK } } add_to_array = { UKR_promt_idelural_countries = BSK } } 
				if = {limit = { NOT = { country_exists = CHU } } add_to_array = { UKR_promt_idelural_countries = CHU } } 
				if = {limit = { NOT = { country_exists = MEL } } add_to_array = { UKR_promt_idelural_countries = MEL } } 
				if = {limit = { NOT = { country_exists = UDM } } add_to_array = { UKR_promt_idelural_countries = UDM } } 
				if = {limit = { NOT = { country_exists = KAL } } add_to_array = { UKR_promt_idelural_countries = KAL } } 
				if = {limit = { NOT = { country_exists = VGE } } add_to_array = { UKR_promt_idelural_countries = VGE } } 
				for_each_scope_loop = {
					array = UKR_promt_idelural_countries
					random_list = {
						30 = {#full success
							modifier = {
								factor = 2
								check_variable = { var_promt_idelural_radicalism > 79 }
							}
							modifier = {
								factor = 2
								SOV = { has_war = yes }
							}
							SOV = { 
								release = PREV
								declare_war_on = {
									target = PREV
									type = annex_everything
								}
								set_variable = { UKR_promt_rebellion_country = PREV }
								UKR_promt_rebellion_in_SOV_go = yes
							}
						}
						30 = {#partial success
							SOV = {
								every_controlled_state = {
									limit = {
										is_core_of = PREV.PREV
									}
									add_dynamic_modifier = {
										modifier = UKR_promt_skirmishes
										days = 90
										scope = SOV
									}
								}
							}
						}
						40 = {#fail
							modifier = {
								factor = 0.5
								SOV = { has_stability < 0.1 }
							}
							SOV = { add_stability = -0.01 }
						}
					}
				}
			}
		}
	}
	UKR_radicalisation_of_asia = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_promt_asia_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 405
						value > 50
					}
					network_strength = {
						target = SOV
						state = 586
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			random_list = {
				50 = {
					custom_effect_tooltip = UKR_promt_add_20_radicals_tt
					add_to_variable = { var_promt_asia_radicalism = 20 }
				}
				50 = {
					custom_effect_tooltip = UKR_promt_add_10_radicals_tt
					add_to_variable = { var_promt_asia_radicalism = 10 }
				}
			}
		}
	}
	UKR_sway_in_asia = {
		icon = generic_nationalism

		cost = 50

		visible = {
			has_country_flag = UKR_promt_asia_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				OR = {
					network_strength = {
						target = SOV
						state = 405
						value > 50
					}
					network_strength = {
						target = SOV
						state = 586
						value > 50
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		remove_effect = {
			SOV = { add_stability = -0.02 }
		}
	}

	UKR_activisation_in_asia = {
		icon = generic_independence

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_asia_infiltrate
		}

		available = {
			OR = {
				405 = {	is_owned_and_controlled_by = SOV }
				586 = {	is_owned_and_controlled_by = SOV }
			}
			custom_trigger_tooltip = {
				tooltip = UKR_promt_activisation_trigger_tt
				check_variable = { var_promt_asia_radicalism > 49 }
			}
			SOV = { 
				OR = {
					has_stability < 0.25 
					surrender_progress > 0.33
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}

		remove_effect = {
			set_temp_variable_to_random = {
				var = temp_radicalism
				min = 10
				max = 50
				integer = yes
			}
			subtract_from_variable = { var_promt_asia_radicalism = temp_radicalism }
			custom_effect_tooltip = UKR_promt_activisation_tt
			hidden_effect = {
				if = {limit = { NOT = { country_exists = UZB } } add_to_array = { UKR_promt_asia_countries = UZB } } 
				if = {limit = { NOT = { country_exists = TMS } } add_to_array = { UKR_promt_asia_countries = TMS } } 
				if = {limit = { NOT = { country_exists = KAZ } } add_to_array = { UKR_promt_asia_countries = KAZ } } 
				if = {limit = { NOT = { country_exists = KYR } } add_to_array = { UKR_promt_asia_countries = KYR } } 
				if = {limit = { NOT = { country_exists = TAJ } } add_to_array = { UKR_promt_asia_countries = TAJ } } 
				for_each_scope_loop = {
					array = UKR_promt_asia_countries
					random_list = {
						30 = {#full success
							modifier = {
								factor = 2
								check_variable = { var_promt_asia_radicalism > 79 }
							}
							modifier = {
								factor = 2
								SOV = { has_war = yes }
							}
							SOV = { 
								release = PREV
								declare_war_on = {
									target = PREV
									type = annex_everything
								}
								set_variable = { UKR_promt_rebellion_country = PREV }
								UKR_promt_rebellion_in_SOV_go = yes
							}
						}
						30 = {#partial success
							SOV = {
								every_controlled_state = {
									limit = {
										is_core_of = PREV.PREV
									}
									add_dynamic_modifier = {
										modifier = UKR_promt_skirmishes
										days = 90
										scope = SOV
									}
								}
							}
						}
						40 = {#fail
							modifier = {
								factor = 0.5
								SOV = { has_stability < 0.1 }
							}
							SOV = { add_stability = -0.01 }
						}
					}
				}
			}
		}
	}
	UKR_radicalisation_of_fareast = {
		icon = generic_prepare_civil_war

		visible = {
			has_country_flag = UKR_promt_fareast_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				network_strength = {
					target = SOV
					state = 408
					value > 50
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1
		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 producer = UKR } }

		remove_effect = {
			random_list = {
				50 = {
					custom_effect_tooltip = UKR_promt_add_20_radicals_tt
					add_to_variable = { var_promt_fareast_radicalism = 20 }
				}
				50 = {
					custom_effect_tooltip = UKR_promt_add_10_radicals_tt
					add_to_variable = { var_promt_fareast_radicalism = 10 }
				}
			}
		}
	}
	UKR_sway_in_fareast = {
		icon = generic_nationalism

		cost = 50

		visible = {
			has_country_flag = UKR_promt_fareast_infiltrate
		}

		available = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				network_strength = {
					target = SOV
					state = 408
					value > 50
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 0

		remove_effect = {
			SOV = { add_stability = -0.02 }
		}
	}

	UKR_activisation_in_fareast = {
		icon = generic_independence

		cost = UKR_prometheism_decisions_cost

		visible = {
			has_country_flag = UKR_promt_fareast_infiltrate
		}

		available = {
			408 = {	is_owned_and_controlled_by = SOV }
			custom_trigger_tooltip = {
				tooltip = UKR_promt_activisation_trigger_tt
				check_variable = { var_promt_fareast_radicalism > 49 }
			}
			SOV = { 
				OR = {
					has_stability < 0.25 
					surrender_progress > 0.33
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 30
		days_re_enable = 60

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}

		remove_effect = {
			set_temp_variable_to_random = {
				var = temp_radicalism
				min = 10
				max = 50
				integer = yes
			}
			subtract_from_variable = { var_promt_fareast_radicalism = temp_radicalism }
			custom_effect_tooltip = UKR_promt_activisation_tt
			hidden_effect = {
				if = {limit = { NOT = { country_exists = ZKL } } add_to_array = { UKR_promt_fareast_countries = ZKL } } 
				if = {limit = { NOT = { country_exists = YAK } } add_to_array = { UKR_promt_fareast_countries = YAK } } 
				if = {limit = { NOT = { country_exists = BYA } } add_to_array = { UKR_promt_fareast_countries = BYA } } 
				for_each_scope_loop = {
					array = UKR_promt_fareast_countries
					random_list = {
						30 = {#full success
							modifier = {
								factor = 2
								check_variable = { var_promt_fareast_radicalism > 79 }
							}
							modifier = {
								factor = 2
								SOV = { has_war = yes }
							}
							SOV = { 
								release = PREV
								declare_war_on = {
									target = PREV
									type = annex_everything
								}
								set_variable = { UKR_promt_rebellion_country = PREV }
								UKR_promt_rebellion_in_SOV_go = yes
							}
						}
						30 = {#partial success
							SOV = {
								every_controlled_state = {
									limit = {
										is_core_of = PREV.PREV
									}
									add_dynamic_modifier = {
										modifier = UKR_promt_skirmishes
										days = 90
										scope = SOV
									}
								}
							}
						}
						40 = {#fail
							modifier = {
								factor = 0.5
								SOV = { has_stability < 0.1 }
							}
							SOV = { add_stability = -0.01 }
						}
					}
				}
			}
		}
	}
	UKR_cancel_prometheism = {
		icon = eng_trade_unions_support


		complete_effect = {
			country_event = ukraine.523 
		}

		fire_only_once = no
		
		days_remove = 0
		days_re_enable = 1
		cost = 0

		ai_will_do = {
			factor = 0
		}
	}
}
form_kievan_rus_category = {

	form_kievan_rus = {

		icon = generic_form_nation

		available = {
			is_subject = no
			has_capitulated = no
			custom_trigger_tooltip = {
				tooltip = UKR_more_than_30_integrated_states_tt
				check_variable = { var_ukr_rus_states_count > 29 }
			}
		}

		visible = {
			original_tag = UKR
			has_country_flag = UKR_restore_of_rurikids
			NOT = { has_global_flag = form_kievan_rus_flag }
		}

		complete_effect = {
			set_cosmetic_tag = UKR_KR
			swap_ideas = {
				add_idea = UKR_aristocraty_of_rurikids_adv
				remove_idea = UKR_aristocraty_of_rurikids
			}
			hidden_effect = {
				set_global_flag = form_kievan_rus_flag
			}
		}

		ai_will_do = {
			factor = 2
		}
	}
	form_east_slavic_empire = {

		icon = generic_form_nation

		available = {
			is_subject = no
			has_capitulated = no
			custom_trigger_tooltip = {
				tooltip = UKR_more_than_30_integrated_states_tt
				check_variable = { var_ukr_rus_states_count > 29 }
			}
		}

		visible = {
			original_tag = UKR
			has_country_flag = UKR_restore_of_romanovs
			NOT = { has_global_flag = form_east_slavic_empire_flag }
		}

		complete_effect = {
			set_cosmetic_tag = UKR_EAST_SLAVIC_EMPIRE
			swap_ideas = {
				add_idea = UKR_aristocraty_of_romanovs_adv
				remove_idea = UKR_aristocraty_of_romanovs
			}
			hidden_effect = {
				set_global_flag = form_east_slavic_empire_flag
			}
		}

		ai_will_do = {
			factor = 2
		}
	}
	UKR_core_slavic_state = {

		icon = GFX_decision_generic_form_nation

		ai_will_do = {
			base = 50
		}
	
		state_target = yes
		target_trigger = {
			FROM = {
				AND = {
					OR = {
						is_core_of = SOV
						is_core_of = BLR
						is_core_of = CRM
						state = 784
					}
					any_neighbor_state = {
						is_core_of = ROOT
					}
					NOT = { 
						is_core_of = ROOT 
						is_core_of = GEO
						is_core_of = AZR
						is_core_of = ARM
						is_core_of = KAZ
						is_core_of = TMS
						is_core_of = TAJ
						is_core_of = UZB
						is_core_of = KYR
					}
					is_controlled_by = ROOT
				}
			}
		}

	    on_map_mode = map_only 
		cost = var_ukr_integration_eastslavic_cost
		days_remove = var_ukr_integration_eastslavic_days

		fire_only_once = yes
		
		remove_effect = {
			FROM = {
				add_core_of = ROOT
				remove_core_of = SOV
			}
			add_to_variable = { var_ukr_rus_states_count = 1 }
			if = {
				limit = {
					FROM = { state = 195 } 
					has_country_flag = UKR_restore_of_rurikids
				}
				195 = { set_state_name = UKR_vodska_pyatina }
				set_province_name = { id = 3151 name = UKR_kanets }
			}
			if = {
				limit = {
					FROM = { state = 195 } 
					has_country_flag = UKR_restore_of_romanovs
				}
				195 = { set_state_name = SOV_petrograd }
				set_province_name = { id = 3151 name = SOV_petrograd }
			}
			if = {
				limit = {
					FROM = { state = 247 } 
				}
				247 = { set_state_name = SOV_Tver }
				set_province_name = { id = 6245 name = SOV_Tver }
			}
			if = {
				limit = {
					FROM = { state = 217 } 
				}
				217 = { set_state_name = SOV_Tsaritsyn }
				set_province_name = { id = 3529 name = SOV_Tsaritsyn }
			}
			if = {
				limit = {
					FROM = { state = 829 } 
				}
				829 = { set_state_name = SOV_Yekaterinograd }
				set_province_name = {
					id = 11523
					name = SOV_Kosakenstadt
				}
				set_province_name = {
					id = 9432
					name = SOV_Yekaterinograd
				}
			}
			if = {
				limit = {
					FROM = { state = 400 } 
				}
				400 = { set_state_name = SOV_Vyatka }
				set_province_name = { id = 6124 name = SOV_Vyatka }
			}
			if = {
				limit = {
					FROM = { state = 252 } 
				}
				252 = { set_state_name = SOV_Nizhny_Novgorod }
				set_province_name = { id = 11375 name = SOV_Nizhny_Novgorod }
			}
			if = {
				limit = {
					FROM = { state = 828 } 
				}
				set_province_name = { id = 9628 name = SOV_Vladikavkaz }
			}
			if = {
				limit = {
					FROM = { state = 833 } 
				}
				set_province_name = { id = 9402 name = SOV_Tsaryovokokshaysk }
			}
			if = {
				limit = {
					FROM = { state = 329 } 
				}
				set_province_name = { id = 10627 name = SOV_Belotsarsk }
			}
			if = {
				limit = {
					FROM = { state = 232 } 
				}
				set_province_name = { id = 6701 name = SOV_Petrovskoye }
			}
			if = {
				limit = {
					FROM = { state = 653 } 
				}
				653 = { set_state_name = SOV_Yekaterinburg }
				set_province_name = { id = 1821 name = SOV_Yekaterinburg }
			}
			if = {
				limit = {
					FROM = { state = 234 } 
				}
				234 = { set_state_name = SOV_Yekaterinodar }
				set_province_name = { id = 3734 name = SOV_Yekaterinodar }
			}
			if = {
				limit = {
					FROM = { state = 251 } 
				}
				251 = { set_state_name = SOV_Samara }
				set_province_name = { id = 11225 name = SOV_Samara }
			}
			if = {
				limit = {
					FROM = { state = 250 } 
				}
				250 = { set_state_name = SOV_Simbirsk }
				set_province_name = { id = 392 name = SOV_Simbirsk }
			}
		}
	}
}
UKR_support_monarchy_in_POL_cat = {
	UKR_propagandise_monarchist_sentiment = {

		icon = eng_propaganda_campaigns

		cancel_trigger = {
			hidden_trigger = {
				POL_is_valid_to_boost_monarchy_from_UKR = no
			}
		}

		visible = {
			POL_is_valid_to_boost_monarchy_from_UKR = yes
		}
		
		fire_only_once = no
		days_remove = 30

		cost = 50

		remove_effect = {
			POL = {
				add_to_variable = {
					var = monarchist_support
					value = 10
				}
				clamp_variable = {
					var = monarchist_support
					min = 0
					max = 100
				}
				custom_effect_tooltip = add_10_monarchy_tt
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				POL = { check_variable = { monarchist_support > 79 } }
			}
		}

	}

	UKR_double_propagandise_monarchist_sentiment = {

		icon = generic_political_address

		available = {
			POL = {
				custom_trigger_tooltip = {
					tooltip = has_monarchy_support_25_tt
					check_variable = {
						monarchist_support > 24
					}
				}
			}
		}

		cancel_trigger = {
			hidden_trigger = {
				POL_is_valid_to_boost_monarchy_from_UKR = no
			}
		}
		
		visible = {
			POL_is_valid_to_boost_monarchy_from_UKR = yes
		}
		
		fire_only_once = no
		days_remove = 30

		cost = 75

		remove_effect = {
			POL = {
				add_to_variable = {
					var = monarchist_support
					value = 15
				}
				clamp_variable = {
					var = monarchist_support
					min = 0
					max = 100
				}
				custom_effect_tooltip = add_15_monarchy_tt
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				POL = { check_variable = { monarchist_support > 79 } }
			}
		}

	}

	UKR_sway_polish_generals = {

		icon = generic_army_support

		available = {
			POL = {
				custom_trigger_tooltip = {
					tooltip = has_monarchy_support_25_tt
					check_variable = {
						monarchist_support > 24
					}
				}
			}
		}
		
		cancel_trigger = {
			hidden_trigger = {
				POL_is_valid_to_boost_monarchy_from_UKR = no
			}
		}
		
		visible = {
			POL_is_valid_to_boost_monarchy_from_UKR = yes
		}
		
		fire_only_once = no
		days_remove = 30

		custom_cost_trigger = {
			command_power > 24
			has_political_power > 24
		}
		custom_cost_text = decision_cost_CP_25_pp_25
		
		complete_effect = {
			hidden_effect = {
				add_command_power = -25
				add_political_power = -25
			}
		}

		remove_effect = {
			POL = {
				add_to_variable = {
					var = monarchist_support
					value = 10
				}
				clamp_variable = {
					var = monarchist_support
					min = 0
					max = 100
				}
			}

			custom_effect_tooltip = add_10_monarchy_tt
			custom_effect_tooltip = random_general_monarchy_tt
			hidden_effect = {
				POL = {
					random_unit_leader = {
						set_unit_leader_flag = POL_monarchy_sympathies_flag
					}
				}
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				POL = { check_variable = { monarchist_support > 79 } }
			}
		}

	}

	UKR_arm_monarchist_militants = {

		icon = generic_prepare_civil_war
		
		cancel_trigger = {
			hidden_trigger = {
				POL_is_valid_to_boost_monarchy_from_UKR = no
			}
		}

		visible = {
			POL_is_valid_to_boost_monarchy_from_UKR = yes
		}
		
		fire_only_once = no
		days_remove = 30

		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
		}
		custom_cost_text = decision_cost_ie_1000
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
		}

		remove_effect = {
			POL = {
				add_to_variable = {
					var = monarchist_support
					value = 15
				}
				clamp_variable = {
					var = monarchist_support
					min = 0
					max = 100
				}
			}
			custom_effect_tooltip = add_15_monarchy_tt
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				POL = { check_variable = { monarchist_support > 79 } }
			}
		}

	}
	UKR_coup_of_montrezor = {

		icon = generic_nationalism
		
		cancel_trigger = {
			hidden_trigger = {
				POL_is_valid_to_boost_monarchy_from_UKR = no
			}
		}

		visible = {
			POL_is_valid_to_boost_monarchy_from_UKR = yes
		}

		available = {
			POL = {
				is_subject = no
				custom_trigger_tooltip = {
					tooltip = has_monarchy_support_80_tt
					check_variable = {
						monarchist_support > 79
					}
				}
			}
		}
		
		fire_only_once = yes
		days_remove = 15

		cost = 100
		
		remove_effect = {
			UKR_adam_montrezor = {
				set_nationality = POL
			}
			POL = {
				if = {
					limit = { has_civil_war = yes }
					country_event = { id = ukraine.734 hours = 6 }
				}
				else = {
					country_event = { id = ukraine.735 hours = 6 }
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

	}
}
UKR_new_big_game_category = {
	UKR_rebellion_of_kuwait = {
		icon = generic_independence
		visible = {
			656 = { is_owned_and_controlled_by = ENG }
			NOT = { is_in_faction_with = ENG }
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
			ENG = { has_war = yes }
		}

		days_remove = 90
		fire_only_once = yes
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			KUW = { 
				transfer_state = 656
				hidden_effect = {
					division_template = {
						name = "Mujahideens" 
						template_counter = 33
						is_locked = yes		
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 2 y = 1 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = KUW
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = KUW
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = KUW
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = KUW
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = KUW
						}
					}
				}
				custom_effect_tooltip = UKR_antibritish_muslims_rebellion 
			}
			ENG = {
				declare_war_on = {
					target = KUW
					type = annex_everything
				}
			}
		}
	}	
	UKR_rebellion_of_qatar = {
		icon = generic_independence
		visible = {
			765 = { is_owned_and_controlled_by = ENG }
			NOT = { is_in_faction_with = ENG }
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
			ENG = { has_war = yes }
		}

		days_remove = 90
		fire_only_once = yes
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			QAT = { 
				transfer_state = 765
				hidden_effect = {
					division_template = {
						name = "Mujahideens" 
						template_counter = 33
						is_locked = yes		
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 2 y = 1 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = QAT
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = QAT
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = QAT
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = QAT
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = QAT
						}
					}
				}
				custom_effect_tooltip = UKR_antibritish_muslims_rebellion 
			}
			ENG = {
				declare_war_on = {
					target = QAT
					type = annex_everything
				}
			}
		}
	}	
	UKR_rebellion_of_uae = {
		icon = generic_independence
		visible = {
			658 = { is_owned_and_controlled_by = ENG }
			NOT = { is_in_faction_with = ENG }
		}
		available = {
			has_equipment = { infantry_equipment > 1999 }
			ENG = { has_war = yes }
		}

		days_remove = 90
		fire_only_once = yes
		

		ai_will_do = {
			factor = 1
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		custom_cost_text = 2000_infantry_equipment_1
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -2000
			}
		}

		remove_effect = {
			UAE = { 
				transfer_state = 658
				hidden_effect = {
					division_template = {
						name = "Mujahideens" 
						template_counter = 33
						is_locked = yes		
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 2 y = 1 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
						}
					}
					capital_scope = {
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = UAE
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = UAE
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = UAE
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = UAE
						}
						create_unit = {
							division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 1"
							owner = UAE
						}
					}
				}
				custom_effect_tooltip = UKR_antibritish_muslims_rebellion 
			}
			ENG = {
				declare_war_on = {
					target = UAE
					type = annex_everything
				}
			}
		}
	}
	UKR_invite_yeman = {
		icon = eng_trade_unions_support
		visible = {
			659 = { is_owned_and_controlled_by = ENG }
			country_exists = YEM
			YEM = { is_subject = no }
			YEM = { is_in_faction = no }
			NOT = { is_in_faction_with = ENG }
		}
		available = {
			is_faction_leader = yes
		}

		days_remove = 0
		fire_only_once = yes
		cost = 50		

		ai_will_do = {
			factor = 1
		}


		remove_effect = {
			YEM = { 
				country_event = ukraine.751
			}
		}
	}		
}
UKR_ukrainian_insurgent_army = {
	UKR_UIA_north = {
		icon = generic_civil_support

		available = {
			202 = { is_owned_by = ROOT }
			any_enemy_country = {
				controls_state = 202
			}
		}

		cost = 100

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 30

		remove_effect = {
			add_equipment_to_stockpile = { type = transport_plane_equipment amount = 10 producer = UKR }
			custom_effect_tooltip = UKR_UIA_activate_decisions_in_regions
			202 = { set_state_flag = UKR_activate_UIA }
			193 = { set_state_flag = UKR_activate_UIA }
			194 = { set_state_flag = UKR_activate_UIA }
			203 = { set_state_flag = UKR_activate_UIA }
			259 = { set_state_flag = UKR_activate_UIA }
			225 = { set_state_flag = UKR_activate_UIA }
			set_country_flag = UKR_UIA_north_created
		}
	}
	UKR_UIA_west = {
		icon = generic_civil_support

		available = {
			199 = { is_owned_by = ROOT }
			any_enemy_country = {
				controls_state = 199
			}
		}

		cost = 100

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 30

		remove_effect = {
			add_equipment_to_stockpile = { type = transport_plane_equipment amount = 10 producer = UKR }
			custom_effect_tooltip = UKR_UIA_activate_decisions_in_regions
			199 = { set_state_flag = UKR_activate_UIA }
			198 = { set_state_flag = UKR_activate_UIA }
			201 = { set_state_flag = UKR_activate_UIA }
			89 = { set_state_flag = UKR_activate_UIA }
			91 = { set_state_flag = UKR_activate_UIA }
			93 = { set_state_flag = UKR_activate_UIA }
			1052 = { set_state_flag = UKR_activate_UIA }
			73 = { set_state_flag = UKR_activate_UIA }
			80 = { set_state_flag = UKR_activate_UIA }
			set_country_flag = UKR_UIA_west_created
		}
	}
	UKR_UIA_south = {
		icon = generic_civil_support

		available = {
			192 = { is_owned_by = ROOT }
			any_enemy_country = {
				controls_state = 192
			}
		}

		cost = 100

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 30

		remove_effect = {
			add_equipment_to_stockpile = { type = transport_plane_equipment amount = 10 producer = UKR }
			custom_effect_tooltip = UKR_UIA_activate_decisions_in_regions
			192 = { set_state_flag = UKR_activate_UIA }
			196 = { set_state_flag = UKR_activate_UIA }
			197 = { set_state_flag = UKR_activate_UIA }
			1047 = { set_state_flag = UKR_activate_UIA }
			766 = { set_state_flag = UKR_activate_UIA }
			137 = { set_state_flag = UKR_activate_UIA }
			1051 = { set_state_flag = UKR_activate_UIA }
			set_country_flag = UKR_UIA_south_created
		}
	}
	UKR_UIA_east = {
		icon = generic_civil_support

		available = {
			226 = { is_owned_by = ROOT }
			any_enemy_country = {
				controls_state = 226
			}
		}

		cost = 100

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 30

		remove_effect = {
			add_equipment_to_stockpile = { type = transport_plane_equipment amount = 10 producer = UKR }
			custom_effect_tooltip = UKR_UIA_activate_decisions_in_regions
			221 = { set_state_flag = UKR_activate_UIA }
			227 = { set_state_flag = UKR_activate_UIA }
			228 = { set_state_flag = UKR_activate_UIA }
			200 = { set_state_flag = UKR_activate_UIA }
			226 = { set_state_flag = UKR_activate_UIA }
			set_country_flag = UKR_UIA_east_created
		}
	}
	UKR_UIA_activate_resist = {

		icon = generic_nationalism

		visible = {
			has_war = yes
			has_completed_focus = UKR_new_rebel_army
			FROM = {
				is_core_of = ROOT
				NOT = { is_controlled_by = ROOT }
				controller = { has_war_with = ROOT }
				has_resistance = yes
			}
		}

		available = {
			FROM = {
				has_state_flag = UKR_activate_UIA
			}
			has_equipment = { transport_plane_equipment > 9 }
		}

		state_target = yes

		on_map_mode = map_only

		target_array = ROOT.owned_states

		target_trigger = {
			FROM = {
				is_core_of = ROOT
			}
		}

		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 999
			}
		}
		custom_cost_text = 1000_infantry_equipment_1

		fire_only_once = no
		days_re_enable = 30
		days_remove = 30

		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -1000 }
		}

		cancel_trigger = {
			FROM = {
				is_controlled_by = ROOT
			}
		}

		remove_effect = {
			FROM = {
				add_resistance = 30
			}
			random_list = {
				50 = {
					# nothing
				}
				25 = {
					add_equipment_to_stockpile = { type = transport_plane_equipment amount = -2 }
				}
				25 = {
					add_equipment_to_stockpile = { type = transport_plane_equipment amount = -5 }
				}
			}
		}
	}
	UKR_UIA_reduce_compliance = {

		icon = eng_propaganda_campaigns

		visible = {
			has_war = yes
			has_completed_focus = UKR_new_rebel_army
			FROM = {
				is_core_of = ROOT
				NOT = { is_controlled_by = ROOT }
				controller = { has_war_with = ROOT }
				compliance > 0
			}
		}

		available = {
			FROM = {
				has_state_flag = UKR_activate_UIA
			}
		}

		state_target = yes

		on_map_mode = map_only

		target_array = ROOT.owned_states

		target_trigger = {
			FROM = {
				is_core_of = ROOT
			}
		}

		custom_cost_trigger = {
			command_power > 15
		}
		custom_cost_text = 15_command_power_1

		fire_only_once = no
		days_re_enable = 90
		days_remove = 30

		ai_will_do = {
			factor = 1
		}

		complete_effect = {
			add_command_power = -15
		}

		modifier = {
			political_power_cost = 0.1
		}

		cancel_trigger = {
			FROM = {
				is_controlled_by = ROOT
			}
		}

		remove_effect = {
			FROM = {
				add_compliance = -15
			}
		}
	}
	UKR_subsidy_for_UIA = {
		icon = generic_industry

		allowed = {
			has_dlc = "Arms Against Tyranny"
		}
		
		cost = 50

		ai_will_do = {
			factor = 1
		}

		fire_only_once = no
		days_remove = 60
		days_re_enable = 90

		remove_effect = {
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = infantry_equipment
				seller_trigger = is_allied_seller_trigger
			}
		}
	}
}
UKR_retention_of_crimean_tatars = {
	UKR_support_crimean_industry = {
		icon = generic_factory
		
		cost = 25

		ai_will_do = {
			factor = 1
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		fire_only_once = yes
		days_remove = 60

		remove_effect = {
			CRI = {
				country_event = qirimlar.65
				set_country_flag = CRI_ukrainian_retention_1
			}
		}
	}
	UKR_intelligence_activity_in_crimea = {
		icon = onmap_recruit_operative

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			country_exists = TUR
			NOT = { is_in_faction_with = TUR }
			network_strength = {
				target = TUR
				value > 30
			}
		}

		cost = 25

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 0

		remove_effect = {
			CRI = {
				set_country_flag = CRI_ukrainian_retention_2
			}
		}
	}
	UKR_railroad_to_crimea = {
		icon = generic_construction

		available = {
			196 = { is_owned_and_controlled_by = ROOT }
			has_railway_connection = {
				start_province = 11715
				target_province = 3722
			}
		}

		cost = 25

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 0

		remove_effect = {
			CRI = {
				set_country_flag = CRI_ukrainian_retention_3
			}
		}
	}
	UKR_army_maneuvers_in_crimea = {
		icon = generic_military

		available = {
			divisions_in_state = {
				state = 137	
				size > 2
			}
			divisions_in_state = {
				state = 1051	
				size > 2
			}
		}

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		ai_will_do = {
			factor = 1
		}
		fire_only_once = yes
		days_remove = 14

		complete_effect = {
			add_command_power = -30
		}

		remove_effect = {
			CRI = {
				country_event = qirimlar.66
				set_country_flag = CRI_ukrainian_retention_4
			}
		}
	}
}
UKR_change_government_category = {
	UKR_discredit_government = {

		icon = generic_political_discourse

		available = {
			neutrality > 0.10
			OR = {
				has_idea_with_trait = ukr_communist_revolutionary
				has_idea_with_trait = ukr_democratic_reformer
				has_idea_with_trait = ukr_fascist_demagogue
			}
		}
		
		fire_only_once = no
		cost = 50
		
		complete_effect = {
			add_stability = -0.01
			add_popularity = {
				ideology = neutrality
				popularity = -0.1
			}
		}

		days_re_enable = 90
		
		ai_will_do = {
			factor = 2
		}
	}
	
	UKR_nationalists_referendum = {

		icon = generic_political_rally

		available = {
			fascism > 0.5
			is_puppet = no
			has_civil_war = no
		}

		visible = {
			has_completed_focus = UKR_revanchism
			NOT = { has_country_flag = UKR_government_is_changed }
		}

		remove_trigger = {
			has_government = fascism
		}
		
		fire_only_once = yes
		
		cost = 0
		
		complete_effect = {
			country_event = { id = ukraine.528 }
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	UKR_democratic_referendum = {

		icon = generic_political_rally

		available = {
			democratic > 0.5
			is_puppet = no
			has_civil_war = no
		}

		visible = {
			has_completed_focus = UKR_democratic_reforms
			NOT = { has_country_flag = UKR_government_is_changed }
		}

		remove_trigger = {
			has_government = democratic
		}
		
		fire_only_once = yes
		
		cost = 0
		
		complete_effect = {
			country_event = { id = ukraine.529 }
			set_politics = {
				ruling_party = democratic
				elections_allowed = yes
			}
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	UKR_communists_referendum = {

		icon = generic_political_rally

		available = {
			communism > 0.50
			is_puppet = no
			has_civil_war = no
		}

		visible = {
			has_completed_focus = UKR_communism_propaganda
			NOT = { has_country_flag = UKR_government_is_changed }
		}

		remove_trigger = {
			has_government = communism
		}
		
		fire_only_once = yes
		
		cost = 0
		
		complete_effect = {
			country_event = { id = ukraine.530 }
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}
		}
		
		ai_will_do = {
			factor = 0
		}
	}
}
UKR_balance_of_power_category = {
	UKR_bop_intimidation_of_generals = {

		icon = generic_arrest

		visible = {
			has_completed_focus = UKR_natcom_coup
		}

		available = {
			has_government = communism
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}
		
		fire_only_once = no
		cost = 25

		modifier = {
			experience_gain_army_factor = -0.10
		}
		
		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_party_strengthening
			}
			random_unit_leader = {
				limit = {
					is_corps_commander = yes
					skill > 2
				}
				add_unit_leader_trait = UKR_cowed_by_party_army
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_party_strengthening
			}
			random_unit_leader = {
				limit = {
					has_trait = UKR_cowed_by_party_army
				}
				remove_unit_leader_trait = UKR_cowed_by_party_army
			}
		}

		days_remove = 90
		days_re_enable = 0
		
		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_additional_funding_of_army = {

		icon = generic_merge_plant_tank

		visible = {
			has_completed_focus = UKR_natcom_coup
		}

		available = {
			has_government = communism
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}
		
		fire_only_once = no
		cost = 25

		modifier = {
			experience_gain_army_factor = 0.10
			mobilization_speed = 0.10 
			consumer_goods_factor = 0.05
		}
		
		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_army_strengthening
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_army_strengthening
			}
		}

		days_remove = 90
		days_re_enable = 0
		
		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				has_completed_focus = UKR_natcom_claimes
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_army_low_control_range
				}
			}
		}
	}
	UKR_bop_new_army_commissars = {

		icon = generic_military

		visible = {
			has_government = communism
		}

		available = {
			has_completed_focus = UKR_ideological_army
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}
		
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		modifier = {
			planning_speed = -0.20
		}
		
		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_party_strengthening
			}
			add_command_power = -30
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_party_strengthening
			}
		}

		days_remove = 90
		days_re_enable = 0
		
		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_discredit_army_commissars = {

		icon = generic_operation

		visible = {
			has_government = communism
		}

		available = {
			has_completed_focus = UKR_ideological_army
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}
		
		fire_only_once = no
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		modifier = {
			planning_speed = 0.20
		}
		
		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_army_strengthening
			}
			add_command_power = -30
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_army_strengthening
			}
		}

		days_remove = 90
		days_re_enable = 0
		
		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				has_completed_focus = UKR_natcom_claimes
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_army_low_control_range
				}
			}
		}
	}
	UKR_bop_appoint_mazlakh = {
		icon = GFX_decision_eng_trade_unions_demand

		visible = {
			has_completed_focus = UKR_natcom_coup
			has_country_leader = {
				character = UKR_serhiy_mazlakh
				ruling_only = yes
			}
		}

		available = {
			has_government = communism
		}

		cost = 50
		fire_only_once = yes

		complete_effect = {
			add_field_marshal_role = {
				character = UKR_serhiy_mazlakh
				desc = UKR_serhiy_mazlakh_desc
				traits = { }
				skill = 1
				attack_skill = 1
				defense_skill = 1
				planning_skill = 1
				logistics_skill = 1
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.10
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_appoint_oskilko = {
		icon = GFX_decision_eng_trade_unions_demand

		visible = {
			has_completed_focus = UKR_natcom_coup
			has_character = UKR_volodymyr_oskilko
		}

		available = {
			has_government = communism
		}

		cost = 50
		fire_only_once = yes

		complete_effect = {
			UKR_volodymyr_oskilko = {
				add_unit_leader_trait = politically_connected
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				has_completed_focus = UKR_natcom_claimes
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_army_low_control_range
				}
			}
		}
	}
	UKR_king_army_inspection = {

		icon = generic_military

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			has_war = yes
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 30
		days_re_enable = 180
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		modifier = {
			army_org_factor = 0.10
			army_defence_factor = 0.05
			army_attack_factor = 0.05
			command_power_gain = 0.50
			political_power_cost = 0.25
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_command_power = -30
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_queen_hospital_visits = {

		icon = eng_abdication_crisis

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			has_war = yes
		}

		available = {
			has_country_flag = UKR_the_king_is_married
			casualties > 10000
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 28
		days_re_enable = 180
		cost = 50

		modifier = {
			weekly_manpower = 1500
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			add_stability = 0.02
			add_war_support = 0.02
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_hetman_in_general_staff = {

		icon = generic_operation

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			has_war = yes
			NOT = { has_country_flag = UKR_bop_hetman_is_retired }
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 30
		days_re_enable = 180
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		modifier = {
			max_planning = 0.10
			planning_speed = 0.25
			command_power_gain = 0.50
			political_power_cost = 0.25
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_command_power = -30
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.10
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_isolation_of_king = {

		icon = generic_civil_support

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			NOT = { has_country_flag = UKR_bop_hetman_is_retired }
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range < UKR_king_total_control_range
			}
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 90
		days_re_enable = 0
		cost = 25

		modifier = {
			party_popularity_stability_factor = -0.10
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_hetman_strengthening
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_hetman_strengthening
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_receptions_and_visits = {

		icon = generic_monarchy

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 90
		days_re_enable = 0
		cost = 25

		modifier = {
			opinion_gain_monthly_factor = 0.15
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_king_strengthening
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_king_strengthening
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				is_power_balance_in_range = {
					id = UKR_power_balance
					range > UKR_king_high_control_range
				}
			}
		}
	}
	UKR_invite_habsburg_hungary = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			HUN = {
				has_completed_focus = HUN_invite_the_habsburg_prince
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			HUN = { country_event = ukraine.594 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_volunteers_for_hungarian_habsburg = {
		icon = generic_army_support

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			any_other_country = {
				original_tag = HUN
				has_war_with = AUS
				is_in_faction = no
				has_government = neutrality
				OR = {
					has_completed_focus = HUN_demand_a_referendum
					has_completed_focus = HUN_take_austria_by_force
				}
				
			}
		}

		fire_only_once = yes
		days_remove = -1
		cost = 50

		modifier = {
            send_volunteer_size = 1
			send_volunteers_tension = -0.5
			send_volunteer_divisions_required = -1
        }

        remove_trigger = {
        	any_other_country = {
				original_tag = HUN
				has_war = no
			}
        }

        complete_effect = {
        	if = {
        		limit = { NOT = { has_rule = can_send_volunteers} }
        		set_rule = { 
					can_send_volunteers = yes
				}
        	}
        	add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
        }
	}
	UKR_invite_habsburg_poland = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			POL = {
				has_completed_focus = POL_habsburg
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			POL = { country_event = ukraine.594 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_monarchic_greece = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			GRE = {
				has_completed_focus = GRE_the_right_to_rule
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			GRE = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_volunteers_for_monarchic_greece_cw = {
		icon = generic_army_support

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			any_other_country = {
				original_tag = GRE
				has_civil_war = yes
				is_in_faction = no
				has_government = neutrality
				has_completed_focus = GRE_the_right_to_rule
			}
		}

		fire_only_once = yes
		days_remove = -1
		cost = 50

		modifier = {
            send_volunteer_size = 1
			send_volunteers_tension = -0.5
			send_volunteer_divisions_required = -1
        }

        remove_trigger = {
        	any_other_country = {
				original_tag = GRE
				has_civil_war = no
			}
        }

        complete_effect = {
        	if = {
        		limit = { NOT = { has_rule = can_send_volunteers} }
        		set_rule = { 
					can_send_volunteers = yes
				}
        	}
        	add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
        }
	}
	UKR_invite_monarchic_yugoslavia = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			YUG = {
				has_completed_focus = YUG_end_the_regency
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			YUG = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_monarchic_hungary = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			HUN = {
				OR = {
					has_completed_focus = HUN_elect_a_democratic_king
					has_completed_focus = HUN_elect_a_fascist_king
				}
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			HUN = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_monarchic_poland = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			POL = {
				OR = {
					has_completed_focus = POL_hohenzollern
					has_completed_focus = POL_claiming_lithuania
					has_completed_focus = POL_cossack_king
				}
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			POL = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_monarchic_lithuania = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			LIT = {
				has_completed_focus = LIT_a_king_for_our_people
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			LIT = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_invite_monarchic_germany = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			GER = {
				has_completed_focus = GER_return_of_the_kaiser
				has_government = neutrality
				is_in_faction = no
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
			is_faction_leader = yes
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			GER = { country_event = ukraine.57 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_bring_back_carol_ii_to_throne = {

		icon = eng_support_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_karol2_got_refuge
			ROM = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_civil_war = no
				NOT = { is_in_faction_with = ROOT }
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
		}

		days_remove = 30
		cost = 75

		remove_effect = {
			ROM = { country_event = ukraine.630 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_bring_back_boris_iii_to_throne = {

		icon = eng_support_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_boris3_got_refuge
			BUL = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_civil_war = no
				NOT = { is_in_faction_with = ROOT }
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_low_control_range
			}
		}

		days_remove = 30
		cost = 75

		remove_effect = {
			BUL = { country_event = ukraine.634 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_union_with_habsburg_poland = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
			is_in_faction_with = POL
			POL = {
				has_completed_focus = POL_habsburg
				has_government = neutrality
				OR = {
					is_puppet = no
					is_puppet_of = ROOT
				}
			}
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_high_control_range
			}
			ic_ratio = {
				tag = POL
				ratio > 1
			}
			strength_ratio = {
				tag = POL
				ratio > 1
			}
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			POL = { country_event = ukraine.625 }
		}

		ai_will_do = {
			factor = 2
		}
	}
	UKR_retire_hetman_for_monarchy = {

		icon = eng_trade_unions_support

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_constitution_monarchy
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_king_high_control_range
			}
			has_character = UKR_pavlo_skoropadskyi
		}

		days_remove = 1
		cost = 50

		remove_effect = {
			retire_character = UKR_pavlo_skoropadskyi
			retire_character = UKR_ivan_poltavets_ostryanitsya
			set_country_flag = UKR_bop_hetman_is_retired
			country_event = ukraine.645
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_prepare_coronation = {

		icon = eng_abdication_crisis

		visible = {
			has_country_flag = UKR_prepare_pompous_coronation
		}

		fire_only_once = yes

		days_remove = 60
		cost = 0

		modifier = {
			consumer_goods_factor = 0.05
		}

		remove_effect = {
			country_event = ukraine.415
		}
	}
	UKR_search_for_queen_mission = {

		icon = eng_ally_imperialist_coup

		allowed = { always = no } #Activated from effect

		available = { #success effect
			has_country_flag = UKR_the_king_is_married
		}

		days_mission_timeout = 365

		fire_only_once = yes

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = { # fail
			if = {
				limit = {
					UKR_wilhelm_von_habsburg = {
						is_country_leader = yes 
					}
				}
				add_country_leader_trait = king_in_closet
				add_power_balance_value = {
					id = UKR_power_balance
					value = -0.10
				}	
			}
		}

		complete_effect = { # success
			hidden_effect = {
				country_event = { id = ukraine.615 days = 400 random_days = 100 }
			}
		}
	}
	UKR_offer_to_daughter_of_skoropadskyi = {

		icon = hol_war_on_pacifism

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			country_event = ukraine.418
		}

		ai_will_do = {
			factor = 10
		}
	}
	UKR_offer_to_irene_of_greece = {

		icon = hol_war_on_pacifism

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = { has_war_with = GRE }
			date < 1939.7.1
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				40 = {
					modifier = {
						factor = 2
						GRE = { has_opinion = { target = UKR value > 50 } }
					}
					country_event = ukraine.419
				}
				60 = {
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_maria_cristina_of_spain = {

		icon = hol_war_on_pacifism

		allowed = {
			has_dlc = "La Resistance"
		}

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			date < 1940.9.1
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				40 = {
					modifier = {
						factor = 2
						has_country_flag = UKR_support_for_spain_monarchy
					}
					country_event = ukraine.421
				}
				60 = {
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_adelheid_of_austria = {

		icon = hol_war_on_pacifism


		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = {
				HUN = {
					has_government = neutrality
					has_completed_focus = HUN_invite_the_habsburg_prince
					has_war_with = ROOT
				}
			}
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				40 = {
					modifier = {
						factor = 2
						HUN = {
							has_government = neutrality
							has_completed_focus = HUN_invite_the_habsburg_prince
						}
					}
					country_event = ukraine.422
				}
				60 = {
					modifier = {
						factor = 2
						has_war_with = AUS
					}
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_maria_francesca_of_savoy = {

		icon = hol_war_on_pacifism

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			date < 1939.1.1
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = {
				ITA = {
					has_war_with = UKR
					has_government = communism
				}
			}
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				30 = {
					modifier = {
						factor = 2
						ITA = { has_opinion = { target = UKR value > 50 } }
					}
					country_event = ukraine.423
				}
				70 = {
					modifier = {
						factor = 0.75
						has_country_flag = UKR_prepare_pompous_coronation
					}
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_eudoxia_of_bulgaria = {

		icon = hol_war_on_pacifism

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = {
				BUL = {
					has_war_with = UKR
					has_government = neutrality
				}
			}
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				40 = {
					modifier = {
						factor = 2
						BUL = { has_opinion = { target = UKR value > 50 } }
					}
					modifier = {
						factor = 2
						BUL = { has_completed_focus = BUL_ally_across_sea }
					}
					country_event = ukraine.424
				}
				60 = {
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_marie_clotilde_bonaparte = {

		icon = hol_war_on_pacifism

		allowed = {
			has_dlc = "La Resistance"
		}

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			date < 1938.10.1
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = {
				FRA = {
					has_war_with = UKR
					has_government = neutrality
				}
			}
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				30 = {
					modifier = {
						factor = 2
						FRA = { has_opinion = { target = UKR value > 50 } }
					}
					country_event = ukraine.425
				}
				70 = {
					modifier = {
						factor = 0.75
						has_country_flag = UKR_prepare_pompous_coronation
					}
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_kira_kirillovna_of_russia = {

		icon = hol_war_on_pacifism

		allowed = {
			has_dlc = "No Step Back"
		}

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			date < 1938.4.1
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				30 = {
					modifier = {
						factor = 2
						is_in_faction_with = CRM
						CRM = { is_puppet = no }
					}
					modifier = {
						factor = 2
						has_country_flag = UKR_receive_white_fleet_flag
					}
					country_event = ukraine.426
				}
				70 = {
					modifier = {
						factor = 1.5
						OR = {
							137 = { is_owned_and_controlled_by = UKR }
							CRM = { is_puppet_of = UKR }
						}
					}
					modifier = {
						factor = 0.75
						has_country_flag = UKR_prepare_pompous_coronation
					}
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_offer_to_cecilie_of_prussia = {

		icon = hol_war_on_pacifism

		visible = {
			has_active_mission = UKR_search_for_queen_mission
		}

		available = {
			NOT = { has_country_flag = UKR_offer_to_princess_is_active }
			NOT = {
				GER = {
					has_war_with = UKR
					has_government = neutrality
				}
			}
		}

		fire_only_once = yes

		days_remove = 7
		cost = 25

		complete_effect = {
			set_country_flag = UKR_offer_to_princess_is_active
		}

		remove_effect = {
			random_list = {
				30 = {
					modifier = {
						factor = 2
						has_country_flag = UKR_support_german_junta
					}
					country_event = ukraine.427
				}
				70 = {
					modifier = {
						factor = 0.75
						has_country_flag = UKR_prepare_pompous_coronation
					}
					country_event = ukraine.420
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_royal_union_with_greece = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_greece
		}

		available = {
			OR = {
				GRE = { is_puppet_of = ROOT }
				any_owned_state = {
					is_owned_and_controlled_by = ROOT 
					is_core_of = GRE
					NOT = { is_core_of = ROOT }
				}
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			if = {
				limit = { GRE = { is_puppet_of = ROOT } }
				annex_country = { target = GRE }
			}
			every_owned_state = {
				limit = {
					is_core_of = GRE
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_compliance = 30
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_union_with_spain = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_spain
		}

		available = {
			OR = {
				SPR = { is_puppet_of = ROOT }
				any_owned_state = {
					is_owned_and_controlled_by = ROOT 
					is_core_of = SPR
					NOT = { is_core_of = ROOT }
				}
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			if = {
				limit = { SPR = { is_puppet_of = ROOT } }
				annex_country = { target = SPR }
			}
			every_owned_state = {
				limit = {
					is_core_of = SPR
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_compliance = 25
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_union_with_italy = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_italy
		}

		available = {
			OR = {
				ITA = { is_puppet_of = ROOT }
				any_owned_state = {
					is_owned_and_controlled_by = ROOT 
					is_core_of = ITA
					NOT = { is_core_of = ROOT }
				}
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			if = {
				limit = { ITA = { is_puppet_of = ROOT } }
				annex_country = { target = ITA }
			}
			every_owned_state = {
				limit = {
					is_core_of = ITA
					NOT = { is_core_of = ROOT }
					is_owned_and_controlled_by = ROOT
				}
				add_compliance = 20
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_royal_union_with_russia = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_russia
			SOV = {
				is_subject_of = UKR
			}
		}

		available = {
			SOV = { 
				has_civil_war = no 
				has_capitulated = no
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 0

		remove_effect = {
			if = {
				limit = { 
					SOV = { NOT = { has_autonomy_state = autonomy_personal_union } }
				}
				set_autonomy = {
					target = SOV
					autonomy_state = autonomy_personal_union
				}
			}
			set_cosmetic_tag = UKR_RUTHENIA
			set_country_flag = UKR_form_ruthenia
			every_state = {
				limit = {
					is_core_of = BLR
					NOT = { is_core_of = ROOT }
				}
				add_core_of = ROOT
				remove_core_of = SOV
			}
			1048 = { 
				add_core_of = ROOT 
				remove_core_of = SOV
			}
			every_state = {
				limit = {
					is_core_of = ROOT
					is_owned_and_controlled_by = SOV
				}
				transfer_state_to = ROOT
			}
			if = { 
				limit = {
					137 = { is_owned_and_controlled_by = SOV }
				} 
				transfer_state = 137
			}
			if = { 
				limit = {
					1051 = { is_owned_and_controlled_by = SOV }
				} 
				transfer_state = 1051
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
			hidden_effect = {
				news_event = { hours = 6 id = news.565 }
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_visit_to_austria_hungaria = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_austria
			HUN = {
				has_completed_focus = HUN_invite_the_habsburg_prince
			}
		}

		available = {
			HUN = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_government = neutrality
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			HUN = { country_event = { id = ukraine.429 days = 1 } }
			custom_effect_tooltip = UKR_royal_visit_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_visit_to_bulgaria = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_bulgaria
			BUL = {
				OR = {
					has_completed_focus = BUL_the_return_of_ferdinand_i
					has_completed_focus = BUL_strengthen_the_royal_dictatorship
				}
			}
		}

		available = {
			BUL = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_government = neutrality
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			BUL = { country_event = { id = ukraine.429 days = 1 } }
			custom_effect_tooltip = UKR_royal_visit_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_visit_to_france = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		allowed = {
			has_dlc = "La Resistance"
		}

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_france
			FRA = {
				has_completed_focus = FRA_proclaim_the_third_empire
			}
		}

		available = {
			FRA = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_government = neutrality
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			FRA = { country_event = { id = ukraine.429 days = 1 } }
			custom_effect_tooltip = UKR_royal_visit_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_royal_visit_to_germany = {

		icon = eng_ally_imperialist_coup

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_country_flag = UKR_queen_from_germany
			GER = {
				has_completed_focus = GER_return_of_the_kaiser
			}
		}

		available = {
			GER = {
				exists = yes
				is_puppet = no
				NOT = { has_war_with = ROOT }
				has_government = neutrality
			}
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		cost = 75

		remove_effect = {
			GER = { country_event = { id = ukraine.429 days = 1 } }
			custom_effect_tooltip = UKR_royal_visit_tt
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_public_works = {

		icon = generic_industry

		fire_only_once = no

		visible = {
			has_government = fascism
		}

		available = { 
			has_war = no 
			has_completed_focus = UKR_corporativism
		}

		modifier = {
			stability_weekly = 0.0025
			production_speed_buildings_factor = 0.1
			local_resources_factor = 0.1
		}

		days_remove = 90
		days_re_enable = 180
		cost = 75

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.05
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_mobilization_of_unemployeds = {

		icon = eng_blackshirt_march

		visible = {
			has_government = fascism
		}

		available = {
			has_completed_focus = UKR_corporativism
		}

		fire_only_once = yes

		modifier = {
			weekly_manpower = 300
			mobilization_speed = 0.2
			conscription_factor = 0.1
		}

		days_remove = 120
		cost = 75

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_prepare_defence_of_industry = {

		icon = generic_construction

		visible = {
			has_government = fascism
		}

		available = {
			has_completed_focus = UKR_corporativism
		}

		fire_only_once = yes

		modifier = {
			consumer_goods_factor = 0.10
		}

		days_remove = 180
		cost = 75

		remove_effect = {
			add_ideas = UKR_defence_the_industry
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.05
			}
		}

		ai_will_do = {
			factor = 0.5
		}
	}
	UKR_arrest_workers_leaders = {
		icon = generic_arrest

		visible = {
			has_government = fascism
		}

		available = {
			has_completed_focus = UKR_corporativism
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		fire_only_once = no

		days_remove = 60
		days_re_enable = 0
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_industry_strengthening
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_industry_strengthening
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				OR = {
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCIST
					}
					has_game_rule = {
						rule = UKR_ai_behavior
						option = FASCIST_TRUE
					}
				}
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_low_industrial_control_range
				}
			}
		}
	}

	UKR_agreement_with_workers_leaders = {
		icon = generic_decision

		visible = {
			has_government = fascism
		}

		available = {
			has_completed_focus = UKR_corporativism
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		fire_only_once = no

		days_remove = 60
		days_re_enable = 0
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_workers_strengthening
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_workers_strengthening
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				has_game_rule = {
					rule = UKR_ai_behavior
					option = FASCIST_ALTERNATE
				}
			}
			modifier = {
				add = 2
				is_power_balance_in_range = {
					id = UKR_power_balance
					range > UKR_medium_industrial_control_range
				}
			}
		}
	}
	UKR_bop_martial_law = {
		icon = oppression

		visible = {
			has_government = fascism
		}

		available = {
			has_completed_focus = UKR_corporativism
			has_idea = UKR_strikes
		}

		fire_only_once = no

		days_remove = 90
		days_re_enable = 0
		cost = 75

		modifier = {
			conscription_factor = -0.15
			training_time_army_factor = 0.10
		}

		complete_effect = {
			custom_effect_tooltip = UKR_bop_martial_law_tt
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
			add_stability = -0.01
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_mobilization_of_mil_economic = {

		icon = ger_military_buildup

		fire_only_once = no

		available = { has_completed_focus = UKR_forced_economic_mobilization }

		visible = {
			has_government = fascism
			check_variable = { ukr_fem_conversion_bonus > -0.20 }
		}

		days_remove = 60
		days_re_enable = 0
		cost = 25

		remove_effect = {
			add_to_variable = { ukr_fem_conversion_bonus = -0.02 }
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.05
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_ad_strengthening_of_presidency = {

		icon = generic_civil_support

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = { 
			has_stability < 0.8
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 70
		days_re_enable = 30
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
		}

		modifier = {
			stability_weekly = 0.005
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			if = {
				limit = {
					is_power_balance_in_range = {
						id = UKR_power_balance
						range > UKR_balance_range
					}
				}
				add_power_balance_value = {
					id = UKR_power_balance
					value = -0.10
				}
			}
			else_if = {
				limit = {
					is_power_balance_in_range = {
						id = UKR_power_balance
						range < UKR_balance_range
					}
				}
				add_power_balance_value = {
					id = UKR_power_balance
					value = 0.10
				}
			}
		}

		ai_will_do = {
			factor = 3
		}
	}
	UKR_bop_subtract_10_support_for_rada = {

		icon = generic_arrest

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range < UKR_balance_range
			}
		}

		days_remove = 0
		days_re_enable = 90
		cost = 50

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
			add_stability = -0.01
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_subtract_10_support_for_army = {

		icon = oppression

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = {
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 0
		days_re_enable = 90
		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.10
			}
			add_war_support = -0.01
		}

		ai_will_do = {
			factor = 1
		}
	}
	UKR_cancel_state_of_emergency = {

		icon = SWI_dismiss_council

		fire_only_once = yes

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = { 
			has_stability > 0.75
			rada_medium_support_trigger = yes
			is_power_balance_in_range = {
				id = UKR_power_balance
				range = UKR_balance_range
			}
		}

		days_remove = 0
		cost = 100

		remove_effect = {
			clr_country_flag = UKR_altdem_bop_is_available
			set_country_flag = UKR_altdem_president_victory
			remove_power_balance = { id = UKR_power_balance }
			custom_effect_tooltip = UKR_cancel_state_of_emergency_effect_tt
			country_event = ukraine.712
		}

		ai_will_do = {
			factor = 10
		}
	}
	UKR_bop_ad_strengthen_rada = {

		icon = generic_political_discourse

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 60
		days_re_enable = 30
		cost = 25

		complete_effect = {
			UKR_rada_small_support = yes
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_ad_strengthen_rada_mod
			}
		}

		modifier = {
			democratic_drift = 0.05
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_ad_strengthen_rada_mod
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_add_20_support_for_rada = {

		icon = generic_political_rally

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		days_remove = 0
		days_re_enable = 90
		cost = ukr_var_ad_rada_support_cost

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.20
			}
			multiply_variable = { ukr_var_ad_rada_support_cost = 2 }
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_ad_strengthen_army = {

		icon = generic_speech

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 60
		days_re_enable = 30
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_ad_strengthen_army_mod
			}
		}

		modifier = {
			weekly_manpower = 500
		}

		remove_effect = {
			add_war_support = 0.01
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_ad_strengthen_army_mod
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	UKR_bop_add_20_support_for_army = {

		icon = gre_faction_management

		fire_only_once = no

		visible = {
			has_government = democratic
			has_country_flag = UKR_altdem_bop_is_available
		}

		days_remove = 0
		days_re_enable = 90
		cost = ukr_var_ad_army_support_cost

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.20
			}
			multiply_variable = { ukr_var_ad_army_support_cost = 2 }
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_promote_ukrainophilia = {

		icon = generic_political_discourse

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 90
		days_re_enable = 90
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_promote_ukrainophilia_mod
			}
		}


		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_promote_ukrainophilia_mod
			}
		}

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_medium_ukrainophilia
				}
			}
			modifier = {
				factor = 0
				OR = {
					217 = { is_controlled_by = ROOT }
					219 = { is_controlled_by = ROOT }
				}
			}
		}
	}
	UKR_bop_promote_moscophilia = {

		icon = generic_political_discourse

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 90
		days_re_enable = 90
		cost = 25

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_promote_moscophilia_mod
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			remove_power_balance_modifier = {
				id = UKR_power_balance
				modifier = UKR_bop_promote_moscophilia_mod
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_strong_moscophilia
				}
				OR = {
					217 = { is_controlled_by = ROOT }
					219 = { is_controlled_by = ROOT }
				}
			}
		}
	}

	UKR_bop_pressure_moscophiles = {

		icon = generic_arrest

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
			is_power_balance_in_range = {
				id = UKR_power_balance
				range < UKR_balance_range
			}
		}

		days_remove = 30
		days_re_enable = 120
		cost = 50

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_stability = -0.01
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.15
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_pressure_ukrainophiles = {

		icon = generic_arrest

		fire_only_once = no

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
			is_power_balance_in_range = {
				id = UKR_power_balance
				range > UKR_balance_range
			}
		}

		days_remove = 30
		days_re_enable = 120
		cost = 50

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_stability = -0.01
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.15
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_strong_moscophilia
				}
				OR = {
					217 = { is_controlled_by = ROOT }
					219 = { is_controlled_by = ROOT }
				}
			}
		}
	}
	
	UKR_bop_promote_interslavic = {

		icon = eng_trade_unions_support

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
			NOT = { has_country_flag = UKR_bop_language_is_selected }
		}

		available = { 
			NOT = { has_country_flag = UKR_bop_language_is_selected }
		}

		days_remove = 0
		cost = 50

		complete_effect = {
			set_country_flag = UKR_bop_language_is_selected
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.20
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_second_russian_language = {

		icon = eng_trade_unions_support

		fire_only_once = yes

		visible = {
			has_government = neutrality
			has_completed_focus = UKR_coronation
			NOT = { has_country_flag = UKR_bop_language_is_selected }
		}

		available = { 
			NOT = { has_country_flag = UKR_bop_language_is_selected }
		}

		days_remove = 180
		cost = 50

		complete_effect = {
			set_country_flag = UKR_bop_language_is_selected
		}

		remove_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.20
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_criticize_our_preparedness = {

		icon = eng_trade_unions_support

		visible = {
			has_government = democratic
			has_completed_focus = UKR_peace_politic
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
			power_balance_value = {
				id = UKR_power_balance
				value < 0.6
			}
		}

		days_remove = 180
		cost = 50

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_bop_speaks_for_rearmament = {

		icon = eng_propaganda_campaigns

		visible = {
			has_government = democratic
			has_completed_focus = UKR_peace_politic
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
		}

		days_remove = 90

		cost = UKR_dem_bop_increase_cost

		modifier = {
			weekly_manpower = 500
		}

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			multiply_variable = { UKR_dem_bop_increase_cost = 2 }
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.10
			}
			army_experience = 5
			navy_experience = 5
			air_experience = 5
		}

		remove_effect = {
			custom_effect_tooltip = UKR_decision_cost_increase_tt 
			clr_country_flag = UKR_have_active_bop_decisions
		}

		ai_will_do = {
			factor = 1
		}
	}

	UKR_bop_expand_the_welfare = {

		icon = GFX_decision_generic_welfare

		visible = {
			has_government = democratic
			has_completed_focus = UKR_peace_politic
		}

		available = { 
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
			power_balance_value = {
				id = UKR_power_balance
				value > -0.6
			}
		}

		days_remove = 0
		cost = 50

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.10
			}
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_bop_decisions
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_bop_speak_out_in_favor_of_disarmament = {

		icon = GFX_decision_generic_political_address

		visible = {
			has_government = democratic
			has_completed_focus = UKR_peace_politic
		}

		available = {
			NOT = { has_country_flag = UKR_have_active_bop_decisions }
			has_army_experience > 5
			has_navy_experience > 5
			has_air_experience > 5
		}

		modifier = {
			stability_weekly = 0.0025
		}

		days_remove = 90

		cost = UKR_dem_bop_decrease_cost

		complete_effect = {
			set_country_flag = UKR_have_active_bop_decisions
			multiply_variable = { UKR_dem_bop_decrease_cost = 2 }
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.10
			}
			army_experience = -5
			navy_experience = -5
			air_experience = -5
		}

		remove_effect = {
			custom_effect_tooltip = UKR_decision_cost_increase_tt 
			clr_country_flag = UKR_have_active_bop_decisions
		}

		ai_will_do = {
			factor = 0
		}
	}

	UKR_debug_bop_add_full_left = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -1
			}
		}
	}
	UKR_debug_bop_add_20_left = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = -0.2
			}
		}
	}
	UKR_debug_bop_add_full_right = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 1
			}
		}
	}
	UKR_debug_bop_add_20_right = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			add_power_balance_value = {
				id = UKR_power_balance
				value = 0.20
			}
		}
	}
}
# end of UKR_balance_of_power_category
UKR_voluntarism_system = {
	UKR_vlnt_interference_in_economic = {

		icon = generic_wreckers

		fire_only_once = no

		available = {
			NOT = { has_country_flag = UKR_have_active_vlnt_decisions }
			arms_factory > 2
		}

		days_remove = 90
		days_re_enable = 180

		cost = 50

		complete_effect = {
			set_country_flag = UKR_have_active_vlnt_decisions
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_vlnt_decisions
			random_list = {
				40 = {
					country_event = ukraine.783
				}
				60 = {
					country_event = ukraine.784
				}
			}
			UKR_vlnt_decrease_big = yes
			hidden_effect = {
				if = {
					limit = { 
						num_of_civilian_factories < 25 
						NOT = { has_country_flag = UKR_vlnt_mission_is_run }
						NOT = { has_country_flag = UKR_vlnt_mission_strengthen_heavy_industry_has_activated }
					}
					random_list = {
						50 = {
							country_event = { id = ukraine.787 days = 7 }
						}
						50 = {

						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { UKR_voluntarism_value > 40 }
			}
		}
	}
	UKR_vlnt_changes_in_party_nomenclature = {

		icon = generic_political_address

		fire_only_once = no

		available = {
			NOT = { has_country_flag = UKR_have_active_vlnt_decisions }
		}

		days_remove = 90
		days_re_enable = 180

		cost = 75

		complete_effect = {
			set_country_flag = UKR_have_active_vlnt_decisions
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_vlnt_decisions
			add_stability = -0.01
			hidden_effect = {
				random_list = {
					90 = {

					}
					10 = {
						modifier = {
							factor = 3
							check_variable = { UKR_voluntarism_value > 70 }
						}
						country_event = { id = ukraine.778 days = 2 }
					}
				}
			}
			UKR_vlnt_decrease_big = yes
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { UKR_voluntarism_value > 40 }
			}
		}
	}
	UKR_vlnt_interference_in_military_affairs = {

		icon = generic_military

		fire_only_once = no

		available = {
			NOT = { has_country_flag = UKR_have_active_vlnt_decisions }
		}

		days_remove = 90
		days_re_enable = 180

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
			set_country_flag = UKR_have_active_vlnt_decisions
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_vlnt_decisions
			random_list = {
				10 = {
					country_event = ukraine.772
				}
				60 = {
					country_event = ukraine.773
				}
				30 = {
					country_event = ukraine.774
				}
			}
			UKR_vlnt_decrease_big = yes
			hidden_effect = {
				if = {
					limit = { 
						has_army_manpower = { size < 500000 }
						NOT = { has_country_flag = UKR_vlnt_mission_is_run }
						NOT = { has_country_flag = UKR_vlnt_mission_strengthen_the_army_has_activated }
					}
					random_list = {
						50 = {
							country_event = { id = ukraine.788 days = 7 }
						}
						50 = {

						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { UKR_voluntarism_value > 40 }
			}
		}
	}
	UKR_vlnt_interference_in_air_and_navy_affairs = {

		icon = generic_operation

		fire_only_once = no

		available = {
			NOT = { has_country_flag = UKR_have_active_vlnt_decisions }
			OR = {
				has_navy_size = { size > 5 }
				has_deployed_air_force_size = { size > 199 }
			}
		}

		days_remove = 90
		days_re_enable = 180

		custom_cost_trigger = {
			command_power > 30
		}
		custom_cost_text = 30_command_power_1

		complete_effect = {
			add_command_power = -30
			set_country_flag = UKR_have_active_vlnt_decisions
		}

		remove_effect = {
			clr_country_flag = UKR_have_active_vlnt_decisions
			random_list = {
				10 = {
					country_event = ukraine.775
					modifier = {
						factor = 0
						has_navy_size = { size < 1 }
					}
				}
				60 = {
					country_event = ukraine.776
				}
				30 = {
					country_event = ukraine.777
				}
			}
			UKR_vlnt_decrease_big = yes
			hidden_effect = {
				if = {
					limit = { 
						OR = {
							has_fuel < 400000
							has_deployed_air_force_size = { size < 550 }
						}
						has_army_manpower = { size < 500000 }
						NOT = { has_country_flag = UKR_vlnt_mission_is_run }
						NOT = { has_country_flag = UKR_vlnt_mission_strengthen_the_army_has_activated }
					}
					random_list = {
						30 = {
							country_event = { id = ukraine.789 days = 7 }
							modifier = {
								factor = 0
								has_fuel > 400000
							}
						}
						30 = {
							country_event = { id = ukraine.790 days = 7 }
							modifier = {
								factor = 0
								has_deployed_air_force_size = { size > 550 }
							}
						}
						40 = {

						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { UKR_voluntarism_value > 40 }
			}
		}
	}
	UKR_vlnt_high_level_action = {

		icon = generic_break_treaty

		available = { #success effect
			custom_trigger_tooltip = {
				tooltip = UKR_vlnt_high_level_action_tt
				check_variable = { UKR_voluntarism_value < 81 }
			}
		}

		activation = {
			check_variable = { UKR_voluntarism_value > 80 }
			NOT = { has_country_flag = UKR_have_active_vlnt_decisions }
		}

		days_mission_timeout = 365

		fire_only_once = no

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = { # fail
			country_event = ukraine.782
		}

		complete_effect = { # success
			
		}
	}
	UKR_vlnt_mission_strengthen_heavy_industry = {
		icon = GFX_decision_generic_merge_plant_materiel

		available = { #GOAL
			if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_heavy_industry_1 }
				num_of_civilian_factories > 17
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_heavy_industry_2 }
				num_of_civilian_factories > 22
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_heavy_industry_3 }
				num_of_civilian_factories > 27
			}
		}

		activation = {
			always = no
		}

		cancel_if_not_visible = yes
		is_good = no #Tooltip purposes
		selectable_mission = no
		days_mission_timeout = 365

		timeout_effect = { #MISSION FAILS
			effect_tooltip = {
				UKR_vlnt_increase_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.785 hours = 1 }
			}
		}

		complete_effect = { #MISSION SUCCEEDS
			effect_tooltip = {
				UKR_vlnt_decrease_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.786 hours = 1 }
			}
		}
	}
	UKR_vlnt_mission_strengthen_the_army = {
		icon = GFX_decision_generic_military

		available = { #GOAL
			if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_army_1 }
				has_army_manpower = { size > 349999 }
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_army_2 }
				has_army_manpower = { size > 479999 }
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_army_3 }
				has_army_manpower = { size > 599999 }
			}
		}

		activation = {
			always = no
		}

		cancel_if_not_visible = yes
		is_good = no #Tooltip purposes
		selectable_mission = no
		days_mission_timeout = 365

		timeout_effect = { #MISSION FAILS
			effect_tooltip = {
				UKR_vlnt_increase_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.785 hours = 1 }
			}
		}

		complete_effect = { #MISSION SUCCEEDS
			effect_tooltip = {
				UKR_vlnt_decrease_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.786 hours = 1 }
			}
		}
	}
	UKR_vlnt_mission_stockpile_fuel = {
		icon = GFX_decision_oil

		available = { #GOAL
			if = {
				limit = { has_country_flag = UKR_vlnt_mission_stockpile_fuel_1 }
				has_fuel > 250000
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_stockpile_fuel_2 }
				has_fuel > 350000
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_stockpile_fuel_3 }
				has_fuel > 500000
			}
		}

		activation = {
			always = no
		}

		cancel_if_not_visible = yes
		is_good = no #Tooltip purposes
		selectable_mission = no
		days_mission_timeout = 365

		timeout_effect = { #MISSION FAILS
			effect_tooltip = {
				UKR_vlnt_increase_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.785 hours = 1 }
			}
		}

		complete_effect = { #MISSION SUCCEEDS
			effect_tooltip = {
				UKR_vlnt_decrease_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.786 hours = 1 }
			}
		}
	}
	UKR_vlnt_mission_strengthen_the_airforce = {
		icon = GFX_decision_generic_merge_plant_aircraft

		available = { #GOAL
			if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_airforce_1 }
				has_deployed_air_force_size = { size > 299 }
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_airforce_2 }
				has_deployed_air_force_size = { size > 499 }
			}
			else_if = {
				limit = { has_country_flag = UKR_vlnt_mission_strengthen_the_airforce_3 }
				has_deployed_air_force_size = { size > 699 }
			}
		}

		activation = {
			always = no
		}

		cancel_if_not_visible = yes
		is_good = no #Tooltip purposes
		selectable_mission = no
		days_mission_timeout = 365

		timeout_effect = { #MISSION FAILS
			effect_tooltip = {
				UKR_vlnt_increase_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.785 hours = 1 }
			}
		}

		complete_effect = { #MISSION SUCCEEDS
			effect_tooltip = {
				UKR_vlnt_decrease_big = yes
			}

			hidden_effect = {
				country_event = { id = ukraine.786 hours = 1 }
			}
		}
	}
	UKR_debug_vlnt_add_20 = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			factor = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			UKR_vlnt_increase_big = yes
		}
	}
	UKR_debug_vlnt_dec_20 = {
		priority = 999

		icon = generic_decision

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		fire_only_once = no

		cost = 0
		days_remove = 0
		days_re_enable = 0

		complete_effect = {
			UKR_vlnt_decrease_big = yes
		}
	}
	
}
WUA_coal_basin_development = {
	WUA_mines_of_galicia = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 91
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 1
			91 = {
				is_owned_and_controlled_by = ROOT
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
		}

		cancel_trigger = {
			91 = { NOT = { is_owned_and_controlled_by = ROOT } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = {
			91 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = coal
					amount = 6
				}
			}
		}	
	}
	WUA_mines_of_volyn = { 
		
		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 93
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 1
			93 = {
				is_owned_and_controlled_by = ROOT
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
		}

		cancel_trigger = {
			93 = { NOT = { is_owned_and_controlled_by = ROOT } }
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}
		remove_effect = {
			93 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = coal
					amount = 6
				}
			}
		}	
	}
}
CUA_foreign_support = {
	CUA_create_airforce = {
		icon = generic_air
		available = {
			has_equipment = { small_plane_airframe > 24 }
		}
		visible = {
			has_country_flag = CUA_create_airforce
		}

		cost = 10

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes
		days_remove = 0

		complete_effect = {
			send_equipment = {
				target = CUA
				type = small_plane_airframe
				amount = 25
			}
			CUA = { country_event = carpathian.27 }
		}
	}
}
ZKL_japan_investments = {
	ZKL_investments_in_civil_industry = {

		icon = generic_factory

		fire_only_once = yes

		days_remove = 120
		cost = 50

		available = {
			NOT = { has_war_with = JAP }
			country_exists = JAP
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	ZKL_investments_in_military_industry = {

		icon = generic_tank

		fire_only_once = yes

		days_remove = 120
		cost = 50
		
		available = {
			NOT = { has_war_with = JAP }
			country_exists = JAP
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = ZKL_investments_in_military_industry
				bonus = 1.0
				uses = 1
				category = armor
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	ZKL_joint_scientific_development = {

		icon = generic_research

		fire_only_once = yes

		days_remove = 60
		cost = 50

		available = {
			NOT = { has_war_with = JAP }
			country_exists = JAP
		}

		remove_effect = {
			add_to_tech_sharing_group = ZKL_JAP_share_research
			JAP = {
				add_to_tech_sharing_group = ZKL_JAP_share_research
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	ZKL_japan_builders = {

		icon = generic_construction
		fire_only_once = yes

		days_remove = -1
		cost = 100

		available = {
			NOT = { has_war_with = JAP }
			country_exists = JAP
		}

		remove_trigger = {
			OR = {
				has_war_with = JAP
				NOT = { country_exists = JAP }
			}
		}

		modifier = {
			production_speed_buildings_factor = 0.15
		}

		ai_will_do = {
			factor = 1
		}
	}
}
KUB_internal_factions = {

	KUB_ai_select_left_path  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 10
				is_puppet_of = UKR
			}
			modifier = {
				factor = 0.1
				UKR = { has_government = communism }
			}
			modifier = {
				factor = 0
				NOT = { country_exists = UKR }
			}
		}

		visible = {
			is_ai = yes
		}

		available = {
			NOT = { has_decision = KUB_ai_select_center_path }
			NOT = { has_decision = KUB_ai_select_right_path }
			NOT = { has_country_flag = KUB_AI_go_right }
			NOT = { has_country_flag = KUB_AI_go_center }
		}

		days_remove = 0

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = KUB_AI_go_left
			log = "KUB_AI_go_left"
		}
	}

	KUB_ai_select_center_path  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 10
				has_war_with = UKR
			}
			modifier = {
				factor = 2
				is_puppet = no
			}
		}

		visible = {
			is_ai = yes
		}

		available = {
			NOT = { has_decision = KUB_ai_select_left_path }
			NOT = { has_decision = KUB_ai_select_right_path }
			NOT = { has_country_flag = KUB_AI_go_right }
			NOT = { has_country_flag = KUB_AI_go_left }
		}

		days_remove = 0

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = KUB_AI_go_center
			log = "KUB_AI_go_center"
		}
	}

	KUB_ai_select_right_path  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 10
				has_war_with = UKR
			}
			modifier = {
				factor = 10
				is_puppet_of = POL
			}
		}

		visible = {
			is_ai = yes
		}

		available = {
			NOT = { has_decision = KUB_ai_select_left_path }
			NOT = { has_decision = KUB_ai_select_center_path }
			NOT = { has_country_flag = KUB_AI_go_center }
			NOT = { has_country_flag = KUB_AI_go_left }
		}

		days_remove = 0

		fire_only_once = yes

		cost = 0

		complete_effect = {
			set_country_flag = KUB_AI_go_right
			log = "KUB_AI_go_right"
		}
	}

	KUB_proukrainian_speech  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				OR = {
					has_country_flag = KUB_AI_go_right
					has_country_flag = KUB_AI_go_center
				}
			}
		}

		available = {
			NOT = { has_country_flag = KUB_internal_affairs_ongoing_flag }
		}

		days_remove = 7

		days_re_enable = 14

		visible = {
			check_variable = { kub_blacksea_support_var < 75 }
		}

		cost = 15

		complete_effect = {
			set_country_flag = KUB_internal_affairs_ongoing_flag
		}

		remove_effect = {
			add_to_variable = { kub_blacksea_support_var = 8 }
			add_to_variable = { kub_neutrals_support_var = -4 }
			add_to_variable = { kub_democratic_support_var = -4 }
			clr_country_flag = KUB_internal_affairs_ongoing_flag
			custom_effect_tooltip = add_8_blacksea_support_tt
		}
	}
	KUB_prorussian_speech  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				OR = {
					has_country_flag = KUB_AI_go_left
					has_country_flag = KUB_AI_go_center
				}
			}
		}

		available = {
			NOT = { has_country_flag = KUB_internal_affairs_ongoing_flag }
		}

		days_remove = 7

		days_re_enable = 14

		visible = {
			check_variable = { kub_neutrals_support_var < 75 }
		}

		cost = 15

		complete_effect = {
			set_country_flag = KUB_internal_affairs_ongoing_flag
		}

		remove_effect = {
			add_to_variable = { kub_blacksea_support_var = -4 }
			add_to_variable = { kub_neutrals_support_var = 8 }
			add_to_variable = { kub_democratic_support_var = -4 }			
			clr_country_flag = KUB_internal_affairs_ongoing_flag
			custom_effect_tooltip = add_8_neutrals_support_tt
		}
	}
	KUB_procentrists_speech  = {

		icon = eng_propaganda_campaigns

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				OR = {
					has_country_flag = KUB_AI_go_left
					has_country_flag = KUB_AI_go_right
				}
			}
		}

		available = {
			NOT = { has_country_flag = KUB_internal_affairs_ongoing_flag }
		}

		days_remove = 7

		days_re_enable = 14

		visible = {
			check_variable = { kub_democratic_support_var < 75 }
		}

		cost = 15

		complete_effect = {
			set_country_flag = KUB_internal_affairs_ongoing_flag
		}

		remove_effect = {
			add_to_variable = { kub_blacksea_support_var = -4 }
			add_to_variable = { kub_neutrals_support_var = -4 }
			add_to_variable = { kub_democratic_support_var = 8 }
			clr_country_flag = KUB_internal_affairs_ongoing_flag
			custom_effect_tooltip = add_8_democratic_support_tt
		}
	}
}
CRI_general_decisions = {
	CRI_supplies_from_west = {
		icon = ger_military_buildup

		available = {
			has_war = yes
			has_idea = CRM_pyotr_struve
			any_other_country = {
				is_major = yes
				has_government = democratic
				NOT = { has_war_with = ROOT }
			}
		}

		visible = {
			has_completed_focus = CRI_invite_russians_in_government
			has_government = democratic
		} 

		fire_only_once = no

		days_remove = 30
		days_re_enable = 120 
		cost = 75

		remove_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = 1000 } 
			add_equipment_to_stockpile = { type = artillery_equipment amount = 75 } 
			add_equipment_to_stockpile = { type = support_equipment amount = 200 }
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
				}
				add_equipment_to_stockpile = {
					type = fighter_equipment_1
					amount = 10
				}
			}
			else = {
				create_equipment_variant = {
					name = "Hawker Hurricane" 
					type = small_plane_airframe_1
					allow_without_tech = yes
					modules = {
						fixed_main_weapon_slot = light_mg_4x
						fixed_auxiliary_weapon_slot_1 = light_mg_4x
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_ENG_fighter1_medium"
				}
				add_equipment_to_stockpile = {
					type = small_plane_airframe
					amount = 10 
					producer = CRI
					variant_name = "Hawker Hurricane"
				}
			} 
		}

		ai_will_do = {
			factor = 1
		}
	}
	CRI_warriors_of_jihad = {
		icon = generic_nationalism

		available = {
			any_other_country = {
				is_major = yes
				has_government = communism
				has_war_with = ROOT
			}
		}

		visible = {
			has_completed_focus = CRI_recreate_muftiate
			has_government = neutrality
			has_capitulated = no
		} 

		fire_only_once = no

		days_remove = 30
		days_re_enable = 90 
		cost = 50

		remove_effect = {
			if = {
				limit = { NOT = { has_template = "Mujahideens" } }
				division_template = {
					name = "Mujahideens" 
					template_counter = 33
					is_locked = yes		
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
					}
				}
			}
			capital_scope = {
				create_unit = {
					division = "name = \"Mujahideens\" division_template = \"Mujahideens\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
					owner = ROOT
					prioritize_location = 705
				}
			}
			if = {
				limit = {
					has_any_power_balance = yes
				}
				add_power_balance_value = {
					id = CRI_power_balance
					value = -0.05
				}			
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	CRI_disband_mujahideens = {
		icon = generic_military

		available = {
			has_war = no
		}

		visible = {
			has_template = "Mujahideens"
		} 

		fire_only_once = no

		days_remove = 0
		days_re_enable = 1 
		cost = 50

		remove_effect = {
			delete_unit_template_and_units = {
				division_template = "Mujahideens"
				disband = yes
			}
			if = {
				limit = {
					has_any_power_balance = yes
				}
				add_power_balance_value = {
					id = CRI_power_balance
					value = 0.05
				}			
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	CRI_answer_the_call = {
		icon = generic_form_nation

		visible = {
			has_completed_focus = CRI_international_support
			has_government = communism
			has_war = no
		}

		available = {
			any_other_country = {
				has_government = communism
				has_war = yes
				NOT = { has_war_with = ROOT }
			}
			num_divisions > 5
		}

		remove_effect = {
			add_ideas = CRI_international_brigades
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_tatarstan = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			249 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					249 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					TAT = { transfer_state = 249 }
					SOV = { 
						delete_unit = { state = 249 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = TAT
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = TAT }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_chuvashia = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			256 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					256 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					CHU = { transfer_state = 256 }
					SOV = { 
						delete_unit = { state = 256 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = CHU
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = CHU }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_bashkiria = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			651 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					651 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					BSK = { transfer_state = 651 }
					SOV = { 
						delete_unit = { state = 651 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = BSK
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = BSK }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_cherkessia = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			827 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					827 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					KBK = { transfer_state = 827 }
					SOV = { 
						delete_unit = { state = 827 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = KBK
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = KBK }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_chechnya = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			821 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					821 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					CIN = { transfer_state = 821 }
					SOV = { 
						delete_unit = { state = 821 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = CIN
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = CIN }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_dagestan = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			232 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					232 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					DAG = { transfer_state = 232 }
					SOV = { 
						delete_unit = { state = 232 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = DAG
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = DAG }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_rebellion_in_azerbaijan = {
		icon = generic_independence

		visible = {
			has_war_with = SOV
			has_completed_focus = CRI_pan_turkic_congress
			229 = {
				is_owned_and_controlled_by = SOV
			}
		}

		remove_effect = {
			random_list = {
				60 = {
					229 = {
						add_dynamic_modifier = {
							modifier = CRI_islamist_insurgency
							days = 365
							scope = SOV
						}
					}
				}
				40 = {
					AZR = { transfer_state = 229 }
					SOV = { 
						delete_unit = { state = 229 disband = no } # Capture any soldiers in our territory
						declare_war_on = {
							target = AZR
							type = annex_everything
						}
						set_variable = { CRI_rebellion_country = AZR }
						CRI_rebellion_in_SOV_go = yes
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 30
		cost = 75

		ai_will_do = {
			factor = 1
		}
	}
	CRI_integrate_claimed_state = {

		icon = generic_nationalism

		available = {
			FROM = {
				compliance > 35
				is_controlled_by = ROOT
			}
		}

		state_target = yes

		on_map_mode = map_and_decisions_view

		target_array = controlled_states

		target_trigger = {
			FROM = {
				NOT = {
					is_core_of = CRI
				}
				is_claimed_by = CRI
			}
		}

		cost = 75

		fire_only_once = yes

		days_remove = 90

		ai_will_do = {
			factor = 1
		}

		cancel_trigger = {
			FROM = {
				NOT = { is_controlled_by = CRI }
			}
		}

		remove_effect = {
			FROM = {
				add_core_of = CRI
			}
			if = {
				limit = {
					FROM = { is_fully_controlled_by = CRI }	
				}
				FROM = { set_state_owner_to = CRI }
			}
			if = {
				limit = {
					FROM = { state = 200 } 
				}
				set_province_name = { id = 11700 name = CRI_kiziyar }
			}
			if = {
				limit = {
					FROM = { state = 192 } 
				}
				set_province_name = { id = 11670 name = CRI_khadjibey }
				192 = { set_state_name = CRI_khadjibey }
			}
			if = {
				limit = {
					FROM = { state = 227 } 
				}
				set_province_name = { id = 6420 name = CRI_balysarai }
			}
			if = {
				limit = {
					FROM = { state = 234 } 
				}
				set_province_name = { id = 719 name = CRI_sudzhukkale }
			}
			if = {
				limit = {
					FROM = { state = 197 } 
				}
				set_province_name = { id = 6597 name = CRI_tatar_orel }
			}
			add_to_variable = { CRI_numb_of_integration = 1 }
			if = {
				limit = {
					check_variable = { CRI_numb_of_integration > 9 }
				}
				set_cosmetic_tag = CRI_GREAT
				set_country_flag = cua_restore_crimean_khanate_flag
			}

		}
	}
	CRI_silent_harbor = {

		icon = generic_decision

		visible = {
	    	is_subject = yes
	    	is_in_faction = yes
	    	has_war = yes
		}

		available = {
			surrender_progress < 0.2
			custom_trigger_tooltip = {
				tooltip = CRI_silent_harbor_tt
				OVERLORD = { has_capitulated = yes }
			}
		}

        cost = 120
        fire_only_once = yes
        
        days_remove = -1

        modifier = {
            research_speed_factor = 0.05
            weekly_manpower = 100
            #autonomy_gain = 0.5
            autonomy_gain_warscore_factor = 2
            production_speed_bunker_factor = 0.3
            production_speed_coastal_bunker_factor = 0.3
        }

        remove_trigger = {
        	OR = {
        		is_subject = no
        		has_capitulated = yes
        		OVERLORD = { has_capitulated = no }
        	}
        }

        ai_will_do = {
			factor = 1
		}
    }
}
CRI_water_problems = {
	CRI_build_north_crimean_canal = {

		icon = hol_drain_water_lines

		allowed = {
			tag = CRI
		}

		available = {
			num_of_civilian_factories > 7
			OR = {
				196 = { is_owned_and_controlled_by = ROOT }
				NOT = { has_war_with = UKR }
			}
		}

		visible = {
			NOT = { has_global_flag = north_crimean_canal_is_built }
			196 = {
				OR = {
					is_owned_and_controlled_by = CRI
					is_owned_and_controlled_by = UKR
				}
				
			}
			1051 = {
				OR = {
					is_owned_and_controlled_by = CRI
					is_owned_and_controlled_by = UKR
				}
			}
		}

		cancel_trigger = {
			OR = {
				1051 = {
					NOT = { is_owned_and_controlled_by = ROOT }
				}
				196 = {
					controller = {
						has_war_with = ROOT
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 365
		cost = 100

		modifier = {
			consumer_goods_factor = 0.15
		}

		remove_effect = {
			set_global_flag = north_crimean_canal_is_built
			196 = { 
				set_state_category = town 
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
			1051 = { 
				set_state_category = town 
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
			137 = {
				add_dynamic_modifier = {
					modifier = CRI_land_irrigation
				}
			}
		}

		ai_will_do = {
			factor = 1
		}

	}
	CRI_build_new_intake_north = {

		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 1051
			}
		}
		
		visible = {
			1051 = { 
				is_owned_and_controlled_by = ROOT
			} 
			check_variable = { global.north_crimea_water_coming < 2000 }
		}

		remove_trigger = {
			1051 = { NOT = { is_controlled_by = ROOT } } 
		}

		remove_effect = {
			add_to_variable = { global.north_crimea_water_coming = 50 }
			1051 = { custom_effect_tooltip = crm_water_coming_increase_sm_tt }
		}

		modifier = {
			consumer_goods_factor = 0.10
		}

		fire_only_once = no	

		days_remove = 30
		days_re_enable = 60
		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { global.north_crimea_water_coming < global.north_crimea_water_flow }
			}
		}
	}
	CRI_build_new_intake_south = {

		icon = generic_construction

		highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		
		visible = {
			137 = { 
				is_owned_and_controlled_by = ROOT
			} 
			check_variable = { global.south_crimea_water_coming < 2000 }
		}

		remove_trigger = {
			137 = { NOT = { is_controlled_by = ROOT } } 
		}

		remove_effect = {
			add_to_variable = { global.south_crimea_water_coming = 50 }
			137 = { custom_effect_tooltip = crm_water_coming_increase_sm_tt }
		}

		modifier = {
			consumer_goods_factor = 0.10
		}

		fire_only_once = no	

		days_remove = 30
		days_re_enable = 60
		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { global.south_crimea_water_coming < global.south_crimea_water_flow }
			}
		}
	}
	CRI_saving_water_north = {

		icon = hol_draw_up_staff_plans

		highlight_states = {
			highlight_state_targets = {
				state = 1051
			}
		}
		
		visible = {
			1051 = { 
				is_owned_and_controlled_by = ROOT
			} 
		}

		remove_trigger = {
			1051 = { NOT = { is_controlled_by = ROOT } } 
		}

		complete_effect = {
			add_to_variable = { global.north_crimea_water_flow = -200 }
			1051 = { custom_effect_tooltip = crm_water_flow_decrease_big_tt }
		}

		remove_effect = {
			add_to_variable = { global.north_crimea_water_flow = 200 }
			1051 = { custom_effect_tooltip = crm_water_flow_increase_big_tt }
		}

		fire_only_once = no	

		days_remove = 90
		days_re_enable = 0
		cost = 35

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { global.north_crimea_water < 500 }
			}
		}
	}
	CRI_saving_water_south = {

		icon = hol_draw_up_staff_plans

		highlight_states = {
			highlight_state_targets = {
				state = 137
			}
		}
		
		visible = {
			137 = { 
				is_owned_and_controlled_by = ROOT
			} 
		}

		remove_trigger = {
			137 = { NOT = { is_controlled_by = ROOT } } 
		}

		complete_effect = {
			add_to_variable = { global.south_crimea_water_flow = -200 }
			137 = { custom_effect_tooltip = crm_water_flow_decrease_big_tt }
		}

		remove_effect = {
			add_to_variable = { global.south_crimea_water_flow = 200 }
			137 = { custom_effect_tooltip = crm_water_flow_increase_big_tt }
		}

		fire_only_once = no	

		days_remove = 90
		days_re_enable = 0
		cost = 35

		ai_will_do = {
			factor = 0
			modifier = {
				add = 2
				check_variable = { global.south_crimea_water < 500 }
			}
		}
	}
	CRI_drought_in_1937 = {

		icon = hol_draw_up_staff_plans

		visible = { always = no }

		complete_effect = {
			add_to_variable = { global.south_crimea_water_coming = -200 }
			add_to_variable = { global.north_crimea_water_coming = -200 }
			137 = { custom_effect_tooltip = crm_water_coming_decrease_big_tt }
			1051 = { custom_effect_tooltip = crm_water_coming_decrease_big_tt }
		}

		remove_effect = {
			add_to_variable = { global.south_crimea_water_coming = 100 }
			add_to_variable = { global.north_crimea_water_coming = 100 }
			137 = { custom_effect_tooltip = crm_water_coming_increase_md_tt }
			1051 = { custom_effect_tooltip = crm_water_coming_increase_md_tt }
		}

		fire_only_once = yes	

		days_remove = 90
		cost = 0

	}
}
CRI_investmens = {
	CRI_usa_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_country_flag = CRI_investmens_is_active }
			has_stability > 0.7
			has_idea = free_trade
			NOT = {	has_war_with = USA }
		}

		visible = {
			country_exists = USA
		}

		fire_only_once = yes

		days_remove = 120
		cost = 75

		complete_effect = {
			set_country_flag = CRI_investmens_is_active
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				random_list = {
					50 = {
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
					50 = {
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				
			}
			clr_country_flag = CRI_investmens_is_active
		}

		ai_will_do = {
			factor = 1
		}
	}	
	CRI_british_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_country_flag = CRI_investmens_is_active }
			has_stability > 0.7
			has_idea = free_trade
			NOT = {	has_war_with = ENG }
		}

		visible = {
			country_exists = ENG
		}

		fire_only_once = yes

		days_remove = 120
		cost = 75

		complete_effect = {
			set_country_flag = CRI_investmens_is_active
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				random_list = {
					50 = {
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
					50 = {
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				
			}
			clr_country_flag = CRI_investmens_is_active
		}

		ai_will_do = {
			factor = 1
		}
	}
	CRI_germany_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_country_flag = CRI_investmens_is_active }
			has_stability > 0.7
			has_idea = free_trade
			NOT = {	has_war_with = GER }
		}

		visible = {
			country_exists = GER
		}

		fire_only_once = yes

		days_remove = 120
		cost = 75

		complete_effect = {
			set_country_flag = CRI_investmens_is_active
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				random_list = {
					50 = {
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
					50 = {
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				
			}
			clr_country_flag = CRI_investmens_is_active
		}

		ai_will_do = {
			factor = 1
		}
	}
	CRI_italian_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_country_flag = CRI_investmens_is_active }
			has_stability > 0.7
			has_idea = free_trade
			NOT = {	has_war_with = ITA }
		}

		visible = {
			country_exists = ITA
		}

		fire_only_once = yes

		days_remove = 120
		cost = 75

		complete_effect = {
			set_country_flag = CRI_investmens_is_active
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				random_list = {
					50 = {
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
					50 = {
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				
			}
			clr_country_flag = CRI_investmens_is_active
		}

		ai_will_do = {
			factor = 1
		}
	}
	CRI_french_investments = {

		icon = hol_attract_foreign_investors

		available = {
			NOT = { has_country_flag = CRI_investmens_is_active }
			has_stability > 0.7
			has_idea = free_trade
			NOT = {	has_war_with = FRA }
		}

		visible = {
			country_exists = FRA
		}

		fire_only_once = yes

		days_remove = 120
		cost = 75

		complete_effect = {
			set_country_flag = CRI_investmens_is_active
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				random_list = {
					50 = {
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
					50 = {
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				
			}
			clr_country_flag = CRI_investmens_is_active
		}

		ai_will_do = {
			factor = 1
		}
	}
}
CRI_balance_of_power_category = {
	CRI_bop_add_balance_to_khan = {
		icon = generic_speech

		cost = 25
		
		ai_will_do = {
			factor = 0
		}
		
		days_remove = 7
		days_re_enable = 90
		
		available = { 
			has_government = neutrality
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = 0.10
			}
		}
	}
	CRI_bop_militaty_parade = {
		icon = generic_military

		cost = 50
		
		ai_will_do = {
			factor = 0
		}
		
		days_remove = 7
		days_re_enable = 360
		
		available = { 
			has_government = neutrality
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = 0.15
			}
			army_experience = 5
		}
	}
	CRI_bop_inspection_in_staff = {
		icon = generic_army_support

		cost = 50
		
		ai_will_do = {
			factor = 0
		}
		
		fire_only_once = yes
		days_remove = 30

		modifier = {
			command_power_gain_mult = 0.50
			high_command_cost_factor = -0.50
		}
		
		available = { 
			has_government = neutrality
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = 0.20
			}
		}
	}
	CRI_bop_add_balance_to_mufti = {
		icon = generic_decision

		cost = 25
		
		ai_will_do = {
			factor = 0
		}
		
		days_remove = 7
		days_re_enable = 90
		
		available = { 
			has_government = neutrality
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = -0.10
			}
		}
	}
	CRI_bop_zakat = {
		icon = SWI_support_humanitarian_efforts

		cost = 50
		
		ai_will_do = {
			factor = 0
		}
		
		days_remove = 7
		days_re_enable = 360

		available = { 
			has_government = neutrality
		}

		modifier = {
			consumer_goods_factor = 0.10
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = -0.15
			}
			add_stability = 0.02
			add_popularity = {
				ideology = neutrality
				popularity = 0.03
			}
		}
	}
	CRI_bop_fatwa_of_mufti = {
		icon = SWI_dismiss_council

		cost = 50
		
		ai_will_do = {
			factor = 0
		}
		
		fire_only_once = yes
		days_remove = 30

		modifier = {
			political_advisor_cost_factor = -0.35
			political_power_factor = 0.25
		}
		
		available = { 
			has_government = neutrality
		}
		
		remove_effect = {	
			add_power_balance_value = {
				id = CRI_power_balance
				value = -0.20
			}
		}
	}
}
SKL_general_decisions = {
	SKL_wave_of_settlers = {
		icon = hol_draw_up_staff_plans

		visible = {
			has_completed_focus = UKR_anti_religious_campaign
			num_of_controlled_states > 0
		}

		fire_only_once = no

		days_remove = 180

		remove_effect = {
			random_owned_controlled_state = {
				add_manpower = 50000
				random_list = {
					50 = {
						add_extra_state_shared_building_slots = 1
					}
					50 = {
						ROOT = { add_stability = 0.01 }
					}
				}
			}
			country_event = { id = grayukraine.5 days = 2 }
		}

		ai_will_do = {
			factor = 1
		}
	}
	SKL_build_transukrainian_highway = {
		icon = generic_construction

		fire_only_once = yes

		visible = {
			has_completed_focus = SKL_transukrainian_highway
		}

		days_remove = 365
		cost = 0

		ai_will_do = {
			factor = 0
		}

		modifier = {
			consumer_goods_factor = 0.15
		}

		remove_effect = {
			every_owned_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
			if = {
				limit = {
					can_build_railway = {
						start_province = 4333
						target_province = 9461
						build_only_on_allied = yes
					}
				}
				build_railway = {				
					start_province = 4333
					target_province = 9461
					build_only_on_allied = yes
				}
			}
			else = {
				custom_effect_tooltip = SKL_build_transukrainian_highway_tt
			}
		}
	}	
}
