WoC_mughals_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_sindh = {
		icon = mission_sindh_campaign
		required_missions = { MUG_forcelimit }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = sindh_area
				area = northern_sindh_area
				area = multan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = sindh_area
					area = northern_sindh_area
					area = multan_area
				}
				value = 10
			}
			504 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			give_claims = { area = marwar_area }
			give_claims = { area = mewar_area }
			
			custom_tooltip = " "
			
			504 = {
				center_of_trade = 1 
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_west
				duration = -1
			}
			
			add_country_modifier = {
				name = MUG_gates_of_india
				duration = 9125
			}
		}
	}
	
	MUG_gujarat = {
		icon = mission_secure_hajj_ports
		required_missions = { MUG_rajputana }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = tapti_area
				area = ahmedabad_area
				area = patan_area
				area = saurashtra_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = tapti_area
					area = ahmedabad_area
					area = patan_area
					area = saurashtra_area
				}
				value = 10
			}
			4457 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			4457 = {
				set_center_level_3_center_of_trade = yes
			}
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_gujarat_privilege
			set_country_flag = MUG_gujarat_privilege_flag
			
			custom_tooltip = " "
			
			add_years_of_trade_income = {
				years = 2
				custom_tooltip = BYZ_add_2_years_of_trade_income
			}
			
			custom_tooltip = " "
			
			give_claims = { area = khandesh_area }
			give_claims = { area = ahmednagar_area }
		}
	}
	
	MUG_trade = {
		icon = mission_invade_gujarat
		required_missions = { MUG_gujarat }
		position = 5
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 504
					NOT = {
						trade_share = {
							country = ROOT
							share = 75
						}
					}
				}
				AND = {
					OR = {
						province_id = 504 
						province_id = 4457 
						province_id = 517 
						province_id = 529 
					}
					OR = {
						NOT = { has_trade_building_trigger = yes }
						NOT = { country_or_non_sovereign_subject_holds = ROOT }
					}
				}
			}
		}
		trigger = {
			504 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
			
			504 = {
				country_or_non_sovereign_subject_holds = ROOT 
				has_trade_building_trigger = yes
			}
			4457 = {
				country_or_non_sovereign_subject_holds = ROOT 
				has_trade_building_trigger = yes
			}
			517 = {
				country_or_non_sovereign_subject_holds = ROOT 
				has_trade_building_trigger = yes
			}
			529 = {
				country_or_non_sovereign_subject_holds = ROOT 
				has_trade_building_trigger = yes
			}
		}
		effect = {
			504 = { add_or_upgrade_trade_building = yes }
			4457 = { add_or_upgrade_trade_building = yes }
			517 = { add_or_upgrade_trade_building = yes }
			529 = { add_or_upgrade_trade_building = yes }
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_upgrade_the_gujarati_privilege
			set_country_flag = MUG_upgrade_the_gujarati_privilege_flag
			
			custom_tooltip = " "
			
			add_mercantilism = 3
		}
	}
	
	MUG_religion = {
		icon = mission_quran
		required_missions = { }
		position = 6
		provinces_to_highlight = {
			owned_by = ROOT
			religion = hinduism
			NOT = { num_of_times_improved = 3 }
		}
		trigger = {
			num_of_owned_provinces_with = {
				religion = hinduism
				num_of_times_improved = 3
				value = 5
			}
		}
		effect = {
			add_country_modifier = {
				name = MUG_syncretism
				duration = -1
			}
			
			custom_tooltip = MUG_every_hindu_province_loses_10_separatism
			hidden_effect = {
				every_owned_province = {
					limit = {
						religion = hinduism
					}
					add_nationalism = -10
				}
			}
		}
	}
	
	MUG_sufi_shrines = {
		icon = mission_sufism
		required_missions = { MUG_religion }
		position = 7
		provinces_to_highlight = {
			owned_by = ROOT
			religion = ROOT 
			development = 14
			NOT = { has_tax_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				religion = ROOT 
				has_tax_building_trigger = yes
				development = 14
				value = 5
			}
			if = {
				limit = {
					religion_group = muslim
				}
				OR = {
					NOT = { piety = -0.33 }
					piety = 0.75
				}
			}
		}
		effect = {
			if = {
				limit = {
					religion_group = muslim
				}
				complex_dynamic_effect = {
					first_custom_tooltip = MUG_if_piety
					first_limit = "
						piety = 0.75
					"
					first_effect = "
						custom_tooltip = MUG_upgrade_clerical_ministers
						set_country_flag = MUG_upgrade_clerical_ministers_flag
						
						custom_tooltip = \" \"
						
						add_corruption = -1
					"
					second_custom_tooltip = MUG_if_mysticism
					second_limit = "
						NOT = { piety = -0.33 }
					"
					second_effect = "
						custom_tooltip = MUG_upgrade_freedom_of_interpretation
						set_country_flag = MUG_upgrade_freedom_of_interpretation_flag
						
						custom_tooltip = \" \"
						
						add_yearly_manpower = 1
					"
				}
			}
			else = {
				add_stability_or_adm_power = yes
				
				custom_tooltip = " "
				
				capital_scope = {
					add_base_tax = 3
				}
				
				custom_tooltip = " "
				
				define_advisor = {
					type = theologian
					skill = 3
					culture = ROOT
					religion = ROOT
					cost_multiplier = 0.33
				}
			}
		}
	}
	
	MUG_ibadat_khana = {
		icon = mission_vedic_education
		required_missions = { MUG_sufi_shrines MUG_tolerant_society }
		position = 8
		provinces_to_highlight = {
		}
		trigger = {
			is_ahead_of_time_in_technology = { tech = adm }
			is_ahead_of_time_in_technology = { tech = dip }
			is_ahead_of_time_in_technology = { tech = mil }
			
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				innovativeness = 40
			}
		}
		effect = {
			capital_scope = {
				add_province_triggered_modifier = MUG_ibadat_khana
			}
			
			custom_tooltip = " "
			
			complex_dynamic_effect = {
				first_custom_tooltip = MUG_if_ibadat_khana
				first_limit = "
					has_country_modifier = house_of_worship
				"
				first_effect = "
					custom_tooltip = MUG_remove_stab_cost_penalty
					hidden_effect = {
						remove_country_modifier = house_of_worship
						add_country_modifier = {
							name = house_of_worship_upgrade
							duration = -1
						}
					}
					add_adm_power = 400
				"
				second_custom_tooltip = MUG_if_no_ibadat_khana
				second_limit = "
					NOT = { has_country_modifier = house_of_worship }
				"
				second_effect = "
					add_country_modifier = {
						name = house_of_worship_upgrade
						duration = -1
					}
				"
			}
		}
	}
	
	MUG_din_i_ilahi = {
		icon = mission_din_i_llahi
		required_missions = { MUG_ibadat_khana MUG_jizya }
		position = 9
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					has_reform = mughal_government
				}
				custom_trigger_tooltip = {
					tooltip = MUG_10_cultures_assimilated
					num_accepted_cultures = 10
				}
			}
			else = {
				num_accepted_cultures = 5
			}
		}
		effect = {
			hidden_effect = {
				remove_country_modifier = MUG_syncretism_2
				add_country_modifier = {
					name = MUG_syncretism_3
					duration = -1
				}
			}
			custom_tooltip = MUG_syncretism_2_3
			
			custom_tooltip = " "
			
			country_event_with_effect_insight = {
				id = flavor_mug.11
				effect = "
					custom_tooltip = MUG_promote_din_i_ilahi
					set_country_flag = MUG_promote_din_i_ilahi_flag
					
					if = {
						limit = {
							has_dlc = \"Rights of Man\" 
						}
						custom_tooltip = \" \"
						
						custom_tooltip = MUG_disable_sinner
						set_country_flag = MUG_disable_sinner_flag
					}
					
					custom_tooltip = \" \"
					
					add_country_modifier = {
						name = MUG_din_ilahi_promotion
						duration = 10950
					}
				"
			}
		}
	}
	
	MUG_taj_mahal = {
		icon = mission_taj_mahal
		required_missions = { MUG_agra }
		position = 10
		provinces_to_highlight = {
			province_id = 524 
		}
		trigger = {
			524 = {
				owned_by = ROOT
			}
			if = {
				limit = {
					has_dlc = "Leviathan"
					religion_group = muslim
				}
				524 = {
					has_great_project = {
						type = taj_mahal
						tier = 2
					}
					development = 35
				}
			}
			else = {
				524 = {
					development = 45
					has_tax_building_trigger = yes
					has_courthouse_building_trigger = yes
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Leviathan"
					religion_group = muslim
				}
				custom_tooltip = MUG_upgrade_taj_mahal
				
				custom_tooltip = " "
			}
			else = {
				524 = {
					add_province_modifier = {
						name = MUG_taj_mahal_modifier
						duration = -1
					}
					
					add_or_upgrade_courthouse_building = yes
					add_or_upgrade_tax_building = yes
				}
			}
			
			add_prestige_or_monarch_power = { amount = 40 }
		}
	}
	
	MUG_red_fort = {
		icon = mission_red_fort
		required_missions = { MUG_taj_mahal }
		position = 11
		provinces_to_highlight = {
			province_id = 522
		}
		trigger = {
			522 = {
				owned_by = ROOT
				has_fort_building_trigger = yes
				base_manpower = 10
				has_manpower_building_trigger = yes
			}
		}
		effect = {
			hidden_effect = {
				remove_country_modifier = MUG_itinerant_court
				add_country_modifier = {
					name = MUG_mughal_architecture_mod
					duration = -1
				}
			}
			custom_tooltip = MUG_itinerant_court_upgrade
			
			custom_tooltip = " "
		
			522 = {
				add_or_upgrade_manpower_building = yes
				
				custom_tooltip = " "
				
				add_province_modifier = {
					name = MUG_red_fort
					duration = -1
				}
			}
		}
	}
	
	MUG_land_assessment = {
		icon = mission_general_land_assessment
		required_missions = { }
		position = 12
		provinces_to_highlight = {
		}
		trigger = {
			crown_land_share = 50
			reform_level = 4
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = MUG_every_state_gains_20_prosperity
				hidden_effect = {
					every_owned_province = {
						limit = {
							is_state = yes
							NOT = { has_province_flag = MUG_received_prosperity }
						}
						add_prosperity = 20
						area = {
							set_province_flag = MUG_received_prosperity
						}
					}
					every_owned_province = { clr_province_flag = MUG_received_prosperity }
				}
				
				custom_tooltip = " "
			}
			
			set_country_flag = MUG_seize_land_gives_absolutism
			custom_tooltip = MUG_seizing_land_will_give_absolutism
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_lose_10_autonomy
			hidden_effect = {
				if = {
					limit = {
						stability = 3
					}
					every_owned_province = {
						add_local_autonomy = -15
					}
				}
				else = {
					every_owned_province = {
						add_local_autonomy = -10
					}
				}
			}
		}
	}
	
	MUG_subahs = {
		icon = mission_gharbianss
		required_missions = { MUG_land_assessment MUG_dahsala }
		position = 14
		provinces_to_highlight = {
			owned_by = ROOT
			local_autonomy_above_min = 15
		}
		trigger = {
			num_of_states = 40
			OR = {
				num_of_cities = 200
				NOT = { average_autonomy_above_min = 15 }
			}
		}
		effect = {
			custom_tooltip = MUG_unlock_privilege_subahs
			set_country_flag = MUG_unlock_privilege_subahs_flag
			
			custom_tooltip = " "
			
			add_stability_or_adm_power = yes
		}
	}
}

