###################################
#
# Health Events
#
# Id 6000-6499 is reserved
#
###################################
#
# Written by Sara Wendel-Örtqvist

#Leper
character_event = {
	id = 6001
	desc = "EVTDESC6001"
	
	trigger = {
		age = 10
		NOT = {
			trait = leper
		}
	}
	
	mean_time_to_happen = {
		months = 5000
		
		modifier = {
			factor = 0.5
			trait = deceitful
		}
		modifier = {
			factor = 1.5
			trait = charitable
		}
	}
	
	option = {
		name = "EVTOPTA6001"
		add_trait = leper
	}
}

#Remove Leper
character_event = {
	id = 6002
	desc = "EVTDESC6002"
	
	trigger = {
		age = 10
		health = 4
		treasury = 25
		trait = leper
	}
	
	mean_time_to_happen = {
		months = 7500
	}
	
	option = {
		name = "EVTOPTA6002"
		remove_trait = leper
		treasury = -25
	}
}

#Lunatic
character_event = {
	id = 6003
	desc = "EVTDESC6003"
	
	trigger = {
		age = 10
		OR = {
			trait = depressed
			trait = stressed
		}
		NOT = {
			trait = lunatic
		}
	}
	
	mean_time_to_happen = {
		months = 3500
	}
	
	option = {
		name = "EVTOPTA6003"
		add_trait = lunatic
	}
}

#Remove Lunatic
character_event = {
	id = 6004
	desc = "EVTDESC6004"
	
	trigger = {
		age = 10
		health = 4
		trait = lunatic
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.5
			NOT = {
				OR = {
					trait = depressed
					trait = stressed
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA6004"
		remove_trait = lunatic
	}
}

#Stressed
character_event = {
	id = 6005
	desc = "EVTDESC6005"
	
	trigger = {
		age = 20
		OR = {
			is_ruler = yes
			is_councillor = yes
		}
		NOT = {
			trait = stressed
		}
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			is_ruler = yes
		}
		
		modifier = {
			factor = 0.9
			is_councillor = yes
		}
		
		modifier = {
			factor = 2.5
			trait = content
		}
	}
	
	option = {
		name = "EVTOPTA6005"
		add_trait = stressed
	}
}

#Remove Stressed
character_event = {
	id = 6006
	desc = "EVTDESC6006"
	
	trigger = {
		age = 20
		trait = stressed
	}
	
	mean_time_to_happen = {
		months = 7500
		
		modifier = {
			factor = 1.5
			is_ruler = yes
		}
		
		modifier = {
			factor = 1.6
			is_councillor = yes
		}
		
		modifier = {
			factor = 1.4
			in_command = yes
		}
		
		modifier = {
			factor = 0.9
			honor = 40
		}
	}
	
	option = {
		name = "EVTOPTA6006"
		remove_trait = stressed
	}
}

#Depressed
character_event = {
	id = 6007
	desc = "EVTDESC6007"
	
	trigger = {
		age = 10
		trait = stressed
		NOT = {
			trait = depressed
		}
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			trait = ambitious
		}
		
		modifier = {
			factor = 0.8
			in_command = yes
		}
		
		modifier = {
			factor = 0.9
			is_ruler = yes
		}
		
		modifier = {
			factor = 0.7
			trait = content
		}
	}
	
	option = {
		name = "EVTOPTA6007"
		add_trait = depressed
		remove_trait = stressed
	}
}

#Remove Depressed
character_event = {
	id = 6008
	desc = "EVTDESC6008"
	
	trigger = {
		age = 10
		trait = depressed
	}
	
	mean_time_to_happen = {
		months = 7500
		
		modifier = {
			factor = 0.8
			honor = 10
		}
		
		modifier = {
			factor = 1.3
			in_command = yes
		}
		
		modifier = {
			factor = 1.4
			is_ruler = yes
		}
	}
	
	option = {
		name = "EVTOPTA6008"
		remove_trait = depressed
	}
}

#Ill
character_event = {
	id = 6009
	desc = "EVTDESC6009"
	
	trigger = {
		health = 0.5
		NOT = {
			trait = ill
		}
		NOT = {
			health = 4
		}
	}
	
	mean_time_to_happen = {
		months = 3500
	}
	
	option = {
		name = "EVTOPTA6009"
		add_trait = ill
	}
}

