﻿# Standard Values
@pos_compat_high = 30
@pos_compat_medium = 15
@pos_compat_low = 5

@neg_compat_high = -30
@neg_compat_medium = -15
@neg_compat_low = -5

############### Child Personality ##############
rowdy = {
	category = childhood
	minimum_age = 3
	#maximum_age = 15
	martial = 1
	intrigue = 1

	track = { ## mr_mod
		25 = {
			martial = 1
			intrigue = 1
			monthly_county_control_growth_add = 0.2
		}
		50 = {
			martial = 1
			intrigue = 1
			prowess = 1
			monthly_martial_lifestyle_xp_gain_mult = 0.05
			monthly_intrigue_lifestyle_xp_gain_mult = 0.05
		}
		75 = {
			martial = 1
			intrigue = 1
			prowess = 1
			monthly_county_control_growth_add = 0.2
		}
		100 = {
			knight_limit = 2
			monthly_martial_lifestyle_xp_gain_mult = 0.05
			monthly_intrigue_lifestyle_xp_gain_mult = 0.05
		}
	}
	
	ruler_designer_cost = 5

	name = { ## mr_mod
		first_valid = {
			triggered_desc = {
				trigger = {
					has_game_rule = keep_childhood_trait_enabled
					exists = this
					is_adult = yes
				}
				desc = trait_rowdy_adult
			}
			desc = trait_rowdy
		}
	}
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_rowdy_desc
			}
			desc = trait_rowdy_character_desc
		}
	}

	ai_energy = 25
	ai_boldness = 25
	ai_rationality = -15
	ai_compassion = -15
	ai_vengefulness = 15
	ai_honor = -15
	ai_sociability = 15

	compatibility = {
		rowdy = @pos_compat_high
		brave = @pos_compat_high
		ambitious = @pos_compat_high
		bossy = @pos_compat_low
		curious = @pos_compat_low
		pensive = @neg_compat_low
		craven = @neg_compat_low
		calm = @neg_compat_low
	}
}

charming = {
	category = childhood
	minimum_age = 3
	#maximum_age = 15
	intrigue = 1
	diplomacy = 1
	learn_language_scheme_phase_duration_add = -5

	track = { ## mr_mod
		25 = {
			intrigue = 1
			diplomacy = 1
			attraction_opinion = 10
		}
		50 = {
			intrigue = 1
			diplomacy = 1
			learning = 1
			monthly_intrigue_lifestyle_xp_gain_mult = 0.05
			monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
		}
		75 = {
			intrigue = 1
			diplomacy = 1
			learning = 1
			attraction_opinion = 10
		}
		100 = {
			befriend_scheme_phase_duration_add = -30
			monthly_intrigue_lifestyle_xp_gain_mult = 0.05
			monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
		}
	}
	
	ruler_designer_cost = 5

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_charming_desc
			}
			desc = trait_charming_character_desc
		}
	}

	ai_vengefulness = 15
	ai_greed = 25
	ai_honor = -15
	ai_rationality = 15
	ai_compassion = 15
	ai_sociability = 25
	ai_amenity_target_baseline = 0.2
	ai_amenity_spending = 0.1

	compatibility = {
		charming = @pos_compat_low
		gregarious = @pos_compat_medium
		deceitful = @pos_compat_low
		ambitious = @pos_compat_low
		bossy = @pos_compat_low
		curious = @neg_compat_medium
		honest = @neg_compat_medium
		content = @neg_compat_medium
		just = @neg_compat_medium
		shy = @neg_compat_high
	}
}

