﻿courtier_guest_pool_character_secret_giving_effect = {
	random_list = {
		# Deviant
		200 = {
			trigger = {
				NOR = {
					has_trait = celibate
					has_trait = chaste
					any_secret = { type = secret_deviant }
					has_trait = deviant
				}
			}
			modifier = {
				has_trait = lustful
				add = 50
			}

			give_deviant_secret_or_trait_effect = yes
		}
		# Homosexual
		100 = {
			trigger = {
				is_male = yes
				OR = {
					has_sexuality = homosexual
					has_sexuality = bisexual
				}
				NOT = { has_trait = celibate }
				NOR = {
					any_secret = { type = secret_homosexual }
					has_trait = sodomite
				}
			}
			modifier = {
				has_trait = chaste
				add = -50
			}

			give_homosexual_secret_or_nothing_effect = yes
		}
		# Cannibal
		100 = {
			trigger = {
				OR = {
					has_trait = lunatic
					has_trait = possessed
					ai_compassion <= high_negative_ai_value
				}
				NOR = {
					any_secret = { type = secret_cannibal }
					has_trait = cannibal
				}
			}
			ai_compassion_target_modifier = { VALUE = -50 }

			give_cannibal_secret_or_trait_effect = yes
		}
		# Non-believer
		500 = {
			trigger = {
				NOR = {
					has_trait = zealous
					any_secret = { type = secret_non_believer }
					has_character_modifier = known_non_believer
				}
			}
			ai_zeal_target_modifier = { VALUE = -50 }
			give_non_believer_secret_effect = yes
		}
		# Witch
		100 = {
			trigger = {
				NOR = {
					has_trait = zealous
					any_secret = { type = secret_witch }
					has_trait = witch
					### added by ExpWitch
					has_game_rule = zero_witches_frequency
				}
			}
			modifier = {
				OR = {
					has_trait = lifestyle_mystic
					has_trait = lifestyle_herbalist
				}
				add = 50
			}
			ai_greed_target_modifier = { VALUE = 50 }
			### added by ExpWitch
			modifier = {
				has_game_rule = reduced_witches_frequency
				factor = 0.5
			}
			min = 0
		}
		### Fallthrough - added by ExpWitch
		1 = {}
	}
}

