Resolve the faction/Affiliation an item draws its standing from, from its
associated-affiliation shortcode (assocAffiliationCode).
Some Mystical Abilities are associated with a particular faction — a religion,
an arcane or alchemical school, an ancestor/totem/spirit — whose membership
confers an available area, level, circle, or capability separate from the
activating skill's own mastery level. That association is recorded as a
shortcode and resolved here by looking the Affiliation up on the same actor,
exactly as resolveAssocSkill resolves the activating skill.
The result is undefined when the actor is unknown, the code is blank, or no
Affiliation with that shortcode is embedded on the actor. Returning
undefined rather than an unchecked cast keeps callers honest: a blank or
unmatched code must not masquerade as a present Affiliation.
Resolve the faction/Affiliation an item draws its standing from, from its associated-affiliation shortcode (
assocAffiliationCode).Some Mystical Abilities are associated with a particular faction — a religion, an arcane or alchemical school, an ancestor/totem/spirit — whose membership confers an available area, level, circle, or capability separate from the activating skill's own mastery level. That association is recorded as a shortcode and resolved here by looking the Affiliation up on the same actor, exactly as resolveAssocSkill resolves the activating skill.
The result is
undefinedwhen the actor is unknown, the code is blank, or no Affiliation with that shortcode is embedded on the actor. Returningundefinedrather than an unchecked cast keeps callers honest: a blank or unmatched code must not masquerade as a present Affiliation.