curious = {
	category = childhood
	minimum_age = 3
	#maximum_age = 15
	diplomacy = 1
	learning = 1
	learn_language_scheme_phase_duration_add = -10

	track = { ## mr_mod
		25 = {
			diplomacy = 1
			learning = 1
			character_capital_county_monthly_development_growth_add = 0.05
		}
		50 = {
			diplomacy = 1
			learning = 1
			stewardship = 1
			monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
			monthly_learning_lifestyle_xp_gain_mult = 0.05
		}
		75 = {
			diplomacy = 1
			learning = 1
			stewardship = 1
			character_capital_county_monthly_development_growth_add = 0.05
		}
		100 = {
			development_growth = 0.05
			monthly_diplomacy_lifestyle_xp_gain_mult = 0.05
			monthly_learning_lifestyle_xp_gain_mult = 0.05
		}
	}
	
	ruler_designer_cost = 5

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_curious_desc
			}
			desc = trait_curious_character_desc
		}
	}

	ai_compassion = 25
	ai_honor = 15
	ai_vengefulness = -15
	ai_boldness = 25
	ai_energy = 15
	ai_sociability = 15

	compatibility = {
		curious = @pos_compat_high
		gregarious = @pos_compat_medium
		compassionate = @pos_compat_medium
		rowdy = @pos_compat_medium
		charming = @pos_compat_low
		shy = @neg_compat_high
		callous = @neg_compat_medium
		sadistic = @neg_compat_medium
		deceitful = @neg_compat_low
	}
}

pensive = {
	category = childhood
	minimum_age = 3
	#maximum_age = 15
	learning = 1
	stewardship = 1
	learn_language_scheme_phase_duration_add = -5

	track = { ## mr_mod
		25 = {
			learning = 1
			stewardship = 1
			intrigue_scheme_resistance = 5
		}
		50 = {
			learning = 1
			stewardship = 1
			intrigue = 1
			monthly_learning_lifestyle_xp_gain_mult = 0.05
			monthly_stewardship_lifestyle_xp_gain_mult = 0.05
		}
		75 = {
			learning = 1
			stewardship = 1
			intrigue = 1
			intrigue_scheme_resistance = 5
		}
		100 = {
			tax_mult = 0.2
			monthly_learning_lifestyle_xp_gain_mult = 0.05
			monthly_stewardship_lifestyle_xp_gain_mult = 0.05
		}
	}
	
	ruler_designer_cost = 5

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_pensive_desc
			}
			desc = trait_pensive_character_desc
		}
	}

	ai_rationality = 25
	ai_greed = -15
	ai_energy = 15
	ai_boldness = -15
	ai_honor = 15
	ai_sociability = -25

	compatibility = {
		pensive = @pos_compat_high
		whole_of_body = @pos_compat_high
		scholar = @pos_compat_high
		theologian = @pos_compat_high
		diligent = @pos_compat_low
		intellect_good_1 = @pos_compat_low
		intellect_good_2 = @pos_compat_low
		intellect_good_3 = @pos_compat_low
		shrewd = @pos_compat_low
		rowdy = @neg_compat_medium
		bossy = @neg_compat_low
		lazy = @neg_compat_low
	}
}

bossy = {
	category = childhood
	minimum_age = 3
	#maximum_age = 15
	stewardship = 1
	martial = 1

	track = { ## mr_mod
		25 = {
			stewardship = 1
			martial = 1
			monthly_county_control_growth_factor = 0.2
		}
		50 = {
			stewardship = 1
			martial = 1
			diplomacy = 1
			monthly_stewardship_lifestyle_xp_gain_mult = 0.05
			monthly_martial_lifestyle_xp_gain_mult = 0.05
		}
		75 = {
			stewardship = 1
			martial = 1
			diplomacy = 1
			monthly_county_control_growth_factor = 0.2
		}
		100 = {
			vassal_tax_mult = 0.2
			monthly_stewardship_lifestyle_xp_gain_mult = 0.05
			monthly_martial_lifestyle_xp_gain_mult = 0.05
		}
	}
	
	ruler_designer_cost = 5

	name = { ## mr_mod
		first_valid = {
			triggered_desc = {
				trigger = {
					has_game_rule = keep_childhood_trait_enabled
					exists = this
					is_adult = yes
				}
				desc = trait_bossy_adult
			}
			desc = trait_bossy
		}
	}
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_bossy_desc
			}
			triggered_desc = {
				trigger = {
					has_game_rule = keep_childhood_trait_enabled
					is_adult = yes
				}
				desc = trait_bossy_adult_desc
			}
			desc = trait_bossy_character_desc
		}
	}

	ai_boldness = 25
	ai_greed = 25
	ai_vengefulness = 15
	ai_honor = 15
	ai_rationality = 15

	compatibility = {
		bossy = @pos_compat_low
		ambitious = @pos_compat_low
		greedy = @pos_compat_low
		rowdy = @pos_compat_low
		content = @neg_compat_low
		pensive = @neg_compat_low
	}
}