#Remove Ill
character_event = {
	id = 6010
	desc = "EVTDESC6010"
	
	trigger = {
		health = 4
		trait = ill
	}
	
	mean_time_to_happen = {
		months = 7500
	}
	
	option = {
		name = "EVTOPTA6010"
		remove_trait = ill
	}
}
#Pneumonic
character_event = {
	id = 6011
	desc = "EVTDESC6011"
	
	trigger = {
		NOT = {
			health = 5
		}
		trait = ill
		NOT = {
			trait = pneumonic
		}
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.3
			in_command = yes
		}

		modifier = {
			factor = 0.5
			trait = content
		}
		
		modifier = {
			factor = 1.1
			trait = ambitious
		}
	}
	
	option = {
		name = "EVTOPTA6011"
		add_trait = pneumonic
		remove_trait = ill
	}
}

#Remove Pneumonic
character_event = {
	id = 6012
	desc = "EVTDESC6012"
	
	trigger = {
		health = 4
		trait = pneumonic
	}
	
	mean_time_to_happen = {
		months = 7500
	}
	
	option = {
		name = "EVTOPTA6012"
		remove_trait = pneumonic
	}
}

#Wounded
character_event = {
	id = 6013
	desc = "EVTDESC6013"
	
	trigger = {
		OR = {
			trait = hunter
			in_command = yes
			trait = brave
		}
		NOT = {
			trait = wounded
		}		
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			trait = brave
		}
		
		modifier = {
			factor = 0.8
			in_command = yes
		}
		
		modifier = {
			factor = 0.7
			is_ruler = yes
		}
		
		modifier = {
			factor = 0.6
			trait = misguided_warrior
		}
		
		modifier = {
			factor = 1.1
			trait = paranoid
		}
	}
	
	option = {
		name = "EVTOPTA6013"
		add_trait = wounded
	}
}

#Remove Wounded
character_event = {
	id = 6014
	desc = "EVTDESC6014"
	
	trigger = {
		health = 5
		trait = wounded
	}
	
	mean_time_to_happen = {
		months = 7500
		
		modifier = {
			factor = 0.5
			health = 5
		}
		
		modifier = {
			factor = 0.4
			health = 4
		}
	}
	
	option = {
		name = "EVTOPTA6014"
		remove_trait = wounded
	}
}

#Maimed
character_event = {
	id = 6015
	desc = "EVTDESC6015"
	
	trigger = {
		NOT = {
			health = 5
		 }
		 NOT = {
			trait = maimed
		}
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			trait = brave
		}
		
		modifier = {
			factor = 0.9
			in_command = yes
		}
		
		modifier = {
			factor = 2.2
			is_ruler = yes
		}
		
		modifier = {
			factor = 0.9
			trait = hunter
		}
		
		modifier = {
			factor = 0.9
			war = yes
		}
	}
	
	option = {
		name = "EVTOPTA6015"
		add_trait = maimed
		remove_trait = ill
	}
}

#Infirm
character_event = {
	id = 6016
	desc = "EVTDESC6016"
	
	trigger = {
		age = 50
		NOT = {
			trait = infirm
		}
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			age = 60
		}
		
		modifier = {
			factor = 0.9
			age = 70
		}
		
		modifier = {
			factor = 0.9
			age = 90
		}
	}
	
	option = {
		name = "EVTOPTA6016"
		add_trait = infirm
	}
}

#Incapable
character_event = {
	id = 6017
	desc = "EVTDESC6017"
	
	trigger = {
		age = 40
		OR = {
			NOT = {
				health = 5
			}
			trait = infirm
		}	
	}
	
	mean_time_to_happen = {
		months = 3500
		
		modifier = {
			factor = 0.9
			trait = brave
		}
		
		modifier = {
			factor = 0.9
			in_command = yes
		}
		
		modifier = {
			factor = 0.9
			is_ruler = yes
		}
		
		modifier = {
			factor = 0.9
			trait = hunter
		}
	}
	
	option = {
		name = "EVTOPTA6017"
		add_trait = incapable
	}
}