# Religion Heads

# KINGDOMS
k_hellenic_pagan_reformed = {
	color = { 124 0 175 }
	color2 = { 220 220 0 }

	capital = 464 # Roma

	title = PONTIFEX_MAXIMUS
	title_female = PONTIFEX_MAXIMA
	foa = POPE_FOA
	short_name = yes

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = hellenic_pagan_reformed

	religion = hellenic_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	assimilate = no

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

k_orthodox = {
	color = { 183 60 155 }
	color2 = { 220 220 0 }

	capital = 541 # Constantinople

	title = ECUMENICAL_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA
	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = orthodox
	religion = orthodox

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Alexios Anastasios Arsenios Athanasios Antonios	Basileios Dositheos Eustathios Eustratios
		Euthymios Georgios Gerasimos Germanos Gregorios Ignatios Ioannes Ioseph Isaias Isidoros
		Kallistos Konstantinos Kosmas Leon Loukas Makarios Manuel Matthaios Maximos Methodios
		Metrophanes Michael Neophytos Nephon Nikolaos Nikephoros Nilos Pavlos Philotheos Photios
		Polyeuktos Sergios Sisinnios Stephanos Tarasios Theodoros Theodosios Theodotos Theoleptos
		Theophanes Theophylaktos Tryphon Zacharias
	}
}

k_papacy = {
	color = { 255 249 198 }
	color2 = { 220 220 0 }

	capital = 464 # Roma

	title = POPE
	foa = POPE_FOA
	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = catholic

	religion = catholic
	culture = roman

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	dignity = 100

	# Regnal names
	male_names = {
		Hadrianus Agapitus:20 Alexander Anastasius:50 Benedictus Bonifatius:10 Callistus Coelestinus Clemens Constantinus Damasus:10
		Eugenius:10 Formosus:20 Gelasius:50 Gregorius Innocentius:125 Ioannes:150 Landus:10 Leo:125 Lucius Marinus:50 Martinus:25 Nicolaus Honorius Paschalis:10
		Pius:10 Romanus:10 Sergius Silvester:50 Stephanus:125 Theodorus:25 Urbanus Valentinus:10 Victor:50
	}
}

# DUCHIES

