# War Measures Category
eoanb_category_war_measures = {
	
	# Promote Austerity
	eoanb_decision_war_austerity = {
		icon = generic_civil_support
		
		visible = {
			NOT = { has_idea = pre_industrial_era }
			NOT = { has_idea = post_digital_era }
		}
		
		available = {
			surrender_progress > 0.25
		}
		
		cost = 150
		days_remove = 180
		days_re_enable = 365
		
		modifier = {
			money_expenses_factor = -0.05
			hidden_modifier = {
				money_expenses_factor_from_decisions = -0.05
			}
		}
		
		ai_will_do = { base = 1 }
	}
	
	# Inspire Troops
	eoanb_decision_war_troops_inspire = {
		icon = generic_nationalism
		
		visible = {
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			num_divisions > 5
		}
		
		cost = 50
		days_remove = 14
		days_re_enable = 150
		
		modifier = {
			army_morale_factor = 0.05
			army_core_attack_factor = 0.05
			army_core_defence_factor = 0.05
		}
		
		remove_effect = {
			army_experience = 5
		}
		
		ai_will_do = { base = 1 }
	}
	
	# Mobilize Men (Desperate)
	eoanb_decision_war_mobilize_men = {
		icon = generic_industry
		
		visible = {
			surrender_progress > 0.5
			has_manpower < 5000
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = scraping_the_barrel }
		}
		
		cost = 10
		days_re_enable = 365
		
		complete_effect = {
			add_manpower = 1000
			add_war_support = -0.005
		}
		
		ai_will_do = { base = 1 }
	}
}

