#############################
### Bonus events by Korall ###
#############################

event = {

	id = 5014
	trigger = {
		owned = { province = 254 data = -1 } # Стокгольм
                NOT = { exists = SWE }
		NOT = { flag = e5014 }
		NOT = {
			core = { province = 254 data = DAN }
		}
	}
	random = no
	country = DAN
	name = "Захват Стокгольма"
	desc = "Выиграв завоевательную войну у своих соседей датчане заставили весь мир позабыть слово Швеция, став единой Скандинавией."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1801 }

	action_a ={				
		name = "Получить угорскую культуру"
		command = { type = badboy value = -5 }
		command = { type = remove_countryculture which = ugric }
		command = { type = add_countryculture which = ugric }
		command = { type = addcore which = 254 } # Швеция
                command = { type = stability value = 2 }
		command = { type = setflag which = e5014 }
	}
}


event = {

	id = 5015
	trigger = {
		owned = { province = 306 data = -1 } 
                owned = { province = 305 data = -1 } 
                owned = { province = 311 data = -1 } 
                owned = { province = 336 data = -1 } 
                owned = { province = 310 data = -1 } 
		NOT = { flag = e5015 }
		NOT = {
			core = { province = 310 data = DAN }
			core = { province = 305 data = DAN }
		}
	}
	random = no
	country = DAN
	name = "Германские земли"
	desc = "Весь север Германии был оккупирован датчанами, вследствие чего немцы наравне со скандинавами стали считаться коренной частью Дании"
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1801 }

	action_a ={				
		name = "Ура!"
		command = { type = badboy value = -5 }
		command = { type = remove_countryculture which = german }
		command = { type = add_countryculture which = german }
                command = { type = addcore which = 310 }
		command = { type = addcore which = 305 }
                command = { type = provincemanpower which = -2 value = -8 }
		command = { type = stability value = 2 }
                command = { type = trigger which = 5068 }
		command = { type = setflag which = e5015 }
	}
}

event = {

	id = 5169
	trigger = {
		core = { province = 310 data = DAN }
		core = { province = 305 data = DAN }
	}
	random = no
	country = DAN
	name = "Потеря германских земель"
	desc = "Борьба с Польшей и немецким народом закончилась выдворением Дании с северогерманских земель. Новым владельцем Берлина стала Польша."
	style = 1

	action_a ={				
		name = "Горе нам!"
		command = { type = remove_countryculture which = german }
                command = { type = removecore which = 310 }
		command = { type = removecore which = 305 }
		command = { type = stability value = -2 }
                command = { type = casusbelli which = POL value = 36 }   
	}
}

event = {

	id = 5016
	trigger = {
		owned = { province = 306 data = -1 } 
                owned = { province = 305 data = -1 } 
                owned = { province = 311 data = -1 } 
                owned = { province = 336 data = -1 } 
                owned = { province = 310 data = -1 } 
                event = 5011   
		NOT = { flag = e5016 }
		NOT = {
			core = { province = 310 data = DAN }
			core = { province = 305 data = DAN }
		}
	}
	random = no
	country = DAN
	name = "Германские земли"
	desc = "Весь север Германии был оккупирован датчанами, вследствие чего немцы наравне со скандинавами стали считаться коренной частью Дании"
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1801 }

	action_a ={				
		name = "Ура!"
		command = { type = remove_countryculture which = german }
		command = { type = add_countryculture which = german }
                command = { type = addcore which = 310 }
		command = { type = addcore which = 305 }
		command = { type = stability value = 2 }
                command = { type = trigger which = 5072 }
		command = { type = setflag which = e5016 }
	}
}

event = {

	id = 5012
	trigger = {
		core = { province = 310 data = DAN }
		core = { province = 305 data = DAN }
	}
	random = no
	country = DAN
	name = "Потеря германских земель"
	desc = "Борьба с Польшей и немецким народом закончилась выдворением Дании с северогерманских земель. Новым владельцем Берлина стала Польша."
	style = 1

	action_a ={				
		name = "Горе нам!"
		command = { type = remove_countryculture which = german }
                command = { type = removecore which = 310 }
		command = { type = removecore which = 305 }
		command = { type = stability value = -2 }
                command = { type = casusbelli which = POL value = 36 }   
	}
}


