conquer_punjab_MUG = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		OR = {
			area = lahore_area
			area = multan_area
			area = sirhind_area
		}
		NOT = { province_id = 2183 } #Derajat
		NOT = { province_id = 2184 } #Cholistan
		NOT = { province_id = 2190 } #Bhattiana
		NOT = { owned_by = ROOT }
		owner = {
			NOT = { alliance_with = ROOT }
			NOT = { is_subject_of = ROOT }
		}
	}
	allow = {
		normal_or_historical_nations = yes
		OR = {
			tag = TIM
			tag = MUG
		}
		NOT = { has_country_modifier = indian_ambition }
		NOT = { has_country_flag = conquered_punjab }
		is_subject = no
		NOT = { capital_scope = { region = hindusthan_region } }
		NOT = { capital_scope = { region = west_india_region } }
		NOT = { capital_scope = { region = bengal_region } }
		NOT = { capital_scope = { region = deccan_region } }
		NOT = { capital_scope = { region = coromandel_region } }
		OR = {
			owns = 578 	#Roh
			owns = 2178 #Jallalabad / Adinapur
			owns = 452 #Badakshan
		}
		any_province = {
			OR = {
				area = lahore_area
				area = multan_area
				area = sirhind_area
			}
			NOT = { province_id = 2079 } #Derajat
			NOT = { province_id = 2086 } #Cholistan
			NOT = { province_id = 2065 } #Bhattiana
			NOT = { owned_by = ROOT }
			NOT = { owner = { alliance_with = ROOT } }
			NOT = { owner = { is_subject_of = ROOT } }
		}
		NOT = { owns = 2181 }
		NOT = { owns = 510 }
		NOT = { owns = 507 }
		NOT = { owns = 506 }
	}
	abort = {
		is_subject = yes
	}
	success = {
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			is_year = 1526
		}
		modifier = {
			factor = 2
			owns = 578 #Roh
		}
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			mil = 5
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = conquered_punjab
		add_country_modifier = {
			name = "indian_ambition"
			duration = 3650
		}
	}
}

conquer_delhi = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		owned_by = DLH
	}
	allow = {
		normal_or_historical_nations = yes
		OR ={
			tag = TIM
			tag = MUG
		}
		NOT = { has_country_flag = conquered_delhi }
		exists = DLH	
		is_subject = no
		DLH = {
			is_neighbor_of = ROOT
			NOT = { alliance_with = ROOT }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = DLH }
		}
	}
	success = {
		NOT = { exists = DLH }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			is_year = 1526
		}
		modifier = {
			factor = 2
			army_size = DLH
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_prestige = 25
		add_adm_power = 400
		set_country_flag = conquered_delhi
	}
}

vassalize_golcanda = { #Conquer Golconda
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		owned_by = GOC
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = GOC
		is_subject = no
		NOT = { has_country_flag = vassalize_golcanda_done }
		NOT = { has_country_modifier = indian_ambition }
		GOC = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { alliance_with = MUG }
			NOT = { num_of_cities = ROOT }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		NOT = { exists = GOC }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = GOC value = 0 } }
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_country_modifier = {
			name = indian_ambition
			duration = 3650
		}
		set_country_flag = vassalize_golcanda_done
	}
}


vassalize_gondwana = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = GDW
		is_subject = no
		NOT = { has_country_flag = vassalize_gondwana_done }
		NOT = { has_country_modifier = military_vassalization }
		GDW = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { total_development = 50 }
			NOT = { government = imperial_city }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = GDW }
			GDW = { is_subject = yes }
			NOT = {
				has_casus_belli = {
					type = cb_vassalize_mission
					target = GDW
				}
			}
		}
	}
	success = {
		GDW = { vassal_of = MUG }
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = GDW value = 0 } }
		}
	}
	immediate = {
		add_casus_belli = {
			type = cb_vassalize_mission
			months = 300
			target = GDW
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = GDW
		}
	}
	effect = {
		add_country_modifier = {
			name = military_vassalization
			duration = 3650
		}
		set_country_flag = vassalize_gondwana_done
		hidden_effect = {
			remove_casus_belli = {
				type = cb_vassalize_mission
				target = GDW
			}
		}
	}
}