############### Illness ##############

ill = {
	opposites = {
		pneumonic
	}
	
	health = -1
	elderly_health = -1
	prowess = -4
	fertility = -0.2

	category = health

	dread_baseline_add = -10
	dread_loss_mult = 1

	track = {
		20 = {
			health = -0.2
			prowess = -1
		}
		40 = {
			health = -0.2
			prowess = -1
			fertility = -0.1
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		60 = {
			health = -0.2
			prowess = -2
			fertility = -0.1
		}
		80 = {
			health = -0.4
			prowess = -2
			fertility = -0.2
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		100 = {
			health = -0.4
			prowess = -3
			fertility = -0.2
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_ill_desc
			}
			desc = trait_ill_character_desc
		}
	}

	ai_energy = -25
}

pneumonic = {
	opposites = {
		ill
	}
	
	diplomacy = -2
	stewardship = -2
	martial = -2
	intrigue = -2
	learning = -2
	health = -3
	elderly_health = -2
	prowess = -8
	fertility = -0.5

	category = health

	dread_baseline_add = -10
	dread_loss_mult = 1

	track = {
		20 = {
			intrigue = -1
			learning = -1
			prowess = -2
			health = -0.5
		}
		40 = {
			diplomacy = -1
			prowess = -2
			health = -0.5
			fertility = -0.1
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		60 = {
			stewardship = -1
			martial = -1
			prowess = -2
			health = -1
			fertility = -0.1
		}
		80 = {
			diplomacy = -1
			intrigue = -1
			learning = -1
			health = -2
			prowess = -2
			fertility = -0.2
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		100 = {
			diplomacy = -1
			stewardship = -1
			martial = -1
			health = -3
			prowess = -3
			fertility = -0.3
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_pneumonic_desc
			}
			desc = trait_pneumonic_character_desc
		}
	}

	ai_energy = -50
}

great_pox = { #Syphilis
	inherit_chance = 10
	
	diplomacy = -1
	stewardship = -1
	martial = -1
	intrigue = -1
	learning = -1
	health = -1
	fertility = -0.2

	category = health
	
	dread_baseline_add = -20
	dread_loss_mult = 1

	attraction_opinion = -10

	track = {
		20 = {
			intrigue = -1
			learning = -1
			health = -0.1
			attraction_opinion = -5
		}
		40 = {
			health = -0.2
			fertility = -0.1
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		60 = {
			diplomacy = -1
			stewardship = -1
			health = -0.1
			attraction_opinion = -5
		}
		80 = {
			martial = -1
			health = -0.2
			fertility = -0.2
			dread_baseline_add = -10
			dread_loss_mult = 1
		}
		100 = {
			diplomacy = -1
			stewardship = -1
			health = -0.2
		}
	}
	
	ruler_designer_cost = -10

	flag = illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_great_pox_desc
			}
			desc = trait_great_pox_character_desc
		}
	}

	ai_energy = -15
}

lovers_pox = {
	inherit_chance = 10
	
	dread_baseline_add = -5

	attraction_opinion = -20
	category = health

	track = {
		20 = {
			health = -0.1
			dread_baseline_add = -1
			attraction_opinion = -2
		}
		40 = {
			health = -0.1
			attraction_opinion = -2
		}
		60 = {
			health = -0.1
			dread_baseline_add = -2
			attraction_opinion = -4
		}
		80 = {
			health = -0.2
			attraction_opinion = -4
		}
		100 = {
			health = -0.2
			dread_baseline_add = -3
			attraction_opinion = -8
		}
	}
	
	ruler_designer_cost = 0

	flag = illness

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_lovers_pox_desc
			}
			desc = trait_lovers_pox_character_desc
		}
	}
}