# Economic Development Category
eoanb_category_economic = {
	
	# Expand Building Area
	eoanb_decision_building_slot_victorian = {
		icon = generic_construction
		
		visible = {
			check_variable = { money > 0 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			num_of_civilian_factories_available_for_projects > 0
		}
		
		days_remove = 90
		days_re_enable = 1000
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.2 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			civilian_factory_use = 1
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.2 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = {
			random_owned_controlled_state = {
				limit = { is_in_home_area = yes }
				add_extra_state_shared_building_slots = 1
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				tag = PRS
				NOT = { PRS_trigger_formed_germany = yes }
			}
		}
	}
	
	# Create Public Works
	eoanb_decision_create_public_works = {
		icon = GFX_decision_GENERIC_Create_Public_Works
		
		visible = {
			check_variable = { money > 0 }
			any_owned_state = {
				is_controlled_by = ROOT
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = no
				}
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			has_tech = tech_humanities_public_works
		}
		
		days_remove = 65
		days_re_enable = 30
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.1 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			political_power_cost = 0.5
			inflation_change = -0.001
			money_income_factor = -0.05
			production_speed_buildings_factor = 0.35
			hidden_modifier = {
				money_income_factor_from_decisions = -0.05
			}
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.1 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			set_temp_variable = { unemployment_value = -0.0001 }
			add_unemployment_effect = yes
		}
		
		ai_will_do = { factor = 0 }
	}
	
	# Improve Public Sanitation
	eoanb_decision_improve_public_sanitation = {
		icon = generic_construction
		
		visible = {
			check_variable = { money > 0 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			has_tech = tech_humanities_sewage_system
			num_of_civilian_factories_available_for_projects > 0
		}
		
		days_remove = 365
		days_re_enable = 1800
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.2 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			civilian_factory_use = 1
			MONTHLY_POPULATION = 0.01
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.2 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			set_temp_variable = { unemployment_value = -0.001 }
			add_unemployment_effect = yes
		}
		
		remove_effect = {
			if = {
				limit = {
					any_owned_state = {
						is_in_home_area = yes
						infrastructure < 4
					}
				}
				random_owned_state = {
					limit = {
						is_in_home_area = yes
						infrastructure < 4
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_state = {
					limit = { is_in_home_area = yes }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				tag = PRS
				NOT = { has_completed_focus = PRS_focus_unlock_germany }
			}
		}
	}
	
	# Expand Canal System
	eoanb_decision_expand_canal_system = {
		icon = canal
		
		visible = {
			check_variable = { money > 0 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			num_of_civilian_factories_available_for_projects > 0
		}
		
		days_remove = 365
		days_re_enable = 1800
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.2 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			civilian_factory_use = 1
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.2 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			set_temp_variable = { unemployment_value = -0.001 }
			add_unemployment_effect = yes
		}
		
		remove_effect = {
			if = {
				limit = {
					any_owned_state = {
						is_in_home_area = yes
						infrastructure < 4
					}
				}
				random_owned_state = {
					limit = {
						is_in_home_area = yes
						infrastructure < 4
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_state = {
					limit = { is_in_home_area = yes }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				tag = PRS
				NOT = { has_completed_focus = PRS_focus_unlock_germany }
			}
		}
	}
	
	# Promote Shipbuilding Industry
	eoanb_decision_promote_shipbuilding = {
		icon = generic_naval
		
		visible = {
			check_variable = { money > 0 }
			num_of_naval_factories > 3
			any_owned_state = { is_coastal = yes }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			has_navy_experience > 10
			num_of_civilian_factories_available_for_projects > 1
		}
		
		days_remove = 365
		days_re_enable = 1800
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.25 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_navy_experience > 9.9
		}
		custom_cost_text = eoanb_money_and_navy_experience_10
		
		modifier = {
			industrial_capacity_dockyard = 0.2
		}
		
		complete_effect = {
			navy_experience = -10
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.25 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				tag = PRS
				NOT = { has_completed_focus = PRS_focus_unlock_germany }
			}
		}
	}
	
	# Provide Public Education
	eoanb_decision_generic_provide_public_education = {
		icon = generic_research
		
		visible = {
			date > 1860.1.1
			has_idea = privileged_education
			NOT = { has_idea = open_schools }
			num_of_factories > 10
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			has_stability > 0.5
			has_war = no
		}
		
		cost = 500
		
		complete_effect = {
			custom_effect_tooltip = eoanb_decision_generic_provide_public_education_effect_tt
			hidden_effect = {
				swap_ideas = {
					remove_idea = privileged_education
					add_idea = open_schools
				}
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				date > 1875.1.1
			}
		}
	}
	
	# Improve Public Education
	eoanb_decision_generic_improve_public_education = {
		icon = university
		
		visible = {
			check_variable = { money > 0 }
			num_of_factories > 4
			OR = {
				has_idea = privileged_education
				has_idea = open_schools
				has_idea = compulsory_education
			}
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
		}
		
		available = {
			NOT = { has_idea = bankruptcy }
			has_stability > 0.5
			has_war = no
			num_of_civilian_factories_available_for_projects > 0
		}
		
		days_remove = 730
		days_re_enable = 730
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = num_of_factories }
			multiply_temp_variable = { amount_of_money_to_check = 0.2 }
			if = {
				limit = { check_variable = { amount_of_money_to_check > 10000 } }
				set_temp_variable = { amount_of_money_to_check = 10000 }
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			research_speed_factor = 0.05
			civilian_factory_use = 1
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = num_of_factories }
			multiply_temp_variable = { money_to_gain = 0.2 }
			if = {
				limit = { check_variable = { money_to_gain > 10000 } }
				set_temp_variable = { money_to_gain = 10000 }
			}
			multiply_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				date > 1875.1.1
			}
		}
	}
	
	# Start Industrializing
	eoanb_decision_generic_start_industrializing = {
		icon = generic_industry
		
		allowed = {
			NOT = {
				OR = {
					tag = BAV
					tag = FRK
					tag = HAN
					tag = HES
					tag = HSD
					tag = LCK
					tag = MCK
					tag = NAS
					tag = OLD
					tag = THU
					tag = WUR
					tag = PIE
					tag = TUS
					tag = BRA
				}
			}
		}
		
		visible = {
			has_idea = agrarian
			NOT = { has_idea = industrializing }
			NOT = {
				has_country_flag = Oceania_industrializing
				has_country_flag = afr_colony_industrializing
				has_country_flag = afr_an_african_industrializing
			}
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
			if = {
				limit = { tag = SPR }
				date > 1920.1.1
			}
			if = {
				limit = { tag = NOR }
				has_completed_focus = NOR_focus_industrialize
			}
		}
		
		available = {
			has_stability > 0.5
			has_tech = interchange_parts
			num_of_factories > 5
			set_temp_variable = { loan_size_to_check = 50 }
			has_less_than_specific_loan_size = yes
		}
		
		fire_only_once = yes
		days_remove = 700
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 1 }
			has_specific_amount_of_money = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		modifier = {
			consumer_goods_income_factor = -0.02
			hidden_modifier = {
				consumer_goods_income_factor_from_decisions = -0.02
			}
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			custom_effect_tooltip = eoanb_decision_generic_start_industrializing_effect_tt
			swap_ideas = {
				remove_idea = agrarian
				add_idea = industrializing
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				date > 1870.1.1
			}
			modifier = {
				factor = 200
				date > 1880.1.1
			}
		}
	}
	
	# Finish Industrializing
	eoanb_decision_generic_industrialisation = {
		icon = generic_industry
		
		visible = {
			has_idea = industrializing
			NOT = { has_idea = industrialized }
			OR = {
				has_idea = machine_era
				has_idea = oil_era
				has_idea = aviation_era
			}
		}
		
		available = {
			has_stability > 0.5
			has_tech = machine_tools_2
			has_tech = mechanical_production_2
			has_tech = factory_industry_2
			num_of_factories > 10
			set_temp_variable = { loan_size_to_check = 50 }
			has_less_than_specific_loan_size = yes
		}
		
		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 1 }
			has_specific_amount_of_money = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_tooltip_effect = yes
		}
		
		remove_effect = {
			custom_effect_tooltip = eoanb_decision_generic_start_industrializing_effect_tt
			swap_ideas = {
				remove_idea = industrializing
				add_idea = industrialized
			}
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				date > 1870.1.1
			}
			modifier = {
				factor = 200
				date > 1880.1.1
			}
		}
	}
	
	# Reduce Inflation
	reduce_inflation = {
		icon = GFX_decision_GENERIC_Deflation_Measures
		
		visible = {
			check_variable = { current_inflation > 0 }
		}
		
		available = {
			if = {
				limit = { has_idea = pre_industrial_era }
				set_temp_variable = { amount_of_money_to_check = 10 }
				has_specific_amount_of_money_with_inflation_included = yes
			}
			else_if = {
				limit = { has_idea = victorian_era }
				set_temp_variable = { amount_of_money_to_check = 25 }
				has_specific_amount_of_money_with_inflation_included = yes
			}
			else_if = {
				limit = { has_idea = machine_era }
				set_temp_variable = { amount_of_money_to_check = 50 }
				has_specific_amount_of_money_with_inflation_included = yes
			}
			else = {
				set_temp_variable = { amount_of_money_to_check = 100 }
				has_specific_amount_of_money_with_inflation_included = yes
			}
		}
		
		cost = 100
		days_remove = 60
		days_re_enable = 30
		
		modifier = {
			political_power_cost = 1
			inflation_change = -0.001
			money_income_factor = -0.1
			hidden_modifier = {
				money_income_factor_from_decisions = -0.1
			}
		}
		
		complete_effect = {
			if = {
				limit = { has_idea = pre_industrial_era }
				set_temp_variable = { money_to_gain = -10 }
				add_money_with_inflation_included_with_tooltip_effect = yes
			}
			else_if = {
				limit = { has_idea = victorian_era }
				set_temp_variable = { money_to_gain = -25 }
				add_money_with_inflation_included_with_tooltip_effect = yes
			}
			else_if = {
				limit = { has_idea = machine_era }
				set_temp_variable = { money_to_gain = -50 }
				add_money_with_inflation_included_with_tooltip_effect = yes
			}
			else = {
				set_temp_variable = { money_to_gain = -100 }
				add_money_with_inflation_included_with_tooltip_effect = yes
			}
		}
		
		remove_effect = {
			set_temp_variable = { inflation_to_gain = -0.1 }
			add_inflation_with_tooltip_effect = yes
		}
		
		ai_will_do = { factor = 50 }
	}
	
	# Print Money
	print_money = {
		icon = GFX_decision_GENERIC_Issue_Currency
		
		visible = {
			set_temp_variable = { amount_of_money_to_check = 2000000 }
			subtract_from_temp_variable = { amount_of_money_to_check = 50 }
			has_less_than_specific_amount_of_money = yes
		}
		
		available = {
			set_temp_variable = { amount_of_money_to_check = 2000000 }
			subtract_from_temp_variable = { amount_of_money_to_check = 50 }
			has_less_than_specific_amount_of_money = yes
		}
		
		cost = 50
		days_remove = 25
		days_re_enable = 5
		
		modifier = {
			political_power_cost = 1
			inflation_change = 0.002
		}
		
		remove_effect = {
			if = {
				limit = { has_idea = pre_industrial_era }
				set_temp_variable = { money_to_gain = 5 }
				add_money_with_tooltip_effect = yes
			}
			else_if = {
				limit = { has_idea = victorian_era }
				set_temp_variable = { money_to_gain = 15 }
				add_money_with_tooltip_effect = yes
			}
			else_if = {
				limit = { has_idea = machine_era }
				set_temp_variable = { money_to_gain = 65 }
				add_money_with_tooltip_effect = yes
			}
			else = {
				set_temp_variable = { money_to_gain = 195 }
				add_money_with_tooltip_effect = yes
			}
		}
		
		ai_will_do = { factor = 0 }
	}
	
	# Can Become Bankrupt Mission
	can_become_bankrupt_mission = {
		icon = decision_envelope
		
		activation = {
			NOT = { has_idea = bankruptcy }
			has_taken_a_loan = yes
			calculate_money_balance = yes
			set_temp_variable = { required_income = expenses_from_loans }
			multiply_temp_variable = { required_income = -1 }
			NOT = {
				check_variable = { total_income_temp > required_income }
			}
		}
		
		available = {
			calculate_money_balance = yes
			set_temp_variable = { required_income = expenses_from_loans }
			multiply_temp_variable = { required_income = -1 }
			OR = {
				custom_trigger_tooltip = {
					tooltip = HAS_MORE_INCOME_THAN_LOAN_EXPENSES
					check_variable = { total_income_temp > required_income }
				}
				has_war = yes
			}
		}
		
		days_mission_timeout = 90
		is_good = no
		
		complete_effect = {
			hidden_effect = {
				activate_mission = can_become_bankrupt_mission
				remove_mission = can_become_bankrupt_mission
			}
		}
		
		timeout_effect = {
			become_bankrupt_effect = yes
		}
	}
	
	# Can Become Bankrupt At War Mission
	can_become_bankrupt_at_war_mission = {
		icon = decision_envelope
		
		activation = {
			NOT = { has_idea = bankruptcy }
			has_war = yes
			has_taken_a_loan = yes
			calculate_money_balance = yes
			set_temp_variable = { required_income = expenses_from_loans }
			multiply_temp_variable = { required_income = -1 }
			NOT = {
				check_variable = { total_income_temp > required_income }
			}
		}
		
		available = {
			calculate_money_balance = yes
			set_temp_variable = { required_income = expenses_from_loans }
			multiply_temp_variable = { required_income = -1 }
			OR = {
				custom_trigger_tooltip = {
					tooltip = HAS_MORE_INCOME_THAN_LOAN_EXPENSES
					check_variable = { total_income_temp > required_income }
				}
				has_war = no
			}
		}
		
		days_mission_timeout = 180
		is_good = no
		
		complete_effect = {
			hidden_effect = {
				activate_mission = can_become_bankrupt_mission
				remove_mission = can_become_bankrupt_mission
			}
		}
		
		timeout_effect = {
			become_bankrupt_effect = yes
		}
	}
}