defend_the_mughal_borders = {
	
	type = country

	category = MIL
	
	target_provinces = {
		OR = {
			area = kabulistan_area
			area = ghor_area
		}
		owned_by = PER
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = PER
		NOT = { has_country_modifier = afghanistan_secured_mug }
		NOT = { has_country_flag = defended_mughal_borders }
		is_subject = no
		is_neighbor_of = PER
		NOT = { alliance_with = PER }
		NOT = { war_with = PER }
		MUG = {
			any_owned_province = {
				OR = {
					area = kabulistan_area
					area = ghor_area
				}
			}
		}
		PER = {
			any_owned_province = {
				OR = {
					area = kabulistan_area
					area = ghor_area
				}
			}
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = PER }
		}
	}
	success = {
		NOT = { war_with = PER }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			is_monarch_leader = yes
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_country_modifier = {
			name = "afghanistan_secured_mug"
			duration = 3650
		}
	}
}


mughal_break_the_persian_border = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		region = khorasan_region
		owned_by = PER
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = PER
		is_subject = no
		num_of_cities = PER
		PER = {
			is_neighbor_of = ROOT
			num_of_cities = 15
			NOT = { alliance_with = MUG }
		}
		khorasan_region = { owned_by = PER }
		NOT = { khorasan_region = { owned_by = ROOT } }
		NOT = { has_country_modifier = conquest_of_persia }
		NOT = { has_country_flag = persia_conquered_mug }
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = PER }
		}
	}
	success = {
		NOT = { war_with = PER }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			is_monarch_leader = yes
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = persia_conquered_mug
		add_ruler_modifier = {
			name = "conquest_of_persia"
		}
	}
}


vassalize_ahmadnagar = { #Conquer Ahmednagar
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		owned_by = AHM
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = AHM
		is_subject = no
		NOT = { has_country_flag = vassalize_ahmadnagar_done }
		NOT = { has_country_modifier = indian_ambition }
		AHM = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { alliance_with = ROOT }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		NOT = { exists = AHM }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = AHM value = 0 } }
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = vassalize_ahmadnagar_done
		add_country_modifier = {
			name = "indian_ambition"
			duration = 3650
		}
	}
}


conquer_khandesh = {

	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		owned_by = KHD
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = KHD
		is_subject = no
		is_neighbor_of = KHD
		NOT = { alliance_with = KHD }
		NOT = { has_country_modifier = indian_ambition }
		NOT = { has_country_flag = conquered_khandesh }
	}
	abort = {
		is_subject = yes
	}
	success = {
		NOT = { exists = KHD }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			mil = 4
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = conquered_khandesh
		add_country_modifier = {
			name = "indian_ambition"
			duration = 3650
		}
	}
}


annex_berar = {
	
	type = country

	category = DIP
	ai_mission = yes
	
	target_provinces = {
		owned_by = BRR
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = BRR
		is_subject = no
		NOT = { has_country_flag = conquered_berar }
		BRR = {
			NOT = { vassal_of = MUG }
			is_neighbor_of = ROOT
			NOT = { alliance_with = ROOT }
			NOT = { num_of_cities = ROOT }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		NOT = { exists = BRR }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = conquered_berar
		add_country_modifier = {
			name = "indian_ambition"
			duration = 3650
		}
	}
}


vassalize_gujarat = { #Conquer Gujarat
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		owned_by = GUJ
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = GUJ
		is_subject = no
		NOT = { has_country_flag = vassalize_gujarat_done }
		NOT = { has_country_modifier = indian_ambition }
		GUJ = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { alliance_with = ROOT }
			NOT = { num_of_cities = ROOT }
		}
	}
	abort = {
		is_subject = yes
	}
	success = {
		NOT = { exists = GUJ }
		all_target_province = {
			owned_by = ROOT
		}
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = GUJ value = 0 } }
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = vassalize_gujarat_done
		add_country_modifier = {
			name = "indian_ambition"
			duration = 3650
		}
	}
}


