#Germany attacks the Baltic States - initially created by CSRZ for 1.7.1 Hydra/Man the Guns
#A set of events doing something with Baltic States if you don't play with historical focus on
#If Molotov-Ribbentrop treaty is not in effect Baltic States will stay and do nothing for the entire game in vanilla (this event should make Germany agressive towards them)

add_namespace = baluni

#Germany noms the Baltics
country_event = {
	id = baluni.1
	title = baluni.1.t
	desc = baluni.1.d

	picture = GFX_report_event_lithuania_army
	
	fire_only_once = yes

	trigger = {
		tag = GER
		has_government = fascism
		country_exists = LIT
		country_exists = LAT
		country_exists = EST
		LIT = { has_war = no }
		LIT = { is_in_faction = no }
		LIT = { is_puppet = no }
		LIT = { NOT = { has_government = fascism } }
		LAT = { has_war = no }
		LAT = { is_in_faction = no }
		LAT = { is_puppet = no }
		LAT = { NOT = { has_government = fascism } }
		EST = { has_war = no }
		EST = { is_in_faction = no }
		EST = { is_puppet = no }
		EST = { NOT = { has_government = fascism } }
		date > 1941.1.1	#was not annexed by the broken ahistorical Soviet Union	
		date < 1942.1.1 #if it won't happen by the 1942 it just won't trigger at all
	}
	
	option = {
		name = baluni.1.a
		ai_chance = { factor = 100 }
		declare_war_on = {
    			target = LIT
			type = annex_everything
		}
		declare_war_on = {
    			target = LAT
			type = annex_everything
		}
		declare_war_on = {
    			target = EST
			type = annex_everything
		}

	}

	option = {
		name = baluni.1.b
	}	
}

#Soviet plays the good guy and feeds Wilno to Lithuania
#country_event = {
#	id = baluni.2
#	title = baluni.2.t
#	desc = baluni.2.d
#
#	picture = GFX_report_event_lithuania_army
#	
#	fire_only_once = yes
#
#	trigger = {
#		tag = SOV
#		country_exists = LIT
#		LIT = { has_war = no }
#		LIT = { is_in_faction = no }
#		LIT = { NOT = { has_government = fascism } }
#		owns_state = 784
#	}
#	
#	option = {
#		name = baluni.2.a
#		ai_chance = { factor = 100 }
#		LIT = { country_event = { id = baluni.3 days = 1 } }
#	}
#
#	option = {
#		name = baluni.2.b
#	}	
#}

#Lithuania accepts
#country_event = {
#	id = baluni.3
#	title = baluni.3.t
#	desc = baluni.3.d
#
#	picture = GFX_report_event_lithuania_army
#	
#	fire_only_once = yes
#
#	is_triggered_only = yes
#	
#	option = {
#		name = baluni.3.a
#		ai_chance = { factor = 100 }
#		LIT = { transfer_state = 784 }
#		news_event = { id = baluni.4 hours = 6 }
#	}
#
#	option = {
#		name = baluni.3.b
#	}	
#}

#news_event = {
#	id = baluni.4
#	title = baluni.4.t
#	desc = baluni.4.d
#	picture = GFX_news_event_lithuanian_vilnius
#
#	major = yes
#
#	#fire_only_once = yes
#
#	is_triggered_only = yes
#
#	option = {
#		name = baluni.4.a
#	}
#}

#quickfix of a weird bug that blocks the anexation of Estonia by the USSR
#Estonia anexed by the Soviet Union
#country_event = {
#	id = baluni.11
#	title = baluni.11.t
#	desc = baluni.11.d
#	picture = GFX_report_event_lithuania_army
#
#	fire_only_once = yes
#	
#	trigger = {
#		tag = SOV
#		has_government = communism
#		country_exists = EST
#		EST = { has_government = communism }
#		NOT = { country_exists = LAT }
#		NOT = { country_exists = LIT }	
#		EST = { is_in_faction_with = SOV }
#	}
#
#	mean_time_to_happen = {
#		days = 2
#	}
#
#	option = {
#		name = baluni.11.a
#		ai_chance = { factor = 100 }
#		EST = {
#			country_event = { id = baluni.12 }
#		}
#	}
#
#	option = {
#		name = baluni.11.b
#	}
#}

#country_event = {
#	id = baluni.12
#	title = baluni.12.t
#	desc = baluni.12.d
#	picture = GFX_report_event_lithuania_army
#	
#	is_triggered_only = yes
#	
#	option = { # Accept
#		name = baluni.12.a
#		ai_chance = { factor = 100 }
#		SOV = {
#			country_event = { id = baluni.14 }
#		}
#		custom_effect_tooltip = GAME_OVER_TT
#	}
#	option = { # Refuse
#		name = baluni.12.b
#		SOV = {
#			country_event = { id = baluni.13 }
#		}
#	}
#}

# Estonian SSR declines the offer of annexation
#country_event = {
#	id = baluni.13
#	title = baluni.13.t
#	desc = baluni.13.d
#	picture = GFX_report_event_lithuania_army
#	
#	is_triggered_only = yes
#	
#	option = {
#		name = baluni.13.a
#	}
#}

# Estonian SSR accepts the offer of annexation
#country_event = {
#	id = baluni.14
#	title = baluni.14.t
#	desc = baluni.14.d
#	picture = GFX_report_event_lithuania_army
#	
#	is_triggered_only = yes
#	
#	option = {
#		name = baluni.14.a
#		annex_country = {
#    			target = EST
#   			transfer_troops = no
#		}
#	}
#}

