
UKR_parliament = {
    
	UKR_parliament_lobbying_add5 = {
		icon = generic_political_discourse
		available = {
			NOT = { has_decision = UKR_parliament_lobbying_add10 }
			custom_trigger_tooltip = {
				check_variable = {
					var = ukrainian_parliament_support_add5
					value = 100
					compare = less_than
				}
			}
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_medium_control_range
				}
			}
		}
		visible = {
			always = yes
		}
		cost = 0
		days_remove = 30

		modifier = {
			political_power_gain = -0.3
		}
		
		remove_effect = {
			UKR_parliament_support_add5 = yes
		}
	}
    
	UKR_parliament_lobbying_add10 = {
		icon = generic_political_discourse
		available = {
			NOT = { has_decision = UKR_parliament_lobbying_add5 }
			custom_trigger_tooltip = {
				check_variable = {
					var = ukrainian_parliament_support_add10
					value = 100
					compare = less_than
				}
			}
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_large_control_range
				}
			}
		}
		visible = {
			always = yes
		}
		cost = 0
		days_remove = 30

		modifier = {
			political_power_gain = -0.75
		}

		remove_effect = {
			UKR_parliament_support_add10 = yes
		}
		ai_will_do = {
		 	factor = 2
		 	modifier = {
		 		OR = {
		 			rada_medium_support_trigger = yes
		 			has_war_with = DKR
		 		}
		 		factor = 0
		 	}

		 }
	}
	UKR_debug_add_full_rada_support = {
		priority = 999

		icon = eng_ally_imperialist_coup

		ai_will_do = {
			base = 0
		}

		available = {
			always = yes
		}

		visible = {
			is_debug = yes
		}

		cost = 0

		complete_effect = {
			set_variable = { ukrainian_parliament_support = ukrainian_parliament_total }
			UKR_recalc_parliament_icon_frames = yes
		}
	}
	UKR_amend_the_budget = {
		icon = ger_mefo_bills
		available = {
			rada_low_support_trigger = yes
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_medium_control_range
				}
			}
		}
		cost = 25
		days_remove = 90
		days_re_enable = 275
		ai_will_do = {
			factor = 1
		}
		modifier = { consumer_goods_factor = -0.10 }
		remove_effect = {
			UKR_rada_big_opposition = yes
		}
	}
	UKR_research_grants = {
		icon = generic_research
		available = {
			rada_low_support_trigger = yes
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_medium_control_range
				}
			}
		}
		cost = 25
		days_remove = 90
		days_re_enable = 275
		ai_will_do = {
			factor = 1
		}
		modifier = { research_speed_factor = 0.08 }
		remove_effect = {
			UKR_rada_small_opposition = yes
		}
	}
	UKR_extraordinary_mobilization = {
		icon = generic_prepare_civil_war
		available = {
			rada_medium_support_trigger = yes
			has_war_support > 0.5
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_small_control_range
				}
			}
		}
		cost = 25
		days_remove = 90
		days_re_enable = 275
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			mobilization_speed = 0.3
			training_time_army_factor = -0.20
			weekly_manpower = 1000
		}
		remove_effect = {
			UKR_rada_small_opposition = yes
		}
	}
	UKR_minority_rights_hearings = {
		icon = generic_political_rally
		available = {
			rada_medium_support_trigger = yes
			any_state = {
				is_controlled_by = UKR
				compliance < 60
				NOT = {
					is_core_of = UKR
				}
			}
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_small_control_range
				}
			}
		}
		cost = 25
		days_remove = 90
		days_re_enable = 275
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			compliance_gain = 0.03
		}
		remove_effect = {
			UKR_rada_small_opposition = yes
		}
	}
	UKR_anti_corruption_campaign = {
		icon = generic_fundraising
		available = {
			rada_medium_support_trigger = yes
			if = {
				limit = { has_country_flag = UKR_altdem_bop_is_available }
				is_power_balance_in_range = {
					id = UKR_power_balance
					range < UKR_junta_medium_control_range
				}
			}
		}
		cost = 25
		days_remove = 90
		days_re_enable = 90
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			democratic_drift = 0.10
		}
		remove_effect = {
			UKR_rada_small_opposition = yes
		}
	}
	UKR_penal_battalions_against_dkr = {
		icon = generic_independence
		visible = {
			has_war_with = DKR
			has_country_flag = UKR_altdem_branch_is_available
		}
		available = {
			rada_low_support_trigger = yes
			surrender_progress > 0
		}
		cost = 25
		days_remove = 90
		days_re_enable = 0
		ai_will_do = {
			factor = 2
		}
		complete_effect = {
			add_stability = -0.01
			UKR_rada_small_opposition = yes
			division_template = {
				name = "Shturmova Chastyna"
				is_locked = yes

				regiments = {
					penal_battalion = { x = 0 y = 0 }
					penal_battalion = { x = 0 y = 1 }
					penal_battalion = { x = 0 y = 2 }
					penal_battalion = { x = 1 y = 0 }
					penal_battalion = { x = 1 y = 1 }
					penal_battalion = { x = 1 y = 2 }
				}
				support = {
					artillery = { x = 0 y = 0 }
				}
			}

			capital_scope = {
				create_unit = {
					division = "division_template = \"Shturmova Chastyna\" start_experience_factor = 0.2 start_equipment_factor = 0.8" 
					owner = ROOT
				}
			}
		}
		remove_effect = {
			delete_unit_template_and_units = {
			    division_template = "Shturmova Chastyna"
			    disband = no
			}
			hidden_effect = {
				set_technology = { penal_infantry = 0 popup = no }
			}
		}
	}
	UKR_defence_founds_for_army = {
		icon = generic_merge_plant_tank

		visible = {
			has_war = no
			has_completed_focus = UKR_defense_committee
		}

		available = {
			rada_medium_support_trigger = yes
			NOT = { has_decision = UKR_defence_founds_for_airforces }
			NOT = { has_decision = UKR_defence_founds_for_navy }
		}

		fire_only_once = yes
		cancel_if_not_visible = no
		cost = 25
		days_remove = 365
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			consumer_goods_factor = 0.10
			training_time_army_factor = -0.2
			mobilization_speed = 0.25
			production_speed_bunker_factor = 0.15
		}
		complete_effect = {
			UKR_rada_small_opposition = yes
			if = {
				limit = { has_army_manpower = { size < 350000 } }
				country_event = { id = ukraine.509 days = 1 }
			}
		}
		remove_effect = {
			if = {
				limit = {
					has_country_flag = UKR_defense_committee_army_mission
				}
				country_event = ukraine.512
			}
		}
	}

	UKR_defence_founds_for_airforces = {
		icon = generic_air

		visible = {
			has_war = no
			has_completed_focus = UKR_defense_committee
		}

		available = {
			rada_medium_support_trigger = yes
			NOT = { has_decision = UKR_defence_founds_for_army }
			NOT = { has_decision = UKR_defence_founds_for_navy }
		}

		fire_only_once = yes
		cancel_if_not_visible = no
		cost = 25
		days_remove = 365
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			consumer_goods_factor = 0.10
		}
		complete_effect = {
			UKR_rada_small_opposition = yes
			if = {
				limit = { has_deployed_air_force_size = { size < 300} }
				country_event = { id = ukraine.510 days = 1 }
			}
			add_timed_idea  = {
				idea = continuous_air_production
				days = 365
			}
		}
		remove_effect = {
			if = {
				limit = {
					has_country_flag = UKR_defense_committee_air_mission
				}
				country_event = ukraine.513
			}
		}
	}

	UKR_defence_founds_for_navy = {
		icon = generic_naval

		visible = {
			has_war = no
			has_completed_focus = UKR_defense_committee
		}

		available = {
			rada_medium_support_trigger = yes
			NOT = { has_decision = UKR_defence_founds_for_army }
			NOT = { has_decision = UKR_defence_founds_for_airforces }
		}

		fire_only_once = yes
		cancel_if_not_visible = no
		cost = 25
		days_remove = 365
		ai_will_do = {
			factor = 1
		}
		modifier = { 
			consumer_goods_factor = 0.10
			industrial_capacity_dockyard = 0.2
		}
		complete_effect = {
			UKR_rada_small_opposition = yes
			if = {
				limit = { has_navy_size = { size < 10 } }
				country_event = { id = ukraine.511 days = 1 }
			}
		}
		remove_effect = {
			if = {
				limit = {
					has_country_flag = UKR_defense_committee_naval_mission
				}
				country_event = ukraine.514
			}
		}
	}

}