﻿### CE1 Tasks ###
#physician_treat_epidemic
#physician_guard_family
#physician_attend_poor
#chronicler_generate_seeds
#chronicler_promote_legend_realm (also poet and musician)
#chronicler_espouse_legend (also poet and musician)

physician_treat_epidemic = {
	court_position_types = { court_physician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	epidemic_resistance = 3
		}
		poor = {
		 	epidemic_resistance = 6
		}
		average = {
		 	epidemic_resistance = 10
		}
		good = {
		 	epidemic_resistance = 15
		}
		excellent = {
		 	epidemic_resistance = 20
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				any_sub_realm_county = {
					any_county_province = {
						any_province_epidemic = {
							count >= 1
						}
					}
				}
				NOT = { has_trait = avaricious }
			}
			multiply = 1.5
		}
		if = {
			limit = {
				any_sub_realm_county = {
					any_county_province = {
						any_province_epidemic = {
							count >= 1
							outbreak_intensity >= major
						}
					}
				}
			}
			multiply = 2
		}
		if = {
			limit = {
				capital_county ?= {
					any_county_province = {
						any_province_epidemic = {
							count >= 1
						}
					}
				}
			}
			multiply = 2
		}
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

physician_guard_family = {
	court_position_types = { court_physician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_lifestyle_xp_gain_mult = 0.02
		}
		poor = {
		 	monthly_lifestyle_xp_gain_mult = 0.04
		}
		average = {
		 	monthly_lifestyle_xp_gain_mult = 0.06
		}
		good = {
		 	monthly_lifestyle_xp_gain_mult = 0.08
		}
		excellent = {
		 	monthly_lifestyle_xp_gain_mult = 0.1
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				OR = {
					has_trait = sickly
					has_trait = paranoid
					AND = {
						has_any_disease_trigger = yes
						has_serious_disease_trigger = no
					}
				}
			}
			multiply = 1.5
		}
		if = {
			limit = {
				has_serious_disease_trigger = yes
			}
			multiply = 2.5
		}
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
			}
			multiply = 0
		}
	}
}

physician_attend_poor = {
	court_position_types = { court_physician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_piety_gain_mult = 0.01
		}
		poor = {
		 	monthly_piety_gain_mult = 0.02
		}
		average = {
		 	monthly_piety_gain_mult = 0.03
		}
		good = {
		 	monthly_piety_gain_mult = 0.04
		}
		excellent = {
		 	monthly_piety_gain_mult = 0.05
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				num_virtuous_traits >= 2
			}
			multiply = 1.5
		}
		if = {
			limit = {
				has_trait = zealous
				has_trait = excommunicated
			}
			multiply = 2
		}
		if = {
			limit = {
				has_trait = cynical
			}
			multiply = 0.25
		}
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
			}
			multiply = 0
		}
	}
}