leper = {
	health = -1.5
	prowess = -8
	fertility = -0.95
	category = health

	dread_baseline_add = -20
	dread_loss_mult = 1

	attraction_opinion = -35
	general_opinion = -10

	track = {
		20 = {
			health = -0.1
			fertility = -0.1
			attraction_opinion = -5
		}
		40 = {
			prowess = -2
			health = -0.2
			dread_baseline_add = -10
			dread_loss_mult = 0.5
		}
		60 = {
			health = -0.3
			fertility = -0.2
			attraction_opinion = -10
			general_opinion = -10
		}
		80 = {
			prowess = -2
			health = -0.4
			dread_baseline_add = -10
			dread_loss_mult = 0.5
		}
		100 = {
			prowess = -4
			health = -0.6
			fertility = -0.3
			attraction_opinion = -15
		}
	}
	
	ruler_designer_cost = -30

	flag = illness
	flag = debilitating_illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_leper_desc
			}
			desc = trait_leper_character_desc
		}
	}

	ai_energy = -15
}

gout_ridden = {
	diplomacy = -2
	martial = -1
	prowess = -2
	health = -1
	
	dread_baseline_add = -5
	category = health
	attraction_opinion = -15

	track = {
		20 = {
			health = -0.1
			attraction_opinion = -5
		}
		40 = {
			prowess = -2
			health = -0.1
		}
		60 = {
			diplomacy = -1
			health = -0.2
			attraction_opinion = -5
		}
		80 = {
			prowess = -1
			health = -0.3
			dread_baseline_add = -5
		}
		100 = {
			diplomacy = -2
			health = -0.5
			attraction_opinion = -5
		}
	}
	
	ruler_designer_cost = -5

	flag = illness
	flag = debilitating_illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_gout_ridden_desc
			}
			desc = trait_gout_ridden_character_desc
		}
	}

	ai_energy = -15
}

consumption = { # Tuberculosis
	diplomacy = -2
	stewardship = -1
	intrigue = -2
	prowess = -2
	health = -2.5
	child_health = -1
	elderly_health = -2
	category = health

	dread_baseline_add = -10
	dread_loss_mult = 1

	attraction_opinion = -10

	track = {
		20 = {
			diplomacy = -1
			stewardship = -1
			health = -0.5
		}
		40 = {
			intrigue = -1
			prowess = -1
			health = -0.5
			dread_baseline_add = -5
			dread_loss_mult = 0.5
			attraction_opinion = -5
		}
		60 = {
			diplomacy = -1
			stewardship = -1
			health = -1
		}
		80 = {
			intrigue = -1
			prowess = -1
			health = -2
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		100 = {
			diplomacy = -1
			stewardship = -1
			intrigue = -1
			prowess = -1
			health = -4
			attraction_opinion = -10
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_consumption_desc
			}
			desc = trait_consumption_character_desc
		}
	}

	ai_energy = -50
}

cancer = {
	health = -3
	elderly_health = -1
	fertility = -0.20
	category = health

	dread_baseline_add = -15
	dread_loss_mult = 1

	track = {
		20 = {
			stewardship = -1
			prowess = -1
			health = -1
			fertility = -0.1
		}
		40 = {
			stewardship = -1
			intrigue = -1
			prowess = -1
			health = -1
			dread_baseline_add = -10
			dread_loss_mult = 1
		}
		60 = {
			stewardship = -1
			intrigue = -1
			prowess = -1
			health = -2
			fertility = -0.1
		}
		80 = {
			stewardship = -1
			intrigue = -1
			prowess = -2
			health = -4
			dread_baseline_add = -15
			dread_loss_mult = 1.5
		}
		100 = {
			stewardship = -1
			intrigue = -1
			prowess = -3
			health = -8
			fertility = -0.2
		}
	}
	
	ruler_designer_cost = -10

	flag = illness
	flag = debilitating_illness
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_cancer_desc
			}
			desc = trait_cancer_character_desc
		}
	}

	ai_energy = -25
}