d_aztec_pagan_reformed = {
	color = { 245 245 135 }
	color2 = { 220 220 0 }

	capital = 1 #???????

	title = TLATOANI
	title_female = CIHUATLATOANI
	foa = HEAD_PRIEST_FOA

	short_name = yes

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = aztec_pagan_reformed

	religion = aztec_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_baltic_pagan_reformed = {
	color = { 122 165 70 }
	color2 = { 220 220 0 }

	capital = 763 # Sambia

	title = FIRST_VAIDILA
	title_female = FIRST_VAIDILUTE
	foa = HEAD_PRIEST_FOA

	creation_requires_capital = no

	allow = {
		religion = baltic_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	short_name = yes

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = baltic_pagan_reformed

	religion = baltic_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_bon_pagan_reformed = {
	color = { 141 130 77 }

	capital = 1137 # Lhasa

	title = HEAD_DALAI_LAMA
	title_female = HEAD_DALAI_LAMA
	foa = POPE_FOA

	short_name = yes

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = bon_pagan_reformed

	religion = bon_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_finnish_pagan_reformed = {
	color = { 240 240 220 }
	color2 = { 220 220 0 }

	capital = 135 # Uusimaa

	title = TIETAJA
	title_female = TIETAJA
	foa = HEAD_PRIEST_FOA

	creation_requires_capital = no

	allow = {
		religion = finnish_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	short_name = yes

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = finnish_pagan_reformed

	religion = finnish_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_fraticelli = {
	color = { 198 249 255 }
	color2 = { 220 220 0 }

	capital = 464 # Roma

	title = POPE
	foa = POPE_FOA
	short_name = yes
	location_ruler_title = yes

	allow = {
		always = no # Only by special decision
	}

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = fraticelli

	religion = fraticelli

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		John Gregory Benedict Clement Innocent Leo Pius Stephen Boniface Urban Alexander Adrian Paul
		Celestine Martin Nicholas Sixtus Felix Sergius Anastasius Honorius Eugene Sylvester Victor
		Lucius Callixtus Julius Pelagius Adeodatus Theodore Marinus Agapetus Damasus Paschal
		Gelasius Marcellus "John Paul" Anacletus Evaristus Telesphorus Hyginus Anicetus Mark Hilarius
		Simplicius Symmachus Hormisdas Silverius Vigilius Sabinian Severinus Vitalian Donus Agatho
		Conon Sisinnius Constantine Zachary Valentine Formosus Romanus Lando
	}
}

d_hurufi = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }

	capital = 1533 # Mecca

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = hurufi

	# Controls a religion
	controls_religion = hurufi

	allow = {
		religion = hurufi
		can_create_duchy = yes

		trigger_if = {
			limit = { piety < 1000 }
			OR = {
				trait = mirza
				trait = sayyid
			}
		}

		trigger_if = {
			limit = {
				has_alternate_start_parameter = {
					key = religion_names
					value = random
				}
			}
			can_usurp_religion_head = yes
		}
		trigger_else = {
			muslim_religion_head_trigger = yes
		}
	}

	caliphate = yes

	coat_of_arms = {
		data = { 0 0 0 7 1 7 7 }
		religion = hurufi
	}
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_ibadi = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }

	capital = 1533 # Mecca

	creation_requires_capital = no

	dignity = 80 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = ibadi

	# Controls a religion
	controls_religion = ibadi

	allow = {
		religion = ibadi
		can_create_duchy = yes

		trigger_if = {
			limit = { piety < 1000 }
			OR = {
				trait = mirza
				trait = sayyid
			}
		}

		trigger_if = {
			limit = {
				has_alternate_start_parameter = {
					key = religion_names
					value = random
				}
			}
			can_usurp_religion_head = yes
		}
		trigger_else = {
			muslim_religion_head_trigger = yes
		}
	}

	caliphate = yes

	coat_of_arms = {
		data = { 0 0 0 8 0 2 2 }
		religion = ibadi
	}
}

d_iconoclast = {
	color = { 153 50 125 }
	color2 = { 220 220 0 }

	capital = 541 # Constantinople

	title = ECUMENICAL_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA
	short_name = yes

	allow = {
		always = no # Only by special decision
	}

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = iconoclast

	religion = iconoclast

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Alexios Alexandros Anastasios Anthimos Athanasios Antonios Basileios Gabriel Dionysios Dositheos
		Eustathios Eustratios Euthymios Gennadios Georgios Gerasimos Germanos Gregorios Ieremias
		Ignatios Ioakeim Ioannes Ioseph Isidoros Kallinikos Kallistos Konstantinos Kosmas Kyrillos Leon
		Leontios Loukas Makarios Manuel Markos Matthaios Maximos Meletios Methodios Metrophanes Michael
		Neophytos Nephon Nikephoros Niketas Nikolaos Pavlos Petros Photios Polykarpos Sergios Stephanos
		Sophronios Theodoros Theodosios Theodotos Theophylaktos Thomas Timotheos
	}
}

d_jewish = {
	color = { 0 80 255 }

	capital = 1514 # Jerusalem

	title = HEAD_KOHEN_GADOL
	foa = POPE_FOA

	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = jewish

	religion = jewish

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_kharijite = {
	color = { 10 110 10 }
	color2 = { 220 220 0 }

	capital = 1533 # Mecca

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = kharijite

	# Controls a religion
	controls_religion = kharijite

	allow = {
		religion = kharijite
		can_create_duchy = yes

		trigger_if = {
			limit = { piety < 1000 }
			OR = {
				trait = mirza
				trait = sayyid
			}
		}

		trigger_if = {
			limit = {
				has_alternate_start_parameter = {
					key = religion_names
					value = random
				}
			}
			can_usurp_religion_head = yes
		}
		trigger_else = {
			muslim_religion_head_trigger = yes
		}
	}

	caliphate = yes

	coat_of_arms = {
		data = { 0 0 0 8 0 2 2 }
		religion = kharijite
	}
}

d_manichaean = {
	color = { 180 120 40 }
	color2 = { 220 220 0 }

	capital = 1086 # Samarkand

	title = MANI_LEADER
	foa = POPE_FOA # needs new graphics
	short_name = yes

	allow = {
		religion = manichaean
		can_create_duchy = yes

		num_of_holy_sites = 1
		piety = 500
	}

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = manichaean

	religion = manichaean

	# Cannot be held as a secondary title
	primary = yes
	dignity = 80

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_miaphysite = {
	color = { 217 155 177 }
	color2 = { 220 220 0 }

	capital = 1620 # Alexandria

	title = POPE
	foa = POPE_FOA
	location_ruler_title = yes

	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = miaphysite

	religion = miaphysite

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Abanoub Abderahman Abianos Abijah Abisalom Ablarion Abraham Agathon Agathos Agathonikos Androus Anthinos Arsenios Ashraf Athanasios
		Binyamin Bishoi Boutros Danyal Da'oud Ezra Gabri'el Georgios Habil Hanri Haroun Ilyas Jerje Khail Kyril Krystafer Markos Mikhael Milad Mina Musa Pamin
		Tadros Touma Yared Yohannes Youssef Zaia
	}
}

d_monophysite = {
	color = { 200 115 167 }
	color2 = { 220 220 0 }

	capital = 1620 # Alexandria

	title = POPE
	foa = POPE_FOA
	location_ruler_title = yes

	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = monophysite

	religion = monophysite

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Abanoub Abderahman Abianos Abijah Abisalom Ablarion Abraham Agathon Agathos Agathonikos Androus Anthinos Arsenios Ashraf Athanasios
		Binyamin Bishoi Boutros Danyal Da'oud Ezra Gabri'el Georgios Habil Hanri Haroun Ilyas Jerje Krystafer Mikhael Milad Mina Musa Pamin
		Tadros Touma Yared Youssef Zaia
	}
}

d_monothelite = {
	color = { 180 170 65 }
	color2 = { 220 220 0 }

	capital = 1499 # Antioch

	title = PATRIARCH_CAP
	foa = ECUMENICAL_PATRIARCH_FOA

	short_name = yes
	location_ruler_title = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = monothelite

	religion = monothelite

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Alexios Antonios Athanasios Basileios Gabriel Dositheos Eustathios Eustratios Euthymios Gennadios
		Georgios Gerasimos Germanos Gregorios Ioannes Iosephos Isidoros Kallistos Konstantinos
		Kosmas Leon Leontios Loukas Makarios Manuel Maximos Metrophanes Michael Neophytos Nephon Niketas
		Nikolaos Matthaios Paulos Sergios Theodoros Theodosios Theodotos Akakios Alexandros Anastasios
		Anthimos Ieremias Ignatios Ioakim Kallinikos Kyriakos Kyrillos Makedonios Markos Meletios
		Methodios Nikephoros Petros Photios Polykarpos Stephanos Sophronios Theophylaktos Thomas Timotheos
	}
}

