
##################################################################################
# 
# RAI DYNASTY OF SINDH (c. 480 - 632 CE)
# Cybrx: Kinda placeholdery for now based on very cursory research, Soraya plz don't kill me, and do fix as needed
# No idea what dates would work so I just fudged it so it works in the timeframe of c. 480 - 632 mentioned on Wikipedia
# 
##################################################################################

# Ranaditya Satya, tentatively identifying him with Rai Diwaji who is said to be first ruler of Rai Dynasty the Chachnama
# Attested in coinage c. 480 CE to (?) 524 CE
rai_001 = {
	name = "Ranaditya_Satya"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	453.6.12 = {
		birth = yes
	}
	524.8.8 = {
		death = yes
	}
}

# Rai Sahiras I, successor of Rai Diwaji
rai_002 = {
	name = "Sahiras"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	father=rai_001
	477.3.29 = {
		birth = yes
	}
	531.1.11 = {
		death = yes
	}
}


# Rai Sahasi I, successor of Rai Sahiras I
rai_003 = {
	name = "Sahasi"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	father=rai_002
	509.4.13 = {
		birth = yes
	}
	561.9.14 = {
		death = yes
	}
}

# Rai Sahiras II, successor of Rai Sahasi I
rai_004 = {
	name = "Sahiras"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	father=rai_003
	# Traits based on Wikipedia supposedly quoting the Chachnama, dunno how accurate this is
	trait=brave
	trait=just
	trait=generous
	543.2.16 = {
		birth = yes
	}
	609.4.22 = {
		death = yes
	}
}

# Rai Sahasi II, successor of Rai Sahiras II
rai_005 = {
	name = "Sahasi"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	father=rai_004
	# Traits based on Wikipedia supposedly quoting the Chachnama, dunno how accurate this is
	trait=compassionate
	trait=trusting
	trait=just
	trait=content
	577.7.19 = {
		birth = yes
	}
	620.1.1 = {
		add_spouse = rai_007
	}
	632.1.9 = {
		death = yes
	}
}

# Rai Sahasi II's brother who tried to claim the throne after his death from Sahasi's official and successor Chach who founded the Brahman Dynasty
rai_006 = {
	name = "Mahrit"
	dynasty = dynasty_sindh_rai
	religion = "saura"
	culture = "sindhi"
	father=rai_004
	586.2.27 = {
		birth = yes
	}
	# This is based solely on Wikipedia quoting the Chachnama, so I'm uncertain how reliable it is
	# King Sahasi II's death was not leaked for at least 6 months while Chach became de facto king
	# When news finally broke out, Sahasi II's brother Mahrit, ruler of Chittor, tried to reclaim the throne but failed
	# Thus, I am putting his death more than 6 months after Sahasi II's death
	632.9.9 = {
		death = { death_reason = death_battle }
	}
}

# Rani Suhanadi/Sohman Devi, wife of Sahasi II who conspired to bring Chach to power, and married him when he came king
# Even ignoring this is based on Wikipedia quoting the Chachnama, due to the common trope of the cunning femme fatale in political history, hard to say what's going on
# I've elected to thus not give her any predetermined traits, but to make her the lover of Chach
rai_007 = {
	name = "Rani_Suhanadi"
	female=yes
	religion = "saura"
	culture = "sindhi"
	603.9.6 = {
		birth = yes
	}
	669.6.9 = {
		death = yes
	}
}



##################################################################################
# 
# BRAHMAN/CHACHA DYNASTY OF SINDH (c. 632 - 712 CE)
# Cybrx: Kinda placeholdery for now based on very cursory research, Soraya plz don't kill me, and do fix as needed
# I just fudged it based on Wikipedia quoting the Chachnama
# 
##################################################################################

# Fictitious father of Chach and Chandar
sindh_brahman_001 = {
	name = "Kelhana"
	dynasty = dynasty_chacha_rai
	religion = "saura"
	culture = "sindhi"
	trait = brahmin
	599.4.2 = {
		birth = yes
	}
	632.1.10 = {
		add_spouse = rai_007
	}
	671.3.5 = {
		death = yes
	}
}

