Resolve the skill governing an item or strike mode from its associated-skill
shortcode (assocSkillCode).
Several entities carry an assocSkillCode and need the mastery level of the
named skill: a weapon's and a combat technique's strike modes (Atk/Blk/CX), a
mystical ability, and a mystery. They all resolve it the same way — look the
skill up on the wielding actor by shortcode — so that lookup lives here once.
The result is undefined when the actor is unknown, the code is blank, or no
skill with that shortcode is embedded on the actor. Returning undefined
rather than an unchecked getItemLogic(...) as SkillLogic keeps callers
honest: a blank or unmatched code must not masquerade as a present skill.
Resolve the skill governing an item or strike mode from its associated-skill shortcode (
assocSkillCode).Several entities carry an
assocSkillCodeand need the mastery level of the named skill: a weapon's and a combat technique's strike modes (Atk/Blk/CX), a mystical ability, and a mystery. They all resolve it the same way — look the skill up on the wielding actor by shortcode — so that lookup lives here once.The result is
undefinedwhen the actor is unknown, the code is blank, or no skill with that shortcode is embedded on the actor. Returningundefinedrather than an uncheckedgetItemLogic(...) as SkillLogickeeps callers honest: a blank or unmatched code must not masquerade as a present skill.