# ACCOMPLISHMENTS
# Saoshyant
# Converter King
# Sponsoring King
# Crusader/equivalent traits
# Bestiality
# Cannibal
# Satanist Leader
# Restorer of Roman Empire

# SHAME
# Excommunicated
# Bastard/legit_bastard/child_of_consort
# Crowned_by_myself
# Kinslayer/familial_kinslayer/dynastic_kinslayer
# Cannibal

# LIFESTYLES
# administrator
# architect
# duelist
# game_master
# gardener
# hedonist
# hunter
# impaler
# master_schemer
# seducer/seductress
# mystic
# scholar
# socializer
# strategist
# theologian
# poet
# falconer
# celibate
# drunkard

# DEFORMITIES/GENETIC TRAITS
# crippled/mangled
# disfigured
# hunchback
# giant
# dwarf
# eunuch
# infirm/lunatic
# fat
# malnourished
# strong/brawny
# shrewd/quick/genius

# VICES/VIRTUES
# lustful
# gluttunous
# greedy
# slothul
# envious
# wroth
# proud
# chaste
# temperate
# charitable
# diligent
# kind
# patient
# humble

# Accomplishments

death_text_saoshyant = {
	weight_multiplier = {
		factor = 60

		trigger = {
			trait = saoshyant
		}
	}
}

death_text_sponsor_king = {
	weight_multiplier = {
		factor = 60

		trigger = {
			has_character_flag = flag_sponsored_baptism
		}
	}
}

death_text_convert_king = {
	weight_multiplier = {
		factor = 60

		trigger = {
			has_character_flag = flag_converted_baptism
		}
	}
}

death_text_crusader = {
	weight_multiplier = {
		factor = 60

		trigger = {
			OR = {
				trait = crusader
				trait = ares_own
				trait = eagle_knight
				trait = gondi_shahansha
				trait = hound_of_dievas
				trait = kanai
				trait = mujahid
				trait = nyames_shield
				trait = peruns_chosen
				trait = skylord
				trait = ukkos_hammer
				trait = valhalla_bound
				trait = sun_warrior
			}
		}
	}
}

death_text_bestiality = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = lustful

			OR = {
				trait = lunatic
				trait = possessed
			}

			any_courtier = {
				graphical_culture = horsegfx
			}
		}
	}
}

death_text_cannibal = {
	weight_multiplier = {
		factor = 60

		trigger = {
			trait = cannibal
		}
	}
}

death_text_satanist = {
	weight_multiplier = {
		factor = 60

		trigger = {
			society_rank = {
				society = the_satanists
				rank == 4
			}
		}
	}
}

death_text_roman_emperor = {
	weight_multiplier = {
		factor = 60

		trigger = {
			has_character_flag = achievement_legacy_of_rome
		}
	}
}

# Shame

death_text_excommunicated = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = excommunicated
		}
	}
}

death_text_bastard = {
	weight_multiplier = {
		factor = 40

		trigger = {
			OR = {
				trait = bastard
				trait = legit_bastard
				trait = child_of_consort
			}
		}
	}
}

death_text_selfcrowned = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = crowned_by_myself
		}
	}
}

death_text_kinslayer = {
	weight_multiplier = {
		factor = 40

		trigger = {
			OR = {
				trait = kinslayer
				trait = familial_kinslayer
				trait = dynastic_kinslayer
			}
		}
	}
}

# Lifestyles

death_text_administrator = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = administrator
		}
	}
}

death_text_architect = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = architect
		}
	}
}

death_text_duelist = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = duelist
		}
	}
}

death_text_gamer = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = game_master
		}
	}
}

death_text_gardener = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = gardener
		}
	}
}

death_text_hedonist = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = hedonist
		}
	}
}

death_text_hunter = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = hunter
		}
	}
}

death_text_impaler = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = impaler
		}
	}
}

death_text_schemer = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = master_schemer
		}
	}
}

death_text_seducer = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = master_seducer
		}
	}
}

death_text_seductress = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = master_seductress
		}
	}
}

death_text_mystic = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = mystic
		}
	}
}

death_text_scholar = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = scholar
		}
	}
}

death_text_socializer = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = socializer
		}
	}
}

death_text_strategist = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = strategist
		}
	}
}

death_text_theologian = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = theologian
		}
	}
}

death_text_poet = {
	weight_multiplier = {
		factor = 20

		trigger = {
			trait = poet
		}
	}
}

death_text_drunkard = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = drunkard
		}
	}
}

# Deformities/genetic traits

death_text_genius = {
	weight_multiplier = {
		factor = 30

		trigger = {
			OR = {
				trait = shrewd
				trait = quick
				trait = genius
			}
		}
	}
}

death_text_malnourished = {
	weight_multiplier = {
		factor = 30

		trigger = {
			trait = malnourished
		}
	}
}

death_text_fat = {
	weight_multiplier = {
		factor = 30

		trigger = {
			trait = fat
		}
	}
}

death_text_lunatic = {
	weight_multiplier = {
		factor = 40

		trigger = {
			OR = {
				trait = infirm
				trait = lunatic
			}
		}
	}
}

death_text_dwarf = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = dwarf
		}
	}
}

death_text_giant = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = giant
		}
	}
}

death_text_hunchback = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = hunchback
		}
	}
}

death_text_disfigured = {
	weight_multiplier = {
		factor = 40

		trigger = {
			trait = disfigured
		}
	}
}

death_text_crippled = {
	weight_multiplier = {
		factor = 30

		trigger = {
			OR = {
				trait = maimed
				trait = mangled
			}
		}
	}
}

# Vices

death_text_lustful = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = lustful
			is_wicked = yes
		}
	}
}

death_text_gluttonous = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = fat
			is_wicked = yes
		}
	}
}

death_text_greedy = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = greedy
			is_wicked = yes
		}
	}
}

death_text_slothful = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = slothful
			is_wicked = yes
		}
	}
}

death_text_envious = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = envious
			is_wicked = yes
		}
	}
}

death_text_wroth = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = wroth
			is_wicked = yes
		}
	}
}

death_text_proud = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = proud
			is_wicked = yes
		}
	}
}

# Virtues

death_text_chaste = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = chaste
			is_virtous = yes
		}
	}
}

death_text_temperate = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = temperate
			is_virtous = yes
		}
	}
}
death_text_charitable = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = charitable
			is_virtous = yes
		}
	}
}

death_text_diligent = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = diligent
			is_virtous = yes
		}
	}
}

death_text_kind = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = kind
			is_virtous = yes
		}
	}
}

death_text_patient = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = patient
			is_virtous = yes
		}
	}
}

death_text_humble = {
	weight_multiplier = {
		factor = 10

		trigger = {
			trait = humble
			is_virtous = yes
		}
	}
}

# Misc

death_text_evil_wonder = {
	weight_multiplier = {
		factor = 10

		trigger = {
			any_realm_wonder = {
				is_active = yes
				has_wonder_flag = burial_ground
			}
			is_wicked = yes
		}
	}
}

death_text_started_wonder = {
	weight_multiplier = {
		factor = 5

		trigger = {
			OR = {
				ruled_years < 5

				AND = {
					has_started_building_wonder = yes
					has_ambition = obj_create_wonder
				}
			}
		}
	}
}

death_text_architect_wonder = {
	weight_multiplier = {
		factor = 5

		trigger = {
			calc_true_if = {
				amount >= 2

				trait = architect
				has_character_modifier = master_builder
				has_character_flag = created_wonder
				num_of_wonders >= 3
			}
		}
	}
}

death_text_child = {
	weight_multiplier = {
		factor = 3

		trigger = {
			practical_age < 10
		}
	}
}