# Chach, Brahmin official of Sahasi II who became king following his death
sindh_brahman_002 = {
	name = "Chach"
	dynasty = dynasty_chacha_rai
	religion = "saura"
	culture = "sindhi"
	trait = brahmin
	trait=intellect_good_1
	father=sindh_brahman_001
	599.4.2 = {
		birth = yes
	}
	632.1.10 = {
		add_spouse = rai_007
	}
	671.3.5 = {
		death = yes
	}
}

# Chandar, Chach's brother and successor
sindh_brahman_003 = {
	name = "Chandar"
	dynasty = dynasty_chacha_rai
	religion = "saura"
	culture = "sindhi"
	trait = brahmin
	father=sindh_brahman_001
	610.2.3 = {
		birth = yes
	}
	679.2.24 = {
		death = yes
	}
}

# Dahir, Chach's son and successor to his uncle Chandar
sindh_brahman_004 = {
	name = "Dahir"
	dynasty = dynasty_chacha_rai
	religion = "saura"
	culture = "sindhi"
	trait = brahmin
	father=sindh_brahman_002
	mother=rai_007
	# His birth date is earlier than on Wikipedia in order to make his age difference with his mom make sense
	645.2.10 = {
		birth = yes
	}
	711.1.1 = {
		death = { death_reason = death_battle }
	}
}


# There are several local chieftains in Sindh that would work for 632 CE, just leaving a note here for the future

175050 = {
	name = "Umar" # Umar ibn'Abd al-Aziz al'Habbari
	dynasty = 1043005
	religion = "ashari"
	culture = "sindhi"
	father = extra_habbaris_2
	821.1.1 = {
		birth = yes
	}
	884.1.1 = {
		death = yes
	}
}

extra_habbaris_1 = {
	name = "Manzar" #historical
	dynasty = 1043005
	religion = "ashari"
	culture = "levantine"
	715.12.5 = {
		birth = yes
	}
	776.6.21 = {
		death = {
			death_reason = death_horrible_disease
		}
	}
}

extra_habbaris_2 = {
	name = "Abd-al-Aziz" #historical
	dynasty = 1043005
	religion = "ashari"
	culture = "levantine"
	father = extra_habbaris_1
	771.12.5 = {
		birth = yes
	}
	840.6.21 = {
		death = {
			death_reason = death_horrible_disease
		}
	}
}

extra_habbaris_3 = {
	name = "Abdullah" #historical
	dna = extra_habbaris_abdullah
	dynasty = 1043005
	religion = "ashari"
	culture = "sindhi"
	father = 175050
	842.10.2 = {
		birth = yes
		effect = {
			add_character_flag = has_scripted_appearance
		}
	}
	914.5.10 = {
		death = yes
	}
}

extra_habbaris_4 = {
	name = "Umar" #historical
	dynasty = 1043005
	religion = "ashari"
	culture = "sindhi"
	father = extra_habbaris_3
	878.5.9 = {
		birth = yes
	}
	943.1.1 = {
		death = yes
	}
}

extra_habbaris_5 = {
	name = "Muhammad" #historical
	dynasty = 1043005
	religion = "ashari"
	culture = "sindhi"
	father = extra_habbaris_4
	899.1.1 = {
		birth = yes
	}
	960.1.1 = {
		death = yes
	}
}

extra_habbaris_6 = {
	name = "Ali" #historical
	dynasty = 1043005
	religion = "ashari"
	culture = "sindhi"
	father = extra_habbaris_4
	903.5.9 = {
		birth = yes
	}
	962.1.1 = {
		death = yes
	}
}