vassalize_orissa = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = ORI
		always = no #Removed
		is_subject = no
		NOT = { has_country_flag = vassalize_orissa_done }
		NOT = { has_country_modifier = military_vassalization }
		ORI = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { total_development = 50 }
			NOT = { government = imperial_city }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = ORI }
			ORI = { is_lesser_in_union = yes }
			NOT = {
				has_casus_belli = {
					type = cb_vassalize_mission
					target = ORI
				}
			}
		}
	}
	success = {
		ORI = { vassal_of = MUG }
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = ORI value = 0 } }
		}
	}
	immediate = {
		add_casus_belli = {
			type = cb_vassalize_mission
			months = 300
			target = ORI
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = ORI
		}
	}
	effect = {
		set_country_flag = vassalize_orissa_done
		add_country_modifier = {
			name = military_vassalization
			duration = 3650
		}
		hidden_effect = {
			remove_casus_belli = {
				type = cb_vassalize_mission
				target = ORI
			}
		}
	}
}


defeat_england = {

	type = country
	
	category = MIL
	
	target_provinces = {
		OR = {
			region = bengal_region
			region = hindusthan_region
			region = west_india_region
			region = deccan_region
			region = coromandel_region
		}
		owned_by = ENG
	}
	allow = {
		normal_or_historical_nations = yes
		tag = MUG
		exists = ENG
		is_subject = no
		ENG = {
			is_subject = no
			is_neighbor_of = ROOT
			num_of_owned_provinces_with = {
				value = 20
				OR = {
					region = bengal_region
					region = hindusthan_region
					region = west_india_region
					region = deccan_region
					region = coromandel_region
				}
			}
		}
		NOT = { alliance_with = ENG }
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = ENG }
		}
	}
	success = {
		NOT = { war_with = ENG }
		NOT = { bengal_region = { owned_by = ENG } }
		NOT = { hindusthan_region = { owned_by = ENG } }
		NOT = { west_india_region = { owned_by = ENG } }
		NOT = { deccan_region = { owned_by = ENG } }
		NOT = { coromandel_region = { owned_by = ENG } }
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			NOT = { dip = 1 }
		}
		modifier = {
			factor = 2
			NOT = { dip = 0 }
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		add_army_tradition = 50
		add_stability = 2
	}
}


defend_timurid_lands = {
	
	type = country

	category = MIL
	ai_mission = yes
	
	target_provinces = {
		area = transoxiana_area
		owned_by = SHY
	}
	allow = {
		normal_or_historical_nations = yes
		tag = TIM
		exists = SHY
		is_year = 1470
		is_subject = no
		is_neighbor_of = SHY
		NOT = { alliance_with = PER }
		NOT = { alliance_with = SHY }
		transoxiana_area = { owned_by = ROOT }
		transoxiana_area = { owned_by = SHY }
		NOT = { has_country_modifier = defended_against_shybanids }
		NOT = { has_country_flag = defend_timurid_lands_mission }
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = SHY }
		}
	}
	success = {
		NOT = { war_with = SHY }
		NOT = { transoxiana_area = { owned_by = SHY } }
	}
	chance = {
		factor = 3000
		modifier = {
			factor = 2
			mil = 4
		}
		modifier = {
			factor = 2
			SHY = { NOT = { mil = 2 } }
		}
	}
	immediate = {
		every_target_province = {
			add_claim = ROOT
		}
	}
	abort_effect = {
		every_target_province = {
			remove_claim = ROOT
		}
	}
	effect = {
		set_country_flag = defend_timurid_lands_mission
		add_country_modifier = {
			name = "defended_against_shybanids"
			duration = 3650
		}
	}
}

