## ECONOMY & INDUSTRY
BAD_decision_category_economy = {

	#Enact Free Enterprise
	BAD_decision_enact_free_enterprise = {

		icon = eng_trade_unions_support
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_end_compulsory_guild_membership
			has_tech = tech_humanities_capitalism
			has_stability > 0.3
		}

		visible = {
			has_idea = GEC_idea_weakened_zunftwesen
		}

		fire_only_once = yes
		
		cost = 75
		
        days_remove = 180
         
        modifier = {
			political_power_gain = -0.1
			stability_weekly_factor = -0.003
        }
		
		complete_effect = {
			add_stability = -0.02
			decrease_ps_by_one = yes
		}
       
        remove_effect = {
			swap_ideas = { remove_idea = GEC_idea_weakened_zunftwesen add_idea = GEC_idea_gewerbefreiheit }
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
	    }
       
		ai_will_do = {
			base = 100
		}
	}

	#Establish an Industrial Code
	BAD_decision_establish_an_industrial_code = {

		icon = eng_trade_unions_support
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_end_reaktionsera
			has_tech = tech_humanities_workers_rights
			has_stability > 0.3
		}

		visible = {
			has_idea = GEC_idea_gewerbefreiheit
		}

		fire_only_once = yes
		
		cost = 50
		
        days_remove = 180
         
        modifier = {
			political_power_gain = -0.05
        }
		
		complete_effect = {
			add_stability = 0.03
		}
       
        remove_effect = {
			swap_ideas = { remove_idea = GEC_idea_gewerbefreiheit add_idea = GEC_idea_gewerbeordnung }
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
	    }
       
		ai_will_do = {
			base = 100
		}
	}

	#Establish Lumber Industry
	BAD_mission_establish_lumber_industry = {
	
		icon = generic_forestry

		allowed = { always = no }

		available = {
			744 = {
				logging_camp > 1
				has_resources_amount = {
					resource = wood
					amount > 16
				}
			}
			has_tech = machine_tools_1
			has_tech = industrial_era_tools_2
		}

		activation = { always = no }

		priority = 80

		fire_only_once = yes

		selectable_mission = no
		
		days_mission_timeout = 2500
		
		timeout_effect = {
			add_timed_idea = {
				idea = BAD_idea_failed_economic_reform
				days = 180
			}
			if = {
				limit = {
					is_ai = no
				}
				EOANBSYS_institutions_mechanization_sub_five = yes
				add_political_power = -50
				add_stability = -0.02
			}
		}
		
		complete_effect = {
			add_timed_idea = {
				idea = BAD_idea_successful_economic_reform
				days = 180
			}
			add_victory_points = {
				province = 6712
				value = 1
			}
			if = {
				limit = {
					is_ai = yes
				}
				EOANBSYS_institutions_mechanization_add_five = yes
				add_political_power = 50
				add_stability = 0.02
			}
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			if = {
				limit = {
					has_idea = BAD_idea_schwarzwald_2
				}
				swap_ideas = { remove_idea = BAD_idea_schwarzwald_2 add_idea = BAD_idea_schwarzwald_3 }
			}
			else_if = {
				limit = {
					has_idea = BAD_idea_schwarzwald_1
				}
				swap_ideas = { remove_idea = BAD_idea_schwarzwald_1 add_idea = BAD_idea_schwarzwald_2 }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Expand Woodcutting Industry
	BAD_decision_expand_woodcutting_industry = {

		icon = wood

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_black_forest_woodcutters
			NOT = { has_country_flag = eoanb_resource_extraction_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
		}
		custom_cost_text = eoanb_money_and_political_power_50
		
		days_remove = 365
		
		modifier = {
			political_power_gain = -0.1
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_resource_extraction_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			hidden_effect = { 
				set_country_flag = eoanb_resource_extraction_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_stability = -0.03
			744 = {
				add_resource = {
					type = wood
					amount = 4
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_resource_extraction_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Schwarzwald Logging Camps
	BAD_decision_schwarzwald_logging_camps = {

		icon = wood

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_black_forest_woodcutters
			NOT = { has_country_flag = eoanb_resource_extraction_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.75
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
		}
		custom_cost_text = eoanb_money_and_political_power_50
		
		days_remove = 365

		modifier = {
			political_power_gain = -0.1
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_resource_extraction_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.75 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			hidden_effect = { 
				set_country_flag = eoanb_resource_extraction_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_stability = -0.03
			744 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = logging_camp
					level = 1
					instant_build = yes
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_resource_extraction_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Establish Mineral Industry
	BAD_mission_establish_mineral_industry = {
	
		icon = coal

		allowed = { always = no }

		available = {
			744 = {
				coal_mine > 0
				has_resources_amount = {
					resource = coal
					amount > 8
				}
				has_resources_amount = {
					resource = iron
					amount > 14
				}
			}
			has_tech = machine_tools_1
			has_tech = mechanized_mining
		}

		activation = { always = no }

		priority = 70

		fire_only_once = yes

		selectable_mission = no
		
		days_mission_timeout = 2500
		
		timeout_effect = {
			add_timed_idea = {
				idea = BAD_idea_failed_economic_reform
				days = 180
			}
			if = {
				limit = {
					is_ai = no
				}
				EOANBSYS_institutions_mechanization_sub_five = yes
				add_political_power = -50
				add_stability = -0.02
			}
		}
		
		complete_effect = {
			add_timed_idea = {
				idea = BAD_idea_successful_economic_reform
				days = 180
			}
			add_victory_points = {
				province = 6712
				value = 1
			}
			if = {
				limit = {
					is_ai = yes
				}
				EOANBSYS_institutions_mechanization_add_five = yes
				add_political_power = 50
				add_stability = 0.02
			}
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			if = {
				limit = {
					has_idea = BAD_idea_schwarzwald_2
				}
				swap_ideas = { remove_idea = BAD_idea_schwarzwald_2 add_idea = BAD_idea_schwarzwald_3 }
			}
			else_if = {
				limit = {
					has_idea = BAD_idea_schwarzwald_1
				}
				swap_ideas = { remove_idea = BAD_idea_schwarzwald_1 add_idea = BAD_idea_schwarzwald_2 }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand Mining Districts
	BAD_decision_expand_mining_districts = {

		icon = iron

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_expand_mining_districts
			NOT = { has_country_flag = eoanb_resource_extraction_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.75
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_resource_extraction_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.75 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_resource_extraction_ongoing_flag 
			}
		}
		
		remove_effect = {
			744 = {
				add_resource = {
					type = coal
					amount = 2
				}
				add_resource = {
					type = iron
					amount = 4
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_resource_extraction_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Establish Coal Mining
	BAD_decision_establish_coal_mining = {

		icon = coal

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_expand_mining_districts
			NOT = { has_country_flag = eoanb_resource_extraction_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_resource_extraction_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_resource_extraction_ongoing_flag 
			}
		}
		
		remove_effect = {
			744 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = coal_mine
					level = 1
					instant_build = yes
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_resource_extraction_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand Farmlands
	BAD_decision_expand_farmlands = {

		icon = cow

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_fruits_of_our_soil
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}
		
		remove_effect = {
			744 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Establish Machine Engineering Industry
	BAD_mission_establish_machine_engineering_industry = {
	
		icon = machine_gear_cogwheel

		allowed = { always = no }

		available = {
			744 = {
				steel_mill > 0
				machine_parts_factory > 0
			}
			has_tech = factory_industry_1
			has_tech = bessemer_process
		}

		activation = { always = no }

		priority = 60

		fire_only_once = yes

		selectable_mission = no
		
		days_mission_timeout = 3500
		
		timeout_effect = {
			add_timed_idea = {
				idea = BAD_idea_failed_economic_reform
				days = 180
			}
			if = {
				limit = {
					is_ai = no
				}
				EOANBSYS_institutions_mechanization_sub_five = yes
				add_political_power = -50
				add_stability = -0.02
			}
		}
		
		complete_effect = {
			add_timed_idea = {
				idea = BAD_idea_successful_economic_reform
				days = 180
			}
			if = {
				limit = {
					is_ai = yes
				}
				EOANBSYS_institutions_mechanization_add_five = yes
				EOANBSYS_institutions_innovative_add_five = yes
				add_political_power = 50
				add_stability = 0.02
			}
			set_temp_variable = {
				unemployment_value = -0.0005
			}
			add_unemployment_effect = yes
			set_temp_variable = { eoanb_prestige_change = 5 }
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Pforzheim Jewellers
	BAD_decision_pforzheim_jewellers = {

		icon = gold

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_goldstadt_pforzheim
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Watchmaking Industry
	BAD_decision_watchmaking_industry = {

		icon = money

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_watchmaking_industry
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Support BASF
	BAD_decision_support_basf = {

		icon = money

		#allowed = { tag = BAD }
		
		available = {
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
			BAD_friedrich_engelhorn = {
				is_hired_as_advisor = yes
			}
		}

		visible = {
			has_completed_focus = BAD_focus_chemical_industry
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Support the Textile Industry
	BAD_decision_support_textile_industry = {

		icon = fabric

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_textile_industry
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			744 = {
				add_resource = {
					type = fabric
					amount = 6
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Subsidize Construction of a Stell Mill
	BAD_decision_subsidize_steel_mill = {

		icon = steel

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_machine_engineering_industry
			has_tech = industrial_blast_furnace
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365

		modifier = {
			production_speed_steel_mill_factor = 1
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
			744 = {
				add_extra_state_shared_building_slots = 1
			}
		}
		
		remove_effect = {
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Subsidize Construction of a Machine Parts Factory
	BAD_decision_subsidize_machine_parts_factory = {

		icon = generic_factory

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_machine_engineering_industry
			has_tech = machine_tools_1
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365

		modifier = {
			production_speed_machine_parts_factory_factor = 1
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
			744 = {
				add_extra_state_shared_building_slots = 1
			}
		}
		
		remove_effect = {
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand Railway Network
	BAD_mission_railway_expansion = {

		icon = railway

		allowed = { always = no }

		available = {
			owns_state = 744
			744 = { infrastructure > 6 }
			has_railway_level = {
				state = 744
				level = 2
			}
		}
		
		activation = { always = no }

		highlight_states = {
			highlight_state_targets = {
				state = 744
			}
		}

		fire_only_once = yes

		is_good = no
		
		days_mission_timeout = 1200
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -50
				add_stability = -0.02
			}
		}
		
		complete_effect = {
			744 = { add_extra_state_shared_building_slots = 1 }
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Railway Upgrade
	BAD_decision_railway_upgrade = {

		icon = railway
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_railway_switzerland
			744 = { infrastructure > 6 }
			has_railway_level = {
				state = 744
				level = 2
			}
			custom_trigger_tooltip = {
				tooltip = BAD_decision_railway_upgrade_trigger_tt
				hidden_trigger = {
					has_railway_connection = {
						start_province = 3679
						target_province = 6555
					}
				}
			}
		    has_tech = steam_locomotive_3
		    has_tech = standardized_gauge
			has_tech = train_1855
		}

		visible = {
			has_idea = NA_B_small_scale_railways
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
        days_remove = 365
         
        modifier = {
            political_power_gain = -0.05
        }
		
		complete_effect = {
			if = {  
				limit = { 
					has_idea = road_spending_level_1 
				} 
				swap_ideas = { remove_idea = road_spending_level_1 add_idea = road_spending_level_2 }
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_2
				}
				swap_ideas = { remove_idea = road_spending_level_2 add_idea = road_spending_level_3 } 
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_3
				}
				swap_ideas = { remove_idea = road_spending_level_3 add_idea = road_spending_level_4 } 
			}
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
       
        remove_effect = {
			swap_ideas = { remove_idea = NA_B_small_scale_railways add_idea = NA_B_medium_scale_railways }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
	    }
       
		ai_will_do = {
			base = 1000
		}
	}
}

## MILITARY
BAD_decision_category_military = {

	#Buy Rifles from Austria
	BAD_decision_buy_austrian_rifles = {

		icon = generic_industry
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_austrian_rifles
		}

		visible = {
			country_exists = AUS
			AUS = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
				producer = AUS
			}
		}
			
		ai_will_do = {
			base = 500
		}
	}
	
	BAD_decision_buy_prussian_rifles = {

		icon = generic_industry
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_dreyse_rifle
		}

		visible = {
			country_exists = PRS
			PRS = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
				producer = PRS
			}
		}
		
		ai_will_do = {
			base = 500
		}
	}
	
	#Buy Cannons from Prussia
	BAD_decision_buy_prussian_cannons = {

		icon = artillery
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_krupp_cooperation
		}

		visible = {
			country_exists = PRS
			PRS = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 36
				producer = PRS
			}
		}
		
		ai_will_do = {
			base = 500
		}
	}

	#Ask for Military Convention with Prussia
	BAD_decision_convention_with_prussia = {

		icon = generic_military
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_side_with_prussia
		}

		visible = {
			country_exists = PRS
			NOT = { has_war_with = PRS }
			NOT = { has_completed_focus = BAD_focus_side_with_austria }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 99.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_100
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -100
			PRS = { country_event = { days = 1 id = badenevent.13 } }
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Ask for Military Convention with Austria
	BAD_decision_convention_with_austria = {

		icon = generic_military
		
		#allowed = { tag = BAD }

		available = {
			has_completed_focus = BAD_focus_side_with_austria
		}

		visible = {
			country_exists = AUS
			NOT = { has_war_with = AUS }
			NOT = { has_completed_focus = BAD_focus_side_with_prussia }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 99.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_100
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -100
			AUS = { country_event = { days = 1 id = badenevent.13 } }
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Intensify the Military Convention
	BAD_decision_intensify_convention = {

		icon = generic_military
		
		#allowed = { tag = BAD }

		available = {
			if = {
				limit = {
					has_idea = SAX_idea_PRS_military_convention_1
				}
				PRS = { has_war = no }
			}
			if = {
				limit = {
					has_idea = SAX_idea_AUS_military_convention_1
				}
				AUS = { has_war = no }
			}
			if = {
				limit = {
					has_government = centrism
				}
				centrism > 0.45
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				traditional_conservatism > 0.45
			}
			else_if = {
				limit = {
					has_government = autocracy
				}
				autocracy > 0.45
			}
		}

		visible = {
			OR = {
				has_idea = SAX_idea_PRS_military_convention_1
				has_idea = SAX_idea_AUS_military_convention_1
			}
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_50
		
		days_remove = 180
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -50
		}
		
		remove_effect = {
			if = {
				limit = {
					has_idea = SAX_idea_PRS_military_convention_1
				}
				swap_ideas = { remove_idea = SAX_idea_PRS_military_convention_1 add_idea = SAX_idea_PRS_military_convention_2 }
				PRS = {
					remove_opinion_modifier = {
						target = SAX
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				SAX = {
					remove_opinion_modifier = {
						target = PRS
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				add_opinion_modifier = { target = PRS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
				reverse_add_opinion_modifier = { target = PRS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
			}
			else_if = {
				limit = {
					has_idea = SAX_idea_AUS_military_convention_1
				}
				swap_ideas = { remove_idea = SAX_idea_AUS_military_convention_1 add_idea = SAX_idea_AUS_military_convention_2 }
				AUS = {
					remove_opinion_modifier = {
						target = SAX
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				SAX = {
					remove_opinion_modifier = {
						target = AUS
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				add_opinion_modifier = { target = AUS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
				reverse_add_opinion_modifier = { target = AUS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
			}
		}
		
		ai_will_do = {
			base = 100
		}
	}
}

## POLITICS
BAD_decision_category_politics = {

	#Sign a Convention with the Vatican
	BAD_decision_convention_with_the_vatican = {

		icon = constitution

		#allowed = { tag = BAD }
		
		available = {
			NOT = { has_war_with = PAP }
		}

		visible = {
			has_country_flag = BAD_baden_kulturkampf_vatican_convention_flag
		}

		fire_only_once = yes

		cost = 25
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			country_event = { id = baden.59 }
			hidden_effect = {
				clr_country_flag = BAD_baden_kulturkampf_vatican_convention_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Establish a Trade Ministry
	BAD_decision_establish_trade_ministry = {

		icon = money

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_ministry_of_trade
			BAD_gideon_weizel = {
				is_hired_as_advisor = yes
			}
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
		}
		custom_cost_text = eoanb_money_and_political_power_50
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
		}
		
		remove_effect = {
			add_ideas = BAD_idea_trade_ministry_1
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	#The Baden Trade Act of [GetYear]
	BAD_decision_baden_trade_act = {

		icon = justice

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_trade_act
			BAD_gideon_weizel = {
				is_hired_as_advisor = yes
			}
		}

		visible = {
			has_idea = BAD_idea_trade_ministry_1
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			swap_ideas = { remove_idea = BAD_idea_trade_ministry_1 add_idea = BAD_idea_trade_ministry_2 }
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Foundation of the Baden Central Bank
	BAD_decision_baden_central_bank = {

		icon = money

		#allowed = { tag = BAD }
		
		available = {
			has_stability > 0.3
			PS_pol_negative_null = yes
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			has_idea = BAD_idea_trade_ministry_2
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 149.9
		}
		custom_cost_text = eoanb_money_and_political_power_150
		
		days_remove = 365
		
		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -150
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}
		
		remove_effect = {
			swap_ideas = { remove_idea = BAD_idea_trade_ministry_2 add_idea = BAD_idea_trade_ministry_3 }
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Vogelmann Tax Cuts
	BAD_decision_vogelmann_tax_cuts = {

		icon = money

		#allowed = { tag = BAD }
		
		available = {
			has_completed_focus = BAD_focus_kabinett_stabel
			has_stability > 0.3
			PS_pol_negative_null = yes
		}

		visible = {
			#
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		remove_effect = {
			effect_decrease_tax_rates = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
}