﻿################################################################
# Ruler Reign Marker - script values
################################################################

# rrm_title_held_years
#   Scope: title
#   Returns: years the current holder has held this title.
#   Wraps the vanilla title-scope value `title_held_years` so it
#   can be read from GUI/loc via MakeScope.ScriptValue('...').
rrm_title_held_years = {
	add = title_held_years
}

# rrm_holder_gain_date_set
#   Scope: title
#   Returns: 1 if var:rrm_holder_gain_date is stamped on the
#   title, 0 otherwise. Used to pick between the exact-date and
#   the approximate-year fallback in tooltip rendering.
rrm_holder_gain_date_set = {
	if = {
		limit = { exists = var:rrm_holder_gain_date }
		add = 1
	}
}