WoC_mughals_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_forcelimit = {
		icon = mission_marathi_fiefs
		required_missions = { }
		position = 1
		provinces_to_highlight = {
		}
		trigger = {
			num_of_generals = 2
			OR = {
				num_of_battles = { amount = 25 }
				army_size_percentage = 0.9
			}
		}
		effect = {
			give_claims = { area = multan_area }
			give_claims = { area = sindh_area }
			give_claims = { area = northern_sindh_area }
			give_claims = { area = upper_doab_area }
			give_claims = { area = lower_doab_area }
			give_claims = { area = oudh_area }
			give_claims = { area = purvanchal_area }
			give_claims = { area = katehar_area }
			give_claims = { area = jangladesh_area }
			give_claims = { area = jaipur_area }
			#give_claims = { area = marwar_area } moved to sindh mission.
			#give_claims = { area = mewar_area }
			
			custom_tooltip = " "
			
			# complex_dynamic_effect = {
				# first_custom_tooltip = MUG_if_we_have_mil_3_advisor_or_earn_10_mil_per
				# first_limit = "
					
				# "
				# first_effect = "
					
				# "
			# } decided to make it into an age modifer instead
			
			add_country_modifier_for_age = {
				name = MUG_gunpowder_pioneers
				age = age_of_discovery
				else = "
					add_army_tradition_or_mil_power = { amount = 20 }
				"
			}
		}
	}
	
	MUG_rajputana = {
		icon = mission_subdue_rajputana
		required_missions = { MUG_forcelimit MUG_sindh }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = marwar_area
				area = jangladesh_area
				area = jaipur_area
				area = mewar_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = marwar_area
					area = jangladesh_area
					area = jaipur_area
					area = mewar_area
				}
				value = 12
			}
		}
		effect = {
			give_claims = { area = tapti_area }
			give_claims = { area = ahmedabad_area }
			give_claims = { area = patan_area }
			give_claims = { area = saurashtra_area }
			
			custom_tooltip = " " 
			
			if = {
				limit = {
					has_dlc = "Dharma"
				}
				set_country_flag = MUG_rajputana_mission_flag
				custom_tooltip = MUG_upgrade_rajputs
			
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = MUG_rajputs
					duration = -1
				}
			}
			
			add_mil_power = 100 
		}
	}
	
	MUG_berar = {
		icon = mission_across_the_vindhyas
		required_missions = { MUG_malwa MUG_gujarat }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = khandesh_area
				area = berar_area
				area = telingana_area
				area = ahmednagar_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = khandesh_area
					area = berar_area
					area = telingana_area
					area = ahmednagar_area
				}
				value = 12
			}
		}
		effect = {
			give_claims = { area = maidan_area }
			give_claims = { area = raichur_doab_area }
			give_claims = { area = konkan_area  }
			give_claims = { area = desh_area }
		
			custom_tooltip = " "
			
			create_general_with_pips = {
				tradition = 40
				add_fire = 2
				add_siege = 1
			}
			
			custom_tooltip = " "
		
			hidden_effect = {
				remove_country_modifier = MUG_west 
				remove_country_modifier = MUG_center
				add_country_modifier = {
					name = MUG_west_center
					duration = -1
				}
			}
			custom_tooltip = MUG_merge_west_center
		}
	}
	
	MUG_tolerant_society = {
		icon = mission_sufi_shrines
		required_missions = { MUG_religion }
		position = 7
		provinces_to_highlight = {
		}
		trigger = {
			religious_unity = 0.7
			custom_trigger_tooltip = {
				tooltip = MUG_1_toh
				has_global_modifier_value = {
					which = tolerance_heathen
					value = 1
				}
			}
		}
		effect = {
			hidden_effect = {
				remove_country_modifier = MUG_syncretism
				add_country_modifier = {
					name = MUG_syncretism_2
					duration = -1
				}
			}
			custom_tooltip = MUG_syncretism_1_2
				
			custom_tooltip = " "
				
			define_advisor = {
				type = theologian
				skill = 3
				culture = ROOT
				religion = hinduism
				cost_multiplier = 0.4
			}
		}
	}
	
	MUG_jizya = {
		icon = mission_dhimmi
		required_missions = { MUG_tolerant_society }
		position = 8
		provinces_to_highlight = {
			owned_by = ROOT 
			NOT = { has_tax_building_trigger = yes }
			NOT = { has_courthouse_building_trigger = yes }
			religion = hinduism
		}
		trigger = {
			reform_level = 4
			num_of_owned_provinces_with = {
				OR = {
					has_tax_building_trigger = yes
					has_courthouse_building_trigger = yes
				}
				religion = hinduism 
				value = 10
			}
			if = {
				limit = {
					has_estate = estate_dhimmi
				}
				OR = {
					estate_loyalty = {
						estate = estate_dhimmi
						loyalty = 60
					}
					num_of_estate_privileges = {
						estate = estate_dhimmi
						value = 5
					}
				}
			}
			if = {
				limit = {
					has_estate = estate_brahmins
				}
				OR = {
					estate_loyalty = {
						estate = estate_brahmins
						loyalty = 60
					}
					num_of_estate_privileges = {
						estate = estate_brahmins
						value = 5
					}
				}
			}
		}
		effect = {
			add_stability_or_adm_power = yes
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_estate = estate_dhimmi
				}
				add_estate_loyalty_modifier = {
					estate = estate_dhimmi
					desc = MUG_jizya_eased
					loyalty = 5
					duration = -1
				}
			}
			if = {
				limit = {
					has_estate = estate_brahmins
				}
				add_estate_loyalty_modifier = {
					estate = estate_brahmins
					desc = MUG_jizya_eased
					loyalty = 5
					duration = -1
				}
			}
			
		}
	}
	
	MUG_agra = {
		icon = mission_metropolis_of_the_deccan
		required_missions = { MUG_riches  }
		position = 9
		provinces_to_highlight = {
			province_id = 524
		}
		trigger = {
			524 = {
				owned_by = ROOT
				development = 30
				num_of_buildings_in_province = 4
			}
		}
		effect = {
			add_country_modifier = {
				name = MUG_itinerant_court
				duration = -1
			}
			
			524 = {
				change_province_name = "Agra"
				
				custom_tooltip = " "
				
				add_province_modifier = {
					name = MUG_agra_fort
					duration = -1
				}
				
				if = {
					limit = {
						NOT = { renaissance = 100 }
					}
					add_institution_embracement = {
						which = renaissance
						value = 50
					}
					custom_tooltip = " "
				}
			}
			tooltip = {
				country_event_with_insight = {
					id = flavor_mug.10
					insight_tooltip = MUG_move_capital
				}
			}
			hidden_effect = {
				524 = { save_event_target_as = mug_proposed_capital }
				country_event = {
					id = flavor_mug.10
				}
			}
		}
	}
	
	MUG_fatehpur_sikri = {
		icon = mission_fatehpur_sikri
		required_missions = { MUG_agra }
		position = 10
		provinces_to_highlight = {
			province_id = 4500
		}
		trigger = {
			4500 = {
				owned_by = ROOT
				num_of_buildings_in_province = 4
				development = 30
			}
		}
		effect = {
			4500 = {
				change_province_name = "Sikri"
				rename_capital = "Fatehpur Sikri"
				
				change_culture = ROOT
				
				custom_tooltip = " "
				
				add_province_modifier = {
					name = MUG_ideal_capital
					duration = -1
				}
			}
			
			tooltip = {
				country_event_with_insight = {
					id = flavor_mug.10
					insight_tooltip = MUG_move_capital
				}
			}
			hidden_effect = {
				4500 = { save_event_target_as = mug_proposed_capital }
				country_event = {
					id = flavor_mug.10
				}
			}
		}
	}
	
	MUG_mughal_architecture = {
		icon = mission_viceroyalty_of_the_deccan
		required_missions = { MUG_fatehpur_sikri MUG_red_fort }
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT 
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				OR = {
					AND = {
						has_great_project = {
							type = any
							tier = 1
						}
						NOT = {
							has_great_project = {
								type = any
								tier = 3
							}
						}
					}
					AND = {
						num_of_buildings_in_province = 2
						NOT = { num_of_buildings_in_province = 4 }
					}
				}
			}
			else = {
				AND = {
					num_of_buildings_in_province = 2
					NOT = { num_of_buildings_in_province = 4 }
				}
			}
		}
		trigger = {
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				num_of_owned_provinces_with = {
					has_great_project = {
						type = any
						tier = 3
					}
					value = 4
				}
				num_of_owned_provinces_with = {
					num_of_buildings_in_province = 4
					value = 10
				}
			}
			else = {
				num_of_owned_provinces_with = {
					num_of_buildings_in_province = 4
					value = 25
				}
			}
		}
		effect = {
			hidden_effect = {
				remove_country_modifier = MUG_mughal_architecture_mod
				if = {
					limit = {
						has_dlc = "Leviathan"
					}
					add_country_modifier = {
						name = MUG_mughal_architecture_dlc
						duration = -1
					}
				}
				else = {
					add_country_modifier = {
						name = MUG_mughal_architecture_2
						duration = -1
					}
				}
			}
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				custom_tooltip = MUG_itinerant_court_upgrade_dlc
			}
			else = {
				custom_tooltip = MUG_itinerant_court_upgrade_2
			}
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				add_splendor = 400
			}
			else = {
				add_prestige_or_monarch_power = { amount = 25 }
			}
			
			custom_tooltip = " "
			
			define_advisor = {
				type = artist
				skill = 3
				culture = ROOT
				religion = ROOT
				cost_multiplier = 0.33
			}
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				custom_tooltip = " "
				custom_tooltip = MUG_unlock_a_few_dharmic_monuments
			}
		}
	}
	
	MUG_dahsala = {
		icon = mission_dominate_trade_in_bengal
		required_missions = { }
		position = 13
		provinces_to_highlight = {
			owned_by = ROOT 
			NOT = { has_courthouse_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_courthouse_building_trigger = yes
				value = 15
			}
			OR = {
				has_adm_advisor_3 = yes
				treasurer = 1
			}
		}
		effect = {
			custom_tooltip = MUG_treasurer_upgrade
			set_country_flag = MUG_treasurer_upgrade_flag
			
			custom_tooltip = " "
			
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			change_government_reform_progress = 50
		}
	}
}

