﻿temple_assistant_position = {
	sort_order = 12
	max_available_positions = 3
	minimum_rank = county
	skill = learning

	court_position_asset = {
		animation = prayer
		background = "gfx/interface/illustrations/temple_assistant.dds"
	}

	opinion = {	scope:liege = 		{ value = county_court_position_opinion	}
				scope:employee = 	{ value = county_court_position_opinion	}	}
	
	aptitude_level_breakpoints = { 20 40 60 80 }
	aptitude = {
		value = 15
		add = skill_learning_score_value_40pt
		add = education_learning_value_20pt
		add = personality_learning_value_10pt
		
		add = personality_humble_value_10pt
		add = court_trait_scholarly_value_30pt
		add = personality_calm_value_10pt
		add = high_skills_ratings_value_10pt

		add = personality_arrogant_value_-15pt

		add = court_position_aptitude_family_business_value
		add = court_position_aptitude_high_penalty_value
	}

	is_shown_character = {
		scope:employee = {
			is_courtier_of = scope:liege
		}
	}

	valid_character = {
		scope:employee = {	temple_assistant_validity_trigger = { EMPLOYER = scope:liege }	}
	}

	revoke_cost = {
		gold =  {
			value = tine_court_position_gold_revoke_cost
			# Set to 0 with Dynasty Perk Inner Circle
			if = {
				limit = {
					exists = dynasty
					dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 }

					employs_court_position = lord_sheriff_position
					any_court_position_holder = {
				        type = lord_sheriff_position
						exists = dynasty
						house = prev.house
					}
				}
				multiply = 0
			}
		}
		prestige =  {
			value = minor_court_position_prestige_revoke_cost

			# Set to 0 with Dynasty Perk Inner Circle
			if = {
				limit = {
					exists = dynasty
					dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 }

					employs_court_position = temple_assistant_position
					any_court_position_holder = {
				        type = temple_assistant_position
						exists = dynasty
						house = prev.house
					}
				}
				multiply = 0
			}
		}
	}

	salary = {
		round = no
		gold = {
			value = small_court_position_salary
			# Set to 0 with Dynasty Perk Inner Circle
			if = {
				limit = {
					scope:liege = {
						exists = dynasty
						dynasty = { has_dynasty_perk = fp2_coterie_legacy_1 }

						employs_court_position = temple_assistant_position
						any_court_position_holder = {
					        type = temple_assistant_position
							exists = dynasty
							house = prev.house
						}
					}
				}
				multiply = {
					value = 0.0
					desc = inner_circle_salary_mod
					format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
				}
			}
		}
	}

	base_employer_modifier = {
		monthly_prestige = 0.01
	}
	
	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		}
	}

	custom_scaling_employer_modifier_description = {		
		terrible = 	desc_templeassistant_terrible
		poor = 		desc_templeassistant_poor
		average = 	desc_templeassistant_average
		good = 		desc_templeassistant_good
		excellent = desc_templeassistant_excellent
		range = 	desc_templeassistant_range
	}
	
	modifier = {
		learning = 1
		monthly_learning_lifestyle_xp_gain_mult = 0.2
		monthly_prestige = 0.3
		monthly_dread = -0.3
		monthly_piety = 0.4
	}

	on_court_position_received 		= {		basic_gained_court_position_effect = yes		}
	on_court_position_revoked 		= { 	basic_revoked_court_position_effect = yes		}
	on_court_position_invalidated 	= {		basic_invalidated_court_position_effect = yes	}
	on_court_position_vacated = {		court_position_vacated_event_effect = {	COURT_POSITION_TYPE = temple_assistant_position	}	}

	candidate_score = {
		value = 50
		add = scope:base_value
		add = court_position_candidate_score_base_value
		add = court_position_candidate_aptitude_value
	}
}