# Internal Politics Category
eoanb_category_politics_internal = {
	
	# Encourage Centrism
	eoanb_decision_drift_centrism = {
		icon = generic_break_treaty
		
		visible = {
			centrism < 0.7
			centrism > 0.1
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
			}
		}
		
		available = {
			has_stability > 0.6
		}
		
		cost = 150
		days_remove = 180
		days_re_enable = 7300
		
		modifier = {
			centrism_drift = 0.03
			stability_weekly = -0.001
		}
		
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				tag = PRS
				OR = {
					has_idea = PRS_Friedrich_Wilhelm_IV
					has_idea = PRS_Wilhelm_I
				}
			}
		}
	}
	
	# Raise Stability (Victorian Era)
	eoanb_decision_raise_stability_victorian = {
		icon = generic_form_nation
		
		visible = {
			has_idea = victorian_era
			has_stability < 0.75
			if = {
				limit = { tag = SPR }
				date > 1920.1.1
			}
		}
		
		available = {
			has_war = no
			OR = {
				has_idea = civilian_economy
				has_idea = low_economic_mobilisation
			}
		}
		
		cost = 50
		days_remove = 70
		days_re_enable = 180
		
		modifier = {
			stability_weekly = 0.0025
			industrial_capacity_factory = -0.05
			political_power_gain = -0.25
		}
		
		complete_effect = {
			add_stability = 0.01
		}
		
		ai_will_do = {
			base = 5
			modifier = {
				factor = 0
				NOT = { has_stability < 0.2 }
			}
		}
	}
	
	# Raise War Support in Peacetime
	eoanb_decision_gather_warsupport_victorian = {
		icon = generic_prepare_civil_war
		
		visible = {
			has_idea = victorian_era
			has_war_support < 0.75
			has_war = no
			if = {
				limit = { tag = SPR }
				date > 1920.1.1
			}
		}
		
		available = {
			OR = {
				NOT = { has_idea = free_elections }
				has_stability > 0.5
			}
		}
		
		cost = 50
		days_remove = 70
		days_re_enable = 365
		
		modifier = {
			war_support_weekly = 0.005
			political_power_gain = -0.1
			experience_gain_army_factor = -0.5
		}
		
		complete_effect = {
			add_named_threat = {
				threat = 0.5
				name = eoanb_threat_gather_warsupport_victorian
			}
		}
		
		ai_will_do = { base = 0 }
	}
	
	# Gather Legitimacy (Victorian Era)
	eoanb_decision_gather_legitimacy_victorian = {
		icon = generic_form_nation
		
		visible = {
			has_idea = victorian_era
			if = {
				limit = { tag = SPR }
				date > 1920.1.1
			}
		}
		
		available = {
			has_idea = victorian_era
			check_variable = { political_legitimacy < 1 }
		}
		
		cost = 50
		days_re_enable = 90
		
		complete_effect = {
			set_temp_variable = { political_legitimacy_change = 0.05 }
			eoanb_political_legitimacy_change = yes
		}
		
		ai_will_do = {
			base = 0
			modifier = {
				add = 10
				has_war = yes
				has_political_power > 250
				check_variable = { political_legitimacy < 0.6 }
			}
			modifier = {
				add = 10
				has_war = no
				has_political_power > 200
				check_variable = { political_legitimacy < 0.45 }
			}
		}
	}
	
	# Legitimize Through Military Austerity
	eoanb_decision_legitimize_military_austerity_victorian = {
		icon = generic_form_nation
		
		visible = {
			has_idea = victorian_era
			OR = {
				has_government = radical_democracy
				has_government = chauvinist_populism
				has_government = ideology_radical_socialism
				has_government = fundamentalism
				AND = {
					has_government = autocracy
				}
			}
		}
		
		available = {
			has_idea = victorian_era
			command_power > 50
			has_army_experience > 75
			check_variable = { political_legitimacy < 1 }
			OR = {
				has_government = radical_democracy
				has_government = chauvinist_populism
				has_government = ideology_radical_socialism
				has_government = fundamentalism
				AND = {
					has_government = autocracy
				}
			}
		}
		
		cost = 75
		days_re_enable = 90
		
		custom_cost_text = command_power_more_than_50_army_experience_more_than_75
		custom_cost_trigger = {
			has_army_experience > 74.9
			command_power > 49.9
		}
		
		complete_effect = {
			if = {
				limit = { has_war_support < 0.8 }
				add_war_support = 0.015
			}
			hidden_effect = {
				add_command_power = -50
				army_experience = -75
			}
			set_temp_variable = { political_legitimacy_change = 0.1 }
			eoanb_political_legitimacy_change = yes
		}
		
		ai_will_do = {
			base = 0
			modifier = {
				add = 10
				has_army_experience > 250
				check_variable = { political_legitimacy < 0.6 }
			}
			modifier = {
				add = 10
				has_war = no
				has_army_experience > 200
				check_variable = { political_legitimacy < 0.45 }
			}
		}
	}
	
	# Arrest Opposition Leaders
	eoanb_decision_generic_arrest_opposition_leaders = {
		icon = GFX_decision_generic_political_discourse
		
		visible = {
			NOT = {
				has_country_flag = eoanb_decision_generic_arrest_opposition_leaders_is_prohibited
				tag = PIE
				tag = TUS
			}
		}
		
		available = {
			NOT = { has_country_flag = parl_political_action_in_progress }
		}
		
		days_remove = 7
		
		custom_cost_trigger = {
			if = {
				limit = {
					OR = {
						has_idea = GEC_idea_polizeiverein_leader_1
						has_idea = GEC_idea_polizeiverein_leader_2
						has_idea = GEC_idea_polizeiverein_member
					}
				}
				has_political_power > 49.9
			}
			else = {
				has_political_power > 74.9
			}
		}
		custom_cost_text = eoanb_decision_generic_arrest_opposition_leaders_cost
		
		modifier = {
			political_power_gain = -0.25
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_decision_generic_arrest_opposition_leaders_tt
			if = {
				limit = {
					OR = {
						has_idea = GEC_idea_polizeiverein_leader_1
						has_idea = GEC_idea_polizeiverein_leader_2
						has_idea = GEC_idea_polizeiverein_member
					}
				}
				add_political_power = -50
			}
			else = {
				add_political_power = -75
			}
			set_country_flag = parl_political_action_in_progress
		}
		
		remove_effect = {
			clr_country_flag = parl_political_action_in_progress
			for_each_loop = {
				array = seats_count_array
				value = parl_v
				index = parl_i
				if = {
					limit = { check_variable = { parl_coalitions^parl_i = 2 } }
					set_temp_variable = { parl_r = random }
					multiply_temp_variable = { parl_r = -5 }
					round_variable = parl_r
					add_to_temp_variable = { parl_r = -1 }
					add_to_variable = { seats_count_array^parl_i = parl_r }
				}
			}
			add_to_variable = { political_legitimacy = -0.15 }
			clamp_variable = {
				var = political_legitimacy
				min = 0
				max = 1
			}
			compute_number_seats_tot = yes
			compute_number_seats_approve_est = yes
		}
	}
	
	# Ban Opposition Party
	eoanb_decision_generic_ban_opposition_party = {
		icon = GFX_decision_oppression
		
		visible = {
			NOT = {
				has_country_flag = eoanb_decision_generic_ban_opposition_party_is_prohibited
				tag = PIE
				tag = TUS
			}
		}
		
		available = {
			NOT = { has_country_flag = parl_political_action_in_progress }
		}
		
		days_remove = 7
		
		custom_cost_trigger = {
			if = {
				limit = {
					OR = {
						has_idea = GEC_idea_polizeiverein_leader_1
						has_idea = GEC_idea_polizeiverein_leader_2
						has_idea = GEC_idea_polizeiverein_member
					}
				}
				has_political_power > 75
			}
			else = {
				has_political_power > 100
			}
		}
		custom_cost_text = eoanb_decision_generic_ban_opposition_party_cost
		
		modifier = {
			political_power_gain = -0.25
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_decision_generic_ban_opposition_party_tt
			if = {
				limit = {
					OR = {
						has_idea = GEC_idea_polizeiverein_leader_1
						has_idea = GEC_idea_polizeiverein_leader_2
						has_idea = GEC_idea_polizeiverein_member
					}
				}
				add_political_power = -75
			}
			else = {
				add_political_power = -100
			}
			set_country_flag = parl_political_action_in_progress
		}
		
		remove_effect = {
			clr_country_flag = parl_political_action_in_progress
			for_each_loop = {
				array = seats_count_array
				value = parl_v
				index = parl_i
				if = {
					limit = { check_variable = { parl_coalitions^parl_i = 2 } }
					set_variable = { seats_count_array^parl_i = 0 }
					set_variable = { parl_coalitions^parl_i = 3 }
				}
			}
			add_to_variable = { political_legitimacy = -0.25 }
			clamp_variable = {
				var = political_legitimacy
				min = 0
				max = 1
			}
			apply_coalition_modifier = yes
			compute_weights = yes
			draw_seats = yes
			compute_number_seats_tot = yes
			compute_number_seats_approve_est = yes
		}
	}
}

