#historical events for hearts of iron 4 - initially created by CSRZ for 1.7.1 Hydra/Man the Guns
#Axis expansion after the collapse of the Soviet Union
add_namespace = axiexp

#EXTRA EVENTS

#Germany invades Switzerland after Soviet Union is conquered

country_event = {
	id = axiexp.3
	title = axiexp.3.t
	desc = axiexp.3.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes

	trigger = {
		tag = GER
		SWI = { is_in_faction = no }
		OR = {
			NOT = { country_exists = SOV }
			SOV = { is_puppet = yes }
		}	
		is_puppet = no
		has_government = fascism
	}
	
	option = {
		name = axiexp.3.a
		ai_chance = { factor = 100 }
		declare_war_on = {
    			target = SWI
			type = annex_everything
		}
	}

	option = {
		name = axiexp.3.b
	}	
}

#Sweden joins Axis after the collapse of the Soviet Union
country_event = {
	id = axiexp.5
	title = axiexp.5.t
	desc = axiexp.5.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes

	trigger = {
		tag = GER
		#date > 1944.01.01
		is_subject = no
		is_in_faction = no
		has_government = fascism
		is_faction_leader = yes
		OR = {
			SWE = { is_puppet = no }
			SWE = { is_subject_of = GER }
		}
		country_exists = SWE
		SWE = { is_in_faction = no }
		OR = {
			NOT = { country_exists = SOV }
			SOV = { is_subject = yes }
		}
	}
	
	option = {
		name = axiexp.5.a
		ai_chance = { factor = 100 }
		SWE = { 
			country_event = {
    				id = axiexp.6
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = axiexp.5.b
	}	
}

country_event = {
	id = axiexp.6
	title = axiexp.6.t
	desc = axiexp.6.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = axiexp.6.a
		ai_chance = { factor = 100 }
		GER = { add_to_faction = SWE }
		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}
		hidden_effect = {
			set_popularities = {
				democratic = 0
				neutrality = 40
				fascism = 60
				communism = 0
			}
		}
		add_timed_idea = {
			idea = nationalism
			days = 720
		}
		if = {
			limit = { 
				USA = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = GER 
				enemy = USA 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = axiexp.6.b
	}	
}

#Portugal breaks neutrality and joins either the Allies or the Axis if Spain (or anyone else who controls Madrid) joins the Axis

country_event = {
	id = axiexp.11
	title = axiexp.11.t
	desc = axiexp.11.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes

	trigger = {
		tag = POR
		has_war = no
		is_in_faction = no
		is_puppet = no
		ENG = { has_war_with = GER }
		OR = {
			GER = { controls_state = 41 }
			SPR = { is_in_faction_with = GER }
			AND = {
				any_country = { 
					controls_state = 41 
					is_in_faction_with = GER
				}
			}
		}
	}
	
	option = {
		name = axiexp.11.a
		ai_chance = { factor = 50 }
		ENG = { 
			country_event = {
    				id = axiexp.12
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = axiexp.11.b
		ai_chance = { factor = 50 }
		GER = { 
			country_event = {
    				id = axiexp.13
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = axiexp.11.c
		ai_chance = { factor = 0 }
	}	
}

country_event = {
	id = axiexp.12
	title = axiexp.12.t
	desc = axiexp.12.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = axiexp.12.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = POR }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG 
				enemy = GER
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = axiexp.12.b
	}	
}

country_event = {
	id = axiexp.13
	title = axiexp.13.t
	desc = axiexp.13.d
	picture = GFX_report_europe_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = axiexp.13.a
		ai_chance = { factor = 100 }
		GER = { add_to_faction = POR }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = GER 
				enemy = ENG
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = axiexp.13.b
	}	
}




