###########################
# Invasion of the Finland Events
###########################

add_namespace = ussrinvasion

country_event = {
	id = ussrinvasion.1
	title = ussrinvasion.1.t
	desc = ussrinvasion.1.d
	picture = GFX_report_event_german_speech

	fire_only_once = yes

	trigger = {
	    tag = FIN
	    NOT = { owns_state = 146 }
	    NOT = { has_completed_focus = FIN_cooperation_with_germany }
	    SOV = { 
	    	has_war_with = GER
	    	surrender_progress > 0.25
	    	NOT = { controls_state = 1025 }
			NOT = { controls_state = 206 }
	    }
	}

	mean_time_to_happen = {
		days = 2
	}

	option = {
		name = ussrinvasion.1.a
		FIN = {
			declare_war_on = {
			    target = SOV
			    type = take_state_focus
			    generator = { 146 147 213 215 216 }
			}
			hidden_effect = {
				add_ideas = TRTNO_FIN_defense_idea
				add_ideas = TRTNO_neutrality_idea
			}
		}
		ai_chance = { base = 100 }
	}

	option = {
		name = ussrinvasion.1.b
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = ussrinvasion.2
	title = ussrinvasion.2.t
	desc = ussrinvasion.2.d
	picture = GFX_report_event_german_speech

	fire_only_once = yes

	trigger = {
	    tag = FIN
	    SOV = { 
	    	has_war_with = FIN
	    	NOT = { controls_state = 213 }
	    }
	}

	mean_time_to_happen = {
		days = 2
	}

	option = {
		name = ussrinvasion.2.a
		FIN = {
			remove_ideas = TRTNO_FIN_defense_idea
			white_peace = SOV
			transfer_state = 213
			transfer_state = 215
			transfer_state = 216
			transfer_state = 722
			transfer_state = 147
			transfer_state = 146
		}
	}
}