﻿### Court Greybeard Tasks ###

court_greybeard_instruct = {
	court_position_types = { court_greybeard_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			value = 2
			if = {
				limit = {
					scope:liege = {
						has_treasury = no
					}
				}
				add = {
					value = monthly_court_position_task_cost
					desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
					format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
				}
			}
		}
		treasury = {
			value = 2
			if = {
				limit = {
					scope:liege = {
						has_treasury = yes
					}
				}
				add = {
					value = monthly_court_position_task_cost
					desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
					format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
				}
			}
		}
	}
	
	on_yearly = {
		scope:employee = { save_scope_as = court_greybeard }
		scope:liege = { save_scope_as = dragonborn_apprentice }
		scope:liege = {
			player_heir = {
				save_scope_as = dragonborn_apprentice_heir
			}
		}
		hidden_effect = {
			trigger_event = {
				on_action = db_court_greybeard_task_on_action
			}
		}
	}

	ai_will_do = {
		value = 0
	}
}