typhus = {
	diplomacy = -1
	stewardship = -2
	intrigue = -1
	learning = -2
	prowess = -4
	health = -4.5
	elderly_health = -1
	fertility = -0.2

	category = health

	dread_baseline_add = -15
	dread_loss_mult = 1

	attraction_opinion = -10

	track = {
		20 = {
			stewardship = -1
			intrigue = -1
			health = -0.5
			fertility = -0.1
		}
		40 = {
			learning = -1
			prowess = -1
			health = -0.5
			fertility = -0.1
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		60 = {
			stewardship = -1
			prowess = -1
			health = -1
			fertility = -0.1
		}
		80 = {
			intrigue = -1
			health = -2
			fertility = -0.1
			dread_baseline_add = -5
			dread_loss_mult = 0.5
		}
		100 = {
			stewardship = -2
			learning = -2
			prowess = -2
			health = -3
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_typhus_desc
			}
			desc = trait_typhus_character_desc
		}
	}

	ai_energy = -50
}

bubonic_plague = {
	diplomacy = -2
	martial = -3
	stewardship = -2
	intrigue = -3
	learning = -2
	prowess = -10
	health = -7
	elderly_health = -2
	fertility = -0.50

	category = health
	
	dread_baseline_add = -30
	dread_loss_mult = 1

	attraction_opinion = -30

	track = {
		20 = {
			diplomacy = -1
			martial = -1
			intrigue = -1
			prowess = -1
			health = -2
			attraction_opinion = -10
			fertility = -0.2
		}
		40 = {
			diplomacy = -1
			martial = -1
			stewardship = -1
			learning = -1
			prowess = -1
			health = -2
			dread_baseline_add = -15
			dread_loss_mult = 1
		}
		60 = {
			diplomacy = -1
			intrigue = -1
			prowess = -2
			health = -3
			attraction_opinion = -20
			fertility = -0.3
		}
		80 = {
			diplomacy = -1
			stewardship = -1
			intrigue = -1
			learning = -1
			prowess = -3
			health = -6
			dread_baseline_add = -30
			dread_loss_mult = 2
		}
		100 = {
			diplomacy = -2
			martial = -1
			stewardship = -2
			intrigue = -1
			learning = -1
			prowess = -6
			health = -12
			attraction_opinion = -30
		}
	}
	
	shown_in_ruler_designer = no

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_bubonic_plague_desc
			}
			desc = trait_bubonic_plague_character_desc
		}
	}

	ai_energy = -75
}

smallpox = {
	diplomacy = -2
	stewardship = -1
	learning = -2
	prowess = -10
	health = -4.5
	elderly_health = -1.5
	fertility = -0.25

	category = health
	
	dread_baseline_add = -15
	dread_loss_mult = 1

	attraction_opinion = -10

	track = {
		20 = {
			diplomacy = -1
			learning = -1
			prowess = -2
			health = -0.5
			fertility = -0.1
		}
		40 = {
			diplomacy = -1
			stewardship = -1
			prowess = -2
			health = -1
			dread_baseline_add = -10
			dread_loss_mult = 1
		}
		60 = {
			diplomacy = -1
			learning = -1
			prowess = -2
			health = -2
		}
		80 = {
			diplomacy = -1
			stewardship = -1
			prowess = -2
			health = -4
			fertility = -0.15

			dread_baseline_add = -15
			dread_loss_mult = 1.5
		}
		100 = {
			diplomacy = -1
			stewardship = -1
			learning = -1
			prowess = -2
			health = -8
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_smallpox_desc
			}
			desc = trait_smallpox_character_desc
		}
	}

	ai_energy = -75
}

