namespace = et

# Plague
province_event = {

	id = et.69
	title = "et.EVTNAME69"
	desc = "et.EVTDESC69"
	picture = PLAGUE_eventPicture

	trigger = {
		has_dlc = "Common Sense"
		development = 20	
		owner = { NOT = { has_institution = medicine } }
		owner = { NOT = { adm_tech = 55 } }
		NOT = { has_province_modifier = et_plague }
	}
	mean_time_to_happen = {
		months = 3200

		modifier = {
			factor = 0.1
			any_neighbor_province = { has_province_modifier = et_plague }
		}
		modifier = {
			factor = 0.5
			development = 25
		}
		modifier = {
			factor = 0.4
			development = 30
		}
		modifier = {
			factor = 0.3
			development = 35
		}
		modifier = {
			factor = 0.2
			development = 40
		}
		modifier = {
			factor = 0.1
			development = 45
		}
		modifier = {
			factor = 1.5
			owner = { adm_tech = 26 }
		}
		modifier = {
			factor = 1.5
			owner = { adm_tech = 36 }
		}
	}
	
	option = {
		name = "et.EVTOPTA69"
		if = { 
			limit = { base_tax = 4 }
			add_base_tax = -3
		}
		if = { 
			limit = { base_production = 4 }
			add_base_production = -3
		}
		if = { 
			limit = { base_manpower = 4 }
			add_base_manpower = -3
		}
		add_province_modifier = {
			name = et_plague
			duration = 1825
		}
	}
}

#Famine
province_event = {

	id = et.70
	title = "et.EVTNAME70"
	desc = "et.EVTDESC70"
	picture = FAMINE_eventPicture

	trigger = {	
		development = 16
		has_dlc = "Common Sense"
		owner = { NOT = { has_institution = medicine } }
		owner = { NOT = { adm_tech = 55 } }
		NOT = { has_province_modifier = et_famine }
	}
	mean_time_to_happen = {
		months = 4000

		modifier = {
			factor = 0.6
			has_terrain = desert
		}
		modifier = {
			factor = 0.8
			has_terrain = steppe
		}
		modifier = {
			factor = 0.8
			has_terrain = savannah
		}
		modifier = {
			factor = 0.8
			has_terrain = mountain
		}
		modifier = {
			factor = 0.8
			development = 20
		}
		modifier = {
			factor = 0.8
			development = 25
		}
		modifier = {
			factor = 0.7
			development = 30
		}
		modifier = {
			factor = 0.6
			development = 35
		}
		modifier = {
			factor = 0.4
			development = 40
		}
		modifier = {
			factor = 1.4
			owner = { adm_tech = 26 }
		}
		modifier = {
			factor = 1.4
			owner = { adm_tech = 36 }
		}
	}
	
	option = {
		name = "et.EVTOPTA70"
		if = { 
			limit = { base_tax = 3 }
			add_base_tax = -2
		}
		if = { 
			limit = { base_production = 3 }
			add_base_production = -2
		}
		if = { 
			limit = { base_manpower = 3 }
			add_base_manpower = -2
		}
		add_province_modifier = {
			name = et_famine
			duration = 1825
		}
	}
}

#Drought
province_event = {

	id = et.71
	title = "et.EVTNAME71"
	desc = "et.EVTDESC71"
	picture = FAMINE_eventPicture

	trigger = {	
		has_dlc = "Common Sense"
		development = 10
		owner = { NOT = { has_institution = medicine } }
		owner = { NOT = { adm_tech = 55 } }
		OR = {
			has_terrain = desert
			has_terrain = mountain
			has_terrain = savannah
			has_terrain = steppe
		}
		NOT = { has_province_modifier = et_drought }
	}
	mean_time_to_happen = {
		months = 2400

		modifier = {
			factor = 0.6
			has_terrain = desert
		}
		modifier = {
			factor = 0.8
			development = 15
		}
		modifier = {
			factor = 0.8
			development = 20
		}
		modifier = {
			factor = 0.8
			development = 25
		}
		modifier = {
			factor = 0.7
			development = 30
		}
		modifier = {
			factor = 0.6
			development = 35
		}
		modifier = {
			factor = 1.2
			owner = { adm_tech = 26 }
		}
		modifier = {
			factor = 1.2
			owner = { adm_tech = 36 }
		}
	}
	
	option = {
		name = "et.EVTOPTA71"
		if = { 
			limit = { base_tax = 3 }
			add_base_tax = -2
		}
		if = { 
			limit = { base_production = 3 }
			add_base_production = -2
		}
		if = { 
			limit = { base_manpower = 3 }
			add_base_manpower = -2
		}
		add_province_modifier = {
			name = et_drought
			duration = 1825
		}
	}
}