## Devil Worshippers ##
unseelie_petitioners = {
	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 = unseelie_petitioners }
			}

			is_adult = yes

			OR = {
				religion_openly_in_celtic_subgroup_trigger = yes
				religion_secretly_in_celtic_subgroup_trigger = yes
				trait = changeling
			}
		}
	}

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

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

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_unseelie_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 = unseelie_petitioners }
					}

					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 = unseelie_petitioners }
					}

					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 = unseelie_petitioners }
					}

					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_unseelie_petitioners
    
		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 = changeling
			value = 5
		}
		
		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
		
		mult_modifier = {
			trait = changeling
			factor = 1.5
		}
	}
	
	startup_populate = {
		trigger = {
			has_unseelie_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_coven = {
	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_coven }
			}

			is_adult = yes

			OR = {
				religion = promethean_pagan
				religion = titan_pagan
				secret_religion = promethean_pagan
				secret_religion = titan_pagan
			}
		}
	}

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

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

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_coven_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_coven }
					}

					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_coven }
					}

					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_coven }
					}

					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_coven
    
		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_coven_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_sand_snakes = {
	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_sand_snakes }
			}

			is_adult = yes

			OR = {
				religion_openly_in_egyptian_subgroup_trigger = yes
				religion_secretly_in_egyptian_subgroup_trigger = yes
			}
		}
	}

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

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

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_sand_snakes_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_sand_snakes }
					}

					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_sand_snakes }
					}

					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_sand_snakes }
					}

					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_sand_snakes
    
		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_sand_snakes_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
		}
	}
}

## Other Secret Societies ##
shezmu_cult = {
	primary_attribute = intrigue
	opinion_to_other_members = +10
	opinion_to_pretenders = -20			# Pretenders is the opinion you have of people perceived/discovered to be in your society
	opinion_to_perceived_members = -20 	# 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
	society_rank_up_decision = request_to_rank_up_within_society
	sound = assassins_interface
	society_ranks_gfx = generic_ranks

	indestructible = yes
	is_secret = yes
	criminal = yes
	society_influence = no
	
	active = {
		has_dlc = "Mystics"
		has_global_flag = egyptian_reformation
		has_global_flag = ancrel_debug
	}

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

			is_adult = yes

			OR = {
				religion_openly_in_egyptian_subgroup_trigger = yes
				religion_secretly_in_egyptian_subgroup_trigger = yes
				trigger_if = {
					limit = {
						ai = no
						NOT = { trait = zealous }
					}

					any_playable_ruler = {
						religion_openly_in_egyptian_subgroup_trigger = yes

						distance_from_realm = {
							who = ROOT
							value < 300
						}
					}
				}
			}
		}
	}

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

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

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_shezmu_prerequisites = yes
		}
	}
	
	potential = { # To remain in society
		OR = {
			religion_openly_in_egyptian_subgroup_trigger = yes
			religion_secretly_in_egyptian_subgroup_trigger = yes
			trait = sympathy_pagans
		}
	}

	society_rank = {
		level = 1
		limit = 50 
		startup_limit = 10
		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = shezmu_cult }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			murder_plot_power_modifier = 0.1 # increased plotpower
		}
		decisions = {
			decision_abduct
			assassins_borrow_money
			assassins_donate
			assassins_drug_effect
		}
	}
	
	society_rank = {
		level = 2
		limit = 30
		startup_limit = 6
		modifier = { 
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = shezmu_cult }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			murder_plot_power_modifier = 0.2 # further increased plotpower
			defensive_plot_power_modifier = 0.1
			intrigue = 1 
			combat_rating = 10 # bonus to dueling
		}
		decisions = {
			assassins_scare_ruler #Available (targeted) Power: Can scare rulers to get a Favor (leave a dagger on their pillow, etc. 
		}
	}
	
	society_rank = {
		level = 3
		limit = 20 
		startup_limit = 3
		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = shezmu_cult }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			murder_plot_power_modifier = 0.30 # further increased plotpower
			defensive_plot_power_modifier = 0.15
			intrigue = 2 # further increase
			combat_rating = 10 # bonus to dueling (left over)
			plot_discovery_chance = 0.1 # bonus to plot discovery chance
		}
		decisions = {
			assassins_raise_ships #Available Power: Can raise special fleet of Ships
		}
	}

	society_rank = {
		level = 4
		limit = 1 
		startup_limit = 1
		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = shezmu_cult }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			murder_plot_power_modifier = 0.50 # further increased plotpower
			defensive_plot_power_modifier = 0.25
			intrigue = 3 # further increase
			combat_rating = 10 # bonus to dueling (left over)
			plot_discovery_chance = 0.2 # further bonus to plot discovery chance
		}
		decisions = {
			assassins_raise_troops #Available Power: Can raise a special regiment
			assassins_mark_for_death #Available (targeted) Power: Mark for death (+ assassins_clear_marked_for_death_target i.e. the clearing of the mark)
		}
		obedience_tooltip = obedience_tooltip

		obedient = {
		}
	}

	monthly_currency_gain = {
		name = currency_name_shezmu_cult
    
		per_attribute = {
			name = intrigue
			value = 0.5
		}

		has_trait = {
			trait = zealous
			value = 3
		}

		has_trait = {
			trait = erudite
			value = 3
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = master_schemer
			value = 3
		}

		has_trait = {
			trait = strong
			value = 1
		}

		has_trait = {
			trait = brawny
			value = 1
		}

		has_trait = {
			trait = genius
			value = 1
		}

		has_trait = {
			trait = quick
			value = 1
		}

		has_trait = {
			trait = shrewd
			value = 1
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}
		
		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 1.3
			trait = zealous
		}

		mult_modifier = {
			factor = 1.3
			trait = erudite
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.3
			trait = master_schemer
		}

		mult_modifier = {
			factor = 1.1
			trait = strong
		}

		mult_modifier = {
			trait = brawny
			factor = 1.1
		}

		mult_modifier = {
			factor = 1.1
			trait = genius
		}

		mult_modifier = {
			factor = 1.1
			trait = quick
		}

		mult_modifier = {
			factor = 1.1
			trait = shrewd
		}

		mult_modifier = {
			factor = 1.1
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.3
			trait = just
		}
	}
	
	startup_populate = {
		trigger = {
			true_religion_in_egyptian_subgroup_trigger = yes
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			mercenary = no
			holy_order = no
			is_in_society = no
			NOR = {
				trait = decadent
				trait = arbitrary
			}
			OR = {
				trait = zealous
				trait = master_schemer
				trait = elusive_shadow
				trait = deceitful
				trait = ambitious
				intrigue >= 18
			}

			trigger_if = {
				limit = { is_female = yes }

				OR = {
					has_game_rule = {
						name = gender
						value = all
					}
					has_religion_feature = religion_matriarchal
					has_religion_feature = religion_equal
					has_religion_feature = religion_feature_egyptian
				}
			}	
			trigger_else = {
				NOT = { has_religion_feature = religion_matriarchal }
			}
			has_common_devilworship_prerequisites = no
		}
	}
}

