#####Pomerania Major Events#####

#####Brandenburg Major Events#####
###By Hеvard Moe                ##
###   Tom 'Demetrios' Rinschler ##
##################################

# The Pommern Inheritance #
event = {
    id = 3895
    random = no
    country = POM
    name = "EVENTNAME3895"
    desc = "EVENTHIST3895"
    style = 3

    date = { day = 10 month = march year = 1637 }

    action_a = {        #Split Pommern between Sweden and Brandenburg#
        name = "ACTIONNAME3895A"
        command  = { type = secedeprovince which = SWE value = 304 }
        command  = { type = trigger which = 3896 }
    }
    action_b = {        #Let Brandenburg receive the whole of Pommern#
        name = "ACTIONNAME3895B"
        command = { type = trigger which = 3896 }
    }
    action_c = {        #Remain independent#
        name = "ACTIONNAME3895C"
        command = { type = domestic which = centralization value = 1 }
        command = { type = relation which = BRA value = -100 }
        command = { type = relation which = SWE value = -50 }
    }
}

##########################
# Erik VII sequence	 #
##########################

#Bogislaw IX is the heir to the Danish throne
event = {
        id = 259003
        random = no
        country = POM
        name = "Богислав-наследник датского трона"
        desc = "В 1437 году, король Эрик провозгласил Богислава IX Померанского своим наследником и вынудил Датский Государственный совет признать Богислава законным наследником."
        style = 1

        #Triggered by the Danish event: The future heir

        action_a ={
                name = "Отлично!"
                command = { type = stability value = 1 }
        }
}

#Erik inherits Pomerania#
event = {
        id = 259004
        trigger = {
                   atwar = no
                   event = 159046 #Danish event: The future heir
                   exists = GOT
        }
        random = no
        country = POM
        name = "Эрик унаследовал Померанию"
        desc = "В 1446 году Богислав IX умер. Его наследник Эрик Померанский был в настоящее время правителем Готланда, где он проживал с тех пор как потерял корону Дании, а вместе с ней и Норвегии и Швеции."
        style = 1
        date = { day = 7 month = december year = 1446 }
        offset = 0
        deathdate = { day = 1 month = january year = 1459 }

        action_a ={
                name = "Управлять двумя герцогствами из Готланда"
                command = { type = stability value = -1 }
                command = { type = relation which = GOT value = 400 }
                command = { type = relation which = DAN value = -50 }
                command = { type = relation which = SWE value = -25 }
                command = { type = trigger which = 367002 } #Gotland event: Erik inherits Pomerania #1
        }
        action_b ={
                name = "Управлять герцогствами из Померании"
                command = { type = vassal which = GOT }
                command = { type = relation which = GOT value = 200 }
                command = { type = relation which = DAN value = -100 }
                command = { type = relation which = SWE value = -50 }
                command = { type = trigger which = 367003 } #Gotland event: Erik inherits Pomerania #2
        }
        action_c ={
                name = "Объединить герцогства и управлять ими из Померании"
                command = { type = badboy value = 2 }
                command = { type = addcore which = 308 } #Gotland
                command = { type = relation which = DAN value = -200 }
                command = { type = relation which = SWE value = -100 }
                command = { type = trigger which = 367004 } #Gotland event: Erik inherits Pomerania #3
        }
        action_d ={
                name = "бъединить герцогства и управлять ими из Готланда (конец игры)"
                command = { type = trigger which = 367005 } #Gotland event: Erik inherits Pomerania #4
        }
}

#Gotland becomes a part of Pomerania#
event = {
        id = 259005
        random = no
        country = POM
        name = "Готланд становится частью Померании"
        desc = "После смерти Богислава IX, Эрик объявил Готланд частью Померании. Однако это решение закончилось массовыми протестами из Дании и из Швеции."
        style = 1

        #Triggered by the Gotland event: Erik inherits Pomerania #3

        action_a ={
                name = "Готланд стал частью Померании"
                command = { type = inherit which = GOT }
        }
}

