iqta_mechanic = {
	alert_icon_gfx = GFX_alerticons_government_mechanics
	alert_icon_index = 2
	available = {
		OR = {
			has_dlc = "Cradle of Civilization"
			has_dlc = "Winds of Change"
		}
	}
	
	interactions = {
		efficient_tax_farming = {
			icon = GFX_efficient_tax_farming_button
			trigger = {
			}
			effect = {
				add_country_modifier = {
					name = efficient_tax_farming_modifier
					duration = 5475
				}
				if = {
					limit = {
						has_country_flag = TIM_upgrade_iqta_tax_flag
					}
					add_subjects_development_ducats = {
						multiplier = 5
					}
					
					change_estate_land_share = {
						estate = all
						share = -1
					}
				}
				else = {
					add_subjects_development_ducats = {
						multiplier = 2.5
					}
				}
			}
			cooldown_years = 15
			cooldown_token = iqta_mechanic
			cooldown_desc = AN_IQTA_TAXATION_POLICY
			ai_chance = {
				factor = 20
				modifier = {
					factor = 0
					NOT = { num_of_loans = 1 }
				}
				modifier = {
					factor = 0.5
					is_in_deficit = no
				}
				modifier = {
					factor = 1.25
					has_any_disaster = yes
				}
				modifier = {
					factor = 1.5
					num_of_loans = 3
					is_in_deficit = yes
				}
				modifier = {
					factor = 20
					num_of_loans = 1
				}
				modifier = {
					factor = 100
					num_of_loans = 3
				}
				modifier = {
					factor = 100
					num_of_loans = 5
				}
				modifier = {
					factor = 100
					num_of_loans = 7
				}

			}
		}
		land_acquisition = {
			icon = GFX_land_acquisition_button
			trigger = { 
			}
			effect = { 
				add_country_modifier = {
					name = land_acquisition_modifier
					duration = 5475
				}
				if = {
					limit = {
						has_country_flag = TIM_upgrade_iqta_manpower_flag
					}
					add_subjects_development_manpower = {
						multiplier = 0.25
					}
				}
				else = {
					add_subjects_development_manpower = {
						multiplier = 0.10
					}
				}
			}
			cooldown_years = 15
			cooldown_token = iqta_mechanic
			cooldown_desc = AN_IQTA_TAXATION_POLICY
			ai_chance = {
				factor = 20
				modifier = {
					factor = 20
					NOT = { manpower_percentage = 0.35 }
				}
				modifier = {
					factor = 20
					NOT = { manpower_percentage = 0.25 }
				}
				modifier = {
					factor = 20
					NOT = { manpower_percentage = 0.15 }
				}
				modifier = {
					factor = 100
					is_in_important_war = yes
				}
				modifier = {
					factor = 30
					is_at_war = yes
					is_in_deficit = no
				}
				modifier = {
					factor = 0
					is_at_war = no
					OR = {
						NOT = {
							any_neighbor_country = {
								NOT = { truce_with = ROOT }
							}
						}
						manpower_percentage = 0.95
					}
				}
			}
		}
		lenient_taxation = {
			icon = GFX_lenient_taxation_button
			trigger = {
			}
			effect = { 
				add_country_modifier = {
					name = lenient_taxation_modifier
					duration = 5475
				}
				if = {
					limit = {
						has_country_flag = TIM_upgrade_iqta_ld_flag
					}
					add_stability_or_adm_power = yes
				}
			}
			cooldown_years = 15
			cooldown_token = iqta_mechanic
			cooldown_desc = AN_IQTA_TAXATION_POLICY
			ai_chance = {
				factor = 10
				modifier = {
					factor = 0
					NOT = {
						any_subject_country = {
							liberty_desire = 25
						}
					}
				}
				modifier = {
					factor = 20
					any_subject_country = {
						liberty_desire = 35
					}
				}
				modifier = {
					factor = 50
					any_subject_country = {
						liberty_desire = 50
					}
				}
				modifier = {
					factor = 100
					any_subject_country = {
						liberty_desire = 70
					}
				}
			}
		}
	}
}