###DEVIL WORSHIPERS###
the_satanists = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_satanists }
			}

			is_adult = yes

			OR = {
				religion_group = christian
				religion_group = jewish_group
				true_religion_group = christian
				true_religion_group = jewish_group
				religion_openly_zun_or_reformed_trigger = yes
				religion_secretly_zun_or_reformed_trigger = yes
			}
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_satanists
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_satanists_prerequisites = yes
		}
	}

	potential = { # To remain in society
	}

	society_rank = {
		level = 1
		limit = 70
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 35
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_satanists }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 18
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_satanists }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_satanists }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_satanists

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		has_trait = {
			trait = baptized_by_satan
			value = 5
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = loc_is_revealed_antichrist
			value = 10

			trigger = { has_character_modifier = demon_horns }
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes

		mult_modifier = {
			has_character_modifier = demon_horns
			factor = 2
		}

		mult_modifier = {
			trait = baptized_by_satan
			factor = 1.75
		}
	}

	startup_populate = {
		trigger = {
			has_satanists_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_trollcrafters = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_trollcrafters }
			}

			OR = {
				religion_openly_norse_or_reformed_trigger = yes
				religion_secretly_norse_or_reformed_trigger = yes
				religion_openly_german_or_reformed_trigger = yes
				religion_secretly_german_or_reformed_trigger = yes
			}

			is_adult = yes
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_trollcrafters
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_trollcrafters_prerequisites = yes
		}
	}

	potential = { # To remain in society
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_trollcrafters }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_trollcrafters }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_trollcrafters }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation # Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_trollcrafters

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		# Looks like Odin
		has_trait = {
			trait = one_eyed
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes

		# Looks like Odin
		mult_modifier = {
			factor = 1.3
			trait = one_eyed
		}
	}

	startup_populate = {
		trigger = {
			has_trollcrafters_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_cult_of_kali = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_cult_of_kali }
			}

			is_adult = yes

			OR = {
				religion = hindu
				secret_religion = hindu
			}
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_cult_of_kali
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_cult_of_kali_prerequisites = yes
		}
	}

	potential = { # To remain in society
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cult_of_kali }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cult_of_kali }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cult_of_kali }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_cult_of_kali

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes
	}

	startup_populate = {
		trigger = {
			has_cult_of_kali_prerequisites = yes
			lower_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_cold_ones = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_cold_ones }
			}

			is_adult = yes

			OR = {
				religion_openly_baltic_or_reformed_trigger = yes
				religion_secretly_baltic_or_reformed_trigger = yes
				religion_openly_slavic_or_reformed_trigger = yes
				religion_secretly_slavic_or_reformed_trigger = yes
				religion_openly_finnish_or_reformed_trigger = yes
				religion_secretly_finnish_or_reformed_trigger = yes
			}
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_cold_ones
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_cold_ones_prerequisites = yes
		}
	}

	potential = { # To remain in society
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cold_ones }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cold_ones }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_cold_ones }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	monthly_currency_gain = {
		name = currency_name_the_cold_ones

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes
	}

	startup_populate = {
		trigger = {
			has_cold_ones_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_plaguebringers = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_plaguebringers }
			}

			true_tengri_religion_trigger = yes
			is_adult = yes
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_plaguebringers
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_plaguebringers_prerequisites = yes
		}
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_plaguebringers }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_plaguebringers }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_plaguebringers }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_plaguebringers

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes
	}

	startup_populate = {
		trigger = {
			has_plaguebringers_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_vodouns = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_vodouns }
			}

			OR = {
				religion_openly_west_african_or_reformed_trigger = yes
				religion_secretly_west_african_or_reformed_trigger = yes
			}

			is_adult = yes
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_vodouns
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_vodouns_prerequisites = yes
		}
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice	# Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_vodouns }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_vodouns }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_vodouns }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_vodouns

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes
	}

	startup_populate = {
		trigger = {
			has_vodouns_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}

the_bacchants = {
	primary_attribute = intrigue
	opinion_to_other_members = +5
	opinion_to_pretenders = -40			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -40	# Perceived is the opinion you have of people perceived/discovered to be of a society you're not part of
	opinion_per_rank_above = +10
	sound = devil_worshippers_interface
	society_ranks_gfx = devil_ranks

	criminal = yes
	devil_worshipper = yes
	indestructible = yes
	is_secret = yes
	society_influence = no

	active = {
		has_dlc = "Mystics"
		has_global_flag = flag_restored_bacchants

		NOT = {
			has_game_rule = {
				name = devil_worshipers
				value = none
			}
		}
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = the_bacchants }
			}

			is_adult = yes

			OR = {
				culture = roman # Historically fashionable thrill for bored patricians

				religion_openly_hellenic_or_reformed_trigger = yes
				religion_secretly_hellenic_or_reformed_trigger = yes
				top_liege = { religion_openly_hellenic_or_reformed_trigger = yes }

				trigger_if = {
					limit = { has_global_flag = flag_started_roman_renaissance }
					top_liege = { has_landed_title = e_roman_empire } # Historically a plague for the Empire
				}
			}
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = the_bacchants
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_bacchants_prerequisites = yes
		}
	}

	potential = { # To remain in society
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		decisions = {
			decision_abduct
			prisoner_dark_sacrifice # Available Decision: Sacrifice Prisoner
			# Over time, lose virtues, gain vices. A Soul Corruption-effect is on a yearly pulse (with a chance to do nothing)
		}
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_bacchants }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 1
		}

		decisions = {
			devil_worshipers_summon_familiar	# Available Power: Summon Familiar
			the_devil_worshipers_tainted_touch	# Available Power: Curse people with disease
			devil_worshipers_demonic_possession	# Available Power: Possess someone to make fanatically loyal
			# Available Power: Abduction plot
			# Unlock new options in Seduction and Spy On?
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_bacchants }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 2
		}

		decisions = {
			devil_worshipers_dark_divorce				# Available Power: Dark Divorce
			devil_worshipers_dark_healing				# Available Power: Demonic Healing. Sacrifice a prisoner to heal a random illness or maiming.
			devil_worshipers_invite_disciple_of_devil	# Available Decision: Invite a witch to court
			# Available Power: Love Potion
		}
	}

	society_rank = {
		level = 4
		limit = 1
		startup_limit = 1

		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = the_bacchants }
					}

					FROM = { is_society_discovered = yes }
				}
			}

			intrigue = 3
		}

		decisions = {
			DW_prolong_life			# Available Power: Prolong Life
			DW_demonic_impregnation	# Available power: Unholy Impregnation
		}

		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	plots = {
		plot1_tag
		plot2_tag
	}

	ambitions = {
		ambition1_tag
		ambition2_tag
	}

	monthly_currency_gain = {
		name = currency_name_the_bacchants

		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = ambitious
			value = 5
		}

		has_trait = {
			trait = genius
			value = 4
		}

		has_trait = {
			trait = quick
			value = 3
		}

		has_trait = {
			trait = shrewd
			value = 3
		}

		has_trait = {
			trait = hedonist
			value = 3
		}

		has_trait = {
			trait = mystic
			value = 3
		}

		has_trait = {
			trait = master_seducer
			value = 3
		}

		has_trait = {
			trait = master_seductress
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = impaler
			value = 3
		}

		has_trait = {
			trait = lustful
			value = 1
		}

		has_trait = {
			trait = proud
			value = 1
		}

		has_trait = {
			trait = greedy
			value = 1
		}

		has_trait = {
			trait = deceitful
			value = 1
		}

		has_trait = {
			trait = arbitrary
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		devil_worshipper_member_score = yes
	}

	startup_populate = {
		trigger = {
			has_bacchants_prerequisites = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
		}
	}
}