#The end of Piast dynasty on Masovia#
#Vilkouak-AGC

event = {
	id = 20141
	trigger = { 
			relation = { country = POL data = 0 } 
			exists = POL
		}
	random = no
	country = MIN
	name = "Гибель династии Пястов"
	desc = "Последние правители по мозовийской линии династии Пястов жили не долго и их волновали обычные массовые волнения, нежели управление государством. В 1526 году после смерти Януша IV мало кто плакал, и Польша без особых сложностей вновь объединила свои земли. К сожалению, наследство Мозовии было захвачено жадными до власти дворянами, что нам с этим делать?"
	style = 2

	date = { day = 1 month = january year = 1525 }
	offset = 30
	deathdate = { day = 1 month = january year = 1596 }

	action_a = {		
		name = "Мы принимаем"
		command = { type = trigger which = 20142 } #POL inherit
	}

	action_b = {		
		name = "Отказать полякам"
		command = { type = sleepevent which = 20142 }
		command = { type = trigger which = 20143 } #POL doesn't inherit
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = stability value = 3 }
		command = { type = relation which = POL value = -100 }
	}
}


#Masovia becomes Poland#
event = {
	id = 225000
	trigger = {
		owned = { province = 299 data = -1 } # Krakow
		owned = { province = 300 data = -1 } # Wielkopolska
		owned = { province = 303 data = -1 } # Poznan
		NOT = { exists = POL }
	}
	random = no
	country = MIN
	name = "Мазовия становится Польшей"
	desc = "Во время нашего правления произошло объединение основных польских земель. Может быть, следует восстановить польское королевство?"
	style = 0 
	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 30 month = december year = 1819 }

	action_a = { 
		name = "Мы станем Польшей"
		command = { type = country which = POL }
  command = { type = addcore which = 301 } # Podlasia
  command = { type = addcore which = 1945 } # Galizien
  command = { type = addcore which = 303 } # Krakow
  command = { type = addcore which = 291 } # Wielkopolska
  command = { type = addcore which = 1944 } # Danzig
  command = { type = addcore which = 1946 } # Poznan
  command = { type = addcore which = 299 }
  command = { type = addcore which = 292 }
  command = { type = addcore which = 1949 }
  command = { type = addcore which = 298 }
  command = { type = addcore which = 293 }
 command = { type = addcore which = 1914 }
 command = { type = addcore which = 1979 }
		command = { type = add_countryculture which = ruthenian }
		command = { type = vp value = 50 }
		}
	action_b = {
		name = "Нет, у нас другие планы"
		command = { type = stability value = 1 }
		}
}
