﻿add_namespace = Finland

#Conscription Reform
country_event = {
	id = Finland.1
	title = Finland.1.t
	desc = Finland.1.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.1.a
		log = "[GetDateText]: [This.GetName]: Finland.1.a executed"
		add_stability = -0.01
		
		ai_chance = {
			factor = 30
		}
	}
	
	option = {
		name = Finland.1.b
		log = "[GetDateText]: [This.GetName]: Finland.1.b executed"
		add_political_power = 200
		add_stability = 0.05
		add_ideas = defence_02
		
		ai_chance = {
			factor = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
	}
	
	option = {
		name = Finland.1.c
		log = "[GetDateText]: [This.GetName]: Finland.1.c executed"
		add_political_power = -200
		add_stability = -0.05
		add_ideas = defence_03
		
		ai_chance = {
			factor = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
	}
}

#Timber Export Policy
country_event = {
	id = Finland.2
	title = Finland.2.t
	desc = Finland.2.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.2.a
		log = "[GetDateText]: [This.GetName]: Finland.2.a executed"
		add_political_power = 150
		add_stability = 0.02
		ai_chance = {
			factor = 10
		}
	}
	
	option = {
		name = Finland.2.b
		log = "[GetDateText]: [This.GetName]: Finland.2.b executed"
		add_stability = 0.03
		ai_chance = {
			factor = 0
		}
	}
}

#Expansion of the Financial Ministry
country_event = {
	id = Finland.3
	title = Finland.3.t
	desc = Finland.3.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.3.a
		log = "[GetDateText]: [This.GetName]: Finland.3.a executed"
		add_political_power = -100
		add_stability = 0.02
		if = {
			limit = { has_full_control_of_state = 102 }
			102 = {	#Uusimaa
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		ai_chance = {
			factor = 10
		}
	}
	
	option = {
		name = Finland.3.b
		log = "[GetDateText]: [This.GetName]: Finland.3.b executed"
		add_political_power = 100
		add_popularity = { ideology = democratic popularity = 0.03 }
		add_to_variable = { party_pop_array^2 = 0.03 }
		recalculate_party = yes
		ai_chance = {
			factor = 0
		}
	}
}

#Adopt an Economic Doctrine
country_event = {
	id = Finland.4
	title = Finland.4.t
	desc = Finland.4.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.4.a
		log = "[GetDateText]: [This.GetName]: Finland.4.a executed"
		add_political_power = -50
		if = {
			limit = { has_full_control_of_state = 102 }
			102 = {	#Uusimaa
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		ai_chance = {
			factor = 0
		}
	}
	
	option = { #Needs to looked at again
		name = Finland.4.b
		log = "[GetDateText]: [This.GetName]: Finland.4.b executed"
		add_stability = 0.02
		#if = {
		#	limit = { has_country_flag = { EU_member = yes } }
		#	every_country = { # how can we make it more performance friendly?
		#		limit = { is_EU_member = yes NOT = { original_tag = FIN } }
		#		increase_trade_influence_by_1 = yes
		#	}
		#}
		ai_chance = {
			factor = 10
		}
	}
}

#Adopt a Foreign Policy Doctrine
country_event = {
	id = Finland.5
	title = Finland.5.t
	desc = Finland.5.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.5.a
		log = "[GetDateText]: [This.GetName]: Finland.5.a executed"
		add_stability = 0.03
		ai_chance = {
			factor = 0
		}
	}
	
	option = {
		name = Finland.5.b
		log = "[GetDateText]: [This.GetName]: Finland.5.b executed"
		add_political_power = -50
		#swap_ideas = { #Again, no advisors. needs to be looked at
		#	remove_idea = government_expansion3
		#	add_idea = government_expansion5
		#}
		ai_chance = {
			factor = 10
		}
	}
}

#Focus of the Ministry of Defense
country_event = {
	id = Finland.6
	title = Finland.6.t
	desc = Finland.6.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.6.a
		log = "[GetDateText]: [This.GetName]: Finland.6.a executed"
		army_experience = 20
		add_stability = 0.01
		ai_chance = {
			factor = 10
		}
	}
	
	option = {
		name = Finland.6.b
		log = "[GetDateText]: [This.GetName]: Finland.6.b executed"
		navy_experience = 15
		air_experience = 15
		ai_chance = {
			factor = 0
		}
	}
}

