eoanb_decision_category_schleswig_holstein_question = {

	#Raise Militias to Defend the Islands
	DEN_decision_raise_militias_to_defend_the_islands = {

		icon = generic_military

		allowed = { tag = DEN }
		
		available = {
			controls_province = 6361
			controls_province = 12674
			controls_province = 13003
		}

		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 7

		remove_effect = {
			37 = {
				create_unit = {
					division = "name = \"Bornholm Militia\" division_template = \"Danish Militia\" start_experience_factor = 0.0 start_manpower_factor = 0.2"
					owner = DEN
					prioritize_location = 6361
				}
			}
			100 = {
				create_unit = {
					division = "name = \"Iceland Militia\" division_template = \"Danish Militia\" start_experience_factor = 0.0 start_manpower_factor = 0.3"
					owner = DEN
					prioritize_location = 12674
				}
			}
			337 = {
				create_unit = {
					division = "name = \"Faroer Militia\" division_template = \"Danish Militia\" start_experience_factor = 0.0 start_manpower_factor = 0.1"
					owner = DEN
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Recruit Volunteers Across Scandinavia
	DEN_decision_recruit_scandinavian_volunteers = {

		icon = generic_prepare_civil_war

		allowed = { tag = DEN }
		
		available = {
			#
		}

		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14

		remove_effect = {
			SWE = { add_manpower = -529 }
			NOR = { add_manpower = -105 }
			FIN = { add_manpower = -7 }
			100 = { add_manpower = -11 }
			DEN = { add_manpower = 652 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Prepare the Danevirke Fortifications
	DEN_decision_prepare_the_danevirke_fortifications = {

		icon = fort

		allowed = { tag = DEN }
		
		available = {
			controls_province = 317
		}
		
		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = yes

		cost = 20
		
		days_remove = 14
		
		modifier = {
			production_speed_buildings_factor = -0.5
		}
		
		cancel_trigger = {
			NOT = { controls_province = 317 }
		}

		complete_effect = {
			58 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 317 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Prepare the Dybbøl Fortifications
	DEN_decision_prepare_the_dybbol_fortifications = {

		icon = fort

		allowed = { tag = DEN }
		
		available = {
			controls_province = 11251
		}
		
		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = yes

		cost = 20
		
		days_remove = 21
		
		modifier = {
			production_speed_buildings_factor = -0.5
		}
		
		cancel_trigger = {
			NOT = { controls_province = 11251 }
		}

		complete_effect = {
			1032 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 11251 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Blockade Prussian Ports
	DEN_decision_blockade_prussian_ports = {

		icon = naval_base_blocked

		allowed = { tag = DEN }
		
		available = {
			has_war_with = PRS
			naval_strength_ratio = {
				tag = PRS
				ratio > 0.8
			}
			has_navy_size = {
				size > 49
			}
			has_navy_size = {
				size > 19
				type = capital_ship
			}
			ships_in_area = {
				area = 206
				size > 44
			}
		}

		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = no

		cost = 50
		
		days_remove = 365
		
		modifier = {
			war_support_weekly = 0.01
		}
		
		targeted_modifier = {
			tag = PRS
			defense_bonus_against = 0.05
		}
		
		cancel_trigger = {
			OR = {
				NOT = {
					OR = {
						has_global_flag = eoanb_flag_second_schleswig_war
						has_global_flag = eoanb_flag_second_schleswig_war_gc
						has_global_flag = eoanb_flag_second_schleswig_war_trias
					}
				}
				naval_strength_ratio = {
					tag = PRS
					ratio < 0.8
				}
				has_navy_size = {
					size < 50
				}
				has_navy_size = {
					size < 20
					type = capital_ship
				}
				ships_in_area = {
					area = 206
					size < 45
				}
			}
		}

		remove_effect = {
			hidden_effect = {
				PRS = { country_event = { id = denmark.452 } }
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	#Blockade North Sea Ports
	DEN_decision_blockade_north_sea_ports = {

		icon = naval_base_blocked

		allowed = { tag = DEN }
		
		available = {
			OR = {
				has_war_with = BRE
				has_war_with = HAM
				has_war_with = HAN
			}
			ships_in_area = {
				area = 173
				size > 24
			}
		}

		visible = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
				has_global_flag = eoanb_flag_second_schleswig_war_trias
			}
		}

		fire_only_once = no

		cost = 50
		
		days_remove = 365
		
		modifier = {
			war_support_weekly = 0.01
		}
		
		targeted_modifier = {
			tag = BRE
			defense_bonus_against = 0.05
		}

		targeted_modifier = {
			tag = HAM
			defense_bonus_against = 0.05
		}
		
		targeted_modifier = {
			tag = HAN
			defense_bonus_against = 0.05
		}

		targeted_modifier = {
			tag = OLD
			defense_bonus_against = 0.05
		}
		
		cancel_trigger = {
			OR = {
				NOT = {
					OR = {
						has_global_flag = eoanb_flag_second_schleswig_war_gc
						has_global_flag = eoanb_flag_second_schleswig_war_trias
					}
				}
				ships_in_area = {
					area = 173
					size < 25
				}
			}
		}

		remove_effect = {
			hidden_effect = {
				PRS = { country_event = { id = denmark.452 } }
			}
		}

		ai_will_do = {
			base = 2000
		}
	}
}

DEN_decision_category_military = {
	
	#Lundbye's Military Reform Plans
	DEN_mission_krigsministre_lundbyes_acts = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			DEN_carl_lundbye = {
				is_army_chief = yes
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_krigsministre_lundbyes_acts_trigger_2_tt
				hidden_trigger = {
					37 = {
						any_province_building_level = {
							province = {
								id = 6287 # Copenhagen
							}
							building = coastal_bunker
							level > 1
						}
					}
				}
			}
			OR = {
				has_tech = early_howitzer
				has_tech = rml_field_gun
			}
			has_tech = tech_engineers
		}
		
		activation = { always = no }
		
		priority = 50
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 730
		
		cancel_trigger = {
			NOT = {
				DEN_carl_lundbye = {
					is_army_chief = yes
				}
			}
		}
		
		timeout_effect = {
			add_political_power = -50
			decrease_ps_by_one = yes
			add_stability = -0.05
			add_war_support = -0.05
		}
		
		complete_effect = {
			army_experience = 25
			add_political_power = 50
			add_stability = 0.05
			add_war_support = 0.05
			add_doctrine_cost_reduction = {
				cost_reduction = 0.10
				uses = 2
				category = land_doctrine
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = naval_doctrine
			}
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Enhance Status of the Scientific Army Departments
	DEN_decision_enhance_status_of_scientific_departments = { 

		icon = artillery
		
		#allowed = { tag = DEN }

		available = {
			has_stability > 0.45
			PS_pol_positive = yes
		}

		visible = {
			has_active_mission = DEN_mission_krigsministre_lundbyes_acts
		}

		fire_only_once = yes

		custom_cost_trigger = {
			has_political_power > 19.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_political_power_20_command_power_50
		
		days_remove = 180
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_krigsministre_lundbyes_acts }
		}
		
		complete_effect = {
			add_political_power = -20
			add_command_power = -50
			add_stability = -0.03
			decrease_ps_by_one = yes
		}
		
		remove_effect = { 
			army_experience = 25
			add_tech_bonus = { bonus = 0.5 uses = 1 category = artillery }
			add_tech_bonus = { bonus = 0.5 uses = 1 category = engineers_tech }
			add_tech_bonus = { ahead_reduction = 1 uses = 1 category = engineers_tech }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand the Copenhagen Sea Fortress
	DEN_decision_expand_copenhagen_sea_fortress = { 

		icon = generic_construction
		
		#allowed = { tag = DEN }

		available = {
			has_stability > 0.45
			if = {
				limit = {
					has_government = centrism
				}
				centrism > 0.45
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				traditional_conservatism > 0.45
			}
			else_if = {
				limit = {
					has_government = ideology_social_liberalism
				}
				traditional_conservatism > 0.45
			}
		}

		visible = {
			owns_state = 37
			has_active_mission = DEN_mission_krigsministre_lundbyes_acts
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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
			has_political_power > 24.99
		}
		custom_cost_text = eoanb_money_and_political_power_25
		
		days_remove = 180

		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
			NOT = { has_active_mission = DEN_mission_krigsministre_lundbyes_acts }
		}
		
		complete_effect = {
			add_political_power = -25
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			if = {
				limit = {
					OR = {
						has_government = centrism
						has_government = ideology_social_liberalism
					}
				}
				add_popularity = {
					ideology = traditional_conservatism
					popularity = 0.03
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = {
					ideology = centrism
					popularity = 0.01
				}
				add_popularity = {
					ideology = ideology_social_liberalism
					popularity = 0.02
				}
			}
		}
		
		remove_effect = {
			navy_experience = 25
			37 = { add_building_construction = { type = coastal_bunker level = 2 instant_build = yes province = 6287 } }
			if = {
				limit = {
					has_idea = DEN_advisor_ludvig_ferdinand_holmberg
				}
				add_war_support = 0.04
				add_political_power = 25
				add_tech_bonus = { bonus = 0.5 uses = 1 category = mechanical_engineering_tech }
			}
			else = {
				add_war_support = 0.02
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Military Uniform Exchange
	DEN_decision_military_uniform_exchange = { 

		icon = hol_exchange_intelligence_data
		
		#allowed = { tag = DEN }

		available = {
			has_war = no
			has_equipment = {
				uniform_equipment > 99
			}
			USA = { 
				has_war = no
				has_equipment = {
					uniform_equipment > 99
				}
			}
		}

		visible = {
			has_completed_focus = DEN_focus_army_modernization_efforts
		}

		fire_only_once = yes

		custom_cost_trigger = {
			has_political_power > 9.9
			command_power > 74.99
		}
		custom_cost_text = eoanb_political_power_10_command_power_75
		
		days_remove = 30
		
		cancel_trigger = {
			has_war = yes
			USA = { has_war = yes }
		}
		
		complete_effect = {
			add_political_power = -10
			add_command_power = -75
			add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = -100
				producer = DEN
			}
		}
		
		remove_effect = {
			USA = { country_event = { id = denmark.301 } }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Thestrup's Army Reforms
	DEN_mission_thestrups_army_reforms = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			#if = {
			#	limit = {
			#		is_ai = no
			#	}
			#	custom_trigger_tooltip = {
			#		tooltip = DEN_mission_thestrups_army_reforms_trigger_1_tt
			#		hidden_trigger = {
			#			check_variable = { mhc_sec_value = 2 }
			#		}
			#	}
			#}
			has_war_support > 0.5
			#has_army_size = {
			#	size > 16
			#}
			has_equipment = {
				infantry_equipment > 2999
			}
			has_tech = rifle_equipment2
			has_tech = sixfour_army_cloth
			has_tech = improved_cavalry
			has_tech = improved_handguns
			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 }
		
		priority = 50
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1500
		
		cancel_trigger = {
			#OR = {
			#	if = {
			#		limit = {
			#			is_ai = no
			#		}
			#		custom_trigger_tooltip = {
			#			tooltip = DEN_mission_thestrups_army_reforms_cancel_trigger_tt
			#			hidden_trigger = {
			#				NOT = { check_variable = { mhc_sec_value = 2 } }
			#			}
			#		}
			#	}
				has_war = yes
			#}
		}
		
		timeout_effect = {
			add_political_power = -100
			decrease_ps_by_one = yes
			add_stability = -0.1
			add_war_support = -0.1
		}
		
		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.10
				uses = 2
				category = land_doctrine
			}
			add_doctrine_cost_reduction = {
				cost_reduction = 0.25
				uses = 1
				category = naval_doctrine
			}
		}
	}
	
	#Buy Espingoles
	DEN_decision_buy_espingoles_guns = {

		icon = artillery
		
		#allowed = { tag = DEN }

		available = {
			has_stability > 0.5
			if = {
				limit = {
					has_government = centrism
				}
				centrism > 0.4
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				traditional_conservatism > 0.4
			}
		}

		visible = {
			has_completed_focus = DEN_focus_espingoles
		}

		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 = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = machine_gun_equipment_0
				amount = 50
				producer = DEN
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Prince Christian's Cavalry Reform Commission
	DEN_decision_prince_christians_commission = {

		icon = generic_cavalry

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_army_reform_ongoing_flag }
			has_completed_focus = DEN_focus_prince_christians_commission
		}

		visible = {
			has_active_mission = DEN_mission_thestrups_army_reforms
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 9.9
			command_power > 74.99
		}
		custom_cost_text = eoanb_political_power_10_command_power_75

		days_remove = 90
		
		modifier = {
			money_expenses = 0.03
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_thestrups_army_reforms }
		}
		
		complete_effect = {
			add_political_power = -10
			add_command_power = -75
			hidden_effect = {
				set_country_flag = DEN_army_reform_ongoing_flag
			}
		}
		
		remove_effect = {
			add_tech_bonus = { bonus = 0.5 uses = 2 category = tech_category_cavalry }
			add_doctrine_cost_reduction = { cost_reduction = 0.25 uses = 1 category = land_doctrine }
			army_experience = 20
			add_war_support = 0.03
			hidden_effect = {
				clr_country_flag = DEN_army_reform_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Wartime Battalion Duplication
	DEN_decision_wartime_battalion_duplication = {

		icon = generic_military

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_army_reform_ongoing_flag }
			has_completed_focus = DEN_focus_wartime_battalion_duplication
		}

		visible = {
			has_active_mission = DEN_mission_thestrups_army_reforms
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 24.9
			has_army_experience > 24.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_political_power_25_army_experience_25_command_power_50

		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_thestrups_army_reforms }
		}
		
		complete_effect = {
			add_political_power = -25
			army_experience = -25
			add_command_power = -50
			hidden_effect = {
				set_country_flag = DEN_army_reform_ongoing_flag
			}
		}
		
		remove_effect = {
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.907 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.907 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Promote Talented Army Leaders
	DEN_decision_promote_talented_army_leaders = {

		icon = generic_army_support

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_army_reform_ongoing_flag }
			has_completed_focus = DEN_focus_promote_talented_army_leaders
		}

		visible = {
			has_active_mission = DEN_mission_thestrups_army_reforms
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 9.9
			command_power > 74.99
		}
		custom_cost_text = eoanb_political_power_10_command_power_75

		days_remove = 90
		
		modifier = {
			money_expenses = 0.03
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_thestrups_army_reforms }
		}
		
		complete_effect = {
			add_political_power = -10
			add_command_power = -75
			hidden_effect = {
				set_country_flag = DEN_army_reform_ongoing_flag
			}
		}
		
		remove_effect = {
			add_doctrine_cost_reduction = { cost_reduction = 0.25 uses = 1 category = land_doctrine }
        	DEN_georg_von_gerlach = {
				add_corps_commander_role = {
					traits = { }
					skill = 3
						attack_skill = 2
						defense_skill = 3
						planning_skill = 2
						logistics_skill = 4
				}
			}
			DEN_glode_du_plat = {
				add_corps_commander_role = {
					traits = { }
					skill = 2
						attack_skill = 2
						defense_skill = 2
						planning_skill = 3
						logistics_skill = 2
				}
			}
			DEN_peter_frederik_steinmann = {
				add_corps_commander_role = {
					traits = { }
					skill = 3
						attack_skill = 2
						defense_skill = 3
						planning_skill = 3
						logistics_skill = 2
				}
			}
			DEN_edouard_suenson = {
				add_naval_commander_role = {
					traits = { }
					skill = 2
						attack_skill = 2
						defense_skill = 2
						planning_skill = 2
						logistics_skill = 2
				}
			}
			DEN_otto_hans_lutken = {
				add_naval_commander_role = {
					traits = { }
					skill = 1
						attack_skill = 1
						defense_skill = 1
						planning_skill = 1
						logistics_skill = 2
				}
			}
			add_advisor_role = {
                character = DEN_otto_hans_lutken
                advisor = {
                slot = high_command
                cost = 50
                idea_token = DEN_otto_hans_lutken_high_command
                traits = {
                    navy_fleet_logistics_1
                    }
                }
            }
			DEN_hans_herman_grove = {
				add_naval_commander_role = {
					traits = { }
					skill = 1
						attack_skill = 1
						defense_skill = 1
						planning_skill = 2
						logistics_skill = 3
				}
			}
			add_advisor_role = {
                character = DEN_hans_herman_grove
                advisor = {
                slot = high_command
                cost = 100
                idea_token = DEN_hans_herman_grove_high_command
                traits = {
                    navy_fleet_logistics_2
                    }
                }
            }
			hidden_effect = {
				clr_country_flag = DEN_army_reform_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#New Conscription Law
	DEN_decision_new_conscription_law = {

		icon = generic_military

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_army_reform_ongoing_flag }
			has_completed_focus = DEN_focus_new_conscription_law
		}

		visible = {
			has_active_mission = DEN_mission_thestrups_army_reforms
			OR = {
				has_idea = volunteer_only
				has_idea = early_conscription
				has_idea = limited_conscription
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 90
		
		modifier = {
			consumer_goods_expected_value = 0.05
			political_power_gain = -0.1
			war_support_weekly = -0.001
			stability_weekly_factor = -0.001
		}
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_thestrups_army_reforms }
		}
		
		complete_effect = {
			add_stability = -0.05
			add_war_support = -0.05
			hidden_effect = {
				set_country_flag = DEN_army_reform_ongoing_flag
			}
		}
		
		remove_effect = {  
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.909 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.909 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Increase Army Budget
	DEN_decision_increase_army_budget = {

		icon = money

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_army_reform_ongoing_flag }
			has_completed_focus = DEN_focus_increase_army_budget
		}

		visible = {
			has_active_mission = DEN_mission_thestrups_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 = 90
		
		modifier = {
			political_power_gain = -0.1
			war_support_weekly = -0.001
		}
		
		cancel_trigger = {
			NOT = { has_active_mission = DEN_mission_thestrups_army_reforms }
		}
		
		complete_effect = {
			add_stability = -0.03
			add_war_support = -0.03
			hidden_effect = {
				set_country_flag = DEN_army_reform_ongoing_flag
			}
		}
		
		remove_effect = {  
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.911 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.911 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Move the Copenhagen Naval Port to Holmen
	DEN_decision_move_navy_base_to_holmen = {

		icon = naval_base

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_navy_reform_ongoing_flag }
			owns_state = 37
		}

		visible = {
			has_completed_focus = DEN_focus_navy_modernization
		}

		fire_only_once = yes

		custom_cost_trigger = {
			has_political_power > 24.9
			has_navy_experience > 24.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_political_power_25_navy_experience_25_command_power_50
		
		days_remove = 60
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}
		
		complete_effect = {
			add_political_power = -25
			navy_experience = -25
			add_command_power = -50
			hidden_effect = {
				set_country_flag = DEN_navy_reform_ongoing_flag
			}
		}

		remove_effect = {
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.905 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.905 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#The Holmen Naval Port Expansion
	DEN_decision_holmen_naval_port_expansion = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_navy_reform_ongoing_flag }
		}

		visible = {
			owns_state = 37
			has_country_flag = DEN_holmen_naval_port_expansion_ready_flag
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_navy_experience > 49.9
		}
		custom_cost_text = eoanb_money_and_navy_experience_50

		days_remove = 730

		complete_effect = {
			set_temp_variable = { money_to_gain = -2.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			navy_experience = -50
			hidden_effect = {
				set_country_flag = DEN_navy_reform_ongoing_flag
			}
		}

		remove_effect = {
			37 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			hidden_effect = {
				clr_country_flag = DEN_navy_reform_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Study Modern Warships
	DEN_mission_study_modern_warships = {
		
		icon = generic_naval
		
		allowed = { always = no }
		
		available = {
			if = {
			has_tech = tech_naval_mtg_1860_corvette_hull
			has_tech = tech_naval_mtg_early_turrets
			}
		}
		
		activation = { always = no }
		
		priority = 40
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 730
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_war_support = -0.02
			}
		}
		
		complete_effect = {
			navy_experience = 50
			add_political_power = 25
			add_war_support = 0.02
			add_doctrine_cost_reduction = { cost_reduction = 0.5 uses = 1 category = naval_doctrine }
			add_tech_bonus = { bonus = 0.5 uses = 1 category = naval_equipment }
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Order Danish Armored Schooners
	DEN_decision_foreign_armored_schooners = {

		icon = generic_naval

		#allowed = { tag = DEN }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = DEN_focus_armored_schooners
		}

		visible = {  has_completed_focus = DEN_focus_study_modern_warships }

		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_navy_experience > 9.9
		}
		custom_cost_text = eoanb_money_and_navy_experience_10
		
		days_remove = 120
		
		modifier = {
			civilian_factory_use = 1
		}
		
		complete_effect = {
			navy_experience = -10
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			country_event = { id = denmark.826 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Order Foreign Armored Schooners
	DEN_decision_danish_armored_schooners = {

		icon = generic_naval

		#allowed = { tag = DEN }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = DEN_focus_armored_schooners
			has_tech = tech_naval_mtg_gunboat_engineering_1
		}

		visible = {  has_completed_focus = DEN_focus_study_modern_warships 	}

		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 = 120
		
		modifier = {
			civilian_factory_use = 1
			experience_gain_navy_factor = 0.05
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			country_event = { id = denmark.827 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Order the Rolf Krake
	DEN_decision_order_the_rolf_krake = {

		icon = generic_naval

		#allowed = { tag = DEN }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = DEN_focus_rolf_krake
		}

		visible = {  has_completed_focus = DEN_focus_study_modern_warships }

		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
		
		modifier = {
			civilian_factory_use = 1
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			country_event = { id = denmark.828 }
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Refit the Dannebrog to an Ironclad
	DEN_decision_refit_the_dannebrog_to_ironclad = {

		icon = generic_naval

		#allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_rolf_krake
			has_tech = tech_naval_prototype_ironclad

		}

		visible = { has_completed_focus = DEN_focus_study_modern_warships }

		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_navy_experience > 9.9
		}
		custom_cost_text = eoanb_money_and_navy_experience_10
		
		days_remove = 300
		
		modifier = {
			political_power_gain = -0.03
			consumer_goods_expected_value = 0.01
			experience_gain_navy_factor = 0.05
		}
		
		complete_effect = {
			navy_experience = -10
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			custom_effect_tooltip = DEN_decision_refit_the_dannebrog_to_ironclad_effect_tt
			hidden_effect = {
				transfer_ship = {
					prefer_name = "Dannebrog"
					type = lineship
					target = UCT
				}
				UCT = {
					destroy_ships = {
						type = lineship
						count = 1
					}
				}
			}
		}

		remove_effect = {
			country_event = { id = denmark.829 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Order Danish Screw Frigates
	DEN_decision_danish_screw_frigates = {

		icon = generic_naval

		#allowed = { tag = DEN }

		available = {
			num_of_civilian_factories_available_for_projects > 0
			has_completed_focus = DEN_focus_screw_frigates
		}

		visible = { has_completed_focus = DEN_focus_study_modern_warships }

		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_navy_experience > 9.9
		}
		custom_cost_text = eoanb_money_and_navy_experience_10
		
		days_remove = 300
		
		modifier = {
			civilian_factory_use = 1
			political_power_gain = -0.05
			consumer_goods_expected_value = 0.02
			experience_gain_navy_factor = 0.05
		}
		
		complete_effect = {
			navy_experience = -10
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			country_event = { id = denmark.830 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Fortify the Atlantic Naval Ports
	DEN_decision_fortify_atlantic_naval_bases = {

		icon = naval_base

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_navy_reform_ongoing_flag }
			OR = {
				owns_state = 100
				owns_state = 101
				owns_state = 337
			}
		}

		visible = { 
			has_country_flag = DEN_atlantic_naval_base_flag
			OR = {
				owns_state = 100
				owns_state = 101
				owns_state = 337
			}
		}

		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 = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_coastal_bunker_factor = 0.5
			experience_gain_navy_factor = 0.1
		}
		
		cancel_trigger = {
			NOT = { 
				OR = {
					owns_state = 100
					owns_state = 101
					owns_state = 337
				}
			}
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = DEN_navy_reform_ongoing_flag
				clr_country_flag = DEN_atlantic_naval_base_flag
			}
		}

		remove_effect = {
			if = {
				limit = {
					owns_state = 100
				}
				100 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = 12674 } }
			}
			if = {
				limit = {
					owns_state = 101
				}
				101 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = 10245 } }
			}
			if = {
				limit = {
					owns_state = 337
				}
				337 = { add_building_construction = { type = coastal_bunker level = 1 instant_build = yes province = 13003 } }
			}
			hidden_effect = {
				clr_country_flag = DEN_navy_reform_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Increase Navy Budget
	DEN_decision_increase_navy_budget = {

		icon = money

		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_navy_reform_ongoing_flag }
		}

		visible = {
			has_completed_focus = DEN_focus_increase_navy_budget
			OR = {
				has_idea = navy_spending_level_1
				has_idea = navy_spending_level_2
				has_idea = navy_spending_level_3
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 150
		
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			add_stability = -0.01
			add_war_support = -0.01
			hidden_effect = {
				set_country_flag = DEN_navy_reform_ongoing_flag
			}
		}
		
		remove_effect = {  
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.913 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.913 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}

	eoanb_decision_DEN_fortify_border = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			num_of_civilian_factories_available_for_projects > 1
		}

		visible = {
			has_completed_focus = DEN_focus_defenses_at_the_border
		}

		fire_only_once = yes

		cost = 20

		days_remove = 90

		remove_effect = {
			hidden_effect = {
				58 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 11366} }
				58 = { add_building_construction = { type = bunker level = 1 instant_build = yes province = 317 } }
			}
		}

		modifier = {
			civilian_factory_use = 1
		}

		ai_will_do = {
			base = 1000
		}
	}

	eoanb_mission_DEN_fortify_schleswig = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			1032 = { infrastructure > 4 }
			1032 = { industrial_complex > 1 }
		}

		activation = {
			has_completed_focus = DEN_focus_our_schleswig_is_a_better_schleswig
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1032
			}
		}

		fire_only_once = yes

		is_good = no
		
		days_mission_timeout = 635
		
		timeout_effect = {
			add_political_power = -80
			add_stability = -0.05
        }
		
		complete_effect = {
			add_political_power = 50
        }

		ai_will_do = {
			base = 1000
		}
	}

	eoanb_decision_DEN_learn_from_the_war = {

		icon = generic_construction

        #allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_learning_from_military_failures
		}

		visible = {
			has_completed_focus = DEN_focus_learning_from_military_failures
		}

		fire_only_once = yes

		cost = 100

		days_remove = 60

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_embarrassingly_trounced1
				}
				swap_ideas = {
					remove_idea = DEN_embarrassingly_trounced1
					add_idea = DEN_embarrassingly_trounced2
				}
			}
			else = {
				remove_ideas = DEN_embarrassingly_trounced3
			}
		}

		modifier = {
		}

		ai_will_do = {
			base = 1000
		}
	}
}

DEN_decision_category_imperialism = {

	#Intensify Cultivation of Tobacco in the West Indies
	DEN_decision_intensify_tobacco_cultivation_west_indies_1 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1357
		}

		visible = {
			has_completed_focus = DEN_focus_focus_on_west_indies
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.03
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			unlock_decision_tooltip = DEN_decision_intensify_tobacco_cultivation_west_indies_2
			hidden_effect = {
				1357 = { set_state_flag = eoanb_tobacco_cultivated_flag }
			}
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build Tobacco Plantations in the West Indies
	DEN_decision_intensify_tobacco_cultivation_west_indies_2 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1357
		}

		visible = {
			1357 = { has_state_flag = eoanb_tobacco_cultivated_flag }
			OR = {
				1357 = { NOT = { has_state_flag = eoanb_coffee_plantation_flag } }
				owns_state = 1328
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
			hidden_effect = {
				1357 = { clr_state_flag = eoanb_tobacco_cultivated_flag }
				1357 = { set_state_flag = eoanb_tobacco_plantation_flag }
			}
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			1357 = { add_extra_state_shared_building_slots = 1 }
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Intensify Cultivation of Coffee in the West Indies
	DEN_decision_intensify_coffee_cultivation_west_indies_1 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1357
		}

		visible = {
			has_completed_focus = DEN_focus_coffee_plantations_in_the_caribbean
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 180
		
		modifier = {
			consumer_goods_expected_value = 0.03
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			unlock_decision_tooltip = DEN_decision_intensify_coffee_cultivation_west_indies_2
			hidden_effect = {
				1357 = { set_state_flag = eoanb_coffee_cultivated_flag }
			}
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build Coffee Plantations in the West Indies
	DEN_decision_intensify_coffee_cultivation_west_indies_2 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1357
		}

		visible = {
			1357 = { has_state_flag = eoanb_coffee_cultivated_flag }
			OR = {
				1357 = { NOT = { has_state_flag = eoanb_tobacco_plantation_flag } }
				owns_state = 1328
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 365
		
		modifier = {
			money_expenses = 0.05
		}
		
		complete_effect = {
			hidden_effect = {
				1357 = { clr_state_flag = eoanb_coffee_cultivated_flag }
				1357 = { set_state_flag = eoanb_coffee_plantation_flag }
			}
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			1357 = { add_extra_state_shared_building_slots = 1 }
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Attract Danish Settlers to the West Indies
	DEN_decision_attract_danish_settlers_to_west_indies = {

		icon = eng_trade_unions_support

		#allowed = { tag = DEN }

		available = {
			OR = {
				has_idea = DEN_idea_crash_crop_colonies_1
				has_idea = DEN_idea_crash_crop_colonies_2
				has_idea = DEN_idea_crash_crop_colonies_3
				has_idea = DEN_idea_crash_crop_colonies_4
				has_idea = DEN_idea_crash_crop_colonies_5
			}
			1357 = {
				naval_base > 0
			}
			custom_trigger_tooltip = {
				tooltip = DEN_decision_attract_danish_settlers_to_colony_trigger_tt
				hidden_trigger = {
					NOT = {
						1357 = {
							any_of = {
								array = state_culture_array_num
								value = culture_check_v
								index = i
								
								check_variable = { culture_check_v > 0.1 }
								check_variable = { state_culture_array^i = global.danish }
							}
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1357
			NOT = {
				1357 = { is_core_of = DEN }
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = no
		
		cost = 10

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}
		
		remove_effect = {
			37 = { add_manpower = -500 }
			99 = { add_manpower = -500 }
			1357 = {
				set_temp_variable = {
					type_temp = global.afro-caribbean
				}
				set_temp_variable = {
					percentage_temp = 0.015
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.afro-caribeno
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.danish
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_culture = yes
				
				set_temp_variable = {
					type_temp = global.animist
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.protestant
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_religion = yes
				
				add_manpower = 1000
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Integrate the West Indies into the Helstaten
	DEN_decision_integrate_west_indies_into_the_helstaten = {

		icon = constitution

		#allowed = { tag = DEN }

		available = {
			custom_trigger_tooltip = {
				tooltip = DEN_decision_integrate_west_indies_into_the_helstaten_trigger_tt
				hidden_trigger = {
					1357 = {
						any_of = {
							array = state_culture_array_num
							value = culture_check_v
							index = i
								
							check_variable = { culture_check_v > 0.1 }
							check_variable = { state_culture_array^i = global.danish }
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1357
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1357
			}
		}

		fire_only_once = yes
		
		cost = 50

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1357 }
		}
		
		remove_effect = {
			1357 = { add_core_of = DEN }
			if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_4
					add_idea = DEN_idea_danish_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_3
					add_idea = DEN_idea_danish_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_2
					add_idea = DEN_idea_danish_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_1
					add_idea = DEN_idea_danish_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_danish_colonies_1
			}
		}

		ai_will_do = {
			base = 250
		}
	}
	
	#Intensify Cultivation of Cotton on the Nicobars
	DEN_decision_intensify_cotton_cultivation_nicobars_1 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1307
		}

		visible = {
			has_completed_focus = DEN_focus_develop_ny_danmark
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1307
			}
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 180
		
		modifier = {
			money_expenses = 0.03
		}

		remove_effect = {
			add_resource = {
				type = cotton
				amount = 3
				state = 1307
			}
			unlock_decision_tooltip = DEN_decision_intensify_cotton_cultivation_nicobars_2
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1307 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build Cotton Plantations on the Nicobars
	DEN_decision_intensify_cotton_cultivation_nicobars_2 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 1307
		}

		visible = {
			1307 = {
				has_resources_amount = {
					resource = cotton
					amount > 2
				}
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1307
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 365
		
		modifier = {
			money_expenses = 0.05
		}

		remove_effect = {
			hidden_effect = {
				add_resource = {
					type = cotton
					amount = -3
					state = 1307
				}
			}
			1307 = { add_extra_state_shared_building_slots = 1 }
			1307 = { add_building_construction = { type = cotton_farm level = 1 instant_build = yes } }
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1307 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Attract Danish Settlers to the Nicobars
	DEN_decision_attract_danish_settlers_to_nicobars = {

		icon = eng_trade_unions_support

		#allowed = { tag = DEN }

		available = {
			1307 = {
				cotton_farm > 0
				naval_base > 0
			}
			custom_trigger_tooltip = {
				tooltip = DEN_decision_attract_danish_settlers_to_colony_trigger_tt
				hidden_trigger = {
					NOT = {
						1307 = {
							any_of = {
								array = state_culture_array_num
								value = culture_check_v
								index = i
								
								check_variable = { culture_check_v > 0.1 }
								check_variable = { state_culture_array^i = global.danish }
							}
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1307
			NOT = {
				1307 = { is_core_of = DEN }
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1307
			}
		}

		fire_only_once = no
		
		cost = 10

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1307 }
		}
		
		remove_effect = {
			37 = { add_manpower = -50 }
			99 = { add_manpower = -50 }
			1307 = {
				set_temp_variable = {
					type_temp = global.andamanese
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.danish
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_culture = yes
				
				set_temp_variable = {
					type_temp = global.shiite
				}
				set_temp_variable = {
					percentage_temp = 0.015
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.hindu
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.protestant
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_religion = yes
				
				add_manpower = 100
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Integrate the Nicobars into the Helstaten
	DEN_decision_integrate_nicobars_into_the_helstaten = {

		icon = constitution

		#allowed = { tag = DEN }

		available = {
			custom_trigger_tooltip = {
				tooltip = DEN_decision_integrate_nicobars_into_the_helstaten_trigger_tt
				hidden_trigger = {
					1307 = {
						any_of = {
							array = state_culture_array_num
							value = culture_check_v
							index = i
								
							check_variable = { culture_check_v > 0.1 }
							check_variable = { state_culture_array^i = global.danish }
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1307
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1307
			}
		}

		fire_only_once = yes
		
		cost = 50

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1307 }
		}
		
		remove_effect = {
			1307 = { add_core_of = DEN }
			if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_4
					add_idea = DEN_idea_danish_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_3
					add_idea = DEN_idea_danish_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_2
					add_idea = DEN_idea_danish_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_1
					add_idea = DEN_idea_danish_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_danish_colonies_1
			}
		}

		ai_will_do = {
			base = 250
		}
	}
	
	#Build a Proper Naval Base in Africa
	DEN_mission_build_a_naval_base_in_africa = {

		icon = naval_base

		allowed = { always = no }

		available = {
			owns_state = 1111
			1111 = { naval_base > 1 }
		}

		activation = { always = no }
		
		highlight_states = {
			highlight_state_targets = {
				state = 1111
			}
		}

		fire_only_once = yes
		
		is_good = no

		days_mission_timeout = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1111 }
		}
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.01
			}
		}
		
		complete_effect = {
			37 = { add_manpower = -50 }
			99 = { add_manpower = -50 }
			1111 = {
				add_extra_state_shared_building_slots = 1
				
				set_temp_variable = {
					type_temp = global.fon
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_culture = yes
					
				set_temp_variable = {
					type_temp = global.yoruban
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.danish
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_increase_culture = yes
				
				set_temp_variable = {
					type_temp = global.animist
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.protestant
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_increase_religion = yes
				
				add_manpower = 100
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build Cotton Plantations in Africa
	DEN_mission_build_cotton_plantations_in_africa = {

		icon = generic_construction

		allowed = { always = no }

		available = {
			owns_state = 1111
			1111 = { cotton_farm > 0 }
		}

		activation = { always = no }
		
		highlight_states = {
			highlight_state_targets = {
				state = 1111
			}
		}

		fire_only_once = yes
		
		is_good = no

		days_mission_timeout = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1111 }
		}
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.01
			}
		}
		
		complete_effect = {
			37 = { add_manpower = -50 }
			99 = { add_manpower = -50 }
			1111 = {
				add_extra_state_shared_building_slots = 1
				
				set_temp_variable = {
					type_temp = global.fon
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.yoruban
				}
				set_temp_variable = {
					percentage_temp = 0.005
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.danish
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_increase_culture = yes
				
				set_temp_variable = {
					type_temp = global.animist
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.protestant
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_increase_religion = yes
					
				add_manpower = 100
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Attract Danish Settlers to Porto-Novo
	DEN_decision_attract_danish_settlers_to_porto_novo = {

		icon = eng_trade_unions_support

		#allowed = { tag = DEN }

		available = {
			1111 = {
				cotton_farm > 0
				naval_base > 1
			}
			custom_trigger_tooltip = {
				tooltip = DEN_decision_attract_danish_settlers_to_colony_trigger_tt
				hidden_trigger = {
					NOT = {
						1111 = {
							any_of = {
								array = state_culture_array_num
								value = culture_check_v
								index = i
								
								check_variable = { culture_check_v > 0.1 }
								check_variable = { state_culture_array^i = global.danish }
							}
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1111
			NOT = {
				1111 = { is_core_of = DEN }
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1111
			}
		}

		fire_only_once = no
		
		cost = 25

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1111 }
		}
		
		remove_effect = {
			37 = { add_manpower = -100 }
			99 = { add_manpower = -100 }
			1111 = {
				set_temp_variable = {
					type_temp = global.fon
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.yoruban
				}
				set_temp_variable = {
					percentage_temp = 0.01
				}
				pops_decrease_culture = yes
				
				set_temp_variable = {
					type_temp = global.danish
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_culture = yes
				
				set_temp_variable = {
					type_temp = global.animist
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_decrease_religion = yes
				
				set_temp_variable = {
					type_temp = global.protestant
				}
				set_temp_variable = {
					percentage_temp = 0.02
				}
				pops_increase_religion = yes
				
				add_manpower = 200
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Integrate Porto-Novo into the Helstaten
	DEN_decision_integrate_porto_novo_into_the_helstaten = {

		icon = constitution

		#allowed = { tag = DEN }

		available = {
			custom_trigger_tooltip = {
				tooltip = DEN_decision_integrate_porto_novo_into_the_helstaten_trigger_tt
				hidden_trigger = {
					1111 = {
						any_of = {
							array = state_culture_array_num
							value = culture_check_v
							index = i
								
							check_variable = { culture_check_v > 0.1 }
							check_variable = { state_culture_array^i = global.danish }
						}
					}
				}
			}
		}

		visible = {
			owns_state = 1111
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1111
			}
		}

		fire_only_once = yes
		
		cost = 50

		days_remove = 365
		
		cancel_trigger = {
			NOT = { owns_state = 1111 }
		}
		
		remove_effect = {
			1111 = { add_core_of = DEN }
			if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_4
					add_idea = DEN_idea_danish_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_3
					add_idea = DEN_idea_danish_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_2
					add_idea = DEN_idea_danish_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_danish_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_danish_colonies_1
					add_idea = DEN_idea_danish_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_danish_colonies_1
			}
		}

		ai_will_do = {
			base = 250
		}
	}
	
	#Prepare Possible Colonization of Dahomey
	DEN_mission_prepare_possible_colonization_of_dahomey = {

		icon = infiltrate_state

		allowed = { always = no }

		available = {
			DAH = { owns_state = 769 }
			owns_state = 1111
			1111 = { is_core_of = DEN }
			1111 = {
				naval_base > 2
				infrastructure > 1
				supply_node > 0
			}
			has_manpower > 4999
		}

		activation = { always = no }
		
		highlight_states = {
			highlight_state_targets = {
				state = 1111
			}
		}

		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1825
		
		cancel_trigger = {
			NOT = { DAH = { owns_state = 769 } }
			NOT = { owns_state = 1111 }
		}
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -75
				add_war_support = -0.05
			}
		}
		
		complete_effect = {
			create_wargoal = {
				type = annex_everything
				target = DAH
			}
		}

		ai_will_do = {
			base = 250
		}
	}
	
	#Intensify Cultivation of Cocoa in Africa
	DEN_decision_intensify_cocoa_cultivation_africa_1 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 769
		}

		visible = {
			has_completed_focus = DEN_focus_cocoa_plantations_in_africa
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 769
			}
		}

		fire_only_once = yes
		
		cost = 10

		days_remove = 180
		
		modifier = {
			money_expenses = 0.03
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			unlock_decision_tooltip = DEN_decision_intensify_cocoa_cultivation_africa_2
			hidden_effect = {
				769 = { set_state_flag = eoanb_cocoa_cultivated_flag }
			}
		}
		
		cancel_trigger = {
			NOT = { owns_state = 769 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build Cocoa Plantations in Africa
	DEN_decision_intensify_cocoa_cultivation_africa_2 = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			owns_state = 769
		}

		visible = {
			769 = { has_state_flag = eoanb_cocoa_cultivated_flag }
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 769
			}
		}

		fire_only_once = yes
		
		cost = 25

		days_remove = 365
		
		modifier = {
			money_expenses = 0.05
		}

		remove_effect = {
			if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_4
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_4
					add_idea = DEN_idea_crash_crop_colonies_5
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_3
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_3
					add_idea = DEN_idea_crash_crop_colonies_4
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_2
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_2
					add_idea = DEN_idea_crash_crop_colonies_3
				}
			}
			else_if = {
				limit = {
					has_idea = DEN_idea_crash_crop_colonies_1
				}
				swap_ideas = {
					remove_idea = DEN_idea_crash_crop_colonies_1
					add_idea = DEN_idea_crash_crop_colonies_2
				}
			}
			else = {
				add_ideas = DEN_idea_crash_crop_colonies_1
			}
			769 = { add_extra_state_shared_building_slots = 1 }
			hidden_effect = {
				769 = { clr_state_flag = eoanb_cocoa_cultivated_flag }
			}
		}
		
		cancel_trigger = {
			NOT = { owns_state = 769 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Establish a Trade Hub on the Nicobars
	DEN_decision_establish_trade_hub_nicobars = {

		icon = naval_base

		#allowed = { tag = DEN }

		available = {
			1307 = { is_core_of = DEN }
		}

		visible = {
			owns_state = 1307
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1307
			}
		}

		fire_only_once = yes
		
		cost = 50

		days_remove = 1095
		
		modifier = {
			money_expenses = 0.05
		}
		
		remove_effect = {
			1307 = {
				add_building_construction = { type = naval_base level = 2 instant_build = yes province = 13836 }
				add_building_construction = { type = infrastructure level = 1 instant_build = yes }
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
		}
		
		cancel_trigger = {
			NOT = { owns_state = 1307 }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#The Stöðulög Act
	DEN_decision_the_stodulog_act = {

		icon = generic_construction

		#allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_stodulog_act
			#check_variable = { current_reform_id = 0 }
		}

		visible = { 
			owns_state = 100
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.903 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.903 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}
}

DEN_decision_category_economy = {
	
	#The New Business Act
	DEN_decision_new_business_act = {

		icon = money

		#allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_danish_economy
			#check_variable = { current_reform_id = 0 }
		}

		visible = { 
			#
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			#if = {
			#	limit = {
			#		check_variable = { current_reform_id = 0 }
			#	}
				country_event = { id = denmark.901 days = 5 }
			#}
			#else = {
			#	country_event = { id = denmark.901 days = 35 }
			#}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Upgrade Our Railways
	DEN_decision_railway_upgrade = {

		icon = railway
		
		#allowed = { tag = DEN }

		available = {
			has_tech = steam_locomotive_3
			has_tech = standardized_gauge
			OR = {
				has_idea = road_spending_level_3
				has_idea = road_spending_level_4
			}
			has_idea = DEN_idea_danske_statsbaner
		}

		visible = {
			has_idea = NA_B_small_scale_railways
		}

		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
			has_political_power > 24.99
		}
		custom_cost_text = eoanb_money_and_political_power_25
		
		days_remove = 365
		 
		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			add_political_power = -25
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			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 } 
			}
		}
			
		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_two = yes
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
		}
	   
		ai_will_do = {
			base = 1000
		}
	}
	
	#Improve Danish Infrastructure
	DEN_mission_improve_danish_infrastructure = {
		
		icon = railway
		
		allowed = { always = no }
		
		available = {
			owns_state = 37
			37 = {
				infrastructure > 6
			}
			has_railway_level = {
				state = 37
				level = 2
			}
			owns_state = 99
			99 = {
				infrastructure > 5
			}
			has_railway_level = {
				state = 99
				level = 1
			}
			has_railway_connection = {
				start_province = 6235
				target_province = 6287
			}
			100 = {
				infrastructure > 3
			}
			101 = {
				infrastructure > 2
			}
			337 = {
				infrastructure > 3
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_improve_danish_infrastructure_trigger_100_tt
				hidden_trigger = {
					100 = {
						any_province_building_level = {
							province = {
								id = 12674 # Reykjavik
							}
							building = naval_base
							level > 1
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_improve_danish_infrastructure_trigger_101_tt
				hidden_trigger = {
					101 = {
						any_province_building_level = {
							province = {
								id = 10245 # Godthåb
							}
							building = naval_base
							level > 1
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_improve_danish_infrastructure_trigger_337_tt
				hidden_trigger = {
					337 = {
						any_province_building_level = {
							province = {
								id = 13003 # Tórshavn
							}
							building = naval_base
							level > 1
						}
					}
				}
			}
			NOT = { has_idea = road_spending_level_1 }
		}
		
		activation = { always = no }
		
		priority = 50
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 7300
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -50
				add_stability = -0.05
			}
		}
		
		complete_effect = {
			37 = { add_extra_state_shared_building_slots = 1 }
			99 = { add_extra_state_shared_building_slots = 1 }
			add_tech_bonus = { bonus = 0.5 uses = 2 category = transport_tech }
			swap_ideas = {
				remove_idea = DEN_idea_infrastructure_projects
				add_idea = DEN_idea_danske_statsbaner
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#The Aarhus–Randers Railway Line
	DEN_decision_aarhus_randers_railway = { 

		icon = railway
		
		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			has_completed_focus = DEN_focus_aarhus_randers_railway
		}

		visible = {
			owns_state = 99
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		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 = 180

		modifier = {
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 99 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			99 = { add_extra_state_shared_building_slots = 1 }
			build_railway = {
				level = 1
				path = {
					6235
					6364
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#The Fredericia-Aarhus Railway Line
	DEN_decision_fredericia_aarhus_railway = { 

		icon = railway
		
		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			has_completed_focus = DEN_focus_fredericia_aarhus_railway
		}

		visible = {
			owns_state = 99
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180

		modifier = {
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 99 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = { 
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			99 = { add_extra_state_shared_building_slots = 1 }
			build_railway = {
				level = 1
				path = {
					3277
					6364
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#The Lille Syd Railway Line
	DEN_decision_lille_syd_railway = { 

		icon = railway
		
		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			has_completed_focus = DEN_focus_lille_syd_railway
		}

		visible = {
			owns_state = 37
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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 = 180

		modifier = {
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = { 
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			37 = { add_extra_state_shared_building_slots = 1 }
			build_railway = {
				level = 1
				path = {
					6287
					6393
					3305
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#The Odense-Svendborg Railway Line
	DEN_decision_odense_svendborg_railway = { 

		icon = railway
		
		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			has_completed_focus = DEN_focus_odense_svendborg_railway
		}

		visible = {
			owns_state = 37
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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 = 180

		modifier = {
			production_speed_buildings_factor = -0.05
		}
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = { 
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			37 = { add_extra_state_shared_building_slots = 1 }
			build_railway = {
				level = 1
				path = {
					3325
					3374
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Establish a Sewerage System in København
	DEN_decision_copenhagen_sewerage = { 

		icon = generic_construction
		
		#allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_copenhagen_sewerage
		}

		visible = {
			owns_state = 37
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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 > 24.99
		}
		custom_cost_text = eoanb_money_and_political_power_25
		
		days_remove = 180

		modifier = {
			production_speed_buildings_factor = -0.03
		}
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}

		complete_effect = {
			add_political_power = -25
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = { 
			add_tech_bonus = { bonus = 0.5 uses = 1 category = humanities_tech }
			add_tech_bonus = { bonus = 0.5 uses = 1 category = biochemistry_tech }
			37 = { add_extra_state_shared_building_slots = 1 }
			if = {
				limit = {
					has_government = centrism
				}
				add_popularity = { 
					ideology = centrism
					popularity = 0.02
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = { 
					ideology = traditional_conservatism
					popularity = 0.02
				}
			}
			else_if = {
				limit = {
					has_government = ideology_social_liberalism
				}
				add_popularity = { 
					ideology = ideology_social_liberalism
					popularity = 0.02
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Open the København Zoo
	DEN_decision_copenhagen_zoo = { 

		icon = generic_operation
		
		#allowed = { tag = DEN }

		available = {
			has_completed_focus = DEN_focus_rapid_urbanization
		}

		visible = {
			owns_state = 37
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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
			has_political_power > 24.99
		}
		custom_cost_text = eoanb_money_and_political_power_25
		
		days_remove = 60
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}

		complete_effect = {
			add_political_power = -25
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = { 
			add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
			add_stability = 0.02
			if = {
				limit = {
					has_government = centrism
				}
				add_popularity = { 
					ideology = centrism
					popularity = 0.02
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = { 
					ideology = traditional_conservatism
					popularity = 0.02
				}
			}
			else_if = {
				limit = {
					has_government = ideology_social_liberalism
				}
				add_popularity = { 
					ideology = ideology_social_liberalism
					popularity = 0.02
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#The Aarhus Botanical Garden
	DEN_decision_aarhus_botanical_garden = { 

		icon = generic_operation
		
		#allowed = { tag = DEN }

		available = {
			date > 1875.1.1
		}

		visible = {
			owns_state = 99
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		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
			has_political_power > 24.99
		}
		custom_cost_text = eoanb_money_and_political_power_25
		
		days_remove = 60
		
		cancel_trigger = {
			NOT = { owns_state = 99 }
		}

		complete_effect = {
			add_political_power = -25
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = { 
			add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
			add_stability = 0.02
			if = {
				limit = {
					has_government = centrism
				}
				add_popularity = { 
					ideology = centrism
					popularity = 0.02
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = { 
					ideology = traditional_conservatism
					popularity = 0.02
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#The Hassel & Teudt Factory
	DEN_mission_hassel_teudt = {

		icon = generic_factory

		allowed = { always = no }

		available = {
			owns_state = 37
			37 = {
				industrial_complex > 2
			}
		}

		activation = { always = no }
		
		priority = 49

		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1800
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.025
			}
		}
		
		complete_effect = {
			add_political_power = 25
			add_stability = 0.025
			37 = { add_extra_state_shared_building_slots = 2 }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#The Hansen Writing Ball
	DEN_mission_hansen_writing_ball = {

		icon = hol_attract_foreign_investors

		allowed = { always = no }

		available = {
			owns_state = 37
			has_tech = interchange_parts
			has_tech = machine_tools_1
			has_tech = electrical_telegraph
		}

		activation = { always = no }
		
		priority = 48

		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 900
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.025
			}
		}
		
		complete_effect = {
			add_timed_idea = { idea = DEN_idea_hansen_writing_ball days = 1800 }
			37 = { add_extra_state_shared_building_slots = 1 }
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Carlsberg-Bryggerier
	DEN_mission_carlsberg_company = {

		icon = generic_factory

		allowed = { always = no }

		available = {
			owns_state = 37
			37 = {
				industrial_complex > 3
			}
		}

		activation = { always = no }
		
		priority = 47

		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1800
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.025
			}
		}
		
		complete_effect = {
			add_political_power = 25
			add_stability = 0.025
			37 = { add_extra_state_shared_building_slots = 1 }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			custom_effect_tooltip = DEN_mission_carlsberg_company_effect_tt
			if = {
				limit = {
					DEN_jacob_christian_jacobsen = {
						is_hired_as_advisor = yes
					}
				}
				DEN_jacob_christian_jacobsen = {
					remove_trait = {
						trait = DEN_trait_Jacob_Christian_Jacobsen_1
					}
					add_trait = {
						trait = DEN_trait_Jacob_Christian_Jacobsen_2
					}
				}
				EOANBSYS_institutions_innovative_add_three = yes
			}
			else = {
				EOANBSYS_institutions_innovative_add_two = yes
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Det Forenede Dampskibs-Selskab
	DEN_mission_dfds_company = { 

		icon = generic_naval

		allowed = { always = no }

		available = {
			owns_state = 37
			37 = {
				dockyard > 2
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_dfds_company_trigger_tt
				hidden_trigger = {
					37 = {
						any_province_building_level = {
							province = {
								id = 6287 # Copenhagen
							}
							building = naval_base
							level > 3
						}
					}
				}
			}
		}

		activation = { always = no }
		
		priority = 46
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		fire_only_once = yes
		
		is_good = no

		days_mission_timeout = 1800

		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.025
			}
		}
		
		complete_effect = {
			add_political_power = 25
			add_stability = 0.025
			37 = { add_extra_state_shared_building_slots = 1 }
			37 = { add_building_construction = { type = naval_base level = 1 instant_build = yes province = 6287 } }
			add_equipment_to_stockpile = {
				type = convoy
				amount = 20
			}
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Build the Esbjerg Port
	DEN_mission_esbjerg_port = { 

		icon = generic_construction

		allowed = { always = no }

		available = {
			owns_state = 99
			99 = {
				dockyard > 0
			}
			custom_trigger_tooltip = {
				tooltip = DEN_mission_esbjerg_port_trigger_tt
				hidden_trigger = {
					99 = {
						any_province_building_level = {
							province = {
								id = 399 # Esbjerg
							}
							building = naval_base
							level > 1
						}
					}
				}
			}
		}

		activation = { always = no }
		
		priority = 45
		
		highlight_states = {
			highlight_state_targets = {
				state = 99
			}
		}

		fire_only_once = yes
		
		is_good = no

		days_mission_timeout = 1800

		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -25
				add_stability = -0.025
			}
		}
		
		complete_effect = {
			set_victory_points = {
				province = 399
				value = 3
			}
			add_political_power = 25
			add_stability = 0.025
			99 = { add_extra_state_shared_building_slots = 1 }
			#if = {
			#	limit = {
			#		NOT = { has_idea = HLS_idea_profits_from_altona_1 }
			#	}
				99 = { add_building_construction = { type = naval_base level = 1 instant_build = yes province = 399 } }
			#}
			add_doctrine_cost_reduction = { cost_reduction = 0.75 uses = 1 category = naval_doctrine }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Found Danske Landmandsbank
	DEN_decision_danske_bank = { 

		icon = money
		
		#allowed = { tag = DEN }

		available = {
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
			has_completed_focus = DEN_focus_found_the_danske_bank
		}

		visible = {
			owns_state = 37
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 37
			}
		}

		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
		
		cancel_trigger = {
			NOT = { owns_state = 37 }
		}
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			add_political_power = -150
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = {
				set_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}
		
		remove_effect = { 
			add_stability = 0.05
			add_ideas = DEN_idea_danske_bank
			add_tech_bonus = { bonus = 0.5 uses = 1 category = humanities_tech }
			37 = { add_extra_state_shared_building_slots = 1 }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			unlock_decision_tooltip = DEN_decision_take_cheap_loan
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
				set_country_flag = DEN_danske_landmandsbank_founded_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Take a Cheap Loan with the Danske Landmandsbank
	DEN_decision_take_cheap_loan = {

		icon = money

		#allowed = { tag = DEN }
		
		available = {
			has_stability > 0.3
			set_temp_variable = { loan_size_to_check = 50 }
			has_less_than_specific_loan_size = yes
		}

		visible = {
			has_country_flag = DEN_danske_landmandsbank_founded_flag
		}

		cost = 50
		
		days_re_enable = 1825
		
		complete_effect = {
			set_temp_variable = { loans_amount = 5 }
			take_loan_without_inflation_effect = yes
		}

		ai_will_do = {
			base = 1000
			modifier = {
				factor = 0
				set_temp_variable = { loan_size_to_check = 20 }
				has_more_than_specific_loan_size = yes
			}
		}
	}
}

#DEN_decision_category_trade_influence = {
	
	### ON ICE UNTIL TARIFFS ARE A THING

	#Expand Economic Ties with Hamburg
	# DEN_decision_expand_economic_ties_hamburg = {

	# 	icon = gre_investment_decisions
		
	# 	allowed = { tag = DEN }
		
	# 	available = {
	# 		has_idea = DEN_idea_hamburg_trade_influence_1
	# 		HAM = {
	# 			has_opinion = {
	# 				target = DEN
	# 				value > 49
	# 			}
	# 		}
	# 		has_completed_focus = DEN_focus_relations_with_the_north_german_minors
	# 	}

	# 	visible = {
	# 		country_exists = HAM
	# 	}

	# 	fire_only_once = yes

	# 	cost = 25
		
	# 	days_remove = 180

	# 	modifier = {
	# 		political_power_gain = -0.05
	# 	}

	# 	complete_effect = {
	# 		country_event = { id = denmark.601 days = 1 }
	# 		HAM = { add_political_power = 50 }
	# 	}

	# 	ai_will_do = {
	# 		base = 10
	# 	}
	# }
	
	# #Influence Danish Trade
	# DEN_decision_influence_danish_trade = {

	# 	icon = gre_investment_decisions

	# 	allowed = { tag = HAM }
		
	# 	available = {
	# 		DEN = { has_idea = HLS_idea_profits_from_altona_1 }
	# 		NOT = {
	# 			has_country_flag = DEN_trade_war_hanza
	# 		}
	# 	}

	# 	visible = {
	# 		#
	# 	}

	# 	fire_only_once = no
		
	# 	days_re_enable = 180

	# 	cost = 25
		
	# 	days_remove = 180
		
	# 	modifier = {
	# 		political_power_gain = -0.15
	# 	}

	# 	complete_effect = {
	# 		if = {
	# 			limit = {
	# 				tag = HAM
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 		if =  {
	# 			limit = {
	# 				tag = LCK
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 	}
		
	# 	remove_effect = {
	# 		custom_effect_tooltip = DEN_trade_war_increase_influence_effect_tt 
	# 		DEN = {
	# 			add_to_variable = {
	# 				var = DEN_hamburg_trade_influence
	# 				value = 5
	# 			}
	# 		}
	# 	}

	# 	ai_will_do = {
	# 		base = 1000
	# 	}		
	# }
	
	# #Corrupt Danish Officials
	# DEN_decision_corrupt_danish_officials = {

	# 	icon = hol_attract_foreign_investors

	# 	allowed = { tag = HAM }
		
	# 	available = {
	# 		DEN = { has_idea = HLS_idea_profits_from_altona_1 }
	# 		NOT = {
	# 			has_country_flag = DEN_trade_war_hanza
	# 		}
	# 	}

	# 	visible = {
	# 		#
	# 	}

	# 	fire_only_once = no 
		
	# 	days_re_enable = 180

	# 	cost = 25
		
	# 	days_remove = 180
		
	# 	modifier = {
	# 		political_power_gain = -0.15
	# 	}

	# 	complete_effect = {
	# 		if = {
	# 			limit = {
	# 				tag = HAM
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 		if = {
	# 			limit = {
	# 				tag = LCK
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 	}
			
	# 	remove_effect = {
	# 		custom_effect_tooltip = DEN_trade_war_increase_influence_effect_tt
	# 		if = { 
	# 			limit = {
	# 				tag = HAM
	# 			}
	# 			DEN = {
	# 				add_to_variable = {
	# 					var = DEN_hamburg_trade_influence
	# 					value = 10
	# 				}
	# 			}
	# 		}
	# 		if = { 
	# 			limit = {
	# 				tag = LCK
	# 			} 
	# 			DEN = {
	# 				add_to_variable = {
	# 					var = DEN_lubeck_trade_influence
	# 					value = 10
	# 				}
	# 			}
	# 		}
	# 	}

	# 	ai_will_do = {
	# 		base = 800
	# 	}
	# }
		
	# #Fend Off the Competition
	# DEN_decision_combat_enemy_influence = {

	# 	icon = generic_civil_support

	# 	allowed = { tag = HAM }
		
	# 	available = {
	# 		DEN = { has_idea = HLS_idea_profits_from_altona_1 }
	# 		NOT = { 
	# 			has_country_flag = DEN_trade_war_hanza
	# 		}
	# 	}

	# 	visible = {
	# 		#
	# 	}

	# 	fire_only_once = no 
		
	# 	days_re_enable = 180

	# 	cost = 50
		
	# 	days_remove = 180
		
	# 	modifier = {
	# 		political_power_gain = -0.15
	# 	} 

	# 	complete_effect = {
	# 		if = {
	# 			limit = {
	# 				tag = HAM
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 		if = {
	# 			limit = {
	# 				tag = LCK
	# 			}
	# 			set_country_flag = { flag = DEN_trade_war_hanza value = 1 days = 240 }
	# 		}
	# 	}
			
	# 	remove_effect = {
	# 		if = { 
	# 			limit = {
	# 				tag = HAM
	# 			}
	# 			DEN = {
	# 				add_to_variable = {
	# 					var = DEN_hamburg_trade_influence
	# 					value = 10
	# 				}
	# 				add_to_variable = {
	# 					var = DEN_lubeck_trade_influence
	# 					value = -10
	# 				}
	# 			}
	# 		}
	# 		if = {
	# 			limit = {
	# 				tag = LCK
	# 			} 
	# 			DEN = {
	# 				add_to_variable = {
	# 					var = DEN_lubeck_trade_influence
	# 					value = 10 
	# 				}
	# 				add_to_variable = {
	# 					var = DEN_hamburg_trade_influence
	# 					value = -10 
	# 				}
	# 			}
	# 		}
	# 	}

	# 	ai_will_do = {
	# 		base = 800
	# 	}	
	# }
#}

DEN_decision_category_foreign_relations = {
	
	#Treaty of Friendship, Commerce, and Navigation with Siam
	DEN_decision_treaty_of_friendship_commerce_and_navigation_with_siam = {

		icon = constitution

		#allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_befriend_the_siamese
			has_war = no
			SIA = { has_war = no }
		}

		visible = {
			country_exists = SIA
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14
		
		remove_effect = {
			SIA = { country_event = { id = denmark.521 days = 7 } }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Trade with Siam
	DEN_decision_trade_with_siam = {

		icon = gre_investment_decisions

		#allowed = { tag = DEN }
		
		available = {
			has_war = no
			SIA = { has_war = no }
		}

		visible = {
			country_exists = SIA
			has_country_flag = DEN_treaty_with_siam_signed_flag
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14
		
		remove_effect = {
			SIA = { country_event = { id = denmark.524 days = 7 } }
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Trade with China (after SOW) - historically Summer 1863
	DEN_decision_trade_with_china = {

		icon = gre_investment_decisions

		#allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_trade_profits_in_china
			has_war = no
			custom_trigger_tooltip = {
				tooltip = eoanb_tt_no_war_with_china
				hidden_trigger = {
					NOT = { has_war_with = QNG }
					NOT = { has_war_with = CHI }
				}
			}
		}

		visible = {
			OR = {
				country_exists = QNG
				country_exists = CHI
			}
			QNG = {
				OR = {
					has_idea = CHI_idea_unequal_treaties_1
					has_idea = CHI_idea_unequal_treaties_2
				}
			}
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14
		
		remove_effect = {
			if = {
				limit = {
					country_exists = QNG
				}
				QNG = { country_event = { id = asiageneraldiplomatic.4 days = 7 } }
			}
			else = {
				CHI = { country_event = { id = asiageneraldiplomatic.4 days = 7 } }
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Treaty of Friendship, Commerce, and Navigation with Japan
	DEN_decision_treaty_of_friendship_commerce_and_navigation_with_japan = {

		icon = constitution

		#allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_befriend_the_japanese
			has_war = no
			custom_trigger_tooltip = {
				tooltip = DEN_trade_with_japan_trigger_tt
				hidden_trigger = {
					TSH = { has_war = no }
					JAP = { has_war = no }
				}
			}
		}

		visible = {
			OR = {
				country_exists = TSH
				country_exists = JAP
			}
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14
		
		remove_effect = {
			if = {
				limit = {
					country_exists = TSH
				}
				TSH = { country_event = { id = denmark.521 days = 7 } }
			}
			else = {
				JAP = { country_event = { id = denmark.521 days = 7 } }
			}
		}

		ai_will_do = {
			base = 100
		}
	}
	
	#Trade with Japan after Boshin War
	DEN_decision_trade_with_japan = {

		icon = gre_investment_decisions

		#allowed = { tag = DEN }
		
		available = {
			has_war = no
			custom_trigger_tooltip = {
				tooltip = DEN_trade_with_japan_trigger_tt
				hidden_trigger = {
					TSH = { has_war = no }
					JAP = { has_war = no }
				}
			}
		}

		visible = {
			OR = {
				TSH = { has_country_flag = is_literally_japan }
				JAP = { has_country_flag = is_literally_japan }
			}
			has_country_flag = DEN_treaty_with_japan_signed_flag
		}

		fire_only_once = yes

		cost = 10
		
		days_remove = 14

		remove_effect = {
			if = {
				limit = {
					TSH = { has_country_flag = is_literally_japan }
				}
				TSH = { country_event = { id = denmark.524 days = 7 } }
			}
			else = {
				JAP = { country_event = { id = denmark.524 days = 7 } }
			}
		}

		ai_will_do = {
			base = 800
		}
	}
}

eoanb_category_economic = {
	
	#Ask to Import Swedish Wood
	DEN_decision_ask_to_import_swedish_wood = {

		icon = wood_swe
		
		allowed = { tag = DEN }

		available = {
			DEN = {
				has_war = no
				is_puppet = no
			}
			SWE = {
				has_war = no
				is_puppet = no
			}
		}

		visible = {
			NOT = {
				OR = {
					has_country_flag = DEN_asking_for_swedish_wood_flag
					has_country_flag = DEN_sweden_accepts_wood_trade_flag
					has_country_flag = DEN_swedish_wood_imported_3_flag
					has_country_flag = DEN_swedish_wood_imported_6_flag
					has_country_flag = DEN_swedish_wood_imported_9_flag
					has_country_flag = DEN_swedish_wood_imported_12_flag
					has_country_flag = DEN_swedish_wood_imported_15_flag
					has_country_flag = DEN_sweden_denies_all_wood_trade_flag
				}
			}
			SWE = {
				any_owned_state = {
					has_resources_amount = {
						resource = wood
						amount > 5
					}
				}
			}
		}

		fire_only_once = no
		
		cost = 0
		
		days_re_enable = 1
	   
		complete_effect = {
			SWE = { country_event = { id = denmark.509 } }
			hidden_effect = {
				set_country_flag = DEN_asking_for_swedish_wood_flag
			}
		}
	   
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				OR = {
					37 = {
						has_resources_amount = {
							resource = wood
							amount > 2
						}
					}
					99 = {
						has_resources_amount = {
							resource = wood
							amount > 2
						}
					}
				}
			}
		}
	}
	
	#Ask to Import Swedish Iron
	DEN_decision_ask_to_import_swedish_iron = {

		icon = iron_swe
		
		allowed = { tag = DEN }

		available = {
			DEN = {
				has_war = no
				is_puppet = no
			}
			SWE = {
				has_war = no
				is_puppet = no
			}
		}

		visible = {
			NOT = {
				OR = {
					has_country_flag = DEN_asking_for_swedish_iron_flag
					has_country_flag = DEN_sweden_accepts_iron_trade_flag
					has_country_flag = DEN_swedish_iron_imported_3_flag
					has_country_flag = DEN_swedish_iron_imported_6_flag
					has_country_flag = DEN_swedish_iron_imported_9_flag
					has_country_flag = DEN_swedish_iron_imported_12_flag
					has_country_flag = DEN_swedish_iron_imported_15_flag
					has_country_flag = DEN_sweden_denies_all_iron_trade_flag
				}
			}
			SWE = {
				any_owned_state = {
					has_resources_amount = {
						resource = iron
						amount > 5
					}
				}
			}
		}

		fire_only_once = no
		
		cost = 0
		
		days_re_enable = 1
	   
		complete_effect = {
			SWE = { country_event = { id = denmark.512 } }
			hidden_effect = {
				set_country_flag = DEN_asking_for_swedish_iron_flag
			}
		}
	   
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				OR = {
					37 = {
						has_resources_amount = {
							resource = iron
							amount > 2
						}
					}
					99 = {
						has_resources_amount = {
							resource = iron
							amount > 2
						}
					}
				}
			}
		}
	}
	
	#Import Swedish Wood
	DEN_decision_import_swedish_wood = {

		icon = wood_swe
		
		allowed = { tag = DEN }

		available = {
			DEN = {
				has_war = no
				is_puppet = no
			}
			SWE = {
				has_war = no
				is_puppet = no
			}
		}

		visible = {
			has_country_flag = DEN_sweden_accepts_wood_trade_flag
			NOT = {
				OR = {
					has_country_flag = DEN_swedish_wood_imported_3_flag
					has_country_flag = DEN_swedish_wood_imported_6_flag
					has_country_flag = DEN_swedish_wood_imported_9_flag
					has_country_flag = DEN_swedish_wood_imported_12_flag
					has_country_flag = DEN_swedish_wood_imported_15_flag
				}
			}
			SWE = {
				any_owned_state = {
					has_resources_amount = {
						resource = wood
						amount > 5
					}
				}
			}
		}

		fire_only_once = no
		
		cost = 0
	   
		complete_effect = {
			country_event = { id = denmark.515 }
			add_opinion_modifier = { target = SWE modifier = DEN_SWE_WOOD_TRADE_ESTABLISHED_REL }
			reverse_add_opinion_modifier = { target = SWE modifier = DEN_SWE_WOOD_TRADE_ESTABLISHED_REL }
			hidden_effect = {
				clr_country_flag = DEN_sweden_accepts_wood_trade_flag
			}
		}
	   
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				OR = {
					37 = {
						has_resources_amount = {
							resource = wood
							amount > 2
						}
					}
					99 = {
						has_resources_amount = {
							resource = wood
							amount > 2
						}
					}
				}
			}
		}
	}
	
	#Import Swedish Iron
	DEN_decision_import_swedish_iron = {

		icon = iron_swe
		
		allowed = { tag = DEN }

		available = {
			DEN = {
				has_war = no
				is_puppet = no
			}
			SWE = {
				has_war = no
				is_puppet = no
			}
		}

		visible = {
			has_country_flag = DEN_sweden_accepts_iron_trade_flag
			NOT = {
				OR = {
					has_country_flag = DEN_swedish_iron_imported_3_flag
					has_country_flag = DEN_swedish_iron_imported_6_flag
					has_country_flag = DEN_swedish_iron_imported_9_flag
					has_country_flag = DEN_swedish_iron_imported_12_flag
					has_country_flag = DEN_swedish_iron_imported_15_flag
				}
			}
			SWE = {
				any_owned_state = {
					has_resources_amount = {
						resource = iron
						amount > 5
					}
				}
			}
		}

		fire_only_once = no
		
		cost = 0
	   
		complete_effect = {
			country_event = { id = denmark.517 }
			add_opinion_modifier = { target = SWE modifier = DEN_SWE_IRON_TRADE_ESTABLISHED_REL }
			reverse_add_opinion_modifier = { target = SWE modifier = DEN_SWE_IRON_TRADE_ESTABLISHED_REL }
			hidden_effect = {
				clr_country_flag = DEN_sweden_accepts_iron_trade_flag
			}
		}
	   
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				OR = {
					37 = {
						has_resources_amount = {
							resource = iron
							amount > 2
						}
					}
					99 = {
						has_resources_amount = {
							resource = iron
							amount > 2
						}
					}
				}
			}
		}
	}
	
	#Stop Importing Swedish Wood
	DEN_decision_stop_importing_swedish_wood = {

		icon = wood_swe
		
		allowed = { tag = DEN }

		available = {
			#
		}

		visible = {
			OR = {
				has_country_flag = DEN_swedish_wood_imported_3_flag
				has_country_flag = DEN_swedish_wood_imported_6_flag
				has_country_flag = DEN_swedish_wood_imported_9_flag
				has_country_flag = DEN_swedish_wood_imported_12_flag
				has_country_flag = DEN_swedish_wood_imported_15_flag
			}
		}

		fire_only_once = no
		
		cost = 10
	   
		complete_effect = {
			SWE = { country_event = { id = denmark.519 } }
			if = {
				limit = {
					has_opinion_modifier = DEN_SWE_WOOD_TRADE_ESTABLISHED_REL
				}
				remove_opinion_modifier = { target = SWE modifier = DEN_SWE_WOOD_TRADE_ESTABLISHED_REL }
				SWE = { remove_opinion_modifier = { target = DEN modifier = DEN_SWE_WOOD_TRADE_ESTABLISHED_REL } }
			}
			if = {
				limit = {
					has_country_flag = DEN_swedish_wood_imported_3_flag
				}
				37 = {
					add_resource = {
						type = wood
						amount = -3
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.01 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.01 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_wood_imported_3_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_wood_imported_6_flag
				}
				37 = {
					add_resource = {
						type = wood
						amount = -6
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.02 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.02 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_wood_imported_6_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_wood_imported_9_flag
				}
				37 = {
					add_resource = {
						type = wood
						amount = -9
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.03 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.03 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_wood_imported_9_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_wood_imported_12_flag
				}
				37 = {
					add_resource = {
						type = wood
						amount = -12
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.04 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.04 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_wood_imported_12_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_wood_imported_15_flag
				}
				37 = {
					add_resource = {
						type = wood
						amount = -15
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.05 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.05 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_wood_imported_15_flag
				}
			}
			hidden_effect = {
				if = {
					limit = {
						check_variable = { var = DEN_swedish_trade_expenses value = 0 compare = equals }
					}
					clear_variable = DEN_swedish_trade_expenses
					remove_dynamic_modifier = { modifier = dynmod_DEN_swedish_trade }
				}
			}
		}
	   
		ai_will_do = { base = 0 }
	}
	
	#Stop Importing Swedish Iron
	DEN_decision_stop_importing_swedish_iron = {

		icon = iron_swe
		
		allowed = { tag = DEN }

		available = {
			#
		}

		visible = {
			OR = {
				has_country_flag = DEN_swedish_iron_imported_3_flag
				has_country_flag = DEN_swedish_iron_imported_6_flag
				has_country_flag = DEN_swedish_iron_imported_9_flag
				has_country_flag = DEN_swedish_iron_imported_12_flag
				has_country_flag = DEN_swedish_iron_imported_15_flag
			}
		}

		fire_only_once = no
		
		cost = 10
	   
		complete_effect = {
			SWE = { country_event = { id = denmark.520 } }
			if = {
				limit = {
					has_opinion_modifier = DEN_SWE_IRON_TRADE_ESTABLISHED_REL
				}
				remove_opinion_modifier = { target = SWE modifier = DEN_SWE_IRON_TRADE_ESTABLISHED_REL }
				SWE = { remove_opinion_modifier = { target = DEN modifier = DEN_SWE_IRON_TRADE_ESTABLISHED_REL } }
			}
			if = {
				limit = {
					has_country_flag = DEN_swedish_iron_imported_3_flag
				}
				37 = {
					add_resource = {
						type = iron
						amount = -3
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.01 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.01 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_iron_imported_3_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_iron_imported_6_flag
				}
				37 = {
					add_resource = {
						type = iron
						amount = -6
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.02 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.02 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_iron_imported_6_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_iron_imported_9_flag
				}
				37 = {
					add_resource = {
						type = iron
						amount = -9
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.03 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.03 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_iron_imported_9_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_iron_imported_12_flag
				}
				37 = {
					add_resource = {
						type = iron
						amount = -12
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.04 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.04 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_iron_imported_12_flag
				}
			}
			else_if = {
				limit = {
					has_country_flag = DEN_swedish_iron_imported_15_flag
				}
				37 = {
					add_resource = {
						type = iron
						amount = -15
					}
				}
				set_temp_variable = { DEN_swedish_trade_additional_cost_temp = -0.05 }
				custom_effect_tooltip = DEN_swedish_trade_effect_tt
				add_to_variable = { DEN_swedish_trade_expenses = -0.05 tooltip = money_expenses }
				force_update_dynamic_modifier = yes
				hidden_effect = {
					clr_country_flag = DEN_swedish_iron_imported_15_flag
				}
			}
			hidden_effect = {
				if = {
					limit = {
						check_variable = { var = DEN_swedish_trade_expenses value = 0 compare = equals }
					}
					clear_variable = DEN_swedish_trade_expenses
					remove_dynamic_modifier = { modifier = dynmod_DEN_swedish_trade }
				}
			}
		}
	   
		ai_will_do = { base = 0 }
	}
}

eoanb_category_politics_internal = {
	
	#Expand our Sphere of Popular Support
	DEN_decision_expand_our_sphere_of_popular_support = {

		icon = hol_exchange_intelligence_data

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_forming_the_cabinet
		}

		visible = {
			has_completed_focus = DEN_focus_carl_christian_halls_presidency
		}

		fire_only_once = yes

		cost = 75
		
		days_remove = 60

		remove_effect = {
			increase_legitimacy_by_three = yes
			if = {
				limit = {
					NOT = { has_variable = political_legitimacy_equilibrium_custom }
				}
				set_variable = { political_legitimacy_equilibrium_custom = 0.03 }
			}
			else = {
				add_to_variable = {
					political_legitimacy_equilibrium_custom = 0.03
				}
			}
			add_popularity = { ideology = centrism popularity = 0.05 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#National Liberal Programs in the Academy and Universities
	DEN_decision_national_liberal_programs_in_academia = {

		icon = university

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_addressing_our_policies
		}

		visible = {
			has_completed_focus = DEN_focus_carl_christian_halls_presidency
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90

		remove_effect = {
			add_popularity = { ideology = centrism popularity = 0.05 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Enact the Næringsloven
	DEN_decision_enact_the_naeringsloven = {

		icon = gre_paying_ifc_debt

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_the_copenhagen_trade_crisis
		}

		visible = {
			has_completed_focus = DEN_focus_a_free_liberal_economy
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90

		remove_effect = {
			#add vote
			remove_ideas = DEN_idea_guilds_presence
			if = {
				limit = {
					has_idea = limited_exports
				}
				swap_ideas = { 
					remove_idea = limited_exports 
					add_idea = export_focus 
				}
			}
			if = {
				limit = {
					has_idea = Panic_of_1857_4
				}
				modify_timed_idea = {
					idea = Panic_of_1857_4
					days = -60
				}
			}
		}

		ai_will_do = {
			base = 500
		}
	}
	
	### LEFTIST PATH
	
	#Overcome Political Obstacles
	DEN_mission_overcome_political_obstacles = {
		
		icon = generic_speech
		
		allowed = { always = no }
		
		available = {
			ideology_social_liberalism > 39.9
		}
		
		activation = { always = no }
		
		priority = 50
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 300
		
		cancel_trigger = {
			NOT = { has_government = ideology_social_liberalism }
		}
		
		timeout_effect = {
			country_event = { id = denmark.212 }
		}
		
		complete_effect = {
			increase_ps_by_one = yes
			add_political_power = 100
			add_stability = 0.1
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Organize a Gathering of Peasants in Jutland
	DEN_decision_organize_a_gathering_of_peasants_in_jutland = {

		icon = POL_looming_peasants_strike

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_act_as_representative_of_the_rural_people
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_left
			controls_state = 99
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 60
		
		cancel_trigger = {
			OR = {
				NOT = { controls_state = 99 }
				NOT = { has_government = ideology_social_liberalism }
			}
		}

		remove_effect = {
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.03 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Organize a Gathering of Peasants in Sjaelland
	DEN_decision_organize_a_gathering_of_peasants_in_sjaelland = {

		icon = POL_looming_peasants_strike

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_act_as_representative_of_the_rural_people
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_left
			controls_state = 37
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 60
		
		cancel_trigger = {
			OR = {
				NOT = { controls_state = 37 }
				NOT = { has_government = ideology_social_liberalism }
			}
		}

		remove_effect = {
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.02 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Increase Literacy Amongst the Peasantry
	DEN_decision_increase_literacy_amongst_the_peasantry = {

		icon = newspaper_open

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_social_liberals
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_left
		}

		fire_only_once = yes

		cost = 75
		
		days_remove = 150
		
		modifier = {
			political_power_gain = -0.05
			ideology_social_liberalism_drift = 0.01
		}
		
		cancel_trigger = {
			NOT = { has_government = ideology_social_liberalism }
		}

		remove_effect = {
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.02 }
			add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Create a Newspaper Aimed at the Peasantry
	DEN_decision_create_a_newspaper_aimed_at_the_peasantry = {

		icon = newspaper_folded

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_social_liberals
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_left
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
			ideology_social_liberalism_drift = 0.01
		}
		
		cancel_trigger = {
			NOT = { has_government = ideology_social_liberalism }
		}

		remove_effect = {
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.01 }
			add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Create National Liberal-Aligned Newspapers
	DEN_decision_create_national_liberal_aligned_newspapers = {

		icon = newspaper_folded

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_liberals
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_center
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
			centrism_drift = 0.01
		}
		
		cancel_trigger = {
			NOT = { has_government = centrism }
		}

		remove_effect = {
			add_popularity = { ideology = centrism popularity = 0.03 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Encourage Authors Supporting our Ideals
	DEN_decision_encourage_authors_supporting_our_ideals = {

		icon = newspaper_open

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_liberals
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_center
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 60
		
		modifier = {
			political_power_gain = -0.05
		}
		
		cancel_trigger = {
			NOT = { has_government = centrism }
		}

		remove_effect = {
			add_popularity = { ideology = centrism popularity = 0.02 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Create Conservative-Aligned Newspapers
	DEN_decision_create_conservative_aligned_newspapers = {

		icon = newspaper_folded

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_conservatives
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_right
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 90
		
		modifier = {
			political_power_gain = -0.05
			traditional_conservatism_drift = 0.01
		}
		
		cancel_trigger = {
			NOT = { has_government = traditional_conservatism }
		}

		remove_effect = {
			add_popularity = { ideology = traditional_conservatism popularity = 0.03 }
		}

		ai_will_do = {
			base = 500
		}
	}
	
	#Gather Support Amongst the Ruling Classes
	DEN_decision_gather_support_amongst_the_ruling_classes = {

		icon = eng_ally_imperialist_coup

		allowed = { tag = DEN }
		
		available = {
			has_completed_focus = DEN_focus_building_up_support_conservatives
		}

		visible = {
			has_completed_focus = DEN_focus_a_coalition_of_the_right
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 120
		
		modifier = {
			political_power_gain = -0.05
			traditional_conservatism_drift = 0.01
		}
		
		cancel_trigger = {
			NOT = { has_government = traditional_conservatism }
		}

		remove_effect = {
			add_popularity = { ideology = traditional_conservatism popularity = 0.01 }
		}

		ai_will_do = {
			base = 500
		}
	}
}