mysteries_dionysus = {
	primary_attribute = diplomacy
	is_secret = yes
	criminal = no
	devil_worshipper = no
	opinion_to_other_members = +5
	opinion_to_pretenders = -10			#Pretenders is the opinion you have of people perceived/discovered to be in your society.
	opinion_to_perceived_members = 0	#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 = secret_cults_interface # placeholder
	society_ranks_gfx = secret_ranks # placeholder
	
	active = { 
		has_dlc = "The Old Gods"
		has_global_flag = ancrel_debug
	}

	indestructible = yes
	
	can_join_society = {
		has_global_flag = ancrel_debug
		trigger_if = {
			limit = { ai = yes }

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

		trigger_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			has_dionysus_prerequisites = yes
		}
	}
	
	show_society = {
		has_global_flag = ancrel_debug
		trigger_if = {
			limit = {
				NOT = { society_member_of = mysteries_dionysus }
			}

			is_adult = yes
			has_dionysus_prerequisites = yes
		}
	}
	
	potential = { } # no rules
	
	society_rank = { # initiate
		level = 1
		limit = 100 
		startup_limit = 10
		decisions = {
			build_winery
		}
	}
	
	society_rank = { # hymnodidaskaloi/"hymn teacher"
		level = 2
		limit = 11
		startup_limit = 3
		modifier = { 
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = mysteries_dionysus }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			diplomacy = 1
		}
		decisions = {
			hold_tristeria	# secret rites
		}
	}
	
	society_rank = { # boukolos/cowherd
		level = 3
		limit = 7
		startup_limit = 2
		modifier = {
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = mysteries_dionysus }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			diplomacy = 2
		}
		decisions = {
			hold_dionysia # public rites
		}
	}

	society_rank = { # archiboukolos/"chief cowherd"
		level = 4
		limit = 3
		startup_limit = 1
		modifier = { 
			is_visible = {
				trigger_if = {
					limit = {
						NOT = { society_member_of = mysteries_dionysus }
					}

					FROM = { is_society_discovered = yes }
				}
			}
			diplomacy = 3
		}
		decisions = {

		}
	}

	monthly_currency_gain = {
		name = currency_name_mysteries_dionysus
    
		per_attribute = {
			name = diplomacy
			value = 1
		}
		has_trait = {
			trait = possessed
			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 = socializer
			value = 3
		}
		has_trait = {
			trait = drunkard
			value = 2
		}
		has_trait = {
			trait = lustful
			value = 1
		}
		has_trait = {
			trait = gluttonous
			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

		modifier = {
			trait = possessed
			factor = 1.4
		}
		modifier = {
			trait = genius
			factor = 1.3
		}
		modifier = {
			trait = quick
			factor = 1.3
		}
		modifier = {
			trait = shrewd
			factor = 1.3
		}
		modifier = {
			trait = hedonist
			factor = 1.3
		}
		modifier = {
			trait = mystic
			factor = 1.3
		}
		modifier = {
			trait = master_seducer
			factor = 1.3
		}
		modifier = {
			trait = master_seductress
			factor = 1.3
		}
		modifier = {
			trait = socializer
			factor = 1.3
		}
		modifier = {
			trait = drunkard
			factor = 1.2
		}
		modifier = {
			trait = lustful
			factor = 1.1
		}
		modifier = {
			trait = gluttonous
			factor = 1.1
		}
		modifier = {
			trait = arbitrary
			factor = 1.1
		}
	}
	
	startup_populate = {
	    trigger = {
			has_dionysus_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
		}
	}
}