chronicler_generate_seeds = {
	court_position_types = { chronicler_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	is_shown = {
		has_dlc_feature = legends_of_the_dead
	}
	is_valid_showing_failures_only = { }

	on_start = {
		custom_tooltip = yearly_legend_seed_tt
	}
	on_yearly = {
		random = {
			chance = {
				value = 1
				if = {
					limit = {
						aptitude = {
							court_position = chronicler_court_position
							value >= 2
						}
					}
					add = 1
				}
				if = {
					limit = {
						aptitude = {
							court_position = chronicler_court_position
							value >= 3
						}
					}
					add = 2
				}
				if = {
					limit = {
						aptitude = {
							court_position = chronicler_court_position
							value >= 4
						}
					}
					add = 4
				}
				if = {
					limit = {
						aptitude = {
							court_position = chronicler_court_position
							value >= 5
						}
					}
					add = 10
				}
			}
			save_scope_as = chronicler
			scope:liege = {
				trigger_event = {
					id = legend_events.0001
					months = { 0 6 } # To avoid triggering on January every year
				}
			}
		}
	}
	on_end = { }

	ai_will_do = {
		value = 0
		if = {
			limit = { # You're not promoting any legends
				NOT = { exists = promoted_legend }
			}
			add = 40
		}
		if = {
			limit = { # You're promoting a legend, but it's not yours
				NOT = { promoted_legend ?= { legend_owner = root } }
			}
			add = 20
		}
		if = {
			limit = {
				NOR = {
					has_personal_legend_seed = heroic
					has_personal_legend_seed = holy
					has_personal_legend_seed = legitimizing
				}
			}
			add = 100
			if = {
				limit = {
					OR = {
						has_trait = arrogant
						has_trait = ambitious
					}
				}	
				multiply = 2
			}
		}
		
		if = {
			limit = {
				OR = {
					monthly_character_income < monthly_court_position_task_cost_double
					is_at_war = yes
				}
			}
			add = -100 #to force the switch to default task, the ai_will_do must be negative
		}
	}
}

chronicler_promote_legend_realm = {
	court_position_types = { chronicler_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = base_chronicler_promote_legend_realm_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	owned_legend_spread_mult = 0.05
		}
		poor = {
		 	owned_legend_spread_mult = 0.1
		}
		average = {
		 	owned_legend_spread_mult = 0.2
		}
		good = {
		 	owned_legend_spread_mult = 0.4
		}
		excellent = {
		 	owned_legend_spread_mult = 0.6
		}
	}

	is_shown = {
		has_dlc_feature = legends_of_the_dead
	}
	is_valid_showing_failures_only = {
		custom_tooltip = {
			text = legend_no_legend
			scope:liege = {
				exists = promoted_legend
			}
		}
	}

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 0
		if = {
			limit = {
				promoted_legend ?= { legend_owner = root } #do you own a legend
			}
			add = 60
			if = {
				limit = {
					OR = {
						has_trait = arrogant
						has_trait = ambitious
					}
				}
				multiply = 2
			}
		}
		else_if = {
			limit = {
				promoted_legend ?= {
					legend_owner = {
						has_any_best_good_relationship_with_character_trigger = { CHARACTER = root }
					}
				}
			}
			add = 40
		}
		else_if = {
			limit = {
				promoted_legend ?= {
					legend_owner = {
						has_friendly_relationship_with_character_trigger = { CHARACTER = root }
					}
				}
			}
			add = 20
		}
		if = {
			limit = {
				promoted_legend ?= {
					NOT = {
						legend_owner = root
					}
				}
			}
			add = {
				value = "opinion(promoted_legend.legend_owner)"
				multiply = 0.02
			}	
		}
		if = {
			limit = {
				promoted_legend ?= {
					legend_owner = root
				}
				monthly_character_income < famed_legend_owner_cost
			}
			value = -100 #to force the switch to default task, the ai_will_do must be negative
		}
		else_if = {
			limit = {
				monthly_character_income < famed_legend_promoter_cost
			}
			value = -100
		}
	}
}