d_nestorian = {
	color = { 180 137 97 }
	color2 = { 220 220 0 }

	capital = 1499 # Antioch

	title = PATRIARCH_IN_THE_EAST
	foa = ECUMENICAL_PATRIARCH_FOA

	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = nestorian

	religion = nestorian

	# Cannot be held as a secondary title
	primary = yes
	dignity = 100

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Aba Abraham Eliya Denha Emmanuel Giwargis Hnanisho Ishoyahb Makkikha
		Maremmeh Pethion Sabrisho Shemon Sargis Surin Theodosios Timotheos Yahballaha Yohannan
	}
}

d_norse_pagan_reformed = {
	color = { 155 155 235 }
	color2 = { 220 220 0 }

	capital = 145 # Uppland

	title = FYLKIR
	title_female = FYLKJA
	foa = FYLKIR_FOA

	creation_requires_capital = no

	allow = {
		religion = norse_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	short_name = yes

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = norse_pagan_reformed

	religion = norse_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_paulician = {
	color = { 195 130 157 }
	color2 = { 255 255 255 }

	capital = 587 # Koloneia

	title = PATRIARCH_CAP
	foa = ECUMENICAL_PATRIARCH_FOA

	short_name = yes
	location_ruler_title = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = paulician

	religion = paulician
	culture = armenian

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Regnal names
	male_names = {
		Alexios Alexandros Anastasios Anthimos Athanasios Antonios Basileios Gabriel Dionysios Dositheos
		Epaphroditus Eustathios Eustratios Euthymios Gegnesius Gennadios Georgios Gerasimos Germanos Gregorios Ieremias
		Ignatios Ioakeim Ioannes Ioseph Isidoros Kallinikos Kallistos Konstantinos Kosmas Kyrillos Leon
		Leontios Loukas Makarios Manuel Markos Matthaios Maximos Meletios Methodios Metrophanes Michael
		Neophytos Nephon Nikephoros Niketas Nikolaos Paul Pavlos Petros Photios Polykarpos Sergius Silvanus Stephanos
		Sophronios Theodoros Theodosios Theodotos Theophylaktos Thomas Timotheos Titus
	}
}

d_qarmatian = {
	color = { 168 235 195 }
	color2 = { 240 240 0 }

	capital = 1544 # Bahrein

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = qarmatian

	# Controls a religion
	controls_religion = qarmatian

	allow = {
		religion = qarmatian
		can_create_duchy = yes

		trigger_if = {
			limit = {
				NOT = {
					any_owned_bloodline = {
						has_bloodline_flag = bloodline_qarmatian_leader
						bloodline_is_active_for = PREV
					}
				}
			}

			trigger_if = {
				limit = { piety < 1000 }
				OR = {
					trait = mirza
					trait = sayyid
					any_owned_bloodline = {
						has_bloodline_flag = bloodline_qarmatian_leader
						bloodline_is_active_for = PREV
					}
				}
			}

			trigger_if = {
				limit = {
					has_alternate_start_parameter = {
						key = religion_names
						value = random
					}
				}
				can_usurp_religion_head = yes
			}
			trigger_else = {
				muslim_religion_head_trigger = yes
			}
		}
		trigger_else = {
			piety >= 500
		}
	}

	caliphate = yes

	coat_of_arms = {
		data = { 0 0 0 9 1 7 7 }
		religion = qarmatian
	}

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_shiite = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }

	capital = 1533 # Mecca

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = shiite

	# Controls a religion
	controls_religion = shiite

	allow = {
		religion = shiite
		can_create_duchy = yes

		trigger_if = {
			limit = { piety < 1000 }
			OR = {
				trait = mirza
				trait = sayyid
			}
		}

		trigger_if = {
			limit = {
				has_alternate_start_parameter = {
					key = religion_names
					value = random
				}
			}
			can_usurp_religion_head = yes
		}
		trigger_else = {
			custom_tooltip = {
				text = shia_creation_independent

				trigger_if = {
					limit = { independent = no }
					NOT = {
						any_liege = {
							NOT = { religion = shiite }
						}
					}
				}
			}

			trigger_if = {
				limit = {
					NOT = {
						any_owned_bloodline = {
							has_bloodline_flag = bloodline_shiite_leader
							bloodline_is_active_for = PREV
						}
					}
				}

				muslim_religion_head_trigger = yes
			}
		}
	}

	gain_effect = {
		if = {
			limit = { d_shiite = { NOT = { has_title_flag = shiite_followers } } }
			hidden_tooltip = {
				character_event = { id = Plus.1963 days = 5 }
			}
		}
	}

	caliphate = yes
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	coat_of_arms = {
		data = { 0 0 0 9 1 7 7 }
		religion = shiite
	}
}

d_slavic_pagan_reformed = {
	color = { 175 50 136 }
	color2 = { 220 220 0 }

	capital = 665 # Trgoviste

	creation_requires_capital = no

	title = VELKY_VOLHV
	title_female = VELKY_VOLHV
	foa = HEAD_PRIEST_FOA

	short_name = yes

	allow = {
		religion = slavic_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = slavic_pagan_reformed

	religion = slavic_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_sunni = {
	color = { 40 160 40 }
	color2 = { 220 220 0 }

	capital = 1533 # Mecca

	creation_requires_capital = no

	dignity = 100 # Counted as having this many more counties than it does

	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	short_name = yes

	religion = sunni

	# Controls a religion
	controls_religion = sunni

	allow = {
		religion = sunni
		can_create_duchy = yes

		trigger_if = {
			limit = { piety < 1000 }
			OR = {
				trait = mirza
				trait = sayyid
			}
		}

		trigger_if = {
			limit = {
				has_alternate_start_parameter = {
					key = religion_names
					value = random
				}
			}
			can_usurp_religion_head = yes
		}
		trigger_else = {
			custom_tooltip = {
				text = sunni_creation_independent

				trigger_if = {
					limit = { independent = no }
					NOT = {
						any_liege = {
							NOT = { religion = sunni }
						}
					}
				}
			}

			muslim_religion_head_trigger = yes
		}
	}

	caliphate = yes
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
	coat_of_arms = {
		data = { 0 0 0 3 0 2 2 }
		religion = sunni
	}
}

d_tengri_pagan_reformed = {
	color = { 100 80 100 }
	color2 = { 220 220 0 }

	capital = 638 #	Sarkel

	title = TENGRIKUT
	title_female = TENGRIKIZ
	foa = HEAD_PRIEST_FOA

	short_name = yes
	creation_requires_capital = no

	allow = {
		religion = tengri_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = tengri_pagan_reformed

	religion = tengri_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_west_african_pagan_reformed = {
	color = { 91 49 13 }
	color2 = { 220 220 0 }

	capital = 1705 # Niani

	title = HEAD_AFRICAN_PRIEST
	title_female = HEAD_AFRICAN_PRIESTESS
	foa = HEAD_PRIEST_FOA

	short_name = yes
	creation_requires_capital = no

	allow = {
		religion = west_african_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = west_african_pagan_reformed

	religion = west_african_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_yazidi = {
	color = { 20 50 160 }
	color2 = { 220 220 0 }

	capital = 1483 # Mosul

	dignity = 80 # Counted as having this many more counties than it does

	title = BABA_SHEIKH
	title_female = BABA_SHEIKHA
	foa = POPE_FOA
	short_name = yes

	religion = yazidi

	# Controls a religion
	controls_religion = yazidi

	allow = {
		religion = yazidi
		piety >= 1000
	}

	caliphate = yes
	dynasty_title_names = no 	# Will not be named "Seljuk", etc.

	# Always exists
	landless = yes

	# Cannot be held as a secondary title
	primary = yes

	coat_of_arms = {
		data = { 0 0 3 0 0 11 11 }
		religion = yazidi
	}
}

d_zoroastrian = {
	color = { 180 120 40 }
	color2 = { 220 220 0 }

	capital = 1449 # Esfahan

	title = HEAD_MOABADAN_MOABAD
	foa = POPE_FOA

	short_name = yes

	# Always exists
	landless = yes

	# Controls a religion
	controls_religion = zoroastrian

	religion = zoroastrian

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}

d_zun_pagan_reformed = {
	color = { 220 255 0 }
	color2 = { 220 220 0 }

	capital = 1412 # Bost

	title = HEAD_ZUN_PRIEST
	title_female = HEAD_ZUN_PRIESTESS
	foa = HEAD_PRIEST_FOA

	short_name = yes
	creation_requires_capital = no

	allow = {
		religion = zun_pagan_reformed
		can_create_duchy = yes
		can_usurp_religion_head = yes
	}

	dignity = 100 # Counted as having this many more counties than it does

	# Controls a religion
	controls_religion = zun_pagan_reformed

	religion = zun_pagan_reformed

	# Cannot be held as a secondary title
	primary = yes

	dynasty_title_names = no 	# Will not be named "Seljuk", etc.
}
