﻿task_coordinate_harem = {
	default_task = yes
	position = councillor_harem_manager

	asset = {
		icon = "gfx/interface/icons/council_task_types/task_coordinate_harem.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_coordinate_harem_effect_desc

	task_type = task_type_general
	task_progress = task_progress_infinite

	council_owner_modifier = {
		name = task_coordinate_harem
		diplomacy = 1
		scale = task_coordinate_harem_diplomacy
	}

	council_owner_modifier = {
		name = task_coordinate_harem
		martial = 1
		scale = task_coordinate_harem_martial
	}

	council_owner_modifier = {
		name = task_coordinate_harem
		stewardship = 1
		scale = task_coordinate_harem_stewardship
	}

	council_owner_modifier = {
		name = task_coordinate_harem
		intrigue = 1
		scale = task_coordinate_harem_intrigue
	}

	council_owner_modifier = {
		name = task_coordinate_harem
		learning = 1
		scale = task_coordinate_harem_learning
	}

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

task_family_planning = {
	position = councillor_harem_manager

	asset = {
		icon = "gfx/interface/icons/council_task_types/task_family_planning.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_family_planning_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_family_planning_unavailable_trigger
			scope:councillor_liege = {
				any_consort = {
					is_valid_family_planning_target = yes
				}
			}
		}
	}

	on_finish_task = {
		trigger_event = { # task_family_planning Completion
			id = regula_council_event.2000
		}
	}

	progress = {
		value = task_family_planning_monthly_progress
	}

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