WoC_mughals_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_hindusthan = {
		icon = mission_emperor_of_hindusthan
		required_missions = { MUG_forcelimit }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = upper_doab_area
				area = lower_doab_area
				area = oudh_area
				area = purvanchal_area
				area = katehar_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with ={
				OR = {
					area = upper_doab_area
					area = lower_doab_area
					area = oudh_area
					area = purvanchal_area
					area = katehar_area
				}
				value = 15
			}
		}
		effect = {
			give_claims = { area = mithila_area }
			give_claims = { area = bihar_area }
			give_claims = { area = north_bengal_area }
			give_claims = { area = gaur_area }
			give_claims = { area = west_bengal_area }
			give_claims = { area = east_bengal_area }
			give_claims = { area = malwa_area }
			give_claims = { area = gondwana_area }
			give_claims = { area = gird_area }
			give_claims = { area = bundelkhand_area }
			give_claims = { area = baghelkhand_area }
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_enable_comission_peacock_throne_decision
			set_country_flag = MUG_enable_comission_peacock_throne_decision_flag
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_fertile_gangetic_plain
				duration = 10950
			}
		}
	}
	
	MUG_malwa = {
		icon = mission_conquer_malwa_mug
		required_missions = { MUG_rajputana }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = malwa_area
				area = gondwana_area
				area = gird_area
				area = bundelkhand_area
				area = baghelkhand_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {	
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = malwa_area
					area = gondwana_area
					area = gird_area
					area = bundelkhand_area
					area = baghelkhand_area
				}
				value = 15
			}
		}
		effect = {
			add_country_modifier = {
				name = MUG_center
				duration = -1
			}
			
			give_claims = { area = khandesh_area }
			give_claims = { area = telingana_area }
			give_claims = { area = berar_area }
			
			custom_tooltip = " "
			
			add_army_tradition_or_mil_power = { amount = 10 }
		}
	}
	
	MUG_maidan = {
		icon = mission_conquer_central_deccan
		required_missions = { MUG_malwa MUG_berar }
		position = 6
		provinces_to_highlight = {
			OR = {
				area = maidan_area
				area = raichur_doab_area
				area = konkan_area 
				area = desh_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = maidan_area
					area = raichur_doab_area
					area = konkan_area 
					area = desh_area
				}
				value = 12
			}
		}
		effect = {
			add_prestige_or_monarch_power = { amount = 25 }
			
			custom_tooltip = " "
			
			give_claims = { area = mysore_area }
			give_claims = { area = malabar_area }
			give_claims = { area = kanara_area }
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_mug.5
				option_1 = "
					enable_estate_effect = { estate = estate_maratha }
					disable_estate_effect = { estate = estate_rajput }
				"
				option_2 = "
					add_country_modifier = {
						name = MUG_rajput_loyalty
						duration = -1
					}
				"
			}
		}
	}
	
	MUG_riches = {
		icon = mission_establish_mint_towns
		required_missions = { }
		position = 8
		provinces_to_highlight = {
		}
		trigger = {
			share_of_starting_income = 4
			monthly_adm = 10
			stability = 1
		}
		effect = {
			define_advisor = {
				type = treasurer
				skill = 3
				culture = ROOT
				religion = ROOT
				cost_multiplier = 0.33
			}
			
			custom_tooltip = " "
			
			add_stability_or_adm_power = yes
		}
	}
	
	MUG_urbanize_the_subahs = {
		icon = mission_rule_the_garjats
		required_missions = { MUG_riches }
		position = 9
		provinces_to_highlight = {
			owned_by = ROOT
			development = 30
			NOT = { num_of_buildings_in_province = 5 }
		}
		trigger = {
			num_of_owned_provinces_with = {
				development = 30
				num_of_buildings_in_province = 5
				value = 6
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				set_country_flag = MUG_upgrade_expanding_infrastructure
				custom_tooltip = MUG_upgrade_expanding_infrastructure_tt
				tooltip = {
					add_province_modifier = {
						name = MUG_expanded_infrastructure
						duration = 7300
					}
				}
				#custom_tooltip = MUG_modifier_gets_removed
			}
			else = {
				custom_tooltip = MUG_every_20_development_prov
				tooltip = {
					add_province_modifier = {
						name = MUG_expanded_infrastructure
						duration = 7300
					}
				}
				hidden_effect = {
					every_owned_province = {
						limit = {
							development = 20
						}
						add_province_modifier = {
							name = MUG_expanded_infrastructure
							duration = 7300
						}
					}
				}
			}
			
			add_country_modifier = {
				name = MUG_social_mobility
				duration = 7300
			}
		}
	}
	
	MUG_indian_entrepot = {
		icon = mission_entrepot_of_india
		required_missions = { MUG_urbanize_the_subahs }
		position = 11
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				AND = {
					trade_goods = cotton
					NOT = {
						ROOT = {
							trading_part = {
								trade_goods = cotton
								value = 0.5
							}
						}
					}
				}
				AND = {
					trade_goods = spices
					NOT = {
						ROOT = {
							trading_part = {
								trade_goods = spices
								value = 0.25
							}
						}
					}
				}
				AND = {
					trade_goods = silk
					NOT = {
						ROOT = {
							trading_part = {
								trade_goods = silk
								value = 0.25
							}
						}
					}
				}
				AND = {
					trade_goods = dyes
					NOT = {
						ROOT = {
							trading_part = {
								trade_goods = dyes
								value = 0.25
							}
						}
					}
				}
				AND = {
					trade_goods = cloth
					NOT = {
						ROOT = {
							trading_part = {
								trade_goods = cloth
								value = 0.15
							}
						}
					}
				}
			}
		}
		trigger = {
			trading_part = {
				trade_goods = cotton
				value = 0.5
			}
			trading_part = {
				trade_goods = spices
				value = 0.25
			}
			trading_part = {
				trade_goods = silk
				value = 0.25
			}
			trading_part = {
				trade_goods = dyes
				value = 0.25
			}
			trading_part = {
				trade_goods = cloth
				value = 0.15
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Emperor"
				}
				set_country_flag = MUG_jain_trade_fleets
				custom_tooltip = MUG_jain_trade_fleets_tt
				
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = MUG_trade_fleets
					duration = -1 
				}
			}
			
			add_mercantilism = 3
			
			custom_tooltip = " "
			
			add_estate_loyalty = {
				estate = estate_jains
				loyalty = 10
			}
		}
	}
	
	MUG_outward = {
		icon = mission_grand_bengali_shipyards
		required_missions = { }
		position = 12
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_dock_building_trigger = yes }
			NOT = { has_shipyard_building_trigger = yes }
			has_port = yes
		}
		trigger = {
			navy_size = 20 # modified
			OR = {
				navy_size = 30 # modified
				navy_size_percentage = 0.9
			}
			num_ships_protecting_trade = 25
			
			num_of_owned_provinces_with = {
				OR = {
					has_dock_building_trigger = yes
					has_shipyard_building_trigger = yes
				}
				value = 5
			}
		}
		effect = {
			define_admiral = {
				name = "Yakut Khan"
				fire = 4
				shock = 2
				manuever = 5
				siege = 0
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_look_outwards
				duration = 9125
			}
			
			add_navy_tradition = 20
		}
	}
	
	MUG_western_allies = {
		icon = mission_embassy_to_the_west
		required_missions = { MUG_outward }
		position = 14
		provinces_to_highlight = {
			is_capital = yes
			continent = europe
			NOT = {
				owner = {
					alliance_with = ROOT 
				}
			}
		}
		trigger = {
			any_ally = {
				capital_scope = {
					continent = europe
				}
				has_opinion = {
					who = ROOT
					value = 150
				}
			}
			OR = { 
				monthly_dip = 8
				has_dip_advisor_3 = yes
			}
		}
		effect = {
			capital_scope = {
				add_next_institution_embracement = 50
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_embassy_to_the_west
				duration = 10950
			}
			
			add_power_projection = {
				amount = 10
				type = MUG_kingmaker_in_the_indian_ocean
			}
			custom_tooltip = MUG_decays_05_yearly
			
			
			custom_tooltip = " "
		
			complex_dynamic_effect = {
				first_custom_tooltip = MUG_has_diplomat
				first_limit = "
					advisor = diplomat
				"
				first_effect = "
					add_country_modifier = {
						name = MUG_friends_in_high_places
						duration = 1825
					}
				"
			}
		}
	}
}

