﻿#IRON THRONE


#King's Justice - Executioner re-flavour
#Black Cells - Gaoler reflavour?


#King's Counter/Sclaes?
#Keeper of Keys?
#Wardens of Mint?

#Gold Cloaks

#Dragonmount Keeper / Dragon Pit Keeper?

#Master of the Crackclaw Point ?

goldcloaks_court_position = { #Seneschal / Eunuch hybrid
	sort_order = 980
	max_available_positions = 1
	court_position_asset = {
		animation = marshal
		background = "gfx/interface/illustrations/event_scenes/alley_day.dds"
	}
	opinion = {
		value = regular_court_position_opinion
	}
	aptitude_level_breakpoints = {
		20
		40
		60
		80
	}
	aptitude = {
		value = 25
		add = {
			value = stewardship
			multiply = 1.25
			max = 25
			desc = court_position_skill_stewardship
		}
		add = {
			value = martial
			multiply = 1.25
			max = 25
			desc = court_position_skill_martial
		}
		if = {
			limit = {
				has_trait = administrator
			}
			add = {
				value = 20
				desc = court_position_administrator_trait
			}
		}
		if = {
			limit = {
				has_trait = overseer
			}
			add = {
				value = 20
				desc = court_position_overseer_trait
			}
		}
	}
	is_shown = {
		has_title = title:c_kings_landing
		OR = {
			any_vassal_or_below = {
				has_title = title:b_goldguard_heights
			}
			has_title = title:b_goldguard_heights
		}
	}
	valid_position = {
		has_title = title:c_kings_landing
	}
	valid_character = {
		scope:employee = {
			base_court_position_validity_trigger = { EMPLOYER = scope:liege }
			OR = {
				AND = {
					any_liege_or_above = {
						has_title = title:b_goldguard_heights
					}
					is_landed = no
				}
				has_title = title:b_goldguard_heights
			}
			NOR = {
				has_trait = kingsguard
				has_trait = maester
				# has_trait = archmaester
				has_trait = septon
			}
			is_male = yes
			can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:liege }
		}
	}
	revoke_cost = {
		prestige = {
			value = major_court_position_prestige_revoke_cost
			if = {
				limit = {
					exists = this
					is_ai = yes
				}
				multiply = 0
			}
		}
	}
	salary = {
		round = no
		gold = medium_court_position_salary
		prestige = major_court_position_prestige_salary
	}
	scaling_employer_modifiers = {
		terrible = {
			monthly_county_control_growth_add = 1.5
			enemy_hostile_scheme_phase_duration_add = 1
		}
		poor = {
			monthly_county_control_growth_add = 2
			enemy_hostile_scheme_phase_duration_add = 2
		}
		average = {
			monthly_county_control_growth_add = 2.5
			enemy_hostile_scheme_phase_duration_add = 4
		}
		good = {
			monthly_county_control_growth_add = 3
			enemy_hostile_scheme_phase_duration_add = 8
		}
		excellent = {
			monthly_county_control_growth_add = 3.5
			enemy_hostile_scheme_phase_duration_add = 10
		}
	}

	custom_employer_modifier_description = goldcloaks_employer_custom_effect_description

	modifier = {
	}
	on_court_position_received = {
		agot_goldcloaks_title_accepted_effect = yes
	}

	on_court_position_revoked = {
		seneschal_title_revoked_effect = yes
		agot_goldcloaks_title_revoked_effect = yes
	}
	on_court_position_invalidated = {
		seneschal_title_revoked_effect = yes
		agot_goldcloaks_title_revoked_effect = yes
	}
	on_court_position_vacated = {
		court_position_vacated_event_fg_effect = {
			COURT_POSITION_TYPE = goldcloaks_court_position
		}
	}
	ai_candidate_score = {
		value = 50
		add = scope:base_value
		add = court_position_candidate_score_base_value
		if = {
			limit = {
				NOT = {
					exists = scope:firing_court_position
				}
				scope:employee = {
					has_any_court_position = yes
				}
			}
			add = 50
		}
		if = {
			limit = {
				scope:employee = {
					has_title = title:b_goldguard_heights
				}
			}
			add = 100			#to stop AI from revoking alot
		}
	}
}