178011 = {
	name = "Genhra" # Fictional
	dynasty = 1041111
	religion = "ashari"
	culture = "sindhi"
	835.1.1 = {
		birth = "835.1.1"
	}
	884.1.1 = {
		death = "884.1.1"
	}
}
178012 = {
	name = "Khafif" # Fictional
	dynasty = 1041112
	religion = "ashari"
	culture = "sindhi"
	844.1.1 = {
		birth = "844.1.1"
	}
	869.1.1 = {
		death = "869.1.1"
	}
}
178013 = {
	name = "Abdurrashid" # Fictional
	dynasty = 1041113
	religion = "ashari"
	culture = "sindhi"
	849.1.1 = {
		birth = "849.1.1"
	}
	876.1.1 = {
		death = "876.1.1"
	}
}
178014 = {
	name = "Junah" # Fictional
	dynasty = 1041114
	religion = "ashari"
	culture = "sindhi"
	831.1.1 = {
		birth = "831.1.1"
	}
	882.1.1 = {
		death = "882.1.1"
	}
}
178015 = {
	name = "Punhun" # Fictional
	dynasty = 1041115
	religion = "ashari"
	culture = "sindhi"
	839.1.1 = {
		birth = "839.1.1"
	}
	894.1.1 = {
		death = "894.1.1"
	}
}
178016 = {
	name = "Sussala" # Fictional
	dynasty = 1041116
	religion = "saura"
	culture = "punjabi"
	837.1.1 = {
		birth = "837.1.1"
	}
	901.1.1 = {
		death = "901.1.1"
	}
}
178017 = {
	name = "Mahmud" # Fictional
	dynasty = 1041117
	religion = "ashari"
	culture = "sindhi"
	833.1.1 = {
		birth = "833.1.1"
	}
	888.1.1 = {
		death = "888.1.1"
	}
}

188349 = {
	name = "Khafif" # I
	dynasty = 1042090 # Sumra
	religion = "ismaili" # Ismaili
	culture = "sindhi"
	984.1.1 = {
		birth = yes
	}
	1026.1.1 = {
		death = yes
	}
}

188350 = {
	name = "Soomar"
	dynasty = 1042090 # Sumra
	religion = "ismaili" # Ismaili
	culture = "sindhi"
	father = 188349
	1015.1.1 = {
		birth = yes
	}
	1053.1.1 = {
		death = yes
	}
}

188351 = {
	name = "Bhoongar"
	dynasty = 1042090 # Sumra
	religion = "ismaili" # Ismaili
	culture = "sindhi"
	father = 188349
	1023.1.1 = {
		birth = yes
	}
	1068.1.1 = {
		death = yes
	}
}

188352 = {
	name = "Dodo" # the I
	dynasty = 1042090 # Sumra
	religion = "ismaili" # Ismaili
	culture = "sindhi"
	father = 188351
	1043.1.1 = {
		birth = yes
	}
	1100.1.1 = {
		death = yes
	}
}

188353 = {
	name = "Zainab_Tari"
	female = yes
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188352
	trait = education_diplomacy_4
	1063.1.1 = {
		birth = yes
	}
	1105.1.1 = {
		death = yes
	}
}

188354 = {
	name = "Sanghar"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188352
	1086.1.1 = {
		birth = yes
	}
	1102.1.1 = {
		add_spouse = 188355
	}
	1107.1.1 = {
		death = yes
	}
}

188355 = {
	name = "Hamun"
	dynasty = 214004 # Sumra
	female = yes
	religion = "ashari"
	culture = "sindhi"
	father = 188356
	1084.1.1 = {
		birth = yes
	}
	1130.1.1 = {
		death = yes
	}
}

188356 = {
	name = "Umar" # name made up
	dynasty = 214004 # Sumra
	religion = "ashari"
	culture = "sindhi"
	1066.1.1 = {
		birth = yes
	}
	1108.1.1 = {
		death = yes
	}
}

188357 = {
	name = "Khafif" # the II
	dynasty = 214004 # Sumra (sister-in-law of last Sumra)
	religion = "ashari"
	culture = "sindhi"
	father = 188356
	1098.1.1 = {
		birth = yes
	}
	1140.1.1 = {
		death = yes
	}
}

188358 = {
	name = "Umar"
	dynasty = 214004 # Sumra (sister-in-law of last Sumra)
	religion = "ashari"
	culture = "sindhi"
	father = 188356
	1105.1.1 = {
		birth = yes
	}
	1180.1.1 = {
		death = yes
	}
}

188359 = {
	name = "Doda" # the II
	dynasty = 214004 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188358 # flimsy conjecture, probably a usurper
	1148.1.1 = {
		birth = yes
	}
	1194.1.1 = {
		death = yes
	}
}


