country_decisions = {
		TIM_bring_taxation_under_control = {
		major = yes
		potential = {
			has_estate_privilege = estate_nobles_TIM_soyurghal_grants
		}
		allow = {
			OR = {
				crown_land_share = 40 
				AND = {
					num_of_provinces_developed = { amount = 10 }
					custom_trigger_tooltip = {
						tooltip = TIM_seized_4_times
						check_variable = {
							which = seize_land_counter
							value = 4
						}
					}
				}
			}
			if = {
				limit = {
					NOT = { has_country_flag = TIM_soyurghals_will_be_less_penalizing_flag }
				}
				all_subject_country = {
					NOT = { liberty_desire = 35 }
				}
			}
		}
		effect = {
			remove_estate_privilege = estate_nobles_TIM_soyurghal_grants
			set_country_flag = estate_nobles_TIM_soyurghal_grants_revoked
			
			custom_tooltip = " "
			
			complex_dynamic_effect_without_alternative = {
				first_custom_tooltip = TIM_crown_land_share
				first_limit = "
					crown_land_share = 40 
				"
				first_effect = "
					add_years_of_income = 2
				"
				second_custom_tooltip = TIM_seize_land_and_development
				second_limit = "
					num_of_provinces_developed = { amount = 10 }
					custom_trigger_tooltip = {
						tooltip = TIM_seized_4_times
						check_variable = {
							which = seize_land_counter
							value = 4
						}
					}
				"
				second_effect = "
					change_estate_land_share = {
						estate = all
						share = -15
					}
				"
			}
		}
		ai_will_do = {
			factor = 400
		}
	}
	TIM_supremacy_of_the_sharia = {
		major = yes
		potential = {
			has_estate_privilege = estate_church_TIM_yasa_supremacy
		}
		provinces_to_highlight = {
			
		}
		allow = {
			if = {
				limit = {
					NOT = { has_country_flag = TIM_revoking_yasa_will_be_easier_flag }
				}
				num_of_estate_agendas_completed = {
					estate = estate_church
					value = 3
				}
			}
			OR = {
				custom_trigger_tooltip = {
					tooltip = TIM_has_totf
					has_global_modifier_value = {
						which = tolerance_own
						value = 5
					}
				}
				reform_level = 3
			}
			num_of_owned_provinces_with = {
				has_tax_building_trigger = yes
				value = 3
			}
		}
		effect = {
			remove_estate_privilege = estate_church_TIM_yasa_supremacy
			set_country_flag = estate_church_TIM_yasa_supremacy_revoked
			
			custom_tooltip = " "
			
			add_estate_loyalty = {
				estate = estate_church 
				loyalty = 10
			}
			
			if = {
				limit = {
					has_estate = estate_nobles
				}
				custom_tooltip = " "
				add_estate_loyalty = {
					estate = estate_nobles
					loyalty = -10
				}
			}
		}
		ai_will_do = {
			factor = 400
		}
	}
	MUG_commission_the_peacock_throne = {
		major = yes
		potential = {
			has_country_flag = MUG_enable_comission_peacock_throne_decision_flag
		}
		provinces_to_highlight = {
			superregion = india_superregion
			NOT = { owned_by = ROOT }
		}
		allow = {
			hidden_trigger = {
				has_country_flag = MUG_enable_comission_peacock_throne_decision_flag
			}
			years_of_income = 2
			num_of_owned_provinces_with = {
				superregion = india_superregion
				value = 150
			}
		}
		effect = {
			clr_country_flag = MUG_enable_comission_peacock_throne_decision_flag
			add_years_of_income = -2
			
			add_country_modifier = {
				name = MUG_peacock_throne
				duration = -1 
			}
		}
		ai_will_do = {
			factor = 400
		}
	}
	
	MUG_viceroyalty_of_deccan = {
		major = yes
		potential = {
			has_country_flag = MUG_may_establish_viceroyalty
		}
		provinces_to_highlight = {
			OR = {
				region = coromandel_region
				area = golconda_area
				area = telingana_area
				area = rayalaseema_area
				area = mysore_area
				area = raichur_doab_area
				area = maidan_area
				area = desh_area
				area = ahmednagar_area
			}
		}
		allow = {
			NOT = { exists = DEC }
			num_of_owned_provinces_with = {
				OR = {
					region = coromandel_region
					area = golconda_area
					area = telingana_area
					area = rayalaseema_area
					area = mysore_area
					area = raichur_doab_area
					area = maidan_area
					area = desh_area
					area = ahmednagar_area
				}
				value = 60
			}
		}
		effect = {
			clr_country_flag = MUG_may_establish_viceroyalty
			custom_tooltip = mug_mission_events.1.b.tt
			add_country_modifier = {
				name = "MUG_decision_viceroyalty_of_the_deccan"
				duration = -1
			}
			coromandel_region = { add_core = DEC }
			golconda_area = { add_core = DEC }
			telingana_area = { add_core = DEC }
			rayalaseema_area = { add_core = DEC }
			mysore_area = { add_core = DEC }
			raichur_doab_area = { add_core = DEC }
			maidan_area = { add_core = DEC }
			desh_area = { add_core = DEC }
			ahmednagar_area = { add_core = DEC }
			release = DEC
			vassalize = DEC
			DEC = {
				hidden_effect = { complete_mission = city_of_victory }
				change_religion = ROOT
				change_government = monarchy
				#set_legacy_government = indian_sultanate_legacy
				add_opinion  = { who = ROOT modifier = opinion_viceroyalty_of_deccan }
				reverse_add_opinion  = { who = ROOT modifier = opinion_viceroyalty_of_deccan }
				set_capital = 545
				define_ruler = {
					name = "Asaf Jah I" #Qamar-ud-din Khan
					dynasty = "000000000"
					DIP = 4
					ADM = 3
					MIL = 5
				}
				if = {
					limit = {
						has_states_general_mechanic = yes
					}
					change_statists_vs_orangists = 1
				}
				add_country_modifier = {
					name = "viceroyalty_of_the_deccan"
					duration = -1
				}
			}
			545 = {
				change_province_name = "Aurangabad"
				rename_capital = "Aurangabad"
				add_base_tax = 2
				add_base_manpower = 2
				add_base_production = 2
				add_province_modifier = {
					name = "city_of_aurangabad"
					duration = -1
				}
			}
			542 = {
				change_province_name = "Hyderabad"
				rename_capital = "Hyderabad"
				add_base_tax = 2
				add_base_manpower = 2
				add_base_production = 2
			}
		}
		ai_will_do = {
			factor = 400
		}
	}
}