################################
### Special events by Korall ###
################################

event = {
	id = 5075
	trigger = {
		NOT = { flag = e5075 }
		owned = { province = 357 data = -1 }
		NOT = {
			core = { province = 357 data = VEN }
		}
	}
	random = no
	country = VEN
	name = "Захват Константиноля"
	desc = "Венецианская республика выдвинулась на роль ведущей державы на Балканах, захватив важнейшую и богатейшую провинцию - Фракию. Это привело к полному упадку Оттоманской Империи."
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1550 }
	
	action_a ={			
		name = "Убить всех еретиков!"
		command = { type = badboy value = -5 }
		command = { type = addcore which = 357 } # Фракия
		command = { type = provincereligion which = 357 value = catholic }
		command = { type = population which = 357 value = -50000 } 
                command = { type = revolt which = 357 } # недовольство населения провинции
		command = { type = revolt which = 357 }
                command = { type = treasury value = 300 } # награбленные сокровища   
                command = { type = stability value = 1 } # лучшая торговля венецианских купцов
		command = { type = setflag which = e5075 }
        }
	action_b ={			
		name = "Обложить их тяжелым налогом"
		command = { type = badboy value = -5 }
		command = { type = addcore which = 357 } # Фракия
		command = { type = provincetax which = 357 value = 3 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = revolt which = 357 } # недовольство населения провинции
		command = { type = treasury value = 150 }
                command = { type = gainbuilding which = 357 value = bailiff }
                command = { type = provincetax which = 357 value = 4 }
		command = { type = setflag which = e5075 }
	}
        action_c ={			
		name = "Пусть живут"
		command = { type = badboy value = -5 }
		command = { type = addcore which = 357 } # Фракия
		command = { type = infra value = 1000 }
		command = { type = stability  value = -1 }
                command = { type = revoltrisk which = 48 value = 3 }
		command = { type = setflag which = e5075 }
	}
}

event = {

	id = 5076
	trigger = {
		NOT = { flag = e5076 }
		not = { exists = PAP }
                        control = {
			province = 399
			data = -1
		}
                        owned = {
			province = 399
			data = -1
		}
		NOT = {
			core = { province = 392 data = VEN }
			core = { province = 399 data = VEN }
		}
	}
	random = no
	country = VEN
	name = "Захват Рима"
	desc = "Уничтожение Папской области, захват Рима - оплота католицизма, позволил Венецианской республики провозгласить себя новым лидером католиков."
	style = 1
	
	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1821 }

	action_a ={				
		name = "Захватим трон"
		command = { type = badboy value = -3 }
		command = { type = vp value = 25 }
		command = { type = treasury value = 50 }
		command = { type = addcore which = 392 }
		command = { type = addcore which = 399 }
                command = { type = relation which = FRA value = -100 }
                command = { type = relation which = CAS value = -100 }
                command = { type = relation which = ARG value = -100 }
                command = { type = relation which = POR value = -100 }  
                command = { type = relation which = HAB value = -100 }
                command = { type = conversion which = 479 }
                command = { type = population which = 479 value = -1500 }
                command = { type = conversion which = 480 }
                command = { type = population which = 480 value = -3000 } 
                command = { type = conversion which = 820 }
                command = { type = population which = 820 value = -3000 } 
                command = { type = conversion which = -1 }
                command = { type = population which = -3 value = -3000 }
                command = { type = stability value = 1 }
		command = { type = setflag which = e5076 }	
	}
        action_b ={				
		name = "Обложим население тяжким налогом"
		command = { type = badboy value = -3 }
		command = { type = provincetax which = 479 value = 2 } 
                command = { type = provincetax which = 480 value = 2 }
                command = { type = provincetax which = 820 value = 2 }
	        command = { type = provincetax which = -1 value = 2 }
		command = { type = addcore which = 392 }
		command = { type = addcore which = 399 }
		command = { type = setflag which = e5076 }
        }

}

event = {

	id = 5077
	random = no
	country = VEN
	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 = -400 }
		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 }
	}
}

event = {
	id = 5078
	trigger = {
		NOT = { flag = e5078 }
		owned = {province = 389 data = -1 }
                owned = {province = 390 data = -1 }
                owned = {province = 391 data = -1 }
                owned = {province = 392 data = -1 }
                owned = {province = 399 data = -1 }
                owned = {province = 400 data = -1 }
                owned = {province = 401 data = -1 }
                owned = {province = 402 data = -1 }
		NOT = {
			core = { province = 389 data = VEN }
			core = { province = 400 data = VEN }
			core = { province = 401 data = VEN }
			core = { province = 402 data = VEN }
		}
	}
	random = no
	country = VEN
	name = "Итальянские провинции"
	desc = "Объединив всю северную Италию под своей властью, Венеция стала прообразом Итальянской республики"
	style = 1

	date = { day = 1 month = january year = 1419 }
	offset = 15
	deathdate = { day = 1 month = january year = 1820 }
	
	action_a ={			
		name = "Италия - для итальянцев !"
		command = { type = badboy value = -5 }
		command = { type = addcore which = 389 }
		command = { type = addcore which = 390 }
		command = { type = addcore which = 391 }
		command = { type = addcore which = 392 }
                command = { type = addcore which = 399 }
		command = { type = addcore which = 400 }
		command = { type = addcore which = 401 }
		command = { type = addcore which = 402 }
                command = { type = provincetax which = -2 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
                command = { type = provincemanpower which = -1 value = 1 }
                command = { type = infra value = 1000 }
                command = { type = stability value = 2 }
		command = { type = setflag which = e5078 }
	}
}


#################################
##### Independence of Napoli ####
#################################

event = {
	id = 5049
	trigger = {
		OR = {
			vassal =  { country = VEN country = NAP }
			owned = { province = 393 data = -1 }
		}
	}
	random = no
	country = NAP
	name = "Неаполь взбунтовался"
	desc = "Ничего не поделаешь - придётся дать им свободу"
	style = 1

	date = { day = 27 month = june year = 1458 }

	action_a = {
		name = "Полностью отпустить их"
		command = { type = independence which = NAP } #If they are annexed#
		command = { type = stability value = 3 }
		command = { type = relation which = NAP value = 400 } # If Naples already independent 
		command = { type = trigger which = 5047 } 
		command = { type = trigger which = 5048 }
	}
	action_b = {
		name = "Принять Неаполь как вассала"
		command = { type = independence which = NAP } #If they are annexed#
		command = { type = vassal which = NAP }# If Naples already independent#
		command = { type = relation which = NAP value = 400 } # If Naples already independent# 
		command = { type = trigger which = 5047 } 
	}
}

event = {
	id = 5047
	random = no
	country = VEN
	name = "Выделение Неаполя"
	desc = "Придётся отдать ещё и Апулию"
	style = 1

	action_a = {
		name = "Отдать Апулию взамен альянса"
		command = { type = secedeprovince which = NAP value = 394 }
		command = { type = alliance which = NAP } 
	}
}

event = {
	id = 5048
	random = no
	country = NAP
	name = "EVENTNAME7114"
	desc = "EVENTHIST7118"
	style = 1

	action_a = {
		name = "ACTIONNAME5251A"
		command = { type = breakvassal which = VEN }
		command = { type = stability which = 1 }
	}
}