# Political Actions (Empty Category)
political_actions = {
	
}

# Diplomatic Actions Category
eoanb_category_diplomatic_actions = {
	
	# Rename New York to New Amsterdam
	eoanb_decision_generic_rename_new_amsterdam = {
		icon = generic_decision
		
		allowed = { tag = HOL }
		
		visible = {
			OR = {
				AND = {
					HOL = { owns_state = 360 }
				}
				AND = {
					USA = { owns_state = 360 }
					USA = { is_subject_of = HOL }
				}
			}
		}
		
		available = {
			has_war = no
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = {
			set_province_name = {
				id = 3878
				name = "New Amsterdam"
			}
			hidden_effect = {
				set_global_flag = eoanb_flag_new_york_renamed_new_amsterdam
			}
		}
		
		ai_will_do = { base = 1000 }
	}
	
	# Rename New Amsterdam to New York
	eoanb_decision_generic_rename_new_york = {
		icon = generic_decision
		
		allowed = { tag = USA }
		
		visible = {
			USA = { is_subject = no }
			USA = { owns_state = 360 }
			has_global_flag = eoanb_flag_new_york_renamed_new_amsterdam
		}
		
		available = {
			has_war = no
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = {
			set_province_name = {
				id = 3878
				name = "New York"
			}
			hidden_effect = {
				clr_global_flag = eoanb_flag_new_york_renamed_new_amsterdam
			}
		}
		
		ai_will_do = { base = 1000 }
	}
	
	# Rename Königsberg to Kaliningrad
	eoanb_decision_generic_rename_kaliningrad = {
		icon = generic_decision
		
		allowed = { tag = RUS }
		
		visible = {
			RUS = { owns_state = 1001 }
		}
		
		available = {
			has_war = no
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = {
			set_province_name = {
				id = 6332
				name = "Kaliningrad"
			}
			1001 = {
				set_state_name = "Kaliningrad"
			}
			hidden_effect = {
				set_global_flag = eoanb_flag_konigsberg_renamed_kaliningrad
			}
		}
		
		ai_will_do = { base = 1000 }
	}
	
	# Rename Kaliningrad to Königsberg
	eoanb_decision_generic_rename_konigsberg = {
		icon = generic_decision
		
		allowed = {
			OR = {
				tag = PRS
				tag = GER
			}
		}
		
		visible = {
			has_global_flag = eoanb_flag_konigsberg_renamed_kaliningrad
			OR = {
				PRS = { owns_state = 1001 }
				GER = { owns_state = 1001 }
			}
		}
		
		available = {
			has_war = no
		}
		
		fire_only_once = yes
		cost = 10
		
		complete_effect = {
			set_province_name = {
				id = 6332
				name = "Königsberg"
			}
			1001 = {
				set_state_name = "Königsberg"
			}
			hidden_effect = {
				clr_global_flag = eoanb_flag_konigsberg_renamed_kaliningrad
			}
		}
		
		ai_will_do = { base = 1000 }
	}
}

# Military Category
eoanb_category_military = {
	
	# Recruit Colonial Troops (Algeria)
	eoanb_decision_generic_recruit_colonial_troops = {
		icon = generic_prepare_civil_war
		
		visible = {
			owns_state = 681
			NOT = {
				capital_scope = { is_on_continent = africa }
			}
			has_manpower > 2500
			has_equipment = { infantry_equipment > 249 }
			has_equipment = { uniform_equipment > 249 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
			OR = {
				AND = {
					capital_scope = { is_on_continent = europe }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = europe }
					}
				}
				AND = {
					capital_scope = { is_on_continent = north_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = north_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = south_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = south_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = australia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = australia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = asia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = asia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = middle_east }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = middle_east }
					}
				}
			}
		}
		
		available = {
			NOT = { has_idea = disarmed_nation }
		}
		
		fire_only_once = yes
		cost = 50
		days_remove = 30
		
		modifier = {
			experience_gain_army_factor = -0.25
		}
		
		complete_effect = {
			add_manpower = -2000
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = -200
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = eoanb_tt_decision_recruit_colonial_infantry_1
			hidden_effect = {
				load_oob = "DECISION_recruit_colonials_12589"
			}
		}
		
		ai_will_do = { base = 0 }
	}
	
	# Recruit Colonial Troops (South Africa)
	eoanb_decision_generic_recruit_colonial_troops_2 = {
		icon = generic_prepare_civil_war
		
		visible = {
			owns_state = 824
			NOT = {
				capital_scope = { is_on_continent = africa }
			}
			has_manpower > 2500
			has_equipment = { infantry_equipment > 249 }
			has_equipment = { uniform_equipment > 249 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
			OR = {
				AND = {
					capital_scope = { is_on_continent = europe }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = europe }
					}
				}
				AND = {
					capital_scope = { is_on_continent = north_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = north_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = south_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = south_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = australia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = australia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = asia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = asia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = middle_east }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = middle_east }
					}
				}
			}
		}
		
		available = {
			NOT = { has_idea = disarmed_nation }
		}
		
		fire_only_once = yes
		cost = 50
		days_remove = 30
		
		modifier = {
			experience_gain_army_factor = -0.25
		}
		
		complete_effect = {
			add_manpower = -2000
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = -200
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = eoanb_tt_decision_recruit_colonial_infantry_2
			hidden_effect = {
				load_oob = "DECISION_recruit_colonials_8248"
			}
		}
		
		ai_will_do = { base = 0 }
	}
	
	# Recruit Colonial Troops (India)
	eoanb_decision_generic_recruit_colonial_troops_3 = {
		icon = generic_prepare_civil_war
		
		visible = {
			owns_state = 459
			NOT = {
				capital_scope = { is_on_continent = africa }
			}
			has_manpower > 2500
			has_equipment = { infantry_equipment > 249 }
			has_equipment = { uniform_equipment > 249 }
			OR = {
				has_idea = victorian_era
				has_idea = machine_era
				has_idea = oil_era
			}
			OR = {
				AND = {
					capital_scope = { is_on_continent = europe }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = europe }
					}
				}
				AND = {
					capital_scope = { is_on_continent = north_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = north_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = south_america }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = south_america }
					}
				}
				AND = {
					capital_scope = { is_on_continent = australia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = australia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = asia }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = asia }
					}
				}
				AND = {
					capital_scope = { is_on_continent = middle_east }
					any_owned_state = {
						is_in_home_area = no
						NOT = { is_core_of = ROOT }
						NOT = { is_on_continent = middle_east }
					}
				}
			}
		}
		
		available = {
			NOT = { has_idea = disarmed_nation }
		}
		
		fire_only_once = yes
		cost = 50
		days_remove = 30
		
		modifier = {
			experience_gain_army_factor = -0.25
		}
		
		complete_effect = {
			add_manpower = -2000
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = -200
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = eoanb_tt_decision_recruit_colonial_infantry_3
			hidden_effect = {
				load_oob = "DECISION_recruit_colonials_1145"
			}
		}
		
		ai_will_do = { base = 0 }
	}
	
	# Advance to Napoleonic Age
	eoanb_decision_advance_to_the_napoleonic_age = {
		icon = naval_base
		
		visible = {
			OR = {
				has_idea = law_pre_industrial_army
				has_idea = law_pre_industrial_army_chinese
			}
		}
		
		available = {
			OR = {
				has_idea = law_pre_industrial_army
				has_idea = law_pre_industrial_army_chinese
			}
			has_tech = vic_army_cloth
			has_tech = improved_cavalry
			has_tech = rifle_equipment2
			OR = {
				has_tech = rbl_field_gun
				has_tech = rifled_howitzer
			}
		}
		
		fire_only_once = yes
		days_remove = 180
		
		custom_cost_trigger = {
			has_political_power > 9.9
			command_power > 74.99
		}
		custom_cost_text = eoanb_political_power_10_command_power_75
		
		modifier = {
			money_expenses = 0.05
		}
		
		complete_effect = {
			add_political_power = -10
			add_command_power = -75
		}
		
		remove_effect = {
			if = {
				limit = { has_idea = law_pre_industrial_army }
				swap_ideas = {
					remove_idea = law_pre_industrial_army
					add_idea = doctrine_napoleonic_army_1
				}
			}
			else_if = {
				limit = { has_idea = law_pre_industrial_army_chinese }
				swap_ideas = {
					remove_idea = law_pre_industrial_army_chinese
					add_idea = doctrine_napoleonic_army_1
				}
			}
		}
		
		ai_will_do = { base = 1000 }
	}
}