WoC_mughals_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_nepal = {
		icon = mission_beyond_the_urals
		required_missions = { MUG_punjab }
		position = 2
		provinces_to_highlight = {
			culture = nepali
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				culture = nepali
				value = 5
			}
		}
		effect = {
			add_mil_power = 100
			
			custom_tooltip = " "
			
			define_advisor = {
				type = commandant
				skill = 3
				culture = nepali
				religion = hinduism
				cost_multiplier = 0.5
			}
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_unlock_gurkhas
			set_country_flag = MUG_unlock_gurkhas_flag
		}
	}
	
	MUG_bengal = {
		icon = mission_control_the_ganges_delta
		required_missions = { MUG_hindusthan }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = mithila_area
				area = bihar_area
				area = north_bengal_area
				area = gaur_area
				area = west_bengal_area
				area = east_bengal_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = mithila_area
					area = bihar_area
					area = north_bengal_area
					area = gaur_area
					area = west_bengal_area
					area = east_bengal_area
				}
				value = 18
			}
		}
		effect = {
			add_country_modifier = {
				name = MUG_east_1
				duration = -1
			}
			
			give_claims = { area = orissa_area }
			give_claims = { area = garjat_area }
			give_claims = { area = jharkhand_area }
			give_claims = { area = upper_mahanadi_area }
			
			give_claims = { area = assam_area }
			give_claims = { area = tripura_area }
			give_claims = { area = naga_hills_area }
			give_claims = { area = arakan_area  }
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_distribute_10_base_prod
			hidden_effect = {
				for = {
					amount = 10
					effect = "
						random_owned_province = {
							add_base_production = 1
						}
					"
				}
			}
		}
	}
	
	MUG_orissa = {
		icon = mission_conquer_orissa_mug
		required_missions = { MUG_bengal }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = orissa_area
				area = garjat_area
				area = jharkhand_area
				area = upper_mahanadi_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = orissa_area
					area = garjat_area
					area = jharkhand_area
					area = upper_mahanadi_area
				}
				value = 12
			}
		}
		effect = {
			give_claims = { area = andhra_area }
			give_claims = { area = golconda_area }
			give_claims = { area = rayalaseema_area }
			give_claims = { area = north_carnatic_area }
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_mug.6
				option_1 = "
					custom_tooltip = MUG_required_provinces_lose_nationalism
					
					custom_tooltip = \" \"
					
					add_adm_power = 100
				"
				option_2 = "
					add_country_modifier = {
						name = MUG_integrating_garjati_vassals
						duration = 10950
					}
					
					add_dip_power = 50
				"
				option_3 = "
					custom_tooltip = MUG_random_province_in_required_area_will_get_2_manpower
					
					custom_tooltip = \" \"
					
					add_country_modifier = {
						name = mug_garjat_recruitment
						duration = 7300
					}
				"
			}
		}
	}
	
	MUG_andhra = {
		icon = mission_riches_of_golconda
		required_missions = { MUG_orissa }
		position = 6
		provinces_to_highlight = {
			OR = {
				area = andhra_area
				area = golconda_area
				area = rayalaseema_area
				area = north_carnatic_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = andhra_area
					area = golconda_area
					area = rayalaseema_area
					area = north_carnatic_area
				}
				value = 12
			}
		}
		effect = {
			hidden_effect = {
				remove_country_modifier = MUG_east_1
				add_country_modifier = {
					name = MUG_east_2
					duration = -1
				}
			}
			custom_tooltip = MUG_east_1_2
			
			custom_tooltip = " "
			
			give_claims = { area = south_carnatic_area }
			give_claims = { area = lanka_area }
			give_claims = { area = south_lanka_area }
			give_claims = { area = madura_area }
			give_claims = { area = tanjore_area }
			give_claims = { area = kongu_area }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = "mug_riches_of_golconda_modifier"
				duration = 10950
			}
			
			country_event_with_effect_insight = {
				id = mug_mission_events.2
				effect = "
					add_prestige_or_monarch_power = { amount = 20 }
					add_treasury = 1000
				"
			}
		}
	}
	
	MUG_coromandel = {
		icon = mission_cromandel_coast
		required_missions = { MUG_andhra MUG_maidan }
		position = 7
		provinces_to_highlight = {
			OR = {
				area = mysore_area
				area = malabar_area
				area = kanara_area
				area = south_carnatic_area
				area = lanka_area
				area = south_lanka_area
				area = madura_area
				area = tanjore_area
				area = kongu_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = mysore_area
					area = malabar_area
					area = kanara_area
					area = south_carnatic_area
					area = lanka_area
					area = south_lanka_area
					area = madura_area
					area = tanjore_area
					area = kongu_area
				}
				value = 27
			}
		}
		effect = {
			set_country_flag = MUG_may_establish_viceroyalty
			custom_tooltip = MUG_may_establish_viceroyalty_decision_tt
			
			custom_tooltip = " "
			
			hidden_effect = {
				remove_country_modifier = MUG_west_center 
				remove_country_modifier = MUG_east_2
				add_country_modifier = {
					name = MUG_west_center_east
					duration = -1
				}
			}
			custom_tooltip = MUG_merge_west_center_east
			
			custom_tooltip = " "
			
			if = {
				limit = {
					NOT = { mission_completed = MUG_ayutthaya }
				}
				custom_tooltip = MUG_unlock_malaccan_viceroyalty_mission
				hidden_effect = { 
					set_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_coromandel
					swap_non_generic_missions = yes
				}
				
				custom_tooltip = " "
				
				give_claims = { area = malacca_area }
				give_claims = { area = north_malaya_area }
				give_claims = { area = malaya_area }
				give_claims = { area = johor_area }
				give_claims = { area = minangkabau_area }
				give_claims = { area = north_sumatra_area }
				give_claims = { area = south_sumatra_area }
				give_claims = { area = batak_area }
				give_claims = { area = central_sumatra_area }
				give_claims = { area = jambi_area }

				custom_tooltip = " "
			}
			
			custom_tooltip = MUG_upgrade_grant_jains_liberties
			set_country_flag = MUG_upgrade_grant_jains_liberties_flag
			hidden_effect = {
				if = {
					limit = {
						has_estate_privilege = estate_jains_grant_liberties
					}
					1340 = {
						add_trade_modifier = {
							who = ROOT
							duration = -1
							power = 25
							key = MUG_jain_liberties
						}
					}
				}
			}
		}
	}
}

