﻿# Returns whether or not a given character supports regula council positions
# on their council.
# scope = character
has_regula_council = {
	has_trait = magister_trait_group
}

# Returns whether a regula council position is valid but empty in the given
# character's court.
# scope = character
has_regula_council_position_empty = {
	has_regula_council = yes
	OR = {
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_harem_manager
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_raid_leader
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_high_priestess
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_inquisitor
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_contubernalis_supervisor
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_chief_ambassador
			}
		}
	}
}

# Returns whether a standard council position is empty in the given character's
# court.
# scope = character
has_default_council_position_empty = {
	OR = {
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_chancellor
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_steward
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_marshal
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_spymaster
			}
		}
		NOT = {
			any_normal_councillor = {
				has_council_position = councillor_court_chaplain
			}
		}
	}
}
