#change of leadership in the Polish Communist Party

add_namespace = bierut

country_event = {
	id = bierut.1
	title = bierut.1.t
	desc = bierut.1.d
	picture = GFX_report_bierut
	
	fire_only_once = yes

	trigger = {
		tag = POL
		is_in_faction_with = SOV
		has_government = communism
		SOV = { has_government = communism }
		SOV = { is_subject = no }
	}
	
	option = {
		name = bierut.1.a
		ai_chance = { factor = 100 }
			kill_country_leader = yes
			create_country_leader = {
				name = "Boleslaw Bierut"
				desc = "POLITICS_boleslaw_bierut"
				picture = "GFX_boleslaw_bierut"
				expire = "1965.1.1"
				ideology = stalinism
				traits = {
				}
			}
			set_party_name = { 
				ideology = communism 
    				long_name = polska_partia_robotnicza_long 
    				name = polska_partia_robotnicza 
			}
	}

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

#Polska Zjednoczona Partia Robotnicza forms up
country_event = {
	id = bierut.2
	title = bierut.2.t
	desc = bierut.2.d
	picture = GFX_report_bierut_b
	
	fire_only_once = yes

	trigger = {
		tag = POL
		date > 1948.12.12
	}
	
	option = {
		name = bierut.2.a
		ai_chance = { factor = 100 }
			set_party_name = { 
				ideology = communism 
    				long_name = polska_zjednoczona_partia_robotnicza_long 
    				name = polska_zjednoczona_partia_robotnicza 
			}
	}

	option = {
		name = bierut.2.b
	}	
}