﻿task_impromptu_inspections = {
	default_task = yes
	position = councillor_inquisitor

	asset = {
		icon = "gfx/interface/icons/council_task_types/task_impromptu_inspections.dds"
		background = "gfx/interface/buttons/button_round_bg.dds"
		frame = "gfx/interface/buttons/button_round_frame.dds"
		glow = "gfx/particles/halo.dds"
	}

	effect_desc = task_impromptu_inspections_effect_desc

	task_type = task_type_general
	task_progress = task_progress_infinite

	council_owner_modifier = {
		name = task_impromptu_inspections
		dread_baseline_add = 1
		scale = task_impromptu_inspections_dread_baseline
	}

	council_owner_modifier = {
		name = task_impromptu_inspections
		monthly_county_control_growth_add = 1
		scale = task_impromptu_inspections_monthly_county_control
	}

	monthly_on_action = on_task_impromptu_inspections_monthly

	ai_will_do = {
		value = 1 # Always a good backup
	}
}

task_apprehend_heretics = {
	position = councillor_inquisitor

	asset = {
		icon = "gfx/interface/icons/council_task_types/task_apprehend_heretics.dds"
		background = "gfx/interface/buttons/button_round_bg.dds"
		frame = "gfx/interface/buttons/button_round_frame.dds"
		glow = "gfx/particles/halo.dds"
	}

	effect_desc = task_apprehend_heretics_effect_desc

	task_type = task_type_general
	task_progress = task_progress_percentage
	restart_on_finish = yes

	is_valid_showing_failures_only = {
		custom_description = {
			text = task_apprehend_heretics_unavailable_trigger
			scope:councillor_liege = {
				regula_heresy_ongoing_trigger = yes
				regula_heresy_any_capturable_conspirator_trigger = yes
			}
		}
	}

	on_finish_task = {
		trigger_event = { # task_apprehend_heretics - Completion
			id = regula_council_event.5200
		}
	}

	progress = {
		value = task_apprehend_heretics_monthly_progress
	}

	ai_will_do = {
		value = 0 # AI should never do this.
	}
}