#Gotland becomes a Pomeranian vassal#
event = {
        id = 259006
        random = no
        country = POM
        name = "Готланд становится вассалом Померании"
        desc = "После смерти Богислава IX, Эрик объявил Готланд частью Померании. Однако это решение закончилось массовыми протестами из Дании и из Швеции, Эрик должен был тщательней рассмотреть предложенные ему варианты. Альтернативой мог бы стать вариант, когда Готланд станет вассалом Померании."
        style = 1

        #Triggered by the Gotland event: Erik inherits Pomerania #3

        action_a ={
                name = "Сделать Готланд вассалом"
                command = { type = vassal which = GOT }
                command = { type = relation which = DAN value = 50 }
                command = { type = relation which = SWE value = 25 }
        }
}

#Bogislaw dies before Erik#
event = {
        id = 259007
        trigger = {
                   event = 259003 #Pomerania event: Bogislaw IX is the heir to the Danish throne
        }
        random = no
        country = POM
        name = "Богислав умерает раньше Эрика"
        desc = "Даже при том, что Эрик провозгласил Богислава своим законным наследником, тот умер раньше Эрика. Согласно законам престолонаследования, Эрик должен был стать следующим герцогом Померании."
        style = 1
        date = { day = 7 month = december year = 1446 }
        offset = 0
        deathdate = { day = 1 month = january year = 1459 }

        action_a ={
                name = "Остаить Померанию Эрику (конец игры)"
                command = { type = trigger which = 159047 } #Danish event: Erik inherits Pomerania #1
        }
        action_b ={
                name = "Померания должна стать датским вассалом"
                command = { type = trigger which = 159048 } #Danish event: Erik inherits Pomerania #2
        }
}

#The invasion of Gotland#
event = {
        id = 259008
        trigger = {
                   OR = {
                         control = { province = 308 data = SWE }
                         event = 291023  #Swedish event: The invasion of Gotland is lauched #2
                   }
                   owned = { province = 308 data = -1 }
                   event = 291021 #Swedish event: Erik has lost support from Denmark
                   event = 259004 #Pomerania event: Erik inherits Pomerania
        }
        random = no
        country = POM
        name = "Вторжение в Готланд"
        desc = "В 1449 году шведские войска пытались захватить Готланд. Эрик был озабочен защитой острова, не видя никаких способов которые могли бы помочь ему выиграть войну, на зло Швеции, он сдал Готланд Дании и разъярённый уехал в Померанию."
        style = 1
        date = { day = 1 month = january year = 1413 }
        offset = 0
        deathdate = { day = 1 month = january year = 1459 }

        action_a ={
                name = "Передать Готланд Дании"
                command = { type = secedeprovince which = DAN value = 308 } #Gotland
                command = { type = removecore which = 308 } #Gotland
                command = { type = relation which = DAN value = 100 }
                command = { type = relation which = SWE value = -50 }
                command = { type = trigger which = 291024 } #Swedish event: The invasion of Gotland 
                command = { type = trigger which = 159049 } #Danish event: The invasion of Gotland
                command = { type = sleepevent which = 291025 } #Swedish event: Gotland is yet again on Danish hands
        }
        action_b ={
                name = "Бороться со шведской агрессией"
                command = { type = war which = SWE } #If triggered by the Swedish event: The invasion of Gotland
                command = { type = sleepevent which = 291025 } #Swedish event: Gotland is yet again on Danish hands
        }
}




#Pomerania becomes Poland#
event = {
	id = 259002
	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 = POM
	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 = capital which = 299 } # Krakow
  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 = remove_countryculture which = german }
		command = { type = add_countryculture which = german } # Polish will be primary culture
		command = { type = vp value = 50 }
		command = { type = sleepevent which = 20129 } # Recuperation of Pomerania
		}
	action_b = {
		name = "Нет, у нас есть другие планы"
		command = { type = stability value = 1 }
		}
}