188360 = {
	name = "Hafif" # fictitious
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	mother = 188353 # fictitious
	1100.1.1 = {
		birth = yes
	}
	1150.1.1 = {
		death = yes
	}
}

188361 = {
	name = "Umar" # fictitious
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188360
	1125.1.1 = {
		birth = yes
	}
	1175.1.1 = {
		death = yes
	}
}

188362 = {
	name = "Bhoongar" # the II
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188360
	1150.1.1 = {
		birth = yes
	}
	1222.1.1 = {
		death = yes
	}
}

188363 = {
	name = "Gunero"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188362 # unclear if true
	1178.1.1 = {
		birth = yes
	}
	1242.1.1 = {
		death = yes
	}
}


188364 = {
	name = "Muhammad-Tur"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188363
	1200.1.1 = {
		birth = yes
	}
	1256.1.1 = {
		death = yes
	}
}

188365 = {
	name = "Gunero" # the II
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188364 # conjecture
	1220.1.1 = {
		birth = yes
	}
	1259.1.1 = {
		death = yes
	}
}

188366 = {
	name = "Doda" # the III
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188365
	1238.1.1 = {
		birth = yes
	}
	1273.1.1 = {
		death = yes
	}
}

188367 = {
	name = "Tai"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188366
	1254.1.1 = {
		birth = yes
	}
	1283.1.1 = {
		death = yes
	}
}

188368 = {
	name = "Chanesar"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188366
	1256.1.1 = {
		birth = yes
	}
	1300.1.1 = {
		death = yes
	}
}

188369 = {
	name = "Bhoongar"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188368
	1276.1.1 = {
		birth = yes
	}
	1315.1.1 = {
		death = yes
	}
}

188370 = {
	name = "Khafif" # the III
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188369
	1296.1.1 = {
		birth = yes
	}
	1333.1.1 = {
		death = yes
	}
}

188371 = {
	name = "Doda" # the IV
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188369
	1300.1.1 = {
		birth = yes
	}
	1350.1.1 = {
		death = yes
	}
}

188372 = {
	name = "Bhungar"
	dynasty = 1042090 # Sumra
	religion = "ashari"
	culture = "sindhi"
	father = 188371
	1330.1.1 = {
		birth = yes
	}
	1350.1.1 = {
		death = yes
	}
}
188556 = {
	name = "Taghlak" # fictional
	dynasty = 1041116
	religion = "mahayana"
	culture = "sindhi"
	735.1.1 = {
		birth = yes
	}
	790.1.1 = {
		death = yes
	}
}

188557 = {
	name = "Sikandar" # fictional
	dynasty = 1041115
	religion = "smartism"
	culture = "sindhi"
	742.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}

188558 = {
	name = "Munzir" # fictional
	dynasty = 1041117
	religion = "smartism"
	culture = "sindhi"
	728.1.1 = {
		birth = yes
	}
	790.1.1 = {
		death = yes
	}
}

188559 = {
	name = "Shahabuddin" # fictional
	dynasty = 1041117
	religion = "smartism"
	culture = "sindhi"
	father = 188558
	755.1.1 = {
		birth = yes
	}
	805.1.1 = {
		death = yes
	}
}

188560 = {
	name = "Genhra" # fictional
	dynasty = 1041118
	religion = "smartism"
	culture = "sindhi"
	737.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}

188561 = {
	name = "Banhbina" # fictional
	dynasty = 1041114
	religion = "smartism"
	culture = "sindhi"
	740.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}

188562 = {
	name = "Doda" # fictional
	dynasty = 1041113
	religion = "mahayana"
	culture = "sindhi"
	732.1.1 = {
		birth = yes
	}
	780.1.1 = {
		death = yes
	}
}

188563 = {
	name = "Chanesar" # fictional
	dynasty = 1041112
	religion = "mahayana"
	culture = "sindhi"
	724.1.1 = {
		birth = yes
	}
	780.1.1 = {
		death = yes
	}
}

188564 = {
	name = "Arnel" # fictional
	dynasty = 1041111
	religion = "smartism"
	culture = "sindhi"
	745.1.1 = {
		birth = yes
	}
	800.1.1 = {
		death = yes
	}
}