#Future of the Finnish Monarchy
country_event = {
	id = Finland.7
	title = Finland.7.t
	desc = Finland.7.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	#Empower the monarchy
	option = {
		name = Finland.7.a
		log = "[GetDateText]: [This.GetName]: Finland.7.a executed"
		create_country_leader = {
			name = "Donatus von Hessen"
			ideology = Monarchist
			picture = "Donatus_von_Hessen.dds"
		}
		set_party_name = {
			ideology = nationalist
			name = "Hesse-Finland"
			long_name = "House of Hesse-Finland"
		}
		add_stability = -0.10
		add_popularity = {
			ideology = nationalist
			popularity = 0.15
		}
		add_to_variable = { party_pop_array^23 = 0.15 }
		recalculate_party = yes
		set_politics = {
			ruling_party = nationalist
			elections_allowed = yes
		}
		add_stability = -0.1
		GER = {
			add_opinion_modifier = {
				target = FIN
				modifier = friendly_monarchy
			}
		}
		add_ai_strategy = {
			type = befriend
			id = GER
			value = 25
		}
		ai_chance = {
			factor = 0
		}
	}
	
	#Maintain democracy
	option = {
		name = Finland.7.b
		log = "[GetDateText]: [This.GetName]: Finland.7.b executed"
		add_ideas = FIN_king_donatus
		GER = {
			add_opinion_modifier = {
				target = FIN
				modifier = friendly_monarchy
			}
		}
		hidden_effect = {
			create_country_leader = {
				name = "Donatus von Hessen"
				ideology = Monarchist
				picture = "Donatus_von_Hessen.dds"
			}
			set_party_name = {
				ideology = nationalist
				name = "House of Hesse-Finland"
			}
		}
		ai_chance = {
			factor = 10
		}
	}
}

#Finland offers CSTO membership... at a price
country_event = {
	id = Finland.8
	title = Finland.8.t
	desc = Finland.8.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	#We accept.
	option = {
		name = Finland.8.a
		log = "[GetDateText]: [This.GetName]: Finland.8.a executed"
		add_to_faction = FIN
		FIN = { set_country_flag = seeks_russian_alliance }
		FIN = {
			set_state_owner = 644
			set_state_owner = 643
		}
		remove_state_core = 644
		remove_state_core = 643
		ai_chance = {
			factor = 0
		}
	}
	
	#What? Are you crazy?!
	option = {
		name = Finland.8.b
		log = "[GetDateText]: [This.GetName]: Finland.8.b executed"
		FIN = {
			add_opinion_modifier = {
				target = SOV
				modifier = resisted_territorial_ambition
			}
		}
		ai_chance = {
			factor = 10
		}
	}
}

#Mutual Defensive Agreement between Sweden and Finland
country_event = {
	id = Finland.9
	title = Finland.9.t
	desc = Finland.9.d
	picture = GFX_finnish_flag
	
	is_triggered_only = yes
	
	option = {
		name = Finland.9.a
		log = "[GetDateText]: [This.GetName]: Finland.9.a executed"
		add_political_power = 20
		give_guarantee = FIN
		ai_chance = {
			factor = 10
		}
	}
	
	option = {
		name = Finland.9.b
		log = "[GetDateText]: [This.GetName]: Finland.9.b executed"
		FIN = {
			diplomatic_relation = {
				country = SWE
				relation = guarantee
				active = no
			}
		}
		ai_chance = {
			factor = 0
		}
	}
}