## New diplomacy added in mod MMETR

##########################################################
#Ancient
##########################################################

#Zhang Lu and Liu Yan - broken when Liu Zhang succeeded Yan
dependency = {
	subject_type = "tributary_state"
	first = SHU
	second = HNZ			#Hanzhong
	start_date = 191.1.1	#Zhang Lu seizes Hanzhong
	end_date = 194.1.1		#Zhang Lu refuses to obey Liu Zhang, who executes Zhang's family
}

#Hyrcania as a client kingdom after short independence, from 160 to 224
dependency = {
	subject_type = "client_kingdom"
	first = PRT
	second = HYR
	start_date = 160.1.1	#Hyrcania becomes a client kingdom of Parthia
	end_date = 224.1.1		#Sassanids wage war on 
}
alliance = {
	first = KUS		#alliance between Margiana and Kushans
	second = MGN
	start_date = 50.1.1
	end_date = 65.1.1
}
alliance = {
	first = ERS		#Atropatene and its people side with Arsacids
	second = ATR
	start_date = 212.1.1
	end_date = 224.1.1
}

#Margiana as a vassal kingdom of Sassanids from 224 to 260
vassal = {
	first = ERS
	second = MGN
	start_date = 224.4.24	#Ardashir of Margiana submits to Sassanids
	end_date = 260.1.1		#Margiana kingdom is fully annexed as a province
}

alliance = {
	first = ROM		#Odaenathus was a de facto ally rather than vassal of Rome
	second = PLM
	start_date = 260.1.1
	end_date = 270.1.1		#Zenobia's generals first move against Rome
}

alliance = {
	first = VAN		#alliance between Alans and Vandals
	second = AL0
	start_date = 409.1.1
	end_date = 418.1.1		#Alan kingdom falls
}

vassal = {
	first = HDR		#Socotra as a vassal of Hadramaut
	second = SUQ
	start_date = 2.1.1
	end_date = 300.1.1		#Hadramaut loses control of coast to Himyar
}
vassal = {
	first = HIM		#Socotra as a vassal of Himyar
	second = SUQ
	start_date = 300.1.1
	end_date = 525.1.1		#Socotra directly annexed by Yemen
}



##########################################################
# Medieval
##########################################################
vassal = {
	first = SSO		#Sosso hegemonizes Gajaaga
	second = GJG
	start_date = 1214.1.1
	end_date = 1230.1.1		#Sosso loses to Mali, Gajaaga becomes a Mali tributary
}
vassal = {
	first = SSO		#Sosso hegemonizes Diarra kingdom
	second = DRR
	start_date = 1214.1.1
	end_date = 1230.1.1		#Sosso loses to Mali, Diarra annexed by Mali
}
vassal = {
	first = SSO		#Sosso hegemonizes some Mandinka kingdoms, represented by Ghiryu
	second = GHY
	start_date = 1214.1.1
	end_date = 1230.1.1		#Sosso loses to Mali, Diarra annexed by Mali
}
vassal = {
	first = MAL		#Niakhate dynasty of Diarra swears fealty to Mali Empire
	second = DRR
	start_date = 1240.1.1
	end_date = 1400.1.1		#Diawara revolt against Mali
}

vassal = {
	first = KHZ		#Burtas as a vassal to Khazaria
	second = BTA
	start_date = 448.1.1		#Khazaria appears on the map
	end_date = 660.1.1			#Burtas no longer in MMETR provinces
}
vassal = {
	first = XI0		#Xionites subjugate Kangju
	second = KGJ
	start_date = 270.1.1
	end_date = 320.1.1		#replaced by Kidarites
}

#Khan Batbayan submits to the Khagans of Khazaria
vassal = {
    first = KHZ
    second = ONG
    start_date = 668.1.1    #Old Bulgaria fallen
    end_date = 690.1.1        #Death of Khan Batbayan and their annexation into Khazaria
}


#Fanzhen/Jiedushi of Tang

#Three Fanzen of Hebei, after An Lushan Rebellion ends
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = WEI
	start_date = 763.1.1
	end_date = 891.1.1		#annexed by Liang
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = CEG
	start_date = 763.1.1
	end_date = 907.6.1		#becomes Zhao
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = YOU
	start_date = 763.1.1
	end_date = 896.6.1		#replaced by Yan
}
#Fanzhen that gain autonomy after Huang Chao's revolt by 885
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = SHU
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = LNG
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = CHC
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = MIN
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = WUY
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = WUU
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = JIN
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = JGN
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = NNY
	start_date = 885.1.1
	end_date = 901.1.1		#annexed by Liang
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = NNG
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = CXI
	start_date = 885.1.1
	end_date = 895.1.1		#annexed by Wu
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = XU0
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = QIN
	start_date = 885.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = QIC
	start_date = 891.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = QIC
	start_date = 891.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = DAI
	start_date = 896.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = YUE
	start_date = 896.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = YAN
	start_date = 896.1.1
	end_date = 907.6.1		#Tang fully dies
}
dependency = {
	subject_type = "fanzhen_subject"
	first = TNG
	second = HNX
	start_date = 901.1.1
	end_date = 907.6.1		#Tang fully dies
}

#Buffer States / Puppet Emperors under the Jurchen Jin
vassal = {
    first = CJN
    second = CHC   			#Da Chu / Zhang Chu
    start_date = 1127.4.20 
    end_date = 1127.5.23       #only lasted one month
}
vassal = {
    first = CJN
    second = QIC   			#Da Qi / Liu Qi
    start_date = 1130.1.1 
    end_date = 1138.1.1        #Qi is dissolved
}

##########################################################
# Modern
##########################################################

#Ha Tien as protectorate of Khmer
dependency = {
	subject_type = "tributary_state"
	first = KHM
	second = HTN
	start_date = 1707.1.1
	end_date = 1736.1.1
}

#1736 - Mac Thien Tu defeats Khmer and gains de facto independence

#Ha Tien as protectorate of Rattanakosin
dependency = {
	subject_type = "tributary_state"
	first = AYU
	second = HTN
	start_date = 1785.1.1
	end_date = 1809.1.1
}

#Ha Tien as sole protectorate of Nguyen dynasty of Annam
dependency = {
	subject_type = "tributary_state"
	first = ANN
	second = HTN
	start_date = 1809.1.1
	end_date = 1832.1.1
}



# Qing tributaries - others once here are no longer listed due to being integrated into ET in file vanilla_era_changes

#Breakaway states after fall of Ayutthaya
dependency = {
	subject_type = "tributary_state"
	first = QNG
	second = SWB		#Suwangburi
	start_date = 1767.4.1
	end_date = 1782.4.6
}
dependency = {
	subject_type = "tributary_state"
	first = QNG
	second = PHT		#Phitsanulok
	start_date = 1767.4.1
	end_date = 1782.4.6
}
dependency = {
	subject_type = "tributary_state"
	first = QNG
	second = LIG		#Ligor, breakaway kingdom of Nakhon Sri Thammarat
	start_date = 1767.4.1
	end_date = 1782.4.6
}

dependency = {
	subject_type = "tributary_state"
	first = QNG
	second = THB		#Thonburi, to avoid being surrounded by tributaries before officially recognized by Qing
	start_date = 1767.4.1
	end_date = 1782.4.6
}
dependency = {
	subject_type = "tributary_state"
	first = QNG
	second = AYU		#Ayutthaya prince rump state, to avoid being surrounded by tributaries before officially recognized by Qing
	start_date = 1767.4.1
	end_date = 1782.4.6
}