# Navy Category
eoanb_category_navy = {
	
	# Found Naval Command
	eoanb_found_naval_command = {
		icon = generic_army_support
		
		visible = {
			any_owned_state = { is_coastal = yes }
			NOT = { has_country_flag = naval_command_founded }
		}
		
		available = {
			has_navy_size = { size > 1 }
		}
		
		fire_only_once = yes
		cost = 0
		
		complete_effect = {
			set_country_flag = naval_command_founded
		}
		
		ai_will_do = { base = 1000 }
	}
}

# Air Category
eoanb_category_air = {
	
	# Found Air Command
	eoanb_found_air_command = {
		icon = generic_army_support
		
		visible = {
			has_tech = monoplane_scout
			NOT = { has_country_flag = air_command_founded }
		}
		
		available = {
			OR = {
				has_equipment = { monoplane_equipment_0 > 0 }
				has_equipment = { scout_plane_equipment_0 > 0 }
			}
		}
		
		fire_only_once = yes
		cost = 75
		
		complete_effect = {
			set_country_flag = air_command_founded
		}
	}
}

# Traditions & Celebrations Category
eoanb_category_traditions_celebrations = {
	
	# Celebrate Regional Traditions
	eoanb_decision_ITA_regional_celebration_tradition = {
		icon = generic_nationalism
		
		allowed = {
			OR = {
				tag = PIE
				tag = TUS
				tag = BAV
				tag = SPR
				tag = NSC
				tag = HOL
				tag = PRS
				tag = SWI
				tag = BAD
				tag = LVN
				tag = PRM
				tag = MOD
				tag = RUS
			}
		}
		
		available = {
			has_stability > 0.1
		}
		
		cost = 25
		days_re_enable = 365
		
		complete_effect = {
			add_stability = 0.005
		}
		
		ai_will_do = { base = 0 }
	}
}

# Options Category
eoanb_category_options = {
	
	# Open Options Menu
	eoanb_decision_open_options = {
		icon = generic_decision
		
		visible = {
			is_ai = no
			NOT = { has_country_flag = eoanb_startup_event_marker }
		}
		
		cost = 0
		
		complete_effect = {
			set_country_flag = eoanb_startup_event_marker
			set_country_flag = eoanb_startup_event_settings_marker
		}
	}
}