######################################################
### Historical events by Devol (edited by Dmitriy) ###
######################################################

event = {
	id = 76617
	random = no
	country = DAN
	name = "Отказ от гренландских колоний"
	desc = "В середине 50-х годов XV века связи Дании с гренландскими колониями полностью обрываются. Они подвергаются опустошительным набегам немецких пиратов и нападениям эскимосов. Нежелание Дании посылать ежегодно торговое судно в Гренландию приводит к полному исчезновению скандинавских поселений в Гренландии и гибели их жителей."
	style = 1

	date = { day = 1 month = june year = 1455 }
	offset = 90
	deathdate = ( day = 30 month = august year = 1455 }

	action_a ={
		name = "Забудем о Гренландии"
		command = { type = stability value = -2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = provincetax which = 1466 value = 1 }
		command = { type = treasury value = -100 }
		command = { type = domestic which = mercantilism value = 1 }
	}
	action_b ={
		name = "Восстановим колонии"
		command = { type = stability value = 1 }
		command = { type = colonists value = 4 }
		command = { type = merchants value = 2 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = treasury value = 100 }
		command = { type = relation which = ENG value = -25 }
		command = { type = provincetax which = 1466 value = -1 }
		command = { type = provincetax which = 309 value = -1 }
	}
}

event = {
	id = 76618
	random = no
	country = DAN
	name = "Тресковая война"
	desc = "Англия систематически нарушает права датской короны на монопольную торговлю с Исландией, а английские рыбаки и каперы препятствуют лову рыбы исландскими и датскими рыбаками в прибрежных водах Исландии. В начале 1468 года этот спор Дании с Англией резко обострился. Уже весной этого года начались сражения между датскими и английским флотами в Северном море. Война шла до 1474 года, однако Дании так и не удалось заставить англичан прекратить торговлю с Исландией и лов рыбы в ее водах. Прямым последствием этой войны стал упадок экономики Исландии, полностью зависящей от вылова трески в прибрежных водах."
	style = 1

	date = { day = 1 month = march year = 1468 }
	offset = 90
	deathdate = { day = 30 month = may year = 1468 }

	action_a ={
		name = "Поддержим исландцев"
		command = { type = provincetax which = 309 value = 1 }
		command = { type = provincetax which = 307 value = 1 }
		command = { type = population which = 1466 value = 400 }
		command = { type = provincetax which = 1466 value = 2 }
		command = { type = stability value = -2 }
		command = { type = relation which = ENG value = -50 }
		command = { type = warships which = -2 value = 5 }
		command = { type = treasury value = -250 }
		command = { type = casusbelli which = ENG value = 60 }
	}
	action_b ={
		name = "Не будем ссориться с Англией"
		command = { type = provincetax which = 309 value = -1 }
		command = { type = provincetax which = 307 value = -1 }
		command = { type = population which = 1466 value = -200 }
		command = { type = provincetax which = 1466 value = -2 }
		command = { type = stability value = 1 }
		command = { type = relation which = ENG value = 75 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = treasury value = 100 }
	}
	action_c ={
		name = "Поддержим исландцев и введём монополию на торговлю с ними"
		command = { type = provincetax which = 309 value = 2 }
		command = { type = provincetax which = 307 value = 2 }
		command = { type = population which = 1466 value = 100 }
		command = { type = provincetax which = 1466 value = 1 }
		command = { type = stability value = -3 }
		command = { type = relation which = ENG value = -100 }
		command = { type = warships which = -2 value = 5 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = treasury value = -250 }
		command = { type = casusbelli which = ENG value = 60 }
	}
}

