# Diseases and related effects.

### Diseases:

blg_bleeding = {
	OR = {
		has_character_modifier = tortured_prisoner
		has_character_modifier = tortured_witch
		has_character_modifier = struck_by_lightning
	}
}

# Blind, natural or maimed.
blg_blind = {
	trait = blinded
}

# Pox boils.
blg_boils = {
	trait = has_small_pox
}

# Bubonic boils.
blg_bubonic = {
	trait = has_bubonic_plague
}

# Crippled leg.
blg_crippled = {
	OR = {
		trait = one_legged
		trait = mangled
		has_character_modifier = swollen_ankle
	}
}

# Drooling spit.
blg_drooling = {
	OR = {
		trait = incapable
		trait = infirm
		trait = rabies
	}
}

# Fat physique.
blg_fat = {
	trait = is_fat
}

# Feverish.
blg_fever = {
	OR = {
		trait = fever
		trait = has_typhoid_fever
	}
}

# Nose cold.
blg_flu = {
	OR = {
		trait = ill
		trait = flu
	}
}

# Bandaged sick skin.
blg_leper = {
	trait = leper
	trigger_if = {
		limit = { has_dlc = "Reapers" }
		trait = disfigured
	}
}

# Pale and gaunt.
blg_pale = {
	OR = {
		trait = is_malnourished
		trait = fatigue
		trait = malaise
		trait = cancer
		trait = has_tuberculosis
		trait = rtp_sanguinare_vampiris_tr
		has_character_modifier = broken_spirit
		AND = {
			has_character_modifier = corrupting_magic_major
			blg_visible_society = yes
		}
		AND = {
			trait = rtp_shapeshifter_tr
			any_player = {
				OR = {
					trait = rtp_shapeshifter_tr
					trait = rtp_druid_tr
					has_opinion_modifier = {
						modifier = rtp_abomination_om
						who = ROOT
					}
				}
			}
			NOT = { has_game_rule = { name = blg_traits value = off } }
		}
	}
}

# Oxygen deprived.
blg_pneumonic = {
	trait = pneumonic
}

# Syphilitic pox.
blg_pox = {
	OR = {
		trait = syphilitic
		trait = has_aztec_disease
	}
}

# Skin rash.
blg_rash = {
	OR = {
		trait = has_measles
		trait = has_typhus
		trait = rash
	}
}

# Baggy eyes.
blg_stressed = {
	OR = {
		trait = stressed
		trait = rtp_sanies_lupinus_tr
		trait = rtp_corruption_tr
		trait = rtp_mana_poisoning_tr
	}
}

# Sturdy physique.
blg_sturdy = {
	OR = {
		trait = sturdy
		AND = {
			trait = dwarf
			blg_fair = no
		}
	}
}

# Remaining food drips.
blg_vomit = {
	OR = {
		trait = vomiting
		trait = food_poisoning
	}
}

### Supernatural effects:

# Demon eyes and horns.
blg_demon = {
	OR = {
		has_character_modifier = demon_horns
		AND = {
			OR = {
				trait = rtp_cursed_tr
				trait = rtp_gifted_tr
			}
			any_player = {
				OR = {
					trait = rtp_cursed_tr
					trait = rtp_gifted_tr
					has_opinion_modifier = {
						modifier = rtp_abomination_om
						who = ROOT
					}
				}
			}
		}
	}
}

# Glowing eyes.
blg_glowing = {
	OR = {
		AND = {
			trait = possessed
			OR = {
				has_character_modifier = voice_of_jesus
				has_character_modifier = military_jesus
				has_character_modifier = killed_an_old_one
			}
		}
		AND = {
			OR = {
				trait = rtp_mage_tr
				trait = rtp_sage_tr
			}
			any_player = {
				OR = {
					trait = rtp_mage_tr
					trait = rtp_sage_tr
					has_opinion_modifier = {
						modifier = rtp_abomination_om
						who = ROOT
					}
				}
			}
		}
	}
}

# Godly glow.
blg_god = {
	always = no
}

# Vampire fangs.
blg_vampire = {
	OR = {
		trait = rtp_feral_vampire_tr
		trait = rtp_vampire_tr
	}
	any_player = {
		OR = {
			trait = rtp_feral_vampire_tr
			trait = rtp_vampire_tr
			has_opinion_modifier = {
				modifier = rtp_abomination_om
				who = ROOT
			}
		}
	}
	blg_adult = yes
	NOT = { has_game_rule = { name = blg_traits value = off } }
}

# Wolf eyes.
blg_werewolf = {
	OR = {
		has_character_modifier = wolf_blood
		has_character_modifier = lycanthropy
		AND = {
			OR = {
				trait = rtp_feral_werewolf_tr
				trait = rtp_werewolf_tr
			}
			any_player = {
				OR = {
					trait = rtp_feral_werewolf_tr
					trait = rtp_werewolf_tr
					has_opinion_modifier = {
						modifier = rtp_abomination_om
						who = ROOT
					}
				}
			}
		}
	}
}
