persian_influence_mechanic = {
	alert_icon_gfx = GFX_alerticons_government_mechanics
	alert_icon_index = 4
	available = {
		has_dlc = "King of Kings"
	}

	powers = {
		persian_influence = {
			show_before_interactions = yes
			max = 100
			base_monthly_growth = 0
		}
	}
	
	interactions = {
		collect_tax_on_art = {
			icon = GFX_collect_tax_on_art
			cost_type = persian_influence
			cost = 100
			trigger = {
				num_of_subjects = 1
			}
			effect = {
				used_persian_influence_mechanic = yes
				if = {
					limit = { has_country_flag = improved_persian_influence_abilities }
					add_subjects_development_ducats = {
						multiplier = 5
					}
				}
				else = {
					add_subjects_development_ducats = {
						multiplier = 2.5
					}
				}
			}
			cooldown_years = 0
			ai_chance = {
				factor = 1
			}
		}
		promote_good_reputation = {
			icon = GFX_promote_good_reputation
			cost_type = persian_influence
			cost = 100
			trigger = {
				num_of_subjects = 1
			}
			effect = {
				used_persian_influence_mechanic = yes
				if = {
					limit = { has_country_flag = improved_persian_influence_abilities }
					custom_tooltip = promote_good_reputation_bt
					hidden_effect = {
						every_subject_country = {
							add_mutual_opinion_modifier_effect = {
								target = root
								modifier = promote_good_reputation_upgraded_opinion
							}
							add_trust = {
								who = root
								value = 5
								mutual = yes
							}
						}
					}
				}
				else = {
					custom_tooltip = promote_good_reputation_at
					hidden_effect = {
						every_subject_country = {
							add_mutual_opinion_modifier_effect = {
								target = root
								modifier = promote_good_reputation_opinion
							}
							add_trust = {
								who = root
								value = 2.5
								mutual = yes
							}
						}
					}
				}
			}
			cooldown_years = 0
			ai_chance = {
				factor = 1
			}
		}
		conscript_enthusiasts = {
			icon = GFX_conscript_enthusiasts
			cost_type = persian_influence
			cost = 100
			trigger = {
				num_of_subjects = 1
			}
			effect = {
				used_persian_influence_mechanic = yes
				if = {
					limit = { has_country_flag = improved_persian_influence_abilities }
					add_subjects_development_manpower = {
						multiplier = 0.25
					}
				}
				else = {
					add_subjects_development_manpower = {
						multiplier = 0.15
					}
				}
			}
			cooldown_years = 0
			ai_chance = {
				factor = 10
				modifier = {
					factor = 0
					not = { cavalry_fraction = 0.1 }
				}
				modifier = {
					factor = 0
					is_at_war = no
				}
				modifier = {
					factor = 0
					NOT = { manpower_percentage = 0.8 }
				}
				modifier = {
					factor = 10
					is_in_important_war = yes
					has_government_power = {
						mechanic_type = persian_influence_mechanic
						power_type = persian_influence
						value = 95
					}
				}
			}
		}
	}
}