﻿##############=#############
# Hitler's Death events
###########################

add_namespace = hitlerdeath

#mod

#Hitler Dies
country_event = {
	id = hitlerdeath.1
	title = hitlerdeath.1.t 
	desc = hitlerdeath.1.d
	picture = GFX_report_event_soviet_soldiers_tank
	
	trigger = {
		NOT = {
			GER = {
				controls_state = 64
			}
		}
		original_tag = GER
		has_government = fascism
		GER = { 
		surrender_progress > 0.75
		has_country_leader = {
			name = "Adolf Hitler"
			}
		}
	}
	mean_time_to_happen =  {
		days = 1
	}
	fire_only_once = yes 

	immediate = {
		every_country ={
			news_event = {
				id = hitlerdeath.2
			}
		}
	}
	
	option = {
		name = hitlerdeath.1.a
		ai_chance = {
			base = 100
			}
		kill_country_leader = yes
		create_country_leader = {
			name = "Karl Donitz"
			picture = "Karl_Donitz.dds"
			ideology = nazism
		}
		add_stability = -0.1
		add_war_support = -0.1
		set_global_flag = hitler_suicide
	}
	option = {
		name = hitlerdeath.1.b
		kill_country_leader = yes
		create_country_leader = {
			name = "Heinrich Himmler"
			picture = "Heinrich_Himmler.dds"
			ideology = nazism	
		}
		add_stability = -0.1
		add_war_support = -0.1
		set_global_flag = hitler_suicide
	}
	option = {
		name = hitlerdeath.1.c
		kill_country_leader = yes
		create_country_leader = {
			name = "Hermann Goring"
			picture = "Hermann_Goring.dds"
			ideology = nazism
		}
		add_stability = -0.1
		add_war_support = -0.1
		set_global_flag = hitler_suicide
	}
}

news_event = {
	id = hitlerdeath.2
	title = hitlerdeath.2.t
	desc = hitlerdeath.2.d
	picture = GFX_news_event_german_reichstag_graffiti_ruins

	is_triggered_only = yes

	option = {
		name = hitlerdeath.2.a
		trigger = {
			tag = GER
		}
	}
	option = {
		name = hitlerdeath.2.b
		trigger = {
			is_ally_with = GER
		}
	}
	option = {
		name = hitlerdeath.2.c
		trigger = {
			has_war_with = GER
			OR = {
				has_government = democratic
				has_government = neutrality
			}
		}
	}
	option = {
		name = hitlerdeath.2.e
		trigger = {
			has_war_with = GER
			OR = {
				has_government = communism
				has_government = fascism
			}
		}
	}
	option = {
		name = hitlerdeath.2.f
		trigger = {
			NOT = {
				tag = GER
				is_ally_with = GER
				has_war_with = GER
			}
		}
	}
}