WoC_mughals_4_locked = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
		NOT = { has_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_ayutthaya }
		NOT = { has_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_coromandel }
	}
	has_country_shield = yes
	
	MUG_malaya_both = {
		icon = mission_locked_mission
		required_missions = { MUG_coromandel MUG_ayutthaya }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = malacca_area
				area = north_malaya_area
				area = malaya_area
				area = johor_area
				area = minangkabau_area
				area = north_sumatra_area
				area = south_sumatra_area
				area = batak_area
				area = central_sumatra_area
				area = jambi_area
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = malacca_area
					area = north_malaya_area
					area = malaya_area
					area = johor_area
					area = minangkabau_area
					area = north_sumatra_area
					area = south_sumatra_area
					area = batak_area
					area = central_sumatra_area
					area = jambi_area
				}
				value = 30
			}
			1361 = {
				trade_share = {
					country = ROOT 
					share = 50
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						has_dlc = "Wealth of Nations"
						has_dlc = "Dharma"
					}
				}
				custom_tooltip = MUG_unlock_trade_company_support_priv
				set_country_flag = MUG_unlock_trade_company_support_priv_flag
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = MUG_trade_companies
					duration = -1
				}
			}
			
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			add_mercantilism = 3
		}
	}
}

WoC_mughals_4_coromandel = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
		has_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_coromandel
	}
	has_country_shield = yes
	
	MUG_malaya_coromandel = {
		icon = mission_malayan_viceroyalty
		required_missions = { MUG_coromandel }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = malacca_area
				area = north_malaya_area
				area = malaya_area
				area = johor_area
				area = minangkabau_area
				area = north_sumatra_area
				area = south_sumatra_area
				area = batak_area
				area = central_sumatra_area
				area = jambi_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = malacca_area
					area = north_malaya_area
					area = malaya_area
					area = johor_area
					area = minangkabau_area
					area = north_sumatra_area
					area = south_sumatra_area
					area = batak_area
					area = central_sumatra_area
					area = jambi_area
				}
				value = 30
			}
			1361 = {
				trade_share = {
					country = ROOT 
					share = 50
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						has_dlc = "Wealth of Nations"
						has_dlc = "Dharma"
					}
				}
				custom_tooltip = MUG_unlock_trade_company_support_priv
				set_country_flag = MUG_unlock_trade_company_support_priv_flag
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = MUG_trade_companies
					duration = -1
				}
			}
			
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			add_mercantilism = 3
		}
	}
}

