﻿############################################
# Mistborn: The Final Empire - Inquisitor Decisions
# Request an Inquisitor to serve at your court
############################################

# Request an Inquisitor — summon one of the Lord Ruler's enforcers
request_inquisitor_decision = {
	picture = { reference = "gfx/interface/illustrations/decisions/decision_execution.dds" }

	desc = request_inquisitor_decision_desc
	selection_tooltip = request_inquisitor_decision_tooltip

	ai_check_interval = 240

	is_shown = {
		faith = faith:steel_ministry
		is_ruler = yes
		highest_held_title_tier >= tier_county
	}

	is_valid = {
		faith = faith:steel_ministry
		is_ruler = yes
		highest_held_title_tier >= tier_county
		piety >= 200
		NOT = { has_character_flag = inquisitor_at_court }
		NOT = { has_character_flag = recently_requested_inquisitor }
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	cost = {
		piety = 200
	}

	cooldown = { years = 3 }

	effect = {
		add_character_flag = {
			flag = recently_requested_inquisitor
			years = 3
		}
		trigger_event = mistborn_inquisitor.0010
	}

	ai_potential = {
		faith = faith:steel_ministry
		piety >= 300
	}

	ai_will_do = {
		base = 20
		modifier = {
			factor = 2
			any_vassal = {
				NOT = { faith = faith:steel_ministry }
			}
		}
		modifier = {
			factor = 0.5
			has_trait = compassionate
		}
	}
}
