FIN_decision_category_industrialization = {

	FIN_mission_ironworks = {

		icon = generic_factory

		#allowed = { TAG = FIN }

		available = {
			has_completed_focus = FIN_modernisation_of_ironwork_factories
			has_stability > 0.3
			NOT = { has_country_flag = FIN_industry_development_ongoing_flag }
		}

		highlight_states = {
			state = 150
		}

		fire_only_once = yes

		cost = 200

		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.15
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		remove_effect = {
			150 = { add_extra_state_shared_building_slots = 1 }
			150 = {
				if = {
					limit = {
						steel_mill > 0
					}
					add_building_construction = {
						type = 	machine_parts_factory
						level = 1
						instant_build = yes
					}
				}
				else = {
					add_building_construction = {
						type = 	steel_mill
						level = 1
						instant_build = yes
					}
				}
			}
			add_resource = {
				type = coal
				amount = 5
				state = 150
			}
			hidden_effect = {
				clr_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	FIN_mission_sawmills = {

		icon = generic_factory

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = FIN_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = FIN_sawmill_industry
		}

		fire_only_once = yes

		cost = 200

		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.15
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		remove_effect = {
			random_owned_state = {
				add_resource = {
					type = wood
					amount = 12
				}
			}
			hidden_effect = {
				clr_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	FIN_mission_textile_industry = {

		icon = generic_factory

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = FIN_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = FIN_textile_industry
		}

		visible = {
			has_full_control_of_state = 111
		}

		fire_only_once = yes

		cost = 100

		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.05
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		remove_effect = {
			add_resource = {
				type = fabric
				amount = 6
				state = 111
			}
			hidden_effect = {
				clr_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	FIN_decision_open_metal_works = {

		icon = generic_factory

		#allowed = { TAG = FIN }

		available = {
			has_completed_focus = FIN_fiskari_dominance
			has_stability > 0.3
			NOT = { has_country_flag = FIN_industry_development_ongoing_flag }
		}

		fire_only_once = yes

		cost = 75

		days_remove = 165

		modifier = {
			consumer_goods_expected_value = 0.05
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		remove_effect = {
			random_owned_state = {
				add_resource = {
					type = iron
					amount = 8
				}
				add_resource = {
					type = coal
					amount = 4
				}
			}
			hidden_effect = {
				clr_country_flag = FIN_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	FIN_decision_nationalwide_industry = {

		icon = generic_factory

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = FIN_fiskari_dominance
		}

		fire_only_once = yes

		cost = 200

		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.15
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		remove_effect = {
			111 = { add_extra_state_shared_building_slots = 1 }
			111 = {
				add_building_construction = {
					type = 	arms_factory
					level = 1
					instant_build = yes
				}
			}
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_railway_upgrade = {

		icon = railway

		#allowed = { TAG = FIN }

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

		visible = {
			has_idea = NA_B_no_scale_railways
			has_completed_focus = FIN_hameenlinna_helsinki_line
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text

		days_remove = 365

		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			swap_ideas = { remove_idea = NA_B_no_scale_railways add_idea = NA_B_early_scale_railways }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_tampere_helsinki_railway = {

		icon = railway

		highlight_states = {
			state = 111
		}

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			num_of_civilian_factories_available_for_projects > 0
		}

		visible = {
			has_completed_focus = FIN_tampere_helsinki_railway
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			EOANBSYS_institutions_innovative_add_one = yes
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			build_railway = {
				level = 1
				path = {
					11105
					6144
					9167
					3137
				}
			}
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_hameenlinna_helsinki_line = {

		icon = railway

		highlight_states = {
			state = 111
		}

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			num_of_civilian_factories_available_for_projects > 0
		}

		visible = {
			has_completed_focus = FIN_hameenlinna_helsinki_line
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			EOANBSYS_institutions_innovative_add_one = yes
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			build_railway = {
				level = 1
				path = {
					11105
					6144
					9167
				}
			}
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_helsinki_turku_railway = {

		icon = railway

		highlight_states = {
			state = 111
		}

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			num_of_civilian_factories_available_for_projects > 0
		}

		visible = {
			has_completed_focus = FIN_helsinki_turku_railway
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			EOANBSYS_institutions_innovative_add_one = yes
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			build_railway = {
				level = 1
				path = {
					11105
					6108
					11211
					9194
					3083
				}
			}
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_hanko_hyvinkaa_railway = {

		icon = railway

		highlight_states = {
			state = 111
		}

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			num_of_civilian_factories_available_for_projects > 0
		}

		visible = {
			has_completed_focus = FIN_hanko_hyvinkaa_railway
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			EOANBSYS_institutions_innovative_add_one = yes
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			build_railway = {
				level = 1
				path = {
					6144
					9129
					6108
					11211
				}
			}
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_riihimaki_saint_petersburg_railway = {

		icon = railway

		highlight_states = {
			state = 111
		}

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = DEN_railway_project_ongoing_flag }
			num_of_civilian_factories_available_for_projects > 0
		}

		visible = {
			has_completed_focus = FIN_riihimaki_saint_petersburg_railway
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.05
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		remove_effect = {
			EOANBSYS_institutions_innovative_add_one = yes
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			build_railway = {
				level = 1
				path = {
					6144
					67
					9073
					9183
					11056
					6082
					9206
					9100
					3060
					3151
				}
			}
			add_opinion_modifier = { target = RUS modifier = eoanb_om_RUS_increase_very_small }
			reverse_add_opinion_modifier = { target = RUS modifier = eoanb_om_RUS_increase_very_small }
			hidden_effect = {
				clr_country_flag = DEN_railway_project_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_invite_foreign_investors = {

		icon = eng_trade_unions_support

		#allowed = { TAG = FIN }
		
		available = {
			OR = {
				has_completed_focus = FIN_foreign_investors
				has_completed_focus = FIN_search_for_russian_investor
			}
			has_stability > 0.3
		}

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

		fire_only_once = yes

		cost = 50

		days_remove = 60

		remove_effect = {
			add_ideas = FIN_idea_foreign_investors
			if = {
				limit = {
					NOT = {
						OR = {
							has_government = social_egalitarianism
							has_government = ideology_radical_socialism
							has_government = anarchism
							has_government = chauvinist_populism
						}
					}
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_russian_investors_resources = {

		icon = coal

		highlight_states = {
			state = 150
		}

		#allowed = { TAG = FIN }

		available = {
			has_tech = machine_tools_1
			RUS = {
				has_opinion = {
				target = FIN
				value > 109
				}
			}
		}
		
		visible = {
			has_completed_focus = FIN_search_for_russian_investor
		}

		fire_only_once = yes
		is_good = yes

		cost = 50
		days_remove = 80

		modifier = {
			consumer_goods_expected_value = 0.02
		}

		remove_effect = {
			random_owned_state = {
				add_resource = {
					type = iron
					amount = 5
				}
				add_resource = {
					type = wood
					amount = 5
				}
			}
		}

		ai_will_do = {
			base = 1
		}
	}

	FIN_finnish_farmlands = {

		icon = generic_operation

		#allowed = { TAG = FIN }

		available = {
			has_tech = pre_industrial_farms
		}
		
		visible = {
			has_completed_focus = FIN_fight_with_hunger
		}


		fire_only_once = yes
		is_good = yes

		cost = 50
		days_remove = 80

		modifier = {
			consumer_goods_expected_value = 0.02
		}

		remove_effect = {
			150 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			149 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
			111 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_british_invests_resources = {

		icon = generic_operation

		#allowed = { TAG = FIN }

		available = {
			has_tech = cast_iron_industrialization
			ENG = {
				has_opinion = {
				target = FIN
				value > 39
				}
			}
		}
		
		visible = {
			has_completed_focus = FIN_foreign_investors
		}

		fire_only_once = yes
		is_good = yes

		cost = 50
		days_remove = 80

		modifier = {
			consumer_goods_expected_value = 0.02
		}

		remove_effect = {
			random_owned_state = {
				add_resource = {
					type = iron
					amount = 10
				}
			}
			random_owned_state = {
				add_resource = {
					type = chromium
					amount = 6
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	FIN_decision_companies_act = {

		icon = money

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = FIN_financial_investment_ongoing_flag }
		}
		
		visible = {
			has_completed_focus = FIN_own_currency
		}

		fire_only_once = yes

		cost = 150

		days_remove = 365

		modifier = {
			consumer_goods_expected_value = 0.1
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		remove_effect = {
			add_stability = 0.05
			if = {
				limit = {
					has_idea = research_spending_level_1
				}
				swap_ideas = { remove_idea = research_spending_level_1 add_idea = research_spending_level_2 }
			}
			else_if = {
				limit = {
					has_idea = research_spending_level_2
				}
				swap_ideas = { remove_idea = research_spending_level_2 add_idea = research_spending_level_3 }
			}
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
}

eoanb_category_military = {

	#Buy Rifles from Prussia
	FIN_decision_buy_prussian_rifles = {

		icon = generic_industry

		allowed = { tag = FIN }

		available = {
			has_completed_focus = FIN_purchase_dreyse_rifles
			PRS = { has_war = no }
		}

		visible = {
			country_exists = PRS
		}

		fire_only_once = yes

		cost = 75

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}

		complete_effect = {
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 500
				producer = PRS
			}
		}

		ai_will_do = {
			base = 500
		}
	}

	#Buy cannons from Prussia
	FIN_decision_buy_prussian_cannons = {

		icon = artillery

		allowed = { tag = FIN }

		available = {
			has_completed_focus = FIN_purchase_dreyse_rifles
			num_of_civilian_factories_available_for_projects > 0
			PRS = { has_war = no }
			#debt condition
		}

		visible = {
			country_exists = PRS
		}

		fire_only_once = yes

		cost = 75

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.2
		}

		complete_effect = {
			#increase debt
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 50
				producer = PRS
			}
		}

		ai_will_do = {
			base = 500
		}
	}

	#Buy Rifles from Sweden
	FIN_decision_buy_swedish_rifles = {

		icon = generic_industry

		allowed = { tag = FIN }

		available = {
			has_completed_focus = FIN_common_manouvers
			SWE = { has_war = no }
		}

		visible = {
			country_exists = SWE

		}

		fire_only_once = yes

		cost = 75

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}

		complete_effect = {
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 500
				producer = SWE
			}
		}

		ai_will_do = {
			base = 500
		}
	}

	#Buy cannons from Sweden
	FIN_decision_buy_swedish_cannons = {

		icon = artillery

		allowed = { tag = FIN }

		available = {
			has_completed_focus = FIN_common_manouvers
			num_of_civilian_factories_available_for_projects > 0
			SWE = { has_war = no }
			#debt condition
		}

		visible = {
			country_exists = SWE
		}

		fire_only_once = yes

		cost = 75

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.2
		}

		complete_effect = {
			#increase debt
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 50
				producer = SWE
			}
		}

		ai_will_do = {
			base = 500
		}
	}

}

eoanb_category_navy = {

	FIN_decision_expansion_of_fortresss_sveaborg = {

		icon = generic_construction

		highlight_states = {
			state = 111
		}

		allowed = { tag = FIN }

		available = {
			has_completed_focus = FIN_expansion_of_fortresss_sveaborg
			has_stability > 0.5
			if = {
				limit = {
					has_government = centrism
				}
				centrism > 0.6
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				traditional_conservatism > 0.6
			}
		}

		visible = {
			has_completed_focus = FIN_expansion_of_fortresss_sveaborg
		}

		fire_only_once = yes

		cost = 50

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.1
		}

		cancel_trigger = {
			NOT = { owns_state = 111 }
		}

		complete_effect = {
			if = {
				limit = {
					has_government = centrism
				}
				add_popularity = {
					ideology = traditional_conservatism
					popularity = 0.03
				}
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_popularity = {
					ideology = centrism
					popularity = 0.03
				}
			}
		}

		remove_effect = {
			navy_experience = 25
			111 = { add_building_construction = { type = coastal_bunker level = 2 instant_build = yes province = 408 } }
			#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
		}
	}

	FIN_decision_rjurik_kalevala = {
		icon = generic_naval
		allowed = { tag = FIN }
		visible = {
			has_completed_focus = FIN_rjurik_kalevala
		}
		available = {
			num_of_civilian_factories_available_for_projects > 2
			has_tech = tech_naval_1850_gunboat
		}
		fire_only_once = yes
		cost = 0
		custom_cost_trigger = { has_navy_experience > 29.99 }
		custom_cost_text = AUS_navy_experience_more_than_29
		modifier = {
			civilian_factory_use = 3
		}
		days_remove = 180
		remove_effect = {
			navy_experience = 5
			create_equipment_variant = {
				name = "24-gun GB Kamchatka-class M1840"
				type = ship_hull_gunboat_0
				name_group = FIN_GB_HISTORICAL_1
				parent_version = 0
				modules = {
					fixed_ship_battery_slot = ship_cannon_battery_1
					fixed_ship_engine_slot = ship_engine_sail_1
					fixed_ship_fire_control_system_slot = fire_control_system_0
					mid_1_custom_slot = ship_cannon_battery_1
					fixed_ship_armor_slot = ship_armor_capital_hardwood_0
				}
			}
			create_ship = {
				type = ship_hull_gunboat_0
				equipment_variant = "24-gun GB Kamchatka-class M1840"
				name = "Rjurik"
			}
			create_ship = {
				type = ship_hull_gunboat_0
				equipment_variant = "24-gun GB Kamchatka-class M1840"
				name = "Kalevala"
			}
		}
		ai_will_do = {
			base = 1100
		}
	}

	FIN_mission_gamla_warfsbolaget_i_abo = {

		icon = generic_naval

		allowed = {
			always = no
		}

		available = {
			owns_state = 111
			111 = {
				dockyard > 2
			}
			custom_trigger_tooltip = {
				tooltip = FIN_mission_gamla_warfsbolaget_i_abo_trigger_tt
				hidden_trigger = {
					111 = {
						any_province_building_level = {
							province = {
								id = 11015 # Helsinki
							}
							building = naval_base
							level > 3
						}
					}
				}
			}
		}

		activation = {
			always = no
		}

		highlight_states = {
			state = 111
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 1800

		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -50
				add_stability = -0.02
			}
		}

		complete_effect = {
			add_stability = 0.02
			111 = { add_extra_state_shared_building_slots = 1 }
			111 = { add_building_construction = { type = naval_base level = 1 instant_build = yes province = 6287 } }
			add_equipment_to_stockpile = {
				type = convoy
				amount = 20
			}
		}

		ai_will_do = {
			base = 100
		}
	}
}

FIN_decision_category_political_reforms = {

	###Currency Reform
	FIN_mission_currency_reform = {

		icon = money

		#allowed = { TAG = FIN }

		available = {
			custom_trigger_tooltip = {
				tooltip = FIN_mission_currency_reform_trigger_tt
				hidden_trigger = {
					OR = {
						has_idea = FIN_markka_gold
						has_idea = FIN_markka_silver
					}
					has_completed_focus = FIN_the_law_diet
					FIN_Johan_Snellman = {
						is_character_slot = political_advisor
					}
				}
			}
		}

		activation = {
			always = no
		}

		fire_only_once = yes

		is_good = no

		days_mission_timeout = 160

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

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

		ai_will_do = {
			base = 100
		}
	}

	#Bank of Finland
	FIN_decision_bank_of_finland = {

		icon = money

		#allowed = { TAG = FIN }

		available = {
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			has_completed_focus = FIN_finnish_banks
		}

		fire_only_once = yes

		cost = 150

		days_remove = 180

		modifier = {
			consumer_goods_expected_value = 0.05
			political_power_gain = -0.05
		}

		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			increase_ps_by_one = yes
			if = {
				limit = {
					has_idea = research_spending_level_1
				}
				swap_ideas = { remove_idea = research_spending_level_1 add_idea = research_spending_level_2 }
			}
			else_if = {
				limit = {
					has_idea = research_spending_level_2
				}
				swap_ideas = { remove_idea = research_spending_level_2 add_idea = research_spending_level_3 }
			}
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	FIN_decision_municipal_decree_1865 = {

		icon = money

		#allowed = { TAG = FIN }
		
		available = {
		}

		visible = {
			has_completed_focus = FIN_the_diet_of_1863
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 180
		
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			
		}
		
		remove_effect = {
			country_event = finlandfocus.18	
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	##Karelianism
	#Promote Karelianism on Helsinki University
	FIN_decision_promote_karelianism_helsinki_university = {

		icon = money

		#allowed = { TAG = FIN }
		
		available = {
			
		}

		visible = {
			has_completed_focus = FIN_karelianism
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 180
		
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			
		}
		
		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_stability = 0.02
			if = {
				limit = {
					has_idea = FIN_advisor_elias_lonnrot
				}
				add_political_power = 50
				add_autonomy_score = {
					value = 10
					localization = FIN_karelianism_helsinki
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
}

FIN_decision_category_famine = {

	FIN_crime_strike = {  
		                        
		#icon = money

		#allowed = { TAG = FIN }
		
		available = {
			NOT = {
				has_idea = FIN_idea_famine_crime
			}
		}

		priority = 10

		days_mission_timeout = 90             

		activation = {        
			always = no                             
		}                       
		
		timeout_effect = {
			hidden_effect = { activate_mission = FIN_crime_strike }
		}
    }
	
	FIN_decision_combat_famine_crime = {
	
		#icon = money

		#allowed = { TAG = FIN }

		visible = {
			has_active_mission = FIN_crime_strike
		}

		available = {
			OR = { 
				has_idea = FIN_idea_famine_crime
				has_idea = FIN_idea_famine_crime1
				has_idea = FIN_idea_famine_crime2
			}
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		cost = 250

		modifier = {
			stability_weekly = 0.05
			political_power_gain = 0.1
		}

		days_remove = 180
		
		days_re_enable = 100

		remove_effect = {
			if = {
				limit = {
					has_idea = FIN_idea_famine_crime
				}
				swap_ideas = { remove_idea = FIN_idea_famine_crime add_idea = FIN_idea_famine_crime1 }
			}
			else_if = {
				limit = {
					has_idea = FIN_idea_famine_crime1
				}
				swap_ideas = { remove_idea = FIN_idea_famine_crime1 add_idea = FIN_idea_famine_crime2 }
			}
			else_if = {
				limit = {
					has_idea = FIN_idea_famine_crime2
				}
				remove_ideas = FIN_idea_famine_crime2
			}
		}

		ai_will_do = {
			base = 1100
		}
	}
	
	FIN_decision_rotschild_loan = {
	
		icon = money

		#allowed = { TAG = FIN }

		visible = {
		}

		available = {
			has_completed_focus = FIN_rotschild_loan
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		cost = 50

		modifier = {
			stability_weekly = -0.1
			political_power_gain = -0.2
		}

		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		remove_effect = {
			custom_effect_tooltip = FIN_combat_famine_effect_tt
			FIN_decrease_famine_modifiers = yes
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1100
		}
	}

	FIN_decision_subsidise_grain = {
		icon = generic_factory

		#allowed = { TAG = FIN }

		visible = {
		}

		available = {
			has_completed_focus = FIN_fight_with_hunger
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		cost = 50

		modifier = {
			political_power_gain = -0.2
		}

		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		remove_effect = {
			custom_effect_tooltip = FIN_combat_famine_effect_tt
			FIN_decrease_famine_modifiers = yes
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1100
		}
	}

	FIN_decision_ask_grain_shipments = {
		icon = generic_factory

		#allowed = { TAG = FIN }

		visible = {
		}

		available = {
			OR = {
				has_completed_focus = FIN_search_for_russian_investor
				has_opinion = {
					target = RUS
					value > 129
				}
			}
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		cost = 50

		modifier = {
			political_power_gain = -0.2
			autonomy_gain = -0.5
		}

		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		remove_effect = {
			custom_effect_tooltip = FIN_combat_famine_effect_tt
			FIN_decrease_famine_modifiers = yes
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1100
		}
	}

	FIN_decision_stockpile_food = {
		icon = generic_factory

		#allowed = { TAG = FIN }

		visible = {
		}

		available = {
			has_completed_focus = FIN_pettu_bread
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		cost = 100

		days_remove = 90
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		remove_effect = {
			custom_effect_tooltip = FIN_combat_famine_effect_tt
			FIN_decrease_famine_modifiers = yes
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1100
		}
	}
	
	FIN_decision_famine_railways_infrastructure = {

		icon = cobble_road
		
		#allowed = { TAG = FIN }

		available = {
			has_completed_focus = FIN_famine_public_railway
			has_tech = tech_humanities_roadworks
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			hidden_trigger = {
				has_dynamic_modifier = {
					modifier = dynmod_FIN_famine
				}
			}
		}

		visible = {
			#
		}
		
		fire_only_once = yes
		
		cost = 50
		
        days_remove = 180
         
        modifier = {
            political_power_gain = -0.05
			consumer_goods_expected_value = 0.05
        }
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_effect_tt
			hidden_effect = {
				set_country_flag = FIN_combat_famine_ongoing_flag
			}
		}
		
		remove_effect = {
			add_timed_idea = { idea = FIN_idea_road_investments days = 360 }
			custom_effect_tooltip = FIN_combat_famine_effect_tt
			FIN_decrease_famine_modifiers = yes
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}
       
		ai_will_do = {
			base = 100
		}
	}
	
	#Post Famine Recovery
	FIN_decision_post_famine_industralisation = {

		icon = generic_factory

		#allowed = { TAG = FIN }
		
		available = {
			NOT = { has_country_flag = FIN_combat_famine_ongoing_flag }
			has_completed_focus = FIN_boost_industrialization
		}

		visible = {
			has_completed_focus = FIN_boost_industrialization
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 280
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = FIN_combat_famine_ongoing_flag
			hidden_effect = { 
				set_country_flag = FIN_combat_famine_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_offsite_building = { type = industrial_complex level = 1 }
			add_timed_idea = {
				idea = FIN_idea_boost_eco
				days = 210
			}
			hidden_effect = {
				clr_country_flag = FIN_combat_famine_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
}