vassalize_the_akkoyunlu = {
	
	type = country

	category = MIL
	
	allow = {
		normal_or_historical_nations = yes
		tag = TIM
		exists = AKK
		is_subject = no
		NOT = { has_country_flag = vassalize_the_akkoyunlu_done }
		NOT = { has_country_modifier = military_vassalization }
		AKK = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { total_development = 50 }
			NOT = { government = imperial_city }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = AKK }
			AKK	= { is_subject = yes }
			NOT = {
				has_casus_belli = {
					type = cb_vassalize_mission
					target = AKK
				}
			}
		}
	}
	success = {
		AKK = { vassal_of = TIM }
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = AKK value = 0 } }
		}
	}
	immediate = {
		add_casus_belli = {
			type = cb_vassalize_mission
			months = 300
			target = AKK
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = AKK
		}
	}
	effect = {
		add_country_modifier = {
			name = military_vassalization
			duration = 3650
		}
		set_country_flag = vassalize_the_akkoyunlu_done
		hidden_effect = {
			remove_casus_belli = {
				type = cb_vassalize_mission
				target = AKK
			}
		} 
	}
}


vassalize_the_qara_qoyunlu = {
	
	type = country

	category = MIL
	
	allow = {
		normal_or_historical_nations = yes
		tag = TIM
		exists = QAR
		is_subject = no
		NOT = { has_country_flag = vassalize_the_qara_qoyunlu_done }
		NOT = { has_country_modifier = military_vassalization }
		QAR = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { total_development = 50 }
			NOT = { government = imperial_city }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = QAR }
			QAR = { is_subject = yes }
			NOT = {
				has_casus_belli = {
					type = cb_vassalize_mission
					target = QAR
				}
			}
		}
	}
	success = {
		QAR = { vassal_of = TIM }
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = QAR value = 0 } }
		}
	}
	immediate = {
		add_casus_belli = {
			type = cb_vassalize_mission
			months = 300
			target = QAR
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = QAR
		}
	}
	effect = {
		add_country_modifier = {
			name = military_vassalization
			duration = 3650
		}
		set_country_flag = vassalize_the_qara_qoyunlu_done
		hidden_effect = {
			remove_casus_belli = {
				type = cb_vassalize_mission
				target = QAR
			}
		}
	}
}


vassalize_georgia = {
	
	type = country

	category = MIL
	
	allow = {
		normal_or_historical_nations = yes
		tag = TIM
		exists = GEO
		is_subject = no
		NOT = { has_country_flag = vassalize_georgia_done }
		NOT = { has_country_modifier = military_vassalization }
		GEO = {
			is_subject = no
			is_neighbor_of = ROOT
			NOT = { num_of_cities = ROOT }
			NOT = { total_development = 50 }
			NOT = { government = imperial_city }
		}
	}
	abort = {
		OR = {
			is_subject = yes
			NOT = { exists = GEO }
			GEO = { is_subject = yes }
			NOT = {
				has_casus_belli = {
					type = cb_vassalize_mission
					target = GEO
				}
			}
		}
	}
	success = {
		GEO = { vassal_of = TIM }
	}
	chance = {
		factor = 2000
		modifier = {
			factor = 2
			NOT = { has_opinion = { who = GEO value = 0 } }
		}
	}
	immediate = {
		add_casus_belli = {
			type = cb_vassalize_mission
			months = 300
			target = GEO
		}
	}
	abort_effect = {
		remove_casus_belli = {
			type = cb_vassalize_mission
			target = GEO
		}
	}
	effect = {
		add_country_modifier = {
			name = military_vassalization
			duration = 3650
		}
		set_country_flag = vassalize_georgia_done
		hidden_effect = {
			remove_casus_belli = {
				type = cb_vassalize_mission
				target = GEO
			}
		}
	}
}
