SER_decision_category_saint_adrews_assembly = {

	SER_mission_the_saint_adrews_assembly = {

		icon = constitution

		#allowed = { tag = SER }

		available = {
			has_completed_focus = SER_end_oligarch_rule
		}

		activation = {
			always = no
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 130

		timeout_effect = {
			hidden_effect = {
				activate_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		complete_effect = {
			country_event = SER_politics.4
		}

		ai_will_do = {
			base = 100
		}
	}
	#Appeal to the Masses
	SER_decision_appeal_masses = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			
		}

		visible = {
			has_active_mission = SER_mission_the_saint_adrews_assembly
		}

		fire_only_once = no

		cost = 40
		
		days_remove = 30
		
		modifier = {
			political_power_gain = -0.07
			stability_weekly = 0.01
		}
		
		cancel_trigger = {
			has_war = yes
			NOT = {
				has_active_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		remove_effect = {
			add_popularity = {
				ideology = centrism
				popularity = 0.05
			}
			add_power_balance_value = {
				id = SER_Balance_of_Power
				value = 0.15
			}
			add_stability = 0.1
		}

		ai_will_do = {
			base = 500
		}
	}
	#Strong Partisan
	SER_decision_strong_partisan = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_strong_partisan
		}

		visible = {
			has_active_mission = SER_mission_the_saint_adrews_assembly
		}

		fire_only_once = yes

		cost = 30
		
		days_remove = 30
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			has_war = yes
			NOT = {
				has_active_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		remove_effect = {
			add_popularity = {
				ideology = centrism
				popularity = 0.02
			}
			add_power_balance_value = {
				id = SER_Balance_of_Power
				value = 0.1
			}
			set_temp_variable = { political_legitimacy_change = -0.05 }
			eoanb_political_legitimacy_change = yes
		}

		ai_will_do = {
			base = 500
		}
	}
	#Foreign Relations
	SER_decision_foreign_relation_direction = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			custom_trigger_tooltip = {
				tooltip = SER_unlocked_foreign_tt
				has_country_flag = SER_Foreign_Relations
			}
		}

		visible = {
			has_active_mission = SER_mission_the_saint_adrews_assembly
		}

		fire_only_once = yes

		cost = 20
		
		days_remove = 30
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			has_war = yes
			NOT = {
				has_active_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		remove_effect = {
			country_event = {id = SER_politics.53}
		}

		ai_will_do = {
			base = 500
		}
	}
	#Strengthen Dynasty
	SER_decision_strengthen_dynasty = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			
		}

		visible = {
			has_active_mission = SER_mission_the_saint_adrews_assembly
		}

		fire_only_once = no

		cost = 40
		
		days_remove = 30
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			has_war = yes
			NOT = {
				has_active_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		remove_effect = {
			add_stability = 0.05
			add_popularity = {
				ideology = centrism
				popularity = -0.03
			}
			add_power_balance_value = {
				id = SER_Balance_of_Power
				value = -0.1
			}
			set_temp_variable = { political_legitimacy_change = 0.05 }
			eoanb_political_legitimacy_change = yes
		}

		ai_will_do = {
			base = 500
		}
	}
	#Improve Public Perception of the Prince
	SER_decision_improve_public_image = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			
		}

		visible = {
			has_active_mission = SER_mission_the_saint_adrews_assembly
		}

		fire_only_once = no

		cost = 55
		
		days_remove = 30
		
		modifier = {
			political_power_gain = -0.1
		}
		
		cancel_trigger = {
			has_war = yes
			NOT = {
				has_active_mission = SER_mission_the_saint_adrews_assembly
			}
		}

		remove_effect = {
			add_popularity = {
				ideology = centrism
				popularity = -0.05
			}
			add_power_balance_value = {
				id = SER_Balance_of_Power
				value = -0.15
			}
			set_temp_variable = { political_legitimacy_change = 0.1 }
			eoanb_political_legitimacy_change = yes
		}

		ai_will_do = {
			base = 500
		}
	}
}

