• Build shortcode-reference options from an actor's embedded items of a given kind — the primary source for the widget when the referencing item is embedded on an actor. Reads actorLogic.logicTypes[itemKind], mapping each item logic to {shortcode, name} before delegating to buildRefOptions.

    Parameters

    • actorLogic: undefined | null | SohlActorLogic<any>

      The owning actor's logic (or null/undefined for a world/pack item, which yields an empty list — the sheet then falls back to free-text entry).

    • itemKind: ItemKind

      The kind of item to list (e.g. ITEM_KIND.SKILL).

    • Optionalselected: null | string

      The currently-stored shortcode, if any.

    • Optionalexclude: null | string

      A shortcode to omit (e.g. the field owner's own shortcode).

    Returns ShortcodeRefOption[]

    The options, sorted by label, with any dangling selection appended.