event = {
	id = 76619
	trigger = {
		OR = {
			owned = { province = 255 data = -1 }
			owned = { province = 256 data = -1 }
			owned = { province = 258 data = -1 }
			owned = { province = 261 data = -1 }
			owned = { province = 381 data = -1 }
		}
		AND = { 
			NOT = {
				exists = NOR
			}
		}
	}
	random = no
	country = DAN
	name = "Восстание Амунда Болта"
	desc = "Подавление датчанами прав норвежцев и навязывание своих законов привело к росту недовольства в стране властью Копенгагена. Осенью 1436 года в Западной Норвегии вспыхнуло сильное восстание во главе с представителем местного рыцарства - Амундом Болте. Повстанцы потребовали воссоздания автономного Норвежского королевства, возвращения в Осло государственной печати Норвегии и прекращения разздачи земель немцам. Это восстание было жестоко подавлено датскими войсками в начале 1437 года."
	style = 1

	date = { day = 1 month = september year = 1436 }
	offset = 90
	deathdate = { day = 30 month = november year = 1436 }

	action_a ={
		name = "Уничтожить повстанцев!"
		command = { type = revolt which = 255 }
		command = { type = revolt which = 256 }
		command = { type = revolt which = 258 }
		command = { type = province_revoltrisk which = 255 value = 6 }
		command = { type = province_revoltrisk which = 256 value = 6 }
		command = { type = province_revoltrisk which = 258 value = 6 }
		command = { type = province_revoltrisk which = 261 value = 6 }
		command = { type = province_revoltrisk which = 381 value = 6 }
		command = { type = stability value = -2 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = INF which = -2 value = 7000 }
		command = { type = INF which = -1 value = 3000 }
	}
	action_b ={
		name = "Договориться с повстанцами"
		command = { type = revolt which = 255 }
		command = { type = revolt which = 256 }
		command = { type = treasury value = -250 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = revoltrisk which = 12 value = 3 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 5020 }
	}
}

event = {
	id = 76620
	trigger = {
		event = 76619
	}
	random = no
	country = DAN
	name = "Восстание подавлено"
	desc = "Меньше, чем через год восстание было жестоко подавлено, и жизнь вернулась в прежнее русло"
	style = 1

	date = { day = 15 month = april year = 1437 }
	offset = 120
	deathdate = { day = 15 month = august year = 1437 }

	action_a ={
		name = "OK"
		command = { type = province_revoltrisk which = 255 value = -6 }
		command = { type = province_revoltrisk which = 256 value = -6 }
		command = { type = province_revoltrisk which = 258 value = -6 }
		command = { type = province_revoltrisk which = 261 value = -6 }
		command = { type = province_revoltrisk which = 381 value = -6 }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 5114
	random = no
	country = DAN
	name = "Великие реформы армии и флота"
	desc = "Наша держава должна определиться в своёи развитии - мы можем сделать акцент на армию и силу войска, либо на флот, торговлю и колонизацию."
	style = 1
	
	date = { day = 1 month = january year = 1429 }
	offset = 0
	deathdate = { day = 2 month = january year = 1429 }

	action_a ={				
		name = "Большие инвестиции в армию"
		command = { type = treasury value = -500 }
		command = { type = land value = 500 }
                command = { type = domestic which = QUALITY value = 1 }
		command = { type = domestic which = LAND value = 2 }
                command = { type = domestic which = SERFDOM value = 1 } 
		command = { type = infantry which = -2 value = 5000 }
		command = { type = cavalry which = -2 value = 2000 }
                command = { type = naval value = -250 }
	}
        action_b ={				
		name = "Местная военная реформа"
		command = { type = treasury value = -50 }
            	command = { type = domestic which = LAND value = 1 }
            	command = { type = infantry which = -2 value = 2000 }
		command = { type = cavalry which = -2 value = 1000 }
	}
        action_c ={				
		name = "Местная морская реформа"
		command = { type = treasury value = -50 }
            	command = { type = domestic which = LAND value = -1 }
            	command = { type = warships which = -2 value = 1 }
		command = { type = galleys which = -2 value = 1 }
	}
	action_d ={
		name = "Большие инвестиции во флот"
		command = { type = domestic which = LAND value = -2 }
		command = { type = domestic which = mercantilism value = -1 }
                command = { type = treasury value = -300 }
                command = { type = naval value = 500 } 
                command = { type = warships which = -2 value = 2 }
		command = { type = transports which = -2 value = 1 }
		command = { type = galleys which = -2 value = 2 }
                command = { type = land value = -250 }
	}
}

# ids are busy #