WoC_mughals_4_ayutthaya = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
		has_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_ayutthaya
	}
	has_country_shield = yes
	
	MUG_malaya_ayutthaya = {
		icon = mission_malayan_viceroyalty
		required_missions = { MUG_ayutthaya }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = malacca_area
				area = north_malaya_area
				area = malaya_area
				area = johor_area
				area = minangkabau_area
				area = north_sumatra_area
				area = south_sumatra_area
				area = batak_area
				area = central_sumatra_area
				area = jambi_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = malacca_area
					area = north_malaya_area
					area = malaya_area
					area = johor_area
					area = minangkabau_area
					area = north_sumatra_area
					area = south_sumatra_area
					area = batak_area
					area = central_sumatra_area
					area = jambi_area
				}
				value = 30
			}
			1361 = {
				trade_share = {
					country = ROOT 
					share = 50
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						has_dlc = "Wealth of Nations"
						has_dlc = "Dharma"
					}
				}
				custom_tooltip = MUG_unlock_trade_company_support_priv
				set_country_flag = MUG_unlock_trade_company_support_priv_flag
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = MUG_trade_companies
					duration = -1
				}
			}
			
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			add_mercantilism = 3
		}
	}
}

WoC_mughals_4_2 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_weaving = {
		icon = mission_gujarati_textiles
		required_missions = { MUG_riches }
		position = 9
		provinces_to_highlight = {
			owned_by = ROOT 
			region = bengal_region
			OR = {
				trade_goods = cloth
				trade_goods = silk
			}
			OR = {
				NOT = { development = 16 }
				NOT = { has_production_building_trigger = yes }
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
				has_production_building_trigger = yes
				development = 16
				region = bengal_region
				value = 5
			}
		}
		effect = {
			custom_tooltip = MUG_upgrade_monopoly
			set_country_flag = MUG_upgrade_monopoly_flag
			
			custom_tooltip = " "
			
			add_years_of_owned_provinces_production_income = {
				years = 5
				trigger = {
					OR = {
						trade_goods = silk
						trade_goods = cloth
						trade_goods = cotton
					}
				}
				custom_tooltip = MUG_5_years_of_silk_cloth_cotton
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_famous_silks
				duration = 10950
			}
		}
	}
	
	MUG_grand_trunk_road = {
		icon = mission_grand_trunk_road_mug
		required_missions = { MUG_weaving MUG_urbanize_the_subahs }
		position = 10
		provinces_to_highlight = {
			is_part_of_trunk_road = yes
			NOT = {
				AND = {
					country_or_non_sovereign_subject_holds = ROOT
					num_of_times_improved = 3
					OR = {
						has_trade_building_trigger = yes
						num_of_buildings_in_province = 2
					}
				}
			}
		}
		trigger = {
			every_trunk_road_province_trigger = {
				tooltip = MUG_trunk_road
				trigger = "
					country_or_non_sovereign_subject_holds = ROOT
					num_of_times_improved = 3
					OR = {
						has_trade_building_trigger = yes
						num_of_buildings_in_province = 2
					}
				"
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				every_trunk_road_province_effect = {
					effect = "
						add_permanent_province_modifier = {
							name = MUG_grand_trunk_road
							duration = -1
						}
					"
				}
			}
			else = {
				every_trunk_road_province_effect = {
					effect = "
						add_permanent_province_modifier = {
							name = MUG_grand_trunk_road_no_dlc
							duration = -1
						}
					"
				}
			} 
			
			custom_tooltip = " "
			
			add_mercantilism = 3
			
			custom_tooltip = " "
			
			add_stability_or_adm_power = yes
		}
	}
	
	MUG_hegemon = {
		icon = mission_into_the_west
		required_missions = { MUG_indian_entrepot MUG_grand_trunk_road MUG_economic_power }
		position = 12
		provinces_to_highlight = {
		}
		trigger = {
			num_of_provinces_developed = { amount = 250 }
			monthly_income = 800
		}
		effect = {
			#Mostly pat on the back, Mughals are already strong as is
			add_country_modifier = {
				name = MUG_economic_dominance
				duration = -1
			}
			
			add_prestige_or_monarch_power = { amount = 40 }
		}
	}
	
	MUG_rajputs = {
		icon = mission_rajput_trade_guilds
		required_missions = { MUG_mansabdars }
		position = 13
		provinces_to_highlight = {
			culture = rajput
			NOT = { owned_by = ROOT }
			if = {
				limit = {
					ROOT = {
						NOT = { has_estate = estate_rajput }
					}
				}
				NOT = { num_of_times_improved = 1 }
			}
		}
		trigger = {
			if = {
				limit = {
					has_estate = estate_rajput 
				}
				OR = {
					estate_loyalty = {
						estate = estate_rajput
						loyalty = 65
					}
					num_of_estate_privileges = {
						estate = estate_rajput
						value = 4
					}
				}
				
				num_of_estate_agendas_completed = {
					estate = estate_rajput
					value = 3
				}
				num_of_owned_provinces_with = { 
					culture = rajput
					value = 5
				}
			}
			else = {
				num_of_owned_provinces_with = { 
					culture = rajput
					num_of_times_improved = 1
					value = 7
				}
			}
		}
		effect = {
			define_general = {
				name = "Man Singh"
				shock = 5
				fire = 4
				manuever = 3
				siege = 1
			}
			
			custom_tooltip = " "
			
			custom_tooltip = MUG_distribute_10_base_manpower
			hidden_effect = {
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
				random_owned_province = { limit = { culture = rajput } add_base_manpower = 1 }
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_rajput_reforms
				duration = -1
			}
		}
	}
	
	MUG_recruitment = {
		icon = mission_integrate_the_purbias
		required_missions = { MUG_rajputs }
		position = 14
		provinces_to_highlight = {
			owned_by = ROOT 
			religion = hinduism
			NOT = { has_manpower_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manpower_building_trigger = yes
				religion = hinduism
				value = 10
			}
			OR = {
				max_manpower = 80
				manpower_percentage = 0.75
			}
		}
		effect = {
			custom_tooltip = MUG_the_3_most_developed_provinces
			tooltip = {
				add_or_upgrade_manpower_building = yes
			}
			hidden_effect = {
				country_event = { id = flavor_mug.9 }
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = MUG_indian_recruitment
				duration = 9125 
			}
		}
	}
}