measles = {
	diplomacy = -2
	stewardship = -1
	intrigue = -1
	learning = -2
	prowess = -4
	health = -3
	child_health = -3

	category = health
	
	dread_baseline_add = -5

	attraction_opinion = -10

	track = {
		20 = {
			diplomacy = -1
			learning = -1
			prowess = -2
			health = -0.25
		}
		40 = {
			diplomacy = -1
			stewardship = -1
			prowess = -2
			health = -0.5
			dread_baseline_add = -5
			attraction_opinion = -10
		}
		60 = {
			diplomacy = -1
			learning = -1
			prowess = -2
			health = -1
		}
		80 = {
			diplomacy = -1
			stewardship = -1
			prowess = -2
			health = -2

			dread_baseline_add = -10
			attraction_opinion = -20
		}
		100 = {
			diplomacy = -1
			stewardship = -1
			learning = -1
			prowess = -2
			health = -4
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_measles_desc
			}
			desc = trait_measles_character_desc
		}
	}

	ai_energy = -75
}

dysentery = { # Bloody Flux
	diplomacy = -2
	martial = -1
	intrigue = -2
	prowess = -8
	health = -3.5
	elderly_health = -2

	category = health
	
	dread_baseline_add = -50

	attraction_opinion = -5

	track = {
		20 = {
			diplomacy = -1
			prowess = -2
			health = -0.5
		}
		40 = {
			intrigue = -1
			health = -1
			
			dread_baseline_add = -25
			attraction_opinion = -5
		}
		60 = {
			diplomacy = -1
			prowess = -3
			health = -1.5
		}
		80 = {
			intrigue = -2
			health = -2
			
			dread_baseline_add = -50
			attraction_opinion = -10
		}
		100 = {
			diplomacy = -2
			prowess = -4
			health = -2.5
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = contagious_deadly_disease
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_dysentery_desc
			}
			desc = trait_dysentery_character_desc
		}
	}

	ai_energy = -75
}

ergotism = { # Holy Fire
	diplomacy = -6
	stewardship = -1
	intrigue = -2
	learning = -2
	health = -3.5

	category = health
	
	dread_baseline_add = -25

	attraction_opinion = -10

	track = {
		20 = {
			diplomacy = -1
			stewardship = -1
			learning = -1
			health = -0.5
		}
		40 = {
			diplomacy = -1
			intrigue = -1
			health = -1

			dread_baseline_add = -10
			attraction_opinion = -5
		}
		60 = {
			diplomacy = -2
			stewardship = -1
			learning = -1
			health = -1.5
		}
		80 = {
			diplomacy = -2
			intrigue = -2
			health = -2
			
			dread_baseline_add = -15
			attraction_opinion = -10
		}
		100 = {
			diplomacy = -3
			stewardship = -2
			learning = -2
			health = -2.5
		}
	}
	
	ruler_designer_cost = 0

	flag = illness
	flag = debilitating_illness
	flag = epidemic_disease
	flag = blocks_getting_non_epidemic_disease

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_ergotism_desc
			}
			desc = trait_ergotism_character_desc
		}
	}

	ai_energy = -75
}

# Young children only
sickly = {
	maximum_age = 6
	child_health = -2.5

	category = health

	dread_baseline_add = -20
	dread_loss_mult = 1

	track = {
		20 = {
			child_health = -1
			dread_baseline_add = -10
		}
		40 = {
			child_health = -1
			dread_loss_mult = 0.5
		}
		60 = {
			child_health = -1
			dread_baseline_add = -10
		}
		80 = {
			child_health = -1
			dread_loss_mult = 0.5
		}
		100 = {
			child_health = -2
		}
	}
	
	shown_in_ruler_designer = no

	flag = illness
	flag = debilitating_illness

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_sickly_desc
			}
			desc = trait_sickly_character_desc
		}
	}

	ai_energy = -30
}

# Beauty (-1) - Homely
beauty_bad_1 = {
	opposites = {
		beauty_good
		beauty_bad_2
		beauty_bad_3
	}
	
	diplomacy = -1
	fertility = -0.1
	
	birth = 0.5
	random_creation = 0.5
	
	attraction_opinion = -10

	group = beauty_bad
	level = 1
	
	genetic = yes
	physical = yes
	#portrait_extremity_shift = 0.1
	#ugliness_portrait_extremity_shift = 0.4
	
	ruler_designer_cost = -10

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_beauty_bad_1_desc
			}
			desc = trait_beauty_bad_1_character_desc
		}
	}
}

