﻿master_assassin_total_salary_value = {
	value = medium_court_position_salary # Update X_salary_tooltip if script_value is changed
	# Set to 0 with Dynasty Perk Inner Circle
	if = {
		limit = { court_position_inner_circle_salary_trigger = { POS = master_assassin } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change
	# Set to 0 with Special Operations Training
	if = {
		limit = { 
			has_game_rule = sas_salary_free
			scope:liege = { house ?= { has_house_modifier = sas_special_operations_training_house_modifier_free } } 
		}
		multiply = {
			value = 0
			desc = special_operations_training_court_position_modifier
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change End
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = master_assassin
				LIEGE = scope:liege
			}
		}
		multiply = {
			value = 0.5
			desc = obligation_hook_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved salary
	if = {
		limit = {
			court_position_halved_salary_trigger = { POS = master_assassin }
		}
		multiply = {
			value = 0.5
			desc = court_position_halved_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Increased salary
	if = {
		limit = {
			court_position_increased_salary_trigger = { POS = master_assassin }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	#You're working with LAAMPS now
	if = {
		limit = { 
			scope:liege ?= { government_has_flag = government_is_landless_adventurer }
		}
		multiply = {
			value = 0
			desc = court_position_laamps_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

master_assassin_prestige_salary_value = {
	value = medium_court_position_prestige_salary # Update X_salary_tooltip if script_value is changed
	# Set to 0 with Dynasty Perk Inner Circle
	if = {
		limit = { court_position_inner_circle_salary_trigger = { POS = master_assassin } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change
	# Set to 0 with Special Operations Training
	if = {
		limit = { 
			has_game_rule = sas_salary_free
			scope:liege = { house ?= { has_house_modifier = sas_special_operations_training_house_modifier_free } } 
		}
		multiply = {
			value = 0
			desc = special_operations_training_court_position_modifier
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change End
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = master_assassin
				LIEGE = scope:liege
			}
		}
		multiply = {
			value = 0.5
			desc = obligation_hook_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved salary
	if = {
		limit = {
			court_position_halved_salary_trigger = { POS = master_assassin }
		}
		multiply = {
			value = 0.5
			desc = court_position_halved_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Increased salary
	if = {
		limit = {
			court_position_increased_salary_trigger = { POS = master_assassin }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	#You're working with LAAMPS now
	if = {
		limit = { 
			scope:liege ?= { government_has_flag = government_is_landless_adventurer }
		}
		multiply = {
			value = 0
			desc = court_position_laamps_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

food_taster_total_salary_value = {
	value = minor_court_position_salary # Update X_salary_tooltip if script_value is changed
	# Set to 0 with Dynasty Perk Inner Circle
	if = {
		limit = { court_position_inner_circle_salary_trigger = { POS = food_taster } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change
	# Set to 0 with Special Operations Training
	if = {
		limit = { 
			has_game_rule = sas_salary_free
			scope:liege = { house ?= { has_house_modifier = sas_special_operations_training_house_modifier_free } } 
		}
		multiply = {
			value = 0
			desc = special_operations_training_court_position_modifier
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change End
	# Halved with obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = food_taster
				LIEGE = scope:liege
			}
		}
		multiply = {
			value = 0.5
			desc = obligation_hook_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved salary
	if = {
		limit = {
			court_position_halved_salary_trigger = { POS = food_taster }
		}
		multiply = {
			value = 0.5
			desc = court_position_halved_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Increased salary
	if = {
		limit = {
			court_position_increased_salary_trigger = { POS = food_taster }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	#You're working with LAAMPS now
	if = {
		limit = { 
			scope:liege ?= { government_has_flag = government_is_landless_adventurer }
		}
		multiply = {
			value = 0
			desc = court_position_laamps_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

food_taster_prestige_salary_value = {
	# Set to 0 with Dynasty Perk Inner Circle
	if = {
		limit = { court_position_inner_circle_salary_trigger = { POS = food_taster } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change
	# Set to 0 with Special Operations Training
	if = {
		limit = { 
			has_game_rule = sas_salary_free
			scope:liege = { house ?= { has_house_modifier = sas_special_operations_training_house_modifier_free } } 
		}
		multiply = {
			value = 0
			desc = special_operations_training_court_position_modifier
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change End
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = food_taster
				LIEGE = scope:liege
			}
		}
		multiply = {
			value = 0.5
			desc = obligation_hook_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved salary
	if = {
		limit = {
			court_position_halved_salary_trigger = { POS = food_taster }
		}
		multiply = {
			value = 0.5
			desc = court_position_halved_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Increased salary
	if = {
		limit = {
			court_position_increased_salary_trigger = { POS = food_taster }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	#You're working with LAAMPS now
	if = {
		limit = { 
			scope:liege ?= { government_has_flag = government_is_landless_adventurer }
		}
		multiply = {
			value = 0
			desc = court_position_laamps_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Free if you have the cultural tradition to increase prestige (so you don't have a cost and a gain at the same time)
	if = {
		limit = {
			scope:liege.culture ?= { has_cultural_parameter = better_food_tasters }
		}
		multiply = {
			value = 0
			desc = court_position_food_tasters_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

executioner_prestige_salary_value = {
	value = minor_court_position_prestige_salary # Update X_salary_tooltip if script_value is changed
	# Set to 0 with Dynasty Perk Inner Circle
	if = {
		limit = { court_position_inner_circle_salary_trigger = { POS = executioner } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change
	# Set to 0 with Special Operations Training
	if = {
		limit = { 
			has_game_rule = sas_salary_free
			scope:liege = { house ?= { has_house_modifier = sas_special_operations_training_house_modifier_free } } 
		}
		multiply = {
			value = 0
			desc = special_operations_training_court_position_modifier
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# SAS Change End
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = executioner
				LIEGE = scope:liege
			}
		}
		multiply = {
			value = 0.5
			desc = obligation_hook_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved salary
	if = {
		limit = {
			court_position_halved_salary_trigger = { POS = executioner }
		}
		multiply = {
			value = 0.5
			desc = court_position_halved_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Increased salary
	if = {
		limit = {
			court_position_increased_salary_trigger = { POS = executioner }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	#You're working with LAAMPS now
	if = {
		limit = { 
			scope:liege ?= { government_has_flag = government_is_landless_adventurer }
		}
		multiply = {
			value = 0
			desc = court_position_laamps_free
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}