﻿188580 = {
	name = "Afrig"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	280.9.4 = {
		birth = yes
	}
	350.1.1 = {
		death = yes
	}
}

188581 = {
	name = "Bagra"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188580
	312.1.28 = {
		birth = yes
	}
	380.1.1 = {
		death = yes
	}
}

188582 = {
	name = "Sahhasak"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188581
	337.1.1 = {
		birth = yes
	}
	410.1.1 = {
		death = yes
	}
}

188583 = {
	name = "Askajamuk"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188582
	365.1.1 = {
		birth = yes
	}
	440.1.1 = {
		death = yes
	}
}

188584 = {
	name = "Azkajwar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188583
	400.1.1 = {
		birth = yes
	}
	470.1.1 = {
		death = yes
	}
}

188585 = {
	name = "Sahr"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188584
	430.1.1 = {
		birth = yes
	}
	500.1.1 = {
		death = yes
	}
}

188586 = {
	name = "Shaush"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188585
	460.1.1 = {
		birth = yes
	}
	530.1.1 = {
		death = yes
	}
}

188587 = {
	name = "Hamgari"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188586
	490.1.1 = {
		birth = yes
	}
	560.1.1 = {
		death = yes
	}
}

188588 = {
	name = "Buzgar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188587
	520.1.1 = {
		birth = yes
	}
	600.1.1 = {
		death = yes
	}
}

188589 = {
	name = "Arsamuh"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188588
	560.1.1 = {
		birth = yes
	}
	625.1.1 = {
		death = yes
	}
}

188590 = {
	name = "Sahr"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188589
	600.1.1 = {
		birth = yes
	}
	665.1.1 = {
		death = yes
	}
}

188591 = {
	name = "Sabri"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188590
	635.1.1 = {
		birth = yes
	}
	690.1.1 = {
		death = yes
	}
}

188592 = {
	name = "Azkajwar"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188591
	665.1.1 = {
		birth = yes
	}
	712.1.1 = {
		death = yes
	}
}

188593 = {
	name = "Askajamuk"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188592
	690.1.1 = {
		birth = yes
	}
	740.1.1 = {
		death = yes
	}
}

188594 = {
	name = "Sawashfan"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188593
	715.1.1 = {
		birth = yes
	}
	765.1.1 = {
		death = yes
	}
}

188595 = {
	name = "Torkasbatha"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188594
	740.1.1 = {
		birth = yes
	}
	790.1.1 = {
		death = yes
	}
}

188596 = {
	name = "Abdallah"
	dynasty = 1042112 # Afrighid
	religion = "khurmazta"
	culture = khwarezmian
	father = 188595
	765.1.1 = {
		birth = yes
	}
	790.1.1 = {
		religion = ashari
	}
	815.1.1 = {
		death = yes
	}
}

188597 = {
	name = "Mansur"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188596
	795.1.1 = {
		birth = yes
	}
	850.1.1 = {
		death = yes
	}
}

188598 = {
	name = "Eraq"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188597
	825.1.1 = {
		birth = yes
	}
	866.1.1 = {
		effect = {
			#was always the capital of the Afrigids, this is merely a quick fix
			set_realm_capital = title:b_kath
			if = {
				limit = { has_fp3_dlc_trigger = yes }
				# Known enlightened centrist supports the status quo.
				add_trait = fp3_struggle_detractor
			}
		}
	}
	890.1.1 = {
		death = yes
	}
}

188599 = {
	name = "Muhammad"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188598
	865.1.1 = {
		birth = yes
	}
	940.1.1 = {
		death = yes
	}
}

188600 = {
	name = "Abu_Sa_id"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188599
	900.1.1 = {
		birth = yes
	}
	970.1.1 = {
		death = yes
	}
}

188601 = {
	name = "Abu_Abdallah"
	dynasty = 1042112 # Afrighid
	religion = "ashari"
	culture = khwarezmian
	father = 188600
	925.1.1 = {
		birth = yes
	}
	995.1.1 = {
		death = yes
	}
}

#Al-e Ma'mun
1231221 = {
	name = "Ma_mun" # Ma'mun I, Founder of Ma'munid dynasty
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231222
	955.1.1 = {
		birth = yes
	}
	997.1.1 = {
		death = yes
	}
}
1231222 = {
	name = "Muhammad"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231223
	930.1.1 = {
		birth = yes
	}
	970.1.1 = {
		death = yes
	}
}
1231223 = {
	name = "Ahmad"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	900.1.1 = {
		birth = yes
	}
	955.1.1 = {
		death = yes
	}
}
1231224 = {
	name = "_Ali" # Abu’l-Hasan
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231221
	973.1.1 = {
		birth = yes
	}
	1009.1.1 = {
		death = yes
	}
}
1231225 = {
	name = "Mohammad" # Abu’l-Haret
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231224
	995.1.1 = {
		birth = yes
	}
	1017.7.7 = {
		death = {
			death_reason = death_prison
		}
	}
}
#Sohaylí
1231227 = {
	name = "Ahmad_Sohayli" # Abu’l-Hosayn
	dynasty = 1102252
	religion = "maturidi"
	culture = khwarezmian
	stewardship = 9
	978.1.1 = {
		birth = yes
	}
	1037.8.8 = {
		death = yes
	}
}
1231228 = {  # Ma'mun II, deposed in 1017
	name = "Ma_mun"
	dynasty = 1102251
	religion = "maturidi"
	culture = khwarezmian
	father = 1231221
	978.1.1 = {
		birth = yes
	}
	999.1.1 = {
		add_spouse = 1000230134 # Khurra-ji Altuntashid
	}
	1017.3.3 = {
		death = {
			death_reason = death_murdered_by_rebels
		}
	}
}

#Farighunids, for later generations, see the Tajik document
1230300 = {
	name = "Farighun"
	dynasty = 1101801
	religion = "maturidi"
	culture = "khwarezmian" #FP3: changed from Tajik to Khwarezmian
	849.1.1 = {
		birth = yes
	}
	866.1.1 = {
		add_spouse = fictional_khazars_2 
	}
	895.1.1 = {
		death = yes
	}
}
1230301 = {
	name = "Ahmad"
	dynasty = 1101801
	religion = "maturidi"
	culture = "khwarezmian" #FP3: changed from Tajik to Khwarezmian
	father = 1230300
	mother = fictional_khazars_2
	867.1.1 = {
		birth = yes
	}
	935.1.1 = {
		death = yes
	}
}

extra_farighunids_4 = { #vaguely attested
	name = "Shansab"
	dynasty = 791
	religion = "khurmazta"
	culture = "khwarezmian" 
	father = extra_farighunids_5
	680.1.1 = {
		birth = yes
	}
	735.10.2 = {
		death = yes
	}
}

extra_farighunids_5 = { #vaguely attested
	name = "Kharang"
	dynasty = 791
	religion = "khurmazta"
	culture = "khwarezmian" 
	653.1.1 = {
		birth = yes
	}
	706.1.22 = {
		death = yes
	}
}

