fee_decline_of_the_ottomans = {
	potential = {
		NOT = { has_dlc = "Domination" }
		tag = TUR
		NOT = { has_country_flag = had_fee_decline_of_the_ottomans }
		OR = {
			current_age = age_of_reformation
			current_age = age_of_absolutism
			current_age = age_of_revolutions
		}
		is_free_or_tributary_trigger = yes
		has_reform = monarchy_mechanic
		religion_group = muslim
		NOT = { exists = RUM }
		NOT = { exists = BYZ }
		delta_area = {
			type = all
			owned_by = ROOT
		}
		al_wahat_area = {
			type = all
			owned_by = ROOT
		}
		bahari_area = {
			type = all
			owned_by = ROOT
		}
		gulf_of_arabia_area = {
			type = all
			owned_by = ROOT
		}
	}
	can_start = {
		has_any_disaster = no
		num_of_cities = 120
		OR = {
			revanchism = 1
			governing_capacity_percentage = 1.1
			NOT = { crown_land_share = 50 }
			NOT = { stability = 0 }
			AND = {
				is_year = 1580
				NOT = { has_institution = printing_press }
			}
			any_core_province = {
				NOT = { owned_by = ROOT }
			}
		}
	}
	can_stop = {
		OR = {
			has_any_disaster = yes
			NOT = { has_reform = monarchy_mechanic }
			is_subject_other_than_tributary_trigger = yes
		}
	}
	progress = {
		modifier = {
			factor = 1
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 1
			NOT = { stability = -2 }
		}
		modifier = {
			factor = 1
			num_of_loans = 25
		}
		modifier = {
			factor = 1
			war_exhaustion = 8
		}
		modifier = {
			factor = 1
			war_exhaustion = 10
		}
		modifier = {
			factor = 2
			has_reform = ottoman_government
		}
		modifier = {
			factor = 2
			is_bankrupt = yes
		}
		modifier = {
			factor = 3
			is_lacking_institutions = yes
		}
	}
	can_end = {
		OR = {
			AND = {
				custom_trigger_tooltip = {
					tooltip = HAD_FEE_DECLINE_OF_THE_OTTOMANS_FOR_15_YEARS_TT
					has_country_flag = had_fee_decline_of_the_ottomans
					had_country_flag = { flag = had_fee_decline_of_the_ottomans days = 5475 }
				}
				stability = 3
				NOT = { corruption = 2 }
				NOT = { num_of_loans = 5 }
				is_bankrupt = no
				NOT = { num_of_rebel_armies = 1 }
				NOT = { num_of_rebel_controlled_provinces = 1 }
			}
			NOT = {
				any_owned_province = {
					OR = {
						region = anatolia_region
						province_id = 151
					}
				}
			}
		}
	}
	modifier = {
		stability_cost_modifier = 0.25 # was: stability_cost_modifier = 0.2
		global_institution_spread = -1.5 #was: global_institution_spread = -1
		global_unrest = 5 # was: global_unrest = 10
		technology_cost = 0.5 # was: global_autonomy = 0.3
	}

	on_start = disaster_fee_decline_of_the_ottomans.1
	on_end = disaster_fee_decline_of_the_ottomans.2

	on_monthly = {
		events = {
			disaster_fee_decline_of_the_ottomans.24
		}
		random_events = {
			2000 = 0 # was: 1600
			50 = disaster_fee_decline_of_the_ottomans.3
			100 = disaster_fee_decline_of_the_ottomans.4
			100 = disaster_fee_decline_of_the_ottomans.5
			50 = disaster_fee_decline_of_the_ottomans.6
			100 = disaster_fee_decline_of_the_ottomans.7
			100 = disaster_fee_decline_of_the_ottomans.8
			50 = disaster_fee_decline_of_the_ottomans.9
			100 = disaster_fee_decline_of_the_ottomans.10
			50 = disaster_fee_decline_of_the_ottomans.11
			100 = disaster_fee_decline_of_the_ottomans.12
			100 = disaster_fee_decline_of_the_ottomans.13
			75 = disaster_fee_decline_of_the_ottomans.14
			75 = disaster_fee_decline_of_the_ottomans.15
			100 = disaster_fee_decline_of_the_ottomans.16
			100 = disaster_fee_decline_of_the_ottomans.17
			100 = disaster_fee_decline_of_the_ottomans.18
			50 = disaster_fee_decline_of_the_ottomans.19
			100 = disaster_fee_decline_of_the_ottomans.20
			50 = disaster_fee_decline_of_the_ottomans.21
			50 = disaster_fee_decline_of_the_ottomans.22
			100 = disaster_fee_decline_of_the_ottomans.27
			50 = disaster_fee_decline_of_the_ottomans.28
		}
	}
}