WoC_mughals_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = MUG
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	MUG_punjab = {
		icon = mission_pacify_punjab
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			OR = {
				area = lahore_area
				area = sind_sagar_area
				area = sirhind_area
			}
			OR = {
				NOT = { country_or_non_sovereign_subject_holds = ROOT }
				nationalism = 5
				local_autonomy_above_min = 25
			}
		}
		trigger = {
			lahore_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				NOT = { local_autonomy_above_min = 25 }
				NOT = { nationalism = 5 }
			}
			sirhind_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				NOT = { local_autonomy_above_min = 25 }
				NOT = { nationalism = 5 }
			}
			sind_sagar_area = {
				type = all
				country_or_non_sovereign_subject_holds = ROOT
				NOT = { local_autonomy_above_min = 25 }
				NOT = { nationalism = 5 }
			}
		}
		effect = {
			give_claims = { area = ghor_area }
			give_claims = { area = sistan_area }
			give_claims = { area = herat_area }
			give_claims = { area = balkh_area }
			give_claims = { area = kabulistan_area }
			
			custom_tooltip = " "
			
			add_stability_or_adm_power = yes
		}
	}
	
	MUG_afghan_frontier = {
		icon = mission_afghan_frontier
		required_missions = { MUG_punjab }
		position = 2
		provinces_to_highlight = {
			OR = {
				area = ghor_area
				area = sistan_area
				area = herat_area
				area = balkh_area
				area = kabulistan_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = ghor_area
					area = sistan_area
					area = herat_area
					area = balkh_area
					area = kabulistan_area
				}
				value = 16
			}
		}
		effect = {
			give_claims = { area = birjand_area }
			give_claims = { area = mashhad_area }
			give_claims = { area = merv_area }
			give_claims = { area = kerman_area }
			give_claims = { area = isfahan_area }
			give_claims = { area = iraq_e_ajam_area }
			give_claims = { area = termez_area }
			give_claims = { area = transoxiana_area }
			give_claims = { area = ferghana_area }
			
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				custom_tooltip = " "
				set_country_flag = BYZ_double_conqueror_chance_flag
				custom_tooltip = BYZ_double_conquer_chance
			}
			
			custom_tooltip = " "
			
			add_power_projection_mission = { amount = 15 }
		}
	}
	
	MUG_abu_saids_dream = {
		icon = mission_abu_saids_dream
		required_missions = { MUG_afghan_frontier }
		position = 3
		provinces_to_highlight = {
			OR = {
				area = birjand_area
				area = mashhad_area
				area = merv_area
				area = kerman_area
				area = isfahan_area
				area = iraq_e_ajam_area
				area = termez_area
				area = transoxiana_area
				area = ferghana_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = birjand_area
					area = mashhad_area
					area = merv_area
					area = kerman_area
					area = isfahan_area
					area = iraq_e_ajam_area
					area = termez_area
					area = transoxiana_area
					area = ferghana_area
				}
				value = 27
			}
		}
		effect = {
			give_claims = { region = persia_region }
			
			custom_tooltip = " "
			
			add_country_modifier_for_age = {
				name = MUG_heir_of_timur
				age = age_of_discovery
				else = "
					add_mil_power = 100
					
					custom_tooltip = \" \"
					
					add_army_tradition_or_mil_power = { amount = 20 }
				"
			}
		}
	}
	
	MUG_tripura = {
		icon = mission_follow_the_brahmaputra
		required_missions = { MUG_bengal }
		position = 4
		provinces_to_highlight = {
			OR = {
				area = assam_area
				area = tripura_area
				area = naga_hills_area
				area = arakan_area 
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = assam_area
					area = tripura_area
					area = naga_hills_area
					area = arakan_area 
				}
				value = 12
			}
		}
		effect = {
			give_claims = { region = burma_region }
			
			custom_tooltip = " "
			
			add_power_projection_mission = { amount = 10 }
			
			custom_tooltip = " "
			
			create_general = { 
				tradition = 80
				add_fire = 1
				add_siege = 1
			}
		}
	}
	
	MUG_burma = {
		icon = mission_upper_burma_campaign
		required_missions = { MUG_tripura }
		position = 5
		provinces_to_highlight = {
			region = burma_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			585 = { country_or_non_sovereign_subject_holds = ROOT }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = burma_region
				value = 25
			}
		}
		effect = {
			give_claims = { region = indo_china_region }
			give_claims = { region = north_tenasserim_area }
			
			custom_tooltip = " "
			
			country_event_with_effect_insight = {
				id = flavor_mug.7
				effect = "
					add_country_modifier = {
						name = MUG_victory_over_the_peacock
						duration = 14600
					}
					
					add_prestige_or_monarch_power = { amount = 20 }
				"
			}
		}
	}
	
	MUG_ayutthaya = {
		icon = mission_subah_of_ayuddhya
		required_missions = { MUG_burma }
		position = 7
		provinces_to_highlight = {
			OR = {
				region = indo_china_region
				area = north_tenasserim_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			600 = { country_or_non_sovereign_subject_holds = ROOT }
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					region = indo_china_region
					area = north_tenasserim_area
				}
				value = 45
			}
		}
		effect = {
			give_claims = { area = yun_gui_borderland_area }
			give_claims = { area = yun_gui_area }
			give_claims = { area = vietnam_area }
			give_claims = { area = guangxi_area }
			give_claims = { area = west_guangdong_area }
			give_claims = { area = guangdong_area }
			give_claims = { area = red_river_delta_area }
		
			custom_tooltip = " "
			
			if = {
				limit = {
					NOT = { mission_completed = MUG_coromandel }
				}
				custom_tooltip = MUG_unlock_malaccan_viceroyalty_mission
				hidden_effect = { 
					set_country_flag = MUG_unlock_malaccan_viceroyalty_mission_flag_ayutthaya
					swap_non_generic_missions = yes
				}
				
				custom_tooltip = " "
				
				give_claims = { area = malacca_area }
				give_claims = { area = north_malaya_area }
				give_claims = { area = malaya_area }
				give_claims = { area = johor_area }
				give_claims = { area = minangkabau_area }
				give_claims = { area = north_sumatra_area }
				give_claims = { area = south_sumatra_area }
				give_claims = { area = batak_area }
				give_claims = { area = central_sumatra_area }
				give_claims = { area = jambi_area }
				
				custom_tooltip = " "
			}
			
			add_permanent_power_projection = {
				amount = 5
				type = MUG_ayutthaya_subah
			}
			
			custom_tooltip = " "
			
			add_adm_power = 100
		}
	}
	
	MUG_china = {
		icon = mission_open_up_china
		required_missions = { MUG_ayutthaya }
		position = 8
		provinces_to_highlight = {
			OR = {
				area = yun_gui_borderland_area
				area = yun_gui_area
				area = vietnam_area
				area = guangxi_area
				area = west_guangdong_area
				area = guangdong_area
				area = red_river_delta_area
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = yun_gui_borderland_area
					area = yun_gui_area
					area = vietnam_area
					area = guangxi_area
					area = west_guangdong_area
					area = guangdong_area
					area = red_river_delta_area
				}
				value = 20
			}
		}
		effect = {
			add_country_modifier = {
				name = MUG_humiliation_of_china
				duration = 10950
			}
			
			add_adm_power = 100
			add_dip_power = 100
			add_mil_power = 100
			
			custom_tooltip = " "
			
			add_power_projection_mission = { amount = 40 }
		}
	}
	
	MUG_industry = {
		icon = mission_industrialize_bengal
		required_missions = { MUG_weaving }
		position = 10
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { trade_goods = gold }
			NOT = { has_manufactory_trigger = yes }
			NOT = { has_production_building_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manufactory_trigger = yes
				value = 10
			}
			num_of_owned_provinces_with = {
				has_production_building_trigger = yes
				value = 40
			}
		}
		effect = {
			add_country_modifier_for_age = {
				name = MUG_industrial_powerhouse
				age = age_of_reformation
				else = "
					custom_tooltip = MUG_distribute_10_base_prod
					for = {
						amount = 10
						effect = \"
							random_owned_province = {
								add_base_production = 1
							}
						\"
					}
					
					custom_tooltip = \" \"
				"
			}
			
			add_years_of_income = 0.5
			
			custom_tooltip = " "
			
			change_government_reform_progress = 50 
		}
	}
	
	MUG_economic_power = {
		icon = mission_found_udaipur
		required_missions = { MUG_industry  }
		position = 11
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					production_income_percentage = 0.01
				}
				custom_trigger_tooltip = {
					tooltip = MUG_at_least_75_production_income
					variable_arithmetic_trigger = {
						export_to_variable = {
							which = current_production_income
							value = monthly_income
						}
						export_to_variable = {
							which = production_income_share
							value = trigger_value:production_income_percentage
						}
						multiply_variable = { which = current_production_income which = production_income_share }
						check_variable = { which = current_production_income value = 75 }
					}
				}
			}
			
			num_of_provinces_developed = { amount = 100 }
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				custom_tooltip = MUG_increase_chance_of_industrious
				set_country_flag = MUG_higher_industrious_chance
				custom_tooltip = " "
			}
			
			custom_tooltip = MUG_unlock_industrial_privilege
			set_country_flag = MUG_unlock_industrial_privilege_flag 
			
			custom_tooltip = " "
			
			add_adm_power = 100
		}
	}
	
	MUG_mansabdars = {
		icon = mission_rajput_mansabdars
		required_missions = { }
		position = 12
		provinces_to_highlight = {
		}
		trigger = {
			num_of_generals = 2
			OR = {
				army_tradition = 60 
				num_of_battles = { amount = 40 }
			}
		}
		effect = {
			custom_tooltip = MUG_unlock_rajput_mansabdar_privilege
			set_country_flag = MUG_unlock_rajput_mansabdar_privilege_flag
			
			custom_tooltip = " "
			
			add_yearly_manpower = 0.5
			
			custom_tooltip = " "
			
			add_army_tradition_or_mil_power = { amount = 10 }
		}
	}
	
	MUG_cavalry = {
		icon = mission_conquer_malwa_mer
		required_missions = { MUG_mansabdars }
		position = 13
		provinces_to_highlight = {
		}
		trigger = {
			num_of_battles = { amount = 80 }
			OR = {
				num_of_cavalry = 8 # modified
				cavalry_fraction = 0.25
			}
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_mug.8
				option_1 = "
					add_country_modifier = {
						name = MUG_cavalry_tactics
						duration = -1
					}
					
					create_general_with_pips = {
						add_manuever = 2
						tradition = 70
					}
				"
				option_2 = "
					add_country_modifier = {
						name = MUG_focus_on_elephants
						duration = -1
					}
					
					custom_tooltip = MUG_more_chance_for_elephants
					set_country_flag = MUG_more_chance_for_elephants_flag
					
					custom_tooltip = \" \"
					
					create_general_with_pips = {
						add_shock = 1
						tradition = 60
					}
				"
			}
		}
	}
	
	MUG_gunpowder_empire = {
		icon = mission_gunpowder_warfare
		required_missions = { MUG_cavalry }
		position = 14
		provinces_to_highlight = {
		}
		trigger = {
			num_of_artillery = 15 # modified
			OR = {
				num_of_artillery = 30 # modified
				artillery_fraction = 0.33
			}
			is_ahead_of_time_in_technology = { tech = mil }
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				OR = {
					army_professionalism = 0.2
					army_tradition = 60
				}
			}
			else = {
				army_tradition = 60
			}
			monthly_mil = 9
		}
		effect = {
			add_country_modifier_for_age = {
				name = MUG_gunpowder_mastery
				age = age_of_reformation
				else = "
					create_general_with_pips = {
						tradition = 80
						add_siege = 3
					}
				"
			}
			
			change_innovativeness = 3
			
			custom_tooltip = " "
			
			define_advisor = {
				type = fortification_expert 
				skill = 3
				cost_multiplier = 0.33
			}
		}
	}
}