# Beauty (-2) - Ugly
beauty_bad_2 = {
	opposites = {
		beauty_good
		beauty_bad_3
		beauty_bad_1
	}
	
	diplomacy = -2
	fertility = -0.2
	
	birth = 0.25
	random_creation = 0.25
	
	attraction_opinion = -20

	group = beauty_bad
	level = 2
	
	genetic = yes
	physical = yes
	#portrait_extremity_shift = 0.18
	#ugliness_portrait_extremity_shift = 0.6
	
	ruler_designer_cost = -20

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_beauty_bad_2_desc
			}
			desc = trait_beauty_bad_2_character_desc
		}
	}
}

# Beauty (-3) - Hideous
beauty_bad_3 = {
	opposites = {
		beauty_good
		beauty_bad_2
		beauty_bad_1
	}
	
	birth = 0.15
	random_creation = 0.15
	
	diplomacy = -3
	fertility = -0.3
	
	attraction_opinion = -30
	
	group = beauty_bad
	level = 3
	
	genetic = yes
	physical = yes
	#portrait_extremity_shift = 0.27
	#ugliness_portrait_extremity_shift = 0.8
	
	ruler_designer_cost = -30

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_beauty_bad_3_desc
			}
			desc = trait_beauty_bad_3_character_desc
		}
	}
}

# Intellect (+1) - Quick
intellect_good_1 = {
	opposites = {
		dull
		intellect_bad
		intellect_good_2 #To prevent multiple tiers of the same congenital trait
		intellect_good_3
	}
	
	diplomacy = 1
	martial = 1
	stewardship = 1
	intrigue = 1
	learning = 1
	
	monthly_lifestyle_xp_gain_mult = 0.1

	tracks = {
		diplomacy = { # intrigue & learning
			50 = { diplomacy = 1 }
		}
		martial = { # stewardship & learning
			50 = { martial = 1 }
		}
		stewardship = { # stewardship & intrigue & learning
			50 = { stewardship = 1 }
		}
		intrigue = { # diplomacy & stewardship & learning
			50 = { intrigue = 1 }
		}
		learning = { # diplomacy & martial & stewardship & intrigue
			50 = { learning = 1 }
		}
	}
	
	birth = 0.5
	random_creation = 0.5

	group = intellect_good
	level = 1

	ai_rationality = high_positive_ai_value
	
	genetic = yes
	good = yes
	physical = yes
	
	ruler_designer_cost = 80
	
	compatibility = {
		intellect_good_1 = @pos_compat_medium
		intellect_good_2 = @pos_compat_medium
		intellect_good_3 = @pos_compat_medium
		shrewd = @pos_compat_medium
		intellect_bad_1 = @neg_compat_medium
		intellect_bad_2 = @neg_compat_medium
		intellect_bad_3 = @neg_compat_medium
		dull = @neg_compat_medium
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_intellect_good_1_desc
			}
			desc = trait_intellect_good_1_character_desc
		}
	}
}

