﻿grand_consort_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 = grand_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved with obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = grand_consort
				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 = grand_consort }
		}
		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 = grand_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
grand_consort_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 = grand_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = grand_consort
				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 = grand_consort }
		}
		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 = grand_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

# Other Four Consorts #
# Pure Consort #
pure_consort_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 = pure_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved with obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = pure_consort
				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 = pure_consort }
		}
		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 = pure_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
pure_consort_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 = pure_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = pure_consort
				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 = pure_consort }
		}
		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 = pure_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
# Virtuous Consort #
virtuous_consort_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 = virtuous_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved with obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = virtuous_consort
				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 = virtuous_consort }
		}
		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 = virtuous_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
virtuous_consort_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 = virtuous_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = virtuous_consort
				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 = virtuous_consort }
		}
		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 = virtuous_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
# Worthy Consort #
worthy_consort_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 = worthy_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved with obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = worthy_consort
				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 = worthy_consort }
		}
		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 = worthy_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}
worthy_consort_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 = worthy_consort } }
		multiply = {
			value = 0
			desc = inner_circle_salary_mod
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
	# Halved via obligation hook
	else_if = {
		limit = {
			court_position_obligation_hook_salary_trigger = {
				POS = worthy_consort
				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 = worthy_consort }
		}
		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 = worthy_consort }
		}
		multiply = {
			value = 1.5
			desc = court_position_increased_salary
			format = "BASE_VALUE_FORMAT_DECIMALS_MINUS_POSITIVE"
		}
	}
}

# Council Spouse #
council_scaled_by_liege_salary = {
	if = { # Minister building for the estate improves the gain
		limit = {
			liege.monthly_character_income > 0
		}
		multiply = liege.monthly_character_income
		multiply = 0.1
	}
	min = 0.03
}