• Find an Item by its system shortcode, searching the world items first and then the Item compendiums, and return its create-data (toObject()) ready to be created as an embedded item — or undefined if none matches.

    Lets the logic layer resolve a template item referenced only by shortcode (e.g. an affliction's outcomeTrauma) without reaching into game.items / game.packs directly.

    Parameters

    • shortcode: string

      The system.shortcode to match.

    • Optionaltype: string

      When given, only match items of this type (e.g. "skill"), so a shortcode shared across item kinds resolves to the intended one.

    Returns Promise<PlainObject | undefined>

    The matching item's create-data, or undefined.