# Intellect (+2) - Intelligent
intellect_good_2 = {
	opposites = {
		dull
		intellect_bad
		intellect_good_3 #To prevent multiple tiers of the same congenital trait
		intellect_good_1
	}
	
	diplomacy = 3
	martial = 3
	stewardship = 3
	intrigue = 3
	learning = 3
	
	monthly_lifestyle_xp_gain_mult = 0.2

	tracks = {
		diplomacy = { # intrigue & learning
			1 = { diplomacy = -2 }
			34 = { diplomacy = 1 }
			67 = { diplomacy = 1 }
			100 = { diplomacy = 1 }
		}
		martial = { # stewardship & learning
			1 = { martial = -2 }
			34 = { martial = 1 }
			67 = { martial = 1 }
			100 = { martial = 1 }
		}
		stewardship = { # stewardship & intrigue & learning
			1 = { stewardship = -2 }
			34 = { stewardship = 1 }
			67 = { stewardship = 1 }
			100 = { stewardship = 1 }
		}
		intrigue = { # diplomacy & stewardship & learning
			1 = { intrigue = -2 }
			33 = { intrigue = 1 }
			67 = { intrigue = 1 }
			100 = { intrigue = 1 }
		}
		learning = { # diplomacy & martial & stewardship & intrigue
			1 = { learning = -2 }
			34 = { learning = 1 }
			67 = { learning = 1 }
			100 = { learning = 1 }
		}
	}
	
	birth = 0.25
	random_creation = 0.25

	group = intellect_good
	level = 2

	ai_rationality = very_high_positive_ai_value
	
	genetic = yes
	good = yes
	physical = yes
	
	ruler_designer_cost = 160
	
	compatibility = {
		intellect_good_1 = @pos_compat_medium
		intellect_good_2 = @pos_compat_medium
		intellect_good_3 = @pos_compat_medium
		shrewd = @pos_compat_medium
		intellect_bad_1 = @neg_compat_medium
		intellect_bad_2 = @neg_compat_medium
		intellect_bad_3 = @neg_compat_medium
		dull = @neg_compat_medium
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_intellect_good_2_desc
			}
			desc = trait_intellect_good_2_character_desc
		}
	}
}

# Intellect (+3) - Genius
intellect_good_3 = {
	opposites = {
		dull
		intellect_bad
		intellect_good_2 #To prevent multiple tiers of the same congenital trait
		intellect_good_1
	}
	
	birth = 0.05
	random_creation = 0.05
	
	diplomacy = 5
	martial = 5
	stewardship = 5
	intrigue = 5
	learning = 5
	
	monthly_lifestyle_xp_gain_mult = 0.3

	tracks = {
		diplomacy = { # intrigue & learning
			1 = { diplomacy = -4 }
			20 = { diplomacy = 1 }
			40 = { diplomacy = 1 }
			60 = { diplomacy = 1 }
			80 = { diplomacy = 1 }
			100 = { diplomacy = 1 }
		}
		martial = { # stewardship & learning
			1 = { martial = -4 }
			20 = { martial = 1 }
			40 = { martial = 1 }
			60 = { martial = 1 }
			80 = { martial = 1 }
			100 = { martial = 1 }
		}
		stewardship = { # stewardship & intrigue & learning
			1 = { stewardship = -4 }
			20 = { stewardship = 1 }
			40 = { stewardship = 1 }
			60 = { stewardship = 1 }
			80 = { stewardship = 1 }
			100 = { stewardship = 1 }
		}
		intrigue = { # diplomacy & stewardship & learning
			1 = { intrigue = -4 }
			20 = { intrigue = 1 }
			40 = { intrigue = 1 }
			60 = { intrigue = 1 }
			80 = { intrigue = 1 }
			100 = { intrigue = 1 }
		}
		learning = { # diplomacy & martial & stewardship & intrigue
			1 = { learning = -4 }
			20 = { learning = 1 }
			40 = { learning = 1 }
			60 = { learning = 1 }
			80 = { learning = 1 }
			100 = { learning = 1 }
		}
	}

	group = intellect_good
	level = 3
	
	ai_rationality = dominant_positive_ai_value
	
	genetic = yes
	good = yes
	physical = yes
	
	ruler_designer_cost = 240
	
	compatibility = {
		intellect_good_1 = @pos_compat_medium
		intellect_good_2 = @pos_compat_medium
		intellect_good_3 = @pos_compat_medium
		shrewd = @pos_compat_medium
		intellect_bad_1 = @neg_compat_medium
		intellect_bad_2 = @neg_compat_medium
		intellect_bad_3 = @neg_compat_medium
		dull = @neg_compat_medium
	}

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_intellect_good_3_desc
			}
			desc = trait_intellect_good_3_character_desc
		}
	}
}