SER_decision_category_political = {
	SER_imprison_pro_russian_supporters = { # Imprison Pro Russian Sympathisers
		icon = GFX_decision_icon_default

		allowed = { tag = SER }
		visible = {
			has_completed_focus = SER_ban_russophile
		}

		fire_only_once = yes

		cost = 30
		days_remove = 40
		modifier = {
			political_power_gain = 0.1
		}
		remove_effect = {
			RUS = {
				add_opinion_modifier = {
					target = SER
					modifier = small_decrease
				}
			}
			add_stability = -0.05
			increase_ps_by_one = yes
		}

		ai_will_do = {
			base = 100
		}
	}

	SER_mission_the_malogospojinska_assembly = {

		icon = constitution

		#allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_mission_malogospojinska_assembly_trigger_tt
				hidden_trigger = {
					has_stability > 0.35
					has_idea = SER_idea_civil_servant_law_1861
					has_completed_focus = SER_malogospojinska_assembly
				}
			}
		}

		activation = {
			always = no
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 135

		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -100
				add_stability = -0.05
				set_temp_variable = { eoanb_prestige_change = -10 }
				eoanb_change_prestige_score = yes
				decrease_ps_by_one = yes
			}
		}

		complete_effect = {
			add_political_power = 100
			add_stability = 0.05
			set_temp_variable = { eoanb_prestige_change = 10 }
			eoanb_change_prestige_score = yes
			increase_ps_by_one = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Commercial Court
	SER_decision_commercial_court = {

		#icon = newspaper_open

		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_single_commercial_court
		}

		visible = {
			has_active_mission = SER_mission_the_malogospojinska_assembly
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 60
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			has_war = yes
		}

		remove_effect = {
			add_political_power = 75
			add_stability = 0.02
			add_tech_bonus = { bonus = 0.05 uses = 1 category = humanities_tech }
			add_tech_bonus = { bonus = 0.05 uses = 1 category = economics_tech }
			add_popularity = {
				ideology = ROOT
				popularity = 0.03
			}
		}

		ai_will_do = {
			base = 500
		}
	}
	
	SER_forced_resignation_decision = {

		icon = GFX_decision_icon_default

		#allowed = { tag = SER }

		visible = {
			has_country_flag = SER_coup
		}

		fire_only_once = yes
		
		days_remove = 30
		cost = 20
		modifier = {
			political_power_gain = -0.1
		}
		remove_effect = {
			add_stability = 0.05
			add_political_power = 50
			add_popularity = {
				ideology = centrism
				popularity = -0.05
			}
			
			hidden_effect = {
				set_country_flag = SER_purged_council
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	SER_trusted_councillors = {
		icon = GFX_decision_icon_default

		#allowed = { tag = SER }
		visible = {
			has_country_flag = SER_coup
		}
		available = {
			has_country_flag = SER_purged_council
		}

		fire_only_once = yes

		days_remove = 30
		cost = 20
		modifier = {
			political_power_gain = -0.1
		}

		remove_effect = {
			add_stability = 0.05
			add_political_power = 50
			add_popularity = {
				ideology = centrism
				popularity = -0.05
			}
			clr_country_flag = SER_purged_council
			hidden_effect = {
				country_event = {id = SER_politics.48 days = 2}
			}
		}

		ai_will_do = {
			base = 100
		}
	}

}

SER_decision_category_french_mission  = {
	
	SER_mission_mondain_army_reforms = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_idea = SER_Hipolit_Mondain_HC
			has_equipment = {
				infantry_equipment > 2999
			}
			OR = {
				has_idea = limited_conscription
				has_idea = extensive_conscription
			}
			OR = {
				has_idea = army_spending_level_3
				has_idea = army_spending_level_4
			}
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1800
		
		cancel_trigger = {
			NOT = {
				has_idea = SER_Hipolit_Mondain_HC
			}
		}
		
		timeout_effect = {
			add_political_power = -100
			decrease_ps_by_one = yes
			add_stability = -0.1
			add_war_support = -0.1
			country_event = SERmisc.12
		}
		
		complete_effect = {
			army_experience = 25
			add_political_power = 100
			add_stability = 0.1
			add_war_support = 0.1
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 2
				category = land_doctrine
			}
			country_event = SERmisc.11
		}
	}
	
	SER_decision_kragujevac_fortress_renovation = {

		icon = fort

		#allowed = { tag = SER }

		available = {
			has_completed_focus = SER_kragujevac_factory
			has_war = no
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 50
		
		modifier = {
			political_power_gain = -0.05
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			SER = { NOT = { owns_state = 107 } }
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			107 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 6998 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_purchase_foreign_firearms = {
		
		icon = generic_military

		available = {
			OR = {
				has_completed_focus = SER_contract_with_french
				has_completed_focus = SER_contract_with_belgian
			}
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}
		
		#allowed = { tag = SER }

		fire_only_once = no
		is_good = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 60
		
		days_re_enable = 360

		modifier = {
			political_power_gain = -0.05
			consumer_goods_expected_value = 0.01
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = { 
			if = { 
				limit = {
					has_completed_focus = SER_contract_with_belgian
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 500 producer = BEL } 
			}
			else_if = {
				limit = {
					has_completed_focus = SER_contract_with_french
				}
				add_equipment_to_stockpile = { type = infantry_equipment amount = 500 producer = FRA } 
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_purchase_support_equipment = {
		
		icon = generic_military

		available = {
			OR = {
				has_completed_focus = SER_contract_with_french
				has_completed_focus = SER_contract_with_belgian
			}
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}
		#allowed = { tag = SER }

		fire_only_once = no
		is_good = yes

		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 1
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 60
		
		days_re_enable = 360

		modifier = {
		    political_power_gain = -0.05
			consumer_goods_expected_value = 0.01
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = {
			if = { 
				limit = {
					has_completed_focus = SER_contract_with_belgian
				}
				add_equipment_to_stockpile = { type = support_equipment amount = 500 producer = BEL } 
			}
			else_if = {
				limit = {
					has_completed_focus = SER_contract_with_french
				}
				add_equipment_to_stockpile = { type = support_equipment amount = 500 producer = FRA } 
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_purchase_foreign_artillery = {
		
		icon = artillery

		available = {
			has_completed_focus = SER_la_hitte_cannons
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}
		
		#allowed = { tag = SER }
		
		fire_only_once = no
		is_good = yes
		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 1.5
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 60
		
		days_re_enable = 360

		modifier = {
		    political_power_gain = -0.05
			consumer_goods_expected_value = 0.01
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1.5 }
			add_money_with_tooltip_effect = yes		
		}

		remove_effect = { 
			add_equipment_to_stockpile = { type = cannon_equipment_0 amount = 75 producer = FRA }
		}

		ai_will_do = {
			base = 1000
		}
	}
		
	SER_decree_on_state_armory = {

		icon = generic_construction

		#allowed = { tag = SER }

		available = {
			has_war = no
			has_completed_focus = SER_kragujevac_factory
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		days_remove = 260

		custom_cost_trigger = {
			
			set_temp_variable = {
				amount_of_money_to_check = 5
			}
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			state = 107
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -5 }
			add_money_with_tooltip_effect = yes	
		}

		remove_effect = {
			107 = { add_extra_state_shared_building_slots = 1 }
			107 = { add_building_construction = { type = arms_factory level = 1 instant_build = yes } }
		}

		modifier = {
			civilian_factory_use = 1
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			SER = { NOT = { owns_state = 107 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_stragari_gunpodwer_magazine = {

		icon = generic_construction

		#allowed = { tag = SER }

		available = {
			has_war = no
			has_completed_focus = SER_stragari_gunpowder
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		days_remove = 260

		custom_cost_trigger = {
			
			set_temp_variable = {
				amount_of_money_to_check = 5
			}
		}
		custom_cost_text = eoanb_money_cost_text

		highlight_states = {
			state = 107
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -5 }
			add_money_with_tooltip_effect = yes	
		}
		
		remove_effect = {
			107 = { add_extra_state_shared_building_slots = 1 }
			107 = { add_building_construction = { type = arms_factory level = 1 instant_build = yes } }
		}

		modifier = {
			civilian_factory_use = 1
			production_speed_buildings_factor = -0.05
		}
		
		
		
		cancel_trigger = {
			SER = { NOT = { owns_state = 107 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_zajecar_fortification = {
	
		icon = fort

		highlight_states = {
			state = 941
		}
		
		#allowed = { tag = SER }

		available = {
			has_war = no
			has_completed_focus = SER_zajecar_fortification
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}
		
		cancel_trigger = {
			NOT = { owns_state = 941 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes	
			if = {
				limit = {
					has_government = centrism
				}
				add_popularity = {
					ideology = traditional_conservatism
					popularity = 0.03
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = {
					ideology = centrism
					popularity = 0.03
				}
			}
		}
		
		remove_effect = {
			army_experience = 25
			add_war_support = 0.02
			941 = { add_building_construction = { type = bunker level = 2 instant_build = yes province = 9756 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_danube_forts = {
	
		icon = fort

		highlight_states = {
			state = 107
		}
		
		#allowed = { tag = SER }

		available = {
			has_war = no
			has_completed_focus = SER_danub_fortification
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}
		
		cancel_trigger = {
			NOT = { owns_state = 107 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes	
		}
		
		remove_effect = {
			army_experience = 25
			107 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 11583 } }
			107 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 6998 } }
			add_war_support = 0.02
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_belgrad_fortification = { 

		icon = fort

		highlight_states = {
			state = 107
		}
		
		#allowed = { tag = SER }

		available = {
			has_war = no
			has_completed_focus = SER_belgrad_fortification
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}
		
		cancel_trigger = {
			NOT = { owns_state = 107 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes	

		}
		
		remove_effect = {
			army_experience = 25
			add_war_support = 0.02
			107 = { add_building_construction = { type = bunker level = 2 instant_build = yes province = 11586 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_increase_army_budget = {
	
		icon = money

		#allowed = { tag = SER }

		available = {
			has_completed_focus = SER_mondain_army_reform
		}

		visible = {
			has_active_mission = SER_mission_mondain_army_reforms
			OR = {
				has_idea = army_spending_level_1
				has_idea = army_spending_level_2
				has_idea = army_spending_level_3
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 150
		
		modifier = {
			political_power_gain = -0.1
			war_support_weekly = -0.001
		}
		
		complete_effect = {
			add_stability = -0.03
			add_war_support = -0.03
		}
		
		remove_effect = {  
			effect_increase_army_spending = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_belgrade_infantry_exercises = {
		icon = generic_prepare_civil_war
		
		#allowed = { tag = SER }

		available = {
			has_completed_focus = SER_belgrade_military_drills
			divisions_in_state = {
				size > 3
				state = 107
			}
		}
		
		visible = {
			has_completed_focus = SER_blaznavac_war_minister
		}
		
		fire_only_once = no

		cost = 50

		days_remove = 120

		complete_effect = {
			add_manpower = -500
		}

		modifier = {
			experience_gain_army_factor = 0.15
		}

		remove_effect = {
			add_manpower = 500
			army_experience = 10
		}
		
		ai_will_do = {
			base = 10
		}
	}
	
	SER_decision_belgrade_artillery_exercises = {
	
		icon = artillery
		
		#allowed = { tag = SER }

		available = {
			has_completed_focus = SER_belgrade_military_drills
			divisions_in_state = {
				size > 0
				state = 107
			}
		}
		
		visible = {
			has_completed_focus = SER_blaznavac_war_minister
		}
		
		fire_only_once = no

		cost = 50

		days_remove = 120

		complete_effect = {
			add_manpower = -100
		}

		modifier = {
			experience_gain_army_factor = 0.15
		}

		remove_effect = {
			add_manpower = 100
			army_experience = 5
			add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = artillery
			}
		}
		
		ai_will_do = {
			base = 10
		}
	}
	
	SER_decision_franco_prussian_observer = {
		icon = artillery
		
		allowed = { 
			tag = SER
		}

		available = {
			has_completed_focus = SER_franco_prussian_observer
			has_opinion = {
                target = PRS
                value > 74
            }
		}
				
		visible = {
			has_completed_focus = SER_blaznavac_war_minister
		}

		
		fire_only_once = no

		cost = 50

		days_remove = 120

		modifier = {
			experience_gain_army_factor = 0.05
		}

		remove_effect = {
			army_experience = 15
			add_tech_bonus = { bonus = 1.75 uses = 1 category = artillery }
		}
		
		ai_will_do = {
			base = 10
		}
	}

	SER_decision_franco_prussian_observer_fra = {
		icon = generic_prepare_civil_war
		
		allowed = { 
			tag = SER
		}

		available = {
			has_completed_focus = SER_franco_prussian_observer
			has_opinion = {
                target = FRA
                value > 74
            }
		}
				
		visible = {
			has_completed_focus = SER_blaznavac_war_minister
		}

		
		fire_only_once = no

		cost = 50

		days_remove = 120

		modifier = {
			experience_gain_army_factor = 0.05
		}

		remove_effect = {
			army_experience = 15
			add_tech_bonus = { bonus = 1.75 uses = 1 category = infantry_weapons }
		}
		
		ai_will_do = {
			base = 10
		}
	}
	
	SER_decision_military_foundry = {
		icon = generic_construction

		#allowed = { tag = SER }
		
		visible = {
			has_completed_focus = SER_blaznavac_war_minister
		}
		
		available = {
			has_completed_focus = SER_military_foundry
		}

		fire_only_once = yes
		
		cost = 100
		
		days_remove = 260
		
		remove_effect = {
			add_tech_bonus = {
				bonus = 0.10
				uses = 3
				category = explosives_tech
				category = industry
				category = mechanical_engineering_tech
				category = support_tech
			}
		}
		
		modifier = {
			production_speed_arms_factory_factor = 0.05
			production_speed_buildings_factor = 0.05
		}
	}
}

eoanb_category_economic = {

	#Widespread Bankruptcy Decisions
	
	SER_decision_unemployment_problem = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_Increasing_Property_Prices
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_fight_inflation = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_Increasing_Property_Prices
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_problematic_recession  = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_Increasing_Property_Prices
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_succed_reforms  = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		visible = {
			has_country_flag = SER_Increasing_Property_Prices
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies4
			hidden_effect = {
				clr_country_flag = SER_Increasing_Property_Prices
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_coordinate_policy = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_new_reforms
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_new_agricultural_model = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_new_reforms
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_measured_working_hours = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_new_reforms
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_encourage_farmers_coop = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				hidden_trigger = {
					has_idea = SER_idea_boycott
					has_idea = SER_idea_worker_strikes 
				}
			}
		}

		visible = {
			has_country_flag = SER_new_reforms
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 40

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_boycott
			remove_ideas = SER_idea_worker_strikes 
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_succed_reforms2  = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				NOT = {
					has_idea = SER_idea_boycott
				}
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		visible = {
			has_country_flag = SER_new_reforms
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies4
			hidden_effect = {
				clr_country_flag = SER_new_reforms
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_new_capitals = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_foreign_intevention
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_new_foreign_investors = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_foreign_intevention
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_revitalising_eco = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies3
					has_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		visible = {
			has_country_flag = SER_foreign_intevention
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			swap_ideas = {
				remove_idea = SER_idea_widespread_bankrupcies3
				add_idea = SER_idea_widespread_bankrupcies4
			}
			remove_ideas = SER_idea_boycott
			remove_ideas = SER_idea_worker_strikes 
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_crisis_over  = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		visible = {
			has_country_flag = SER_foreign_intevention
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies4
			hidden_effect = {
				clr_country_flag = SER_foreign_intevention
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_spend_austro_dosh  = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies
				}
			}
		}

		visible = {
			has_country_flag = SER_aus_foreign_intevention
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies
			add_timed_idea = {
				idea = SER_idea_economic_dependency
				days = 1000
			}
			hidden_effect = {
				clr_country_flag = SER_aus_foreign_intevention
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_higher_interest = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_people_demand
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_control_money_supply = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					OR = { 
						has_idea = SER_idea_widespread_bankrupcies
						has_idea = SER_idea_widespread_bankrupcies2
						has_idea = SER_idea_widespread_bankrupcies3
						has_idea = SER_idea_widespread_bankrupcies4
					}
				}
			}
		}

		visible = {
			has_country_flag = SER_people_demand
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies
					add_idea = SER_idea_widespread_bankrupcies2
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies2
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies2
					add_idea = SER_idea_widespread_bankrupcies3
				}
			}
			else_if = {
				limit = {
				   has_idea = SER_idea_widespread_bankrupcies3
				}
				swap_ideas = {
					remove_idea = SER_idea_widespread_bankrupcies3
					add_idea = SER_idea_widespread_bankrupcies4
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_crisis_contained = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies3
				}
			}
		}

		visible = {
			has_country_flag = SER_people_demand
		}

		fire_only_once = yes

		cost = 70
		
		days_remove = 120

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies3
			remove_ideas = SER_idea_protests
			hidden_effect = {
				clr_country_flag = SER_people_demand
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_crisis_stabalised = { 

		icon = generic_operation
		
		allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_decisions_widespread_bankrupcies_tt
				hidden_trigger = {
					has_idea = SER_idea_widespread_bankrupcies
				}
			}
		}

		visible = {
			has_country_flag = SER_no_wages
		}

		fire_only_once = yes

		cost = 150
		
		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.02
			political_power_gain = -0.05
		}
		
		remove_effect = { 
			remove_ideas = SER_idea_widespread_bankrupcies
			remove_ideas = SER_idea_worker_strikes 
			hidden_effect = {
				clr_country_flag = SER_no_wages
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	##Mines Decisions

	SER_decision_stari_kostolac_quarry = { 

		icon = generic_operation

		highlight_states = {
			state = 107
		}
		
		allowed = { tag = SER }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = SER_stari_kostolac_quarry
		}

		visible = {
			owns_state = 107
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 2
			}
		}

		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
		}
		
		cancel_trigger = {
			NOT = { owns_state = 107 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = { 
			add_stability = 0.02
			107 = { add_extra_state_shared_building_slots = 1 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_SER_kucajna_mine = { 

		icon = generic_operation

		highlight_states = {
			state = 107
		}
		
		allowed = { tag = SER }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = SER_kucajna_mine
		}

		visible = {
			owns_state = 107
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 2
			}
		}

		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 60

		modifier = {
			consumer_goods_expected_value = 0.02
		}
		
		cancel_trigger = {
			NOT = { owns_state = 107 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = { 
			add_political_power = 50
			107 = { add_extra_state_shared_building_slots = 1 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_dig_tocider_river_quay = {
		icon = generic_construction
	
		allowed = {
			tag = SER
		}
		available = {
			owns_state = 107
		}
		visible = {
			has_completed_focus = SER_dig_topcider_river_quay
		}
		highlight_states = {
			state = 107
		}
		cancel_trigger = {
			NOT = { 
				owns_state = 107 
			}
		}
	
		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 2
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 60

		complete_effect = {
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_tooltip_effect = yes
		}

		remove_effect = { 
			107 = { 
				add_extra_state_shared_building_slots = 1
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_plant_tree = {
		icon = wood
	
		allowed = {
			tag = SER
		}
		visible = {
			has_completed_focus = SER_deforestation_problem
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 50
	
		remove_effect = { 
			add_stability = 0.05
			add_manpower = -1000
		}
		modifier = {
			consumer_goods_expected_value = 0.03
		}
	
		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_reduce_wood_use = {
		icon = wood
	
		allowed = {
			tag = SER
		}
		visible = {
			has_completed_focus = SER_deforestation_problem
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 120
	
		remove_effect = { 
			add_stability = 0.03
		}
		modifier = {
			consumer_goods_expected_value = -0.05
			industrial_capacity_factory = -0.05
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	SER_decision_purchase_steamship = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			
		}
		visible = {
			has_completed_focus = SER_purchase_steamships
		}
	
		fire_only_once = yes
		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 1.5
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 50
	
		remove_effect = { 
			
		}
		complete_effect = {
			set_temp_variable = { money_to_gain = -1.5 }
			add_money_with_tooltip_effect = yes
			add_equipment_to_stockpile = {
    			type = convoy
    			amount = 5
    			producer = ENG
			}
			add_tech_bonus = {
				name = SER_tech_advance_science
				uses = 1
				bonus = 0.25
				category = naval_equipment
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}	
	
	SER_decision_hand_it_to_the_ministry = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			
		}
		visible = {
			has_completed_focus = SER_deligrad_ship
		}
	
		fire_only_once = yes
		custom_cost_trigger = {
			set_temp_variable = {
			amount_of_money_to_check = 0.8
			}
		}

		custom_cost_text = eoanb_money_cost_text
		days_remove = 50
	
		remove_effect = { 
			
		}
		complete_effect = {
			SER = {
				country_event = {
					id = SERmisc.34
					days = 5
				}
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
}

SER_decision_category_banking = {

	###Finance Reform
	SER_mission_financy_reform = {

		icon = money

		#allowed = { tag = SER }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_mission_currency_reform_trigger_tt
				hidden_trigger = {
					has_tech = tech_humanities_continental_neoclassical_economics
					has_idea = FRA_monetary_union_unilateral_agreement
					has_completed_focus = SER_join_latin_monetary_union
					SER_konstantin_cukic = {
						is_character_slot = political_advisor
					}
				}
			}
		}

		activation = {
			always = no
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 365

		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -100
				add_stability = -0.05
				set_temp_variable = { eoanb_prestige_change = -10 }
				eoanb_change_prestige_score = yes
				decrease_ps_by_one = yes
			}
		}

		complete_effect = {
			add_political_power = 100
			add_stability = 0.05
			set_temp_variable = { eoanb_prestige_change = 10 }
			eoanb_change_prestige_score = yes
			increase_ps_by_one = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	SER_decision_increase_taxes = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_fund_administration
		}
		visible = {
			#has_completed_focus = SER_fund_administration
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 10
	
		remove_effect = {
			effect_increase_tax_rates = yes	
		}
		
		modifier = {
			political_power_gain = -0.2
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_law_on_minting_coinage = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_develop_serbia_banking
		}
		visible = {
			#has_completed_focus = SER_develop_serbia_banking
		}
	
		fire_only_once = yes
		cost = 50
		days_remove = 160
	
		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = {
				uses = 1
				bonus = 0.50
				category = economics_tech
				category = humanities_tech
			}
		}
		modifier = {
			consumer_goods_expected_value = 0.03
			political_power_gain = -0.15
		}
	
		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_belgrade_credit_house = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_develop_serbia_banking
			has_tech = tech_humanities_capitalism
		}
		visible = {
			#has_completed_focus = SER_develop_serbia_banking
		}
	
		fire_only_once = yes
		cost = 50
		days_remove = 160
	
		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = {
				uses = 1
				bonus = 0.50
				category = economics_tech
				category = humanities_tech
			}
			add_stability = 0.03
		}
		modifier = {
			consumer_goods_expected_value = 0.03
			political_power_gain = -0.15
		}
	
		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_serbian_danube_bank = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_develop_serbia_banking
			has_tech = tech_humanities_capitalism
		}
		visible = {
			#has_completed_focus = SER_develop_serbia_banking
		}
	
		fire_only_once = yes
		cost = 50
		days_remove = 200
	
		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = {
				uses = 1
				bonus = 0.50
				category = economics_tech
				category = humanities_tech
			}
			add_stability = 0.03
		}
		
		modifier = {
			consumer_goods_expected_value = 0.03
			political_power_gain = -0.15
		}
	
		ai_will_do = {
			base = 1000
		}
	}
}
	

	

SER_decision_category_foreign_geologists = {

	SER_decision_invite_abroad_serbs = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_search_experience_engineers
		}
		
		visible = {
			has_completed_focus = SER_search_experience_engineers
		}
	
		fire_only_once = yes
		cost = 100
		days_remove = 365
	
		remove_effect = { 
			add_ideas = SER_idea_experienced_engineer
		}	
	
		ai_will_do = {
			base = 1000
		}
	}

	SER_decision_b_cotta_explore_northeast_serbia = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_foreign_geologist
		}
		
		visible = {
			has_completed_focus = SER_foreign_geologist
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 60
		
		modifier = {
			political_power_gain = -0.05
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_foreign_geologist_1
				}
				swap_ideas = {
					remove_idea = SER_idea_foreign_geologist_1
					add_idea = SER_idea_foreign_geologist_2
				}
			}
			else_if = { 
				limit = {
					has_idea = SER_idea_foreign_geologist_2
				}
				swap_ideas = {
					remove_idea = SER_idea_foreign_geologist_2
					add_idea = SER_idea_foreign_geologist_3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = SER_idea_explore_serbian_geology
					add_idea = SER_idea_foreign_geologist_1
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = resource_extraction_tech
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_ferdinand_von_holchstetter_explore_southeast = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_foreign_geologist
		}

		visible = {
			has_completed_focus = SER_foreign_geologist
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 60
		
		modifier = {
			political_power_gain = -0.05
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_foreign_geologist_1
				}
				swap_ideas = {
					remove_idea = SER_idea_foreign_geologist_1
					add_idea = SER_idea_foreign_geologist_2
				}
			}
			else_if = { 
				limit = {
					has_idea = SER_idea_foreign_geologist_2
				}
				swap_ideas = {
					remove_idea = SER_idea_foreign_geologist_2
					add_idea = SER_idea_foreign_geologist_3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = SER_idea_explore_serbian_geology
					add_idea = SER_idea_foreign_geologist_1
				}
			}
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = resource_extraction_tech
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_emil_teze_conduct_research = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			has_completed_focus = SER_foreign_geologist
		}
		
		visible = {
			has_completed_focus = SER_foreign_geologist
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 40
		
		modifier = {
			political_power_gain = -0.05
		}
	
		remove_effect = { 
			add_tech_bonus = {
				bonus = 0.75
				uses = 1
				category = resource_extraction_tech
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
}

SER_decision_category_lyumbomir_kleric = {
	SER_decision_examine_african_iron = {
		icon = iron
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 80
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_5
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_5
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_0a
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_explore_awala_deposit = {
		icon = iron
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
			OR = {
				has_idea = SER_idea_lyubomir_0a
				has_idea = SER_idea_lyubomir_1a
				has_idea = SER_idea_lyubomir_2a
				has_idea = SER_idea_lyubomir_3a
				has_idea = SER_idea_lyubomir_4a
				has_idea = SER_idea_lyubomir_5a
			}
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 80
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_5a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_5a
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_0b
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_patent_polar_pantograph = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			date > 1875.1.1
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 30
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_2
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_3
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_4
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_5
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0a
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0b
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1b
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2b
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3b
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4b
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_1
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_patent_mud_drill = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 30
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_2
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_3
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_4
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_5
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0a
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0b
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1b
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2b
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3b
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4b
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_1
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_patent_deep_well_drill = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 30
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_2
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_3
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_4
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_5
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0a
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0b
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1b
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2b
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3b
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4b
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_1
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_scientific_paper_textbook = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 60
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_2
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_3
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_4
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_5
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0a
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0b
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1b
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2b
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3b
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4b
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_1
			}
			hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_stone_breaking_device_inventions = {
		icon = generic_construction
	
		#allowed = { tag = SER }
		
		available = {
			NOT = { has_country_flag = SER_lyumbomir_projects_ongoing_flag }
		}
		visible = {
			has_completed_focus = SER_lyubomir_state_service_job
		}
	
		fire_only_once = yes
		cost = 25
		days_remove = 100
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		remove_effect = { 
			if = {
				limit = {
					has_idea = SER_idea_lyubomir_1
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1
					add_idea = SER_idea_lyubomir_2
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2
					add_idea = SER_idea_lyubomir_3
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3
					add_idea = SER_idea_lyubomir_4
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4
					add_idea = SER_idea_lyubomir_5
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0a
					add_idea = SER_idea_lyubomir_1a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1a
					add_idea = SER_idea_lyubomir_2a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2a
					add_idea = SER_idea_lyubomir_3a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3a
					add_idea = SER_idea_lyubomir_4a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4a
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4a
					add_idea = SER_idea_lyubomir_5a
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_0b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_0b
					add_idea = SER_idea_lyubomir_1b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_1b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_1b
					add_idea = SER_idea_lyubomir_2b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_2b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_2b
					add_idea = SER_idea_lyubomir_3b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_3b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_3b
					add_idea = SER_idea_lyubomir_4b
				}
			}
			else_if = {
				limit = {
					has_idea = SER_idea_lyubomir_4b
				}
				swap_ideas = {
					remove_idea = SER_idea_lyubomir_4b
					add_idea = SER_idea_lyubomir_5b
				}
			}
			else = {
				add_ideas = SER_idea_lyubomir_1
			}
				hidden_effect = {
				clr_country_flag = SER_lyumbomir_projects_ongoing_flag
			}
		}
	
		ai_will_do = {
			base = 1000
		}
	}
}

SER_decision_category_cukur = {

	SER_begin_operation = {
		icon = GFX_decision_icon_default

		allowed = {
			tag = SER
		}
		visible = {
			has_country_flag = SER_begin_operation
		}
		available = {
			always = no
		}

		days_remove = 400
	    fire_only_once = yes

		targeted_modifier = {
			tag = OTO
			attack_bonus_against = 0.10
			defense_bonus_against = 0.05
		}

		complete_effect = {
			### Not Necessary to do this with ideas ###
			#add_timed_idea = { idea = SER_idea_military_operation days = 120 }
			hidden_effect = {
				country_event = {
					id = SER_politics.11
					days = 7
				}
			}
		}

		ai_will_do = {
			base = 100
		}
	}

	SER_declare_belgrade_siege = {
		icon = GFX_decision_icon_default

		allowed = {
			tag = SER
		}
		visible = {
			has_country_flag = SER_declare_belgrade_siege
		}
		available = {
			always = no
		}

		fire_only_once = yes

		days_remove = 384

		targeted_modifier = {
			tag = OTO
			defense_bonus_against = 0.05
		}
	

		complete_effect = {
			army_experience = 20
			set_country_flag = SER_siege
			#add_timed_idea = { idea = SER_idea_belgrade_operation days = 50 }
			hidden_effect = {
				country_event = {
					id = SER_politics.13
					days = 7
				}
			}
		}

		ai_will_do = {
			base = 100
		}
	}

	SER_ottoman_withdrawal = {
		icon = GFX_decision_icon_default

		allowed = {
			tag = OTO
		}

		visible = {
			has_country_flag = SER_ottoman_withdrawal
		}

		activation = {
			has_country_flag = SER_ottoman_withdrawal
		}

		is_good = no
		selectable_mission = yes              
        days_mission_timeout = 30 
		fire_only_once = yes

		timeout_effect = {     
			SER = {
				hidden_effect = {
					country_event = {
						id = SER_politics.17
						days = 2
					}
				}
				if = {
					limit = {
						FRA = {
							has_country_flag = cukur_fountain_incident_intervention
						}
					}
					FRA = {
						custom_effect_tooltip = SER_Great_power_intervention_tt
					}
				}

				if = {
					limit = {
						ENG = {
							has_country_flag = cukur_fountain_incident_intervention
						}
					}
					ENG = {
						custom_effect_tooltip = SER_Great_power_intervention_tt
					}
				}

				if = {
					limit = {
						RUS = {
							has_country_flag = cukur_fountain_incident_intervention
						}
					}
					RUS = {
						custom_effect_tooltip = SER_Great_power_intervention_tt
					}
				}

				if = {
					limit = {
						AUS = {
							has_country_flag = cukur_fountain_incident_intervention
						}
					}
					AUS = {
						custom_effect_tooltip = SER_Great_power_intervention_tt
					}
				}
			}
        } 

		complete_effect = {
			add_political_power = -25
			decrease_ps_by_one = yes
			add_war_support = 0.025
			hidden_effect = {
				add_opinion_modifier = {
					target = SER
					modifier = small_decrease
				}
				SER = {
					country_event = {
						id = SER_politics.16
						days = 3
					}
				}
			}
		}

		ai_will_do = {
			factor = 4000

			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}

	}

	Serbian_War_Independence_Peace_Treaty_Mission_Serbia = {
		allowed = { always = no }
		activation = { always = no }

		available = {
			SER = {
				NOT = {
					controls_province = 11586
				}
			}
		}

		is_good = yes
		days_mission_timeout = 365

		timeout_effect = {
			if = {
				limit = {
					SER = {
						controls_state = 107
						controls_province = 11586
						NOT = {
							is_puppet_of = OTO
						}
					}
				}
				OTO = {
					white_peace = SER
					if = {
						limit = {
							has_war_with = AUS
						}
						white_peace = AUS
					}

					if = {
						limit = {
							has_war_with = RUS
						}
						white_peace = RUS
					}

					if = {
						limit = {
							has_war_with = FRA
						}
						white_peace = FRA
					}

					if = {
						limit = {
							has_war_with = ENG
						}
						white_peace = ENG
					}
				}
				SER = {
					add_war_support = -0.25
					white_peace = OTO
					set_state_owner = 966
					set_state_owner = 105
					set_state_owner = 108
				}
			}
		}
	}
}

SER_decision_category_balkan_politics = {


	SER_decision_voslau_treaty = {
		
		icon = generic_military

		available = {
			GRE = {
				has_war = no
			}
		}

		visible = {
			has_completed_focus = SER_voslau_treaty
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 55
		days_remove = 50

		modifier = {
		    political_power_gain = -0.05
		}
		
		complete_effect = {
			
		}

		remove_effect = {
			country_event = SER_politics.41
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_support_albanians = {
		
		icon = generic_military

		available = {
			
		}

		visible = {
			has_completed_focus = SER_cooperate_with_albania
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 55
		days_remove = 50

		modifier = {
		    political_power_gain = -0.05
		}
		
		complete_effect = {
			44 = {
				custom_effect_tooltip = "RUS_vic_NA_tooltip"
				hidden_effect = {
					add_compliance = -20
					add_resistance = 20
				}
			}
		}

		remove_effect = {
			
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_ljubomir_ivanovic = {
		
		icon = generic_military

		available = {
			
		}

		visible = {
			has_completed_focus = SER_cooperate_with_albania
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 55
		days_remove = 50

		modifier = {
		    political_power_gain = -0.15
		}
		
		complete_effect = {
			add_equipment_to_stockpile = { type = infantry_equipment amount = -500 producer = SER } 
		}

		remove_effect = {
			44 = {
				custom_effect_tooltip = "RUS_vic_NA_tooltip"
				hidden_effect = {
					add_compliance = -25
					add_resistance = 25
				}
			}
			ALB = {
				add_equipment_to_stockpile = { type = infantry_equipment amount = 500 producer = SER }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_churches_macedonia = {
		
		icon = generic_military

		available = {
			
		}

		visible = {
			has_completed_focus = SER_macedonia_propoganda
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 75
		days_remove = 50

		modifier = {
		    political_power_gain = -0.15
		}
		
		complete_effect = {
			
		}

		remove_effect = {
			106 = {
				custom_effect_tooltip = "RUS_vic_NA_tooltip"
				hidden_effect = {
					add_compliance = -25
					add_resistance = 25
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_finance_schools = {
		
		icon = generic_military

		available = {
			
		}

		visible = {
			has_completed_focus = SER_macedonia_propoganda
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 75
		days_remove = 50

		modifier = {
		    political_power_gain = -0.15
		}
		
		complete_effect = {
			
		}

		remove_effect = {
			106 = {
				custom_effect_tooltip = "RUS_vic_NA_tooltip"
				hidden_effect = {
					add_compliance = -25
					add_resistance = 25
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	SER_decision_raise_first_bulgarian_legion = {
		
		icon = generic_military

		available = {
			
		}

		visible = {
			SER = { has_defensive_war_with = OTO }
		}
		
		#allowed = { tag = SER }

		fire_only_once = yes
		is_good = yes

		cost = 75
		days_remove = 50

		modifier = {
		    political_power_gain = -0.15
		}
		
		complete_effect = {
			
		}

		remove_effect = {
			OTO = { country_event = { days = 15 id = SER_politics.44 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
}
SER_decision_category_maistorovich_affair = {
	SER_decision_police_smederevo = {
		icon = generic_military

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_doing_police_mission_tt
				NOT = {
					has_country_flag = SER_doing_police_mission
				}
			}
		}

		#visible = {
		#	has_country_flag = SER_maistorovich_coup
		#}
		
		#allowed = { tag = SER }

		fire_only_once = yes

		is_good = yes

		cost = 50

		days_remove = 40

		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					has_country_flag = SER_maistorovich_coup
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 107
			}
			highlight_color_while_active = 3
			highlight_color_before_active = 2
		}

		complete_effect = {
			add_manpower = -500
			add_war_support = 0.02
			hidden_effect = {
				set_country_flag = SER_doing_police_mission
			}
		}

		remove_effect = {
			custom_effect_tooltip = SER_pacified_cities_tt
			hidden_effect = {
				clr_country_flag = SER_doing_police_mission
				add_to_variable = {
					var = SER_pacified_cities
					value = 1
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_focus_police_kragujevac = {
		icon = generic_military

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_doing_police_mission_tt
				NOT = {
					has_country_flag = SER_doing_police_mission
				}
			}
		}

		#visible = {
		#	has_country_flag = SER_maistorovich_coup
		#}
		
		#allowed = { tag = SER }

		fire_only_once = yes

		is_good = yes

		cost = 50

		days_remove = 40

		modifier = {
			political_power_gain = -0.05
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					has_country_flag = SER_maistorovich_coup
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 107
			}
			highlight_color_while_active = 3
			highlight_color_before_active = 2
		}

		complete_effect = {
			add_manpower = -500
			add_war_support = 0.02
			hidden_effect = {
				set_country_flag = SER_doing_police_mission
			}
		}

		remove_effect = {
			custom_effect_tooltip = SER_pacified_cities_tt
			hidden_effect = {
				clr_country_flag = SER_doing_police_mission
				add_to_variable = {
					var = SER_pacified_cities
					value = 1
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_focus_police_posarevac = {
		icon = generic_military

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_doing_police_mission_tt
				NOT = {
					has_country_flag = SER_doing_police_mission
				}
			}
		}

		#visible = {
		#	has_country_flag = SER_maistorovich_coup
		#}
		
		#allowed = { tag = SER }

		fire_only_once = yes

		is_good = yes

		cost = 50

		days_remove = 40

		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			hidden_trigger = {
				NOT = {
					has_country_flag = SER_maistorovich_coup
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 941
			}
			highlight_color_while_active = 3
			highlight_color_before_active = 2
		}
		
		complete_effect = {
			add_manpower = -500
			add_war_support = 0.02
			hidden_effect = {
				set_country_flag = SER_doing_police_mission
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SER_pacified_cities_tt
			hidden_effect = {
				clr_country_flag = SER_doing_police_mission
				add_to_variable = {
					var = SER_pacified_cities
					value = 1
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	SER_mission_maistorovich_coup = {
		icon = generic

		allowed = { always = no }

		available = {
			custom_trigger_tooltip = {
				tooltip = SER_pacified_cities_all_tt
				check_variable = { SER_pacified_cities = 3}
			}
		}

		activation = { always = no }

		fire_only_once = yes

		is_good = yes

		days_mission_timeout = 220

		timeout_effect = {
			custom_effect_tooltip = SER_coup_effect_tt
			hidden_effect = {
				if = {
					limit = {
						check_variable = { SER_pacified_cities > 1}
					}
					country_event = { id = SER_politics.56 }
				}
				else = {
					country_event = { id = SER_politics.57 }
				}
			}
		}

		complete_effect = {
			country_event = { id = SER_politics.56 }
		}

		ai_will_do = {
			base = 100
		}
	}
}