chronicler_espouse_legend = {
	court_position_types = { chronicler_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	is_shown = {
		has_dlc_feature = legends_of_the_dead
	}
	is_valid_showing_failures_only = {
		custom_tooltip = {
			text = legend_no_legend
			scope:liege = {
				exists = promoted_legend
			}
		}
	}

	on_start = {
		custom_tooltip = yearly_legend_spread_tt
	}
	on_yearly = {
		if = {
			limit = {
				scope:liege = {
					OR = {
						# Vassals
						any_vassal_or_below = {
							# No barons
							highest_held_title_tier >= tier_county
							# Not promoting their own legend
							NOT = { promoted_legend = { prev = legend_owner } }
							NOT = { promoted_legend = scope:liege.promoted_legend }
							is_ai = yes
						}
						# Neighbourinos
						any_neighboring_and_across_water_top_liege_realm_owner = {
							# Not promoting their own legend
							NOT = { promoted_legend = { prev = legend_owner } }
							NOT = { promoted_legend = scope:liege.promoted_legend }
							is_ai = yes
						}
					}
				}
			}
			random = {
				chance = {
					value = 20
					if = {
						limit = {
							aptitude = {
								court_position = chronicler_court_position
								value >= 2
							}
						}
						add = 5
					}
					if = {
						limit = {
							aptitude = {
								court_position = chronicler_court_position
								value >= 3
							}
						}
						add = 10
					}
					if = {
						limit = {
							aptitude = {
								court_position = chronicler_court_position
								value >= 4
							}
						}
						add = 20
					}
					if = {
						limit = {
							aptitude = {
								court_position = chronicler_court_position
								value >= 5
							}
						}
						add = 30
					}
				}
				save_scope_as = chronicler
				scope:liege = {
					random_list = {
						# Vassals
						75 = {
							trigger = {
								any_vassal_or_below = {
									highest_held_title_tier >= tier_county
									NOT = { promoted_legend = { prev = legend_owner } }
									NOT = { promoted_legend = scope:liege.promoted_legend }
									is_ai = yes
								}
							}
							random_vassal_or_below = {
								limit = {
									highest_held_title_tier >= tier_county
									NOT = { promoted_legend = { prev = legend_owner } }
									NOT = { promoted_legend = scope:liege.promoted_legend }
									is_ai = yes
								}
								save_scope_as = potential_promoter
							}
						}
						# Neighbourinos
						25 = {
							trigger = {
								any_neighboring_and_across_water_top_liege_realm_owner = {
									NOT = { promoted_legend = { prev = legend_owner } }
									NOT = { promoted_legend = scope:liege.promoted_legend }
									is_ai = yes
								}
							}
							random_neighboring_and_across_water_top_liege_realm_owner = {
								limit = {
									NOT = { promoted_legend = { prev = legend_owner } }
									NOT = { promoted_legend = scope:liege.promoted_legend }
									is_ai = yes
								}
								save_scope_as = potential_promoter
							}
						}
					}
					trigger_event = {
						id = legend_events.0010
						months = { 0 6 } # To avoid triggering on January every year
					}
				}
			}
		}
	}
	on_end = { }

	ai_will_do = {
		value = 0
		if = {
			limit = { # I own my promoted legend
				promoted_legend ?= { legend_owner = root }
			}
			add = 30
		}
		if = {
			limit = {
				OR = {
					has_trait = arrogant
					has_trait = ambitious
				}
			}
			multiply = 2
		}
		if = {
			limit = {
				OR = {
					monthly_character_income < monthly_court_position_task_cost_double
					is_at_war = yes
				}
			}
			add = -100 #to force the switch to default task, the ai_will_do must be negative
		}
	}
}

court_tutor_help = {
	court_position_types = { court_tutor_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	stress_gain_mult = -0.03
			stress_loss_mult = 0.03
		}
		poor = {
		 	stress_gain_mult = -0.06
			stress_loss_mult = 0.06
		}
		average = {
		 	stress_gain_mult = -0.09
			stress_loss_mult = 0.09
		}
		good = {
		 	stress_gain_mult = -0.12
			stress_loss_mult = 0.12
		}
		excellent = {
		 	stress_gain_mult = -0.15
			stress_loss_mult = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_tutor_educate = {
	court_position_types = { court_tutor_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	child_opinion = 5
		}
		poor = {
		 	child_opinion = 10
		}
		average = {
		 	child_opinion = 15
		}
		good = {
		 	child_opinion = 20
		}
		excellent = {
		 	child_opinion = 25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_tutor_research = {
	court_position_types = { court_tutor_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_learning_lifestyle_xp_gain_mult = 0.04
		}
		poor = {
		 	monthly_learning_lifestyle_xp_gain_mult = 0.08
		}
		average = {
		 	monthly_learning_lifestyle_xp_gain_mult = 0.12
		}
		good = {
		 	monthly_learning_lifestyle_xp_gain_mult = 0.16
		}
		excellent = {
		 	monthly_learning_lifestyle_xp_gain_mult = 0.2
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

royal_architect_temples = {
	court_position_types = { royal_architect_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		piety = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	church_holding_build_gold_cost = -0.03
		}
		poor = {
		 	church_holding_build_gold_cost = -0.06
		}
		average = {
		 	church_holding_build_gold_cost = -0.09
		}
		good = {
		 	church_holding_build_gold_cost = -0.12
		}
		excellent = {
		 	church_holding_build_gold_cost = -0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

royal_architect_holdings = {
	court_position_types = { royal_architect_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	controlled_province_advantage = 2
		}
		poor = {
		 	controlled_province_advantage = 4
		}
		average = {
		 	controlled_province_advantage = 6
		}
		good = {
		 	controlled_province_advantage = 8
		}
		excellent = {
		 	controlled_province_advantage = 10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

royal_architect_domain = {
	court_position_types = { royal_architect_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_prestige_from_buildings_mult = 0.05
		}
		poor = {
		 	monthly_prestige_from_buildings_mult = 0.1
		}
		average = {
		 	monthly_prestige_from_buildings_mult = 0.15
		}
		good = {
		 	monthly_prestige_from_buildings_mult = 0.2
		}
		excellent = {
		 	monthly_prestige_from_buildings_mult = 0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_the_hunt_training = {
	court_position_types = { master_of_hunt_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	trait_track_hunter_xp_gain_mult = 0.1
			trait_track_falconer_xp_gain_mult = 0.1
		}
		poor = {
		 	trait_track_hunter_xp_gain_mult = 0.2
			trait_track_falconer_xp_gain_mult = 0.2
		}
		average = {
		 	trait_track_hunter_xp_gain_mult = 0.3
			trait_track_falconer_xp_gain_mult = 0.3
		}
		good = {
		 	trait_track_hunter_xp_gain_mult = 0.4
			trait_track_falconer_xp_gain_mult = 0.4
		}
		excellent = {
		 	trait_track_hunter_xp_gain_mult = 0.5
			trait_track_falconer_xp_gain_mult = 0.5
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_the_hunt_forest = {
	court_position_types = { master_of_hunt_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	forest_advantage = 1
		}
		poor = {
		 	forest_advantage = 2
		}
		average = {
		 	forest_advantage = 3
		}
		good = {
		 	forest_advantage = 4
		}
		excellent = {
		 	forest_advantage = 5
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_the_hunt_skirmishers = {
	court_position_types = { master_of_hunt_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	skirmishers_damage_mult = 0.03
		}
		poor = {
		 	skirmishers_damage_mult = 0.06
		}
		average = {
		 	skirmishers_damage_mult = 0.09
		}
		good = {
		 	skirmishers_damage_mult = 0.12
		}
		excellent = {
		 	skirmishers_damage_mult = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

champion_training = {
	court_position_types = { champion_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	lifestyle_blademaster_xp_gain_mult = 0.15
		}
		poor = {
		 	lifestyle_blademaster_xp_gain_mult = 0.3
		}
		average = {
		 	lifestyle_blademaster_xp_gain_mult = 0.45
		}
		good = {
		 	lifestyle_blademaster_xp_gain_mult = 0.6
		}
		excellent = {
		 	lifestyle_blademaster_xp_gain_mult = 0.75
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

champion_accolade = {
	court_position_types = { champion_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	accolade_glory_gain_mult = 0.1
		}
		poor = {
		 	accolade_glory_gain_mult = 0.2
		}
		average = {
		 	accolade_glory_gain_mult = 0.3
		}
		good = {
		 	accolade_glory_gain_mult = 0.4
		}
		excellent = {
		 	accolade_glory_gain_mult = 0.5
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

champion_popular = {
	court_position_types = { champion_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	county_opinion_add = 3
		}
		poor = {
		 	county_opinion_add = 6
		}
		average = {
		 	county_opinion_add = 9
		}
		good = {
		 	county_opinion_add = 12
		}
		excellent = {
		 	county_opinion_add = 15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

travel_leader_speed = {
	court_position_types = { travel_leader_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	character_travel_safety_mult = -0.24
			character_travel_speed_mult = 0.06
		}
		poor = {
		 	character_travel_safety_mult = -0.2
			character_travel_speed_mult = 0.09
		}
		average = {
		 	character_travel_safety_mult = -0.16
			character_travel_speed_mult = 0.12
		}
		good = {
		 	character_travel_safety_mult = -0.12
			character_travel_speed_mult = 0.15
		}
		excellent = {
		 	character_travel_safety_mult = -0.08
			character_travel_speed_mult = 0.18
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

travel_leader_safety = {
	court_position_types = { travel_leader_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	character_travel_speed_mult = -0.2
			character_travel_safety_mult = 0.1
		}
		poor = {
		 	character_travel_speed_mult = -0.16
			character_travel_safety_mult = 0.15
		}
		average = {
		 	character_travel_speed_mult = -0.12
			character_travel_safety_mult = 0.2
		}
		good = {
		 	character_travel_speed_mult = -0.08
			character_travel_safety_mult = 0.25
		}
		excellent = {
		 	character_travel_speed_mult = -0.04
			character_travel_safety_mult = 0.3
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

travel_leader_opinion = {
	court_position_types = { travel_leader_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	travel_companion_opinion = 6
		}
		poor = {
		 	travel_companion_opinion = 12
		}
		average = {
		 	travel_companion_opinion = 18
		}
		good = {
		 	travel_companion_opinion = 24
		}
		excellent = {
		 	travel_companion_opinion = 30
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

antiquarian_learn = {
	court_position_types = { antiquarian_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	artifact_decay_reduction_mult = 0.24
			character_capital_county_monthly_development_growth_add = 0.03
		}
		poor = {
		 	artifact_decay_reduction_mult = 0.2
			character_capital_county_monthly_development_growth_add = 0.06
		}
		average = {
		 	artifact_decay_reduction_mult = 0.16
			character_capital_county_monthly_development_growth_add = 0.09
		}
		good = {
		 	artifact_decay_reduction_mult = 0.12
			character_capital_county_monthly_development_growth_add = 0.12
		}
		excellent = {
		 	artifact_decay_reduction_mult = 0.08
			character_capital_county_monthly_development_growth_add = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

antiquarian_show_off = {
	court_position_types = { antiquarian_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	court_grandeur_baseline_add = 1
		}
		poor = {
		 	court_grandeur_baseline_add = 2
		}
		average = {
		 	court_grandeur_baseline_add = 3
		}
		good = {
		 	court_grandeur_baseline_add = 4
		}
		excellent = {
		 	court_grandeur_baseline_add = 5
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

antiquarian_study_hard = {
	court_position_types = { antiquarian_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_piety_gain_mult = -0.24
			lifestyle_mystic_xp_gain_mult = 0.1
		}
		poor = {
		 	monthly_piety_gain_mult = -0.2
			lifestyle_mystic_xp_gain_mult = 0.2
		}
		average = {
		 	monthly_piety_gain_mult = -0.16
			lifestyle_mystic_xp_gain_mult = 0.3
		}
		good = {
		 	monthly_piety_gain_mult = -0.12
			lifestyle_mystic_xp_gain_mult = 0.4
		}
		excellent = {
		 	monthly_piety_gain_mult = -0.08
			lifestyle_mystic_xp_gain_mult = 0.5
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_horse_light_cav = {
	court_position_types = { master_of_horse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	light_cavalry_maintenance_cost_mult = 0.1
			light_cavalry_damage_mult = 0.03
		}
		poor = {
		 	light_cavalry_maintenance_cost_mult = 0.09
			light_cavalry_damage_mult = 0.06
		}
		average = {
		 	light_cavalry_maintenance_cost_mult = 0.08
			light_cavalry_damage_mult = 0.09
		}
		good = {
		 	light_cavalry_maintenance_cost_mult = 0.06
			light_cavalry_damage_mult = 0.12
		}
		excellent = {
		 	light_cavalry_maintenance_cost_mult = 0.07
			light_cavalry_damage_mult = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_horse_heavy_cav = {
	court_position_types = { master_of_horse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
			heavy_cavalry_damage_mult = 0.03
		}
		poor = {
			heavy_cavalry_damage_mult = 0.06
		}
		average = {
			heavy_cavalry_damage_mult = 0.09
		}
		good = {
			heavy_cavalry_damage_mult = 0.12
		}
		excellent = {
			heavy_cavalry_damage_mult = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

master_of_horse_races = {
	court_position_types = { master_of_horse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	glory_hound_levy_contribution_mult = 0.08
		}
		poor = {
		 	glory_hound_levy_contribution_mult = 0.12
		}
		average = {
		 	glory_hound_levy_contribution_mult = 0.16
		}
		good = {
		 	glory_hound_levy_contribution_mult = 0.2
		}
		excellent = {
		 	glory_hound_levy_contribution_mult = 0.24
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cultural_emissary_promote = {
	court_position_types = { cultural_emissary_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	cultural_head_acceptance_gain_mult = 0.06
		}
		poor = {
		 	cultural_head_acceptance_gain_mult = 0.12
		}
		average = {
		 	cultural_head_acceptance_gain_mult = 0.18
		}
		good = {
		 	cultural_head_acceptance_gain_mult = 0.24
		}
		excellent = {
		 	cultural_head_acceptance_gain_mult = 0.3
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cultural_emissary_merc = {
	court_position_types = { cultural_emissary_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	same_culture_mercenary_hire_cost_mult = -0.05
		}
		poor = {
		 	same_culture_mercenary_hire_cost_mult = -0.1
		}
		average = {
		 	same_culture_mercenary_hire_cost_mult = -0.15
		}
		good = {
		 	same_culture_mercenary_hire_cost_mult = -0.2
		}
		excellent = {
		 	same_culture_mercenary_hire_cost_mult = -0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cultural_emissary_influence = {
	court_position_types = { cultural_emissary_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	same_culture_opinion = 2
			independent_ruler_opinion = 2
		}
		poor = {
		 	same_culture_opinion = 4
			independent_ruler_opinion = 4
		}
		average = {
		 	same_culture_opinion = 6
			independent_ruler_opinion = 6
		}
		good = {
		 	same_culture_opinion = 8
			independent_ruler_opinion = 8
		}
		excellent = {
		 	same_culture_opinion = 10
			independent_ruler_opinion = 10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

wet_nurse_raise = {
	court_position_types = { wet_nurse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	genetic_trait_strengthen_chance = 0.03
		}
		poor = {
		 	genetic_trait_strengthen_chance = 0.06
		}
		average = {
		 	genetic_trait_strengthen_chance = 0.09
		}
		good = {
		 	genetic_trait_strengthen_chance = 0.12
		}
		excellent = {
		 	genetic_trait_strengthen_chance = 0.15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

wet_nurse_care = {
	court_position_types = { wet_nurse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	fertility = 0.05
		}
		poor = {
		 	fertility = 0.1
		}
		average = {
		 	fertility = 0.15
		}
		good = {
		 	fertility = 0.2
		}
		excellent = {
		 	fertility = 0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

wet_nurse_heal = {
	court_position_types = { wet_nurse_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	negate_health_penalty_add = 0.2
		}
		poor = {
		 	negate_health_penalty_add = 0.4
		}
		average = {
		 	negate_health_penalty_add = 0.6
		}
		good = {
		 	negate_health_penalty_add = 0.8
		}
		excellent = {
		 	negate_health_penalty_add = 1
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

high_almoner_galvanize = {
	court_position_types = { high_almoner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	levy_reinforcement_rate_same_faith = 0.08
		}
		poor = {
		 	levy_reinforcement_rate_same_faith = 0.16
		}
		average = {
		 	levy_reinforcement_rate_same_faith = 0.24
		}
		good = {
		 	levy_reinforcement_rate_same_faith = 0.32
		}
		excellent = {
		 	levy_reinforcement_rate_same_faith = 0.4
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

high_almoner_order = {
	court_position_types = { high_almoner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	holy_order_hire_cost_mult = -0.05
		}
		poor = {
		 	holy_order_hire_cost_mult = -0.1
		}
		average = {
		 	holy_order_hire_cost_mult = -0.15
		}
		good = {
		 	holy_order_hire_cost_mult = -0.2
		}
		excellent = {
		 	holy_order_hire_cost_mult = -0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

high_almoner_tax = {
	court_position_types = { high_almoner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	domain_tax_same_faith_mult = 0.02
			monthly_piety = -1
		}
		poor = {
		 	domain_tax_same_faith_mult = 0.04
			monthly_piety = -0.9
		}
		average = {
		 	domain_tax_same_faith_mult = 0.06
			monthly_piety = -0.8
		}
		good = {
		 	domain_tax_same_faith_mult = 0.08
			monthly_piety = -0.7
		}
		excellent = {
		 	domain_tax_same_faith_mult = 0.1
			monthly_piety = -0.6
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

seneschal_castle = {
	court_position_types = { seneschal_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	castle_holding_build_speed = 0.05
			castle_holding_build_gold_cost = -0.01
		}
		poor = {
		 	castle_holding_build_speed = 0.1
			castle_holding_build_gold_cost = -0.02
		}
		average = {
		 	castle_holding_build_speed = 0.15
			castle_holding_build_gold_cost = -0.03
		}
		good = {
		 	castle_holding_build_speed = 0.2
			castle_holding_build_gold_cost = -0.04
		}
		excellent = {
		 	castle_holding_build_speed = 0.25
			castle_holding_build_gold_cost = -0.05
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

seneschal_opinion = {
	court_position_types = { seneschal_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	barons_and_minor_landholders_opinion = 5
			barons_and_minor_landholders_tax_contribution_mult = 0.05
		}
		poor = {
		 	barons_and_minor_landholders_opinion = 10
			barons_and_minor_landholders_tax_contribution_mult = 0.1
		}
		average = {
		 	barons_and_minor_landholders_opinion = 15
			barons_and_minor_landholders_tax_contribution_mult = 0.15
		}
		good = {
		 	barons_and_minor_landholders_opinion = 20
			barons_and_minor_landholders_tax_contribution_mult = 0.2
		}
		excellent = {
		 	barons_and_minor_landholders_opinion = 25
			barons_and_minor_landholders_tax_contribution_mult = 0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

seneschal_vassal = {
	court_position_types = { seneschal_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	vassal_limit = 2
		}
		poor = {
		 	vassal_limit = 5
		}
		average = {
		 	vassal_limit = 9
		}
		good = {
		 	vassal_limit = 14
		}
		excellent = {
		 	vassal_limit = 20
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_jester_opinion = {
	court_position_types = { court_jester_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	courtier_and_guest_opinion = 3
		}
		poor = {
		 	courtier_and_guest_opinion = 6
		}
		average = {
		 	courtier_and_guest_opinion = 9
		}
		good = {
		 	courtier_and_guest_opinion = 12
		}
		excellent = {
		 	courtier_and_guest_opinion = 15
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_jester_grandeur = {
	court_position_types = { court_jester_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_court_grandeur_change_mult = 0.05
		}
		poor = {
		 	monthly_court_grandeur_change_mult = 0.1
		}
		average = {
		 	monthly_court_grandeur_change_mult = 0.15
		}
		good = {
		 	monthly_court_grandeur_change_mult = 0.2
		}
		excellent = {
		 	monthly_court_grandeur_change_mult = 0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_jester_vassal = {
	court_position_types = { court_jester_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	happy_powerful_vassal_tax_contribution_mult = 0.05
		}
		poor = {
		 	happy_powerful_vassal_tax_contribution_mult = 0.1
		}
		average = {
		 	happy_powerful_vassal_tax_contribution_mult = 0.15
		}
		good = {
		 	happy_powerful_vassal_tax_contribution_mult = 0.2
		}
		excellent = {
		 	happy_powerful_vassal_tax_contribution_mult = 0.25
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_poet_diplo = {
	court_position_types = { court_poet_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	diplomatic_range_mult = 0.1
			monthly_prestige = 0.1
		}
		poor = {
		 	diplomatic_range_mult = 0.15
			monthly_prestige = 0.15
		}
		average = {
		 	diplomatic_range_mult = 0.2
			monthly_prestige = 0.2
		}
		good = {
		 	diplomatic_range_mult = 0.25
			monthly_prestige = 0.25
		}
		excellent = {
		 	diplomatic_range_mult = 0.3
			monthly_prestige = 0.3
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_poet_seduce = {
	court_position_types = { court_poet_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	seduce_scheme_power_add = 2
			attraction_opinion = 2
		}
		poor = {
		 	seduce_scheme_power_add = 4
			attraction_opinion = 4
		}
		average = {
		 	seduce_scheme_power_add = 6
			attraction_opinion = 6
		}
		good = {
		 	seduce_scheme_power_add = 8
			attraction_opinion = 8
		}
		excellent = {
		 	seduce_scheme_power_add = 10
			attraction_opinion = 10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_poet_learn = {
	court_position_types = { court_poet_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	learn_languages_cheme_power_mult = 0.15
			different_culture_opinion = 2
		}
		poor = {
		 	learn_languages_cheme_power_mult = 0.3
			different_culture_opinion = 4
		}
		average = {
		 	learn_languages_cheme_power_mult = 0.45
			different_culture_opinion = 6
		}
		good = {
		 	learn_languages_cheme_power_mult = 0.6
			different_culture_opinion = 8
		}
		excellent = {
		 	learn_languages_cheme_power_mult = 0.75
			different_culture_opinion = 10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_musician_tales = {
	court_position_types = { court_musician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_dynasty_prestige_mult = 0.02
			dynasty_opinion = 2
		}
		poor = {
		 	monthly_dynasty_prestige_mult = 0.03
			dynasty_opinion = 4
		}
		average = {
		 	monthly_dynasty_prestige_mult = 0.04
			dynasty_opinion = 6
		}
		good = {
		 	monthly_dynasty_prestige_mult = 0.05
			dynasty_opinion = 8
		}
		excellent = {
		 	monthly_dynasty_prestige_mult = 0.06
			dynasty_opinion = 10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_musician_prestige = {
	court_position_types = { court_musician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	stress_loss_per_prestige_level = 0.01
			prestige_level_impact_mult = 0.04
		}
		poor = {
		 	stress_loss_per_prestige_level = 0.02
			prestige_level_impact_mult = 0.08
		}
		average = {
		 	stress_loss_per_prestige_level = 0.03
			prestige_level_impact_mult = 0.12
		}
		good = {
		 	stress_loss_per_prestige_level = 0.04
			prestige_level_impact_mult = 0.16
		}
		excellent = {
		 	stress_loss_per_prestige_level = 0.05
			prestige_level_impact_mult = 0.2
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

court_musician_sing = {
	court_position_types = { court_musician_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	legitimacy_gain_mult = 0.04
			monthly_prestige_gain_mult = 0.02
		}
		poor = {
		 	legitimacy_gain_mult = 0.08
			monthly_prestige_gain_mult = 0.03
		}
		average = {
		 	legitimacy_gain_mult = 0.12
			monthly_prestige_gain_mult = 0.04
		}
		good = {
		 	legitimacy_gain_mult = 0.16
			monthly_prestige_gain_mult = 0.05
		}
		excellent = {
		 	legitimacy_gain_mult = 0.2
			monthly_prestige_gain_mult = 0.06
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

executioner_example = {
	court_position_types = { executioner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	intimidated_vassal_tax_contribution_mult = 0.04
			vassal_opinion = -14
		}
		poor = {
		 	intimidated_vassal_tax_contribution_mult = 0.08
			vassal_opinion = -13
		}
		average = {
		 	intimidated_vassal_tax_contribution_mult = 0.12
			vassal_opinion = -12
		}
		good = {
		 	intimidated_vassal_tax_contribution_mult = 0.16
			vassal_opinion = -11
		}
		excellent = {
		 	intimidated_vassal_tax_contribution_mult = 0.2
			vassal_opinion = -10
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

executioner_torture = {
	court_position_types = { executioner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	stress_loss_mult = 0.04
			prisoner_opinion = -30
		}
		poor = {
		 	stress_loss_mult = 0.08
			prisoner_opinion = -26
		}
		average = {
		 	stress_loss_mult = 0.12
			prisoner_opinion = -22
		}
		good = {
		 	stress_loss_mult = 0.16
			prisoner_opinion = -18
		}
		excellent = {
		 	stress_loss_mult = 0.2
			prisoner_opinion = -14
		}
	}

	is_shown = { 
		OR = {
			has_trait = sadistic
			has_trait = wrathful
			has_trait = diligent
			has_trait = deceitful
			has_trait = eccentric
			has_trait = arbitrary
			has_trait = cynical
			has_trait = callous
		}
		NOT = {
			has_trait = forgiving
			has_trait = compassionate
		}
	}
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

executioner_crackdown = {
	court_position_types = { executioner_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	county_opinion_add = -30
			monthly_county_control_change_at_war_add = 0.2
		}
		poor = {
		 	county_opinion_add = -26
			monthly_county_control_change_at_war_add = 0.25
		}
		average = {
		 	county_opinion_add = -22
			monthly_county_control_change_at_war_add = 0.3
		}
		good = {
		 	county_opinion_add = -18
			monthly_county_control_change_at_war_add = 0.35
		}
		excellent = {
		 	county_opinion_add = -14
			monthly_county_control_change_at_war_add = 0.4
		}
	}

	is_shown = { }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cupbearer_extracare = {
	court_position_types = { cupbearer_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_four
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	hostile_scheme_resistance_mult = 0.03
			courtier_and_guest_opinion = -12
		}
		poor = {
		 	hostile_scheme_resistance_mult = 0.06
			courtier_and_guest_opinion = -10
		}
		average = {
		 	hostile_scheme_resistance_mult = 0.09
			courtier_and_guest_opinion = -8
		}
		good = {
		 	hostile_scheme_resistance_mult = 0.12
			courtier_and_guest_opinion = -6
		}
		excellent = {
		 	hostile_scheme_resistance_mult = 0.15
			courtier_and_guest_opinion = -4
		}
	}

	is_shown = {  }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cupbearer_enjoy = {
	court_position_types = { cupbearer_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_double
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	stress_loss_mult = 0.05
			stress_loss_mult = 0.05
			health = -1
		}
		poor = {
		 	stress_loss_mult = 0.1
			stress_loss_mult = 0.1
			health = -0.8
		}
		average = {
		 	stress_loss_mult = 0.15
			stress_loss_mult = 0.15
			health = -0.6
		}
		good = {
		 	stress_loss_mult = 0.2
			stress_loss_mult = 0.2
			health = -0.4
		}
		excellent = {
		 	stress_loss_mult = 0.25
			stress_loss_mult = 0.25
			health = -0.2
		}
	}

	is_shown = { }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}

cupbearer_generous = {
	court_position_types = { cupbearer_court_position }

	# Monthly cost for the task
	cost = {
		round = no
		gold = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
		prestige = {
			add = {
				value = monthly_court_position_task_cost_triple
				desc = COURT_POSITION_TASK_COST_BREAKDOWN_BASE
				format = "BASE_VALUE_FORMAT_DECIMALS_PLUS_NEGATIVE"
			}
		}
	}

	employee_modifier = {
		monthly_prestige = minor_court_position_task_prestige_salary
	}

	scaling_employer_modifiers = {
		terrible = {
		 	monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.01
		}
		poor = {
		 	monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.02
		}
		average = {
		 	monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.03
		}
		good = {
		 	monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.04
		}
		excellent = {
		 	monthly_prestige_gain_per_happy_powerful_vassal_mult = 0.05
		}
	}

	is_shown = { }
	is_valid_showing_failures_only = { }

	on_start = { }
	on_end = { }

	ai_will_do = {
		value = 30
		if = {
			limit = {
				monthly_character_income < monthly_court_position_task_cost_double
				NOT = {
					capital_county ?= {
						any_county_province = {
							any_province_epidemic = {
								count >= 1
								outbreak_intensity >= major
							}
						}
					}
				}
			}
			multiply = 0
		}
	}
}