Body, Mind & Soul — API Reference
    Preparing search index...

    Function importLegacyDecks

    • Import decks from the legacy deckbuilder JSON format.

      Usage (from browser console): const json = await fetch("systems/body-mind-and-soul/card-dump/deckbuilder-card-dump.json").then(r => r.json()); await game.bms.importLegacyDecks(json);

      Or pass a subset: await game.bms.importLegacyDecks(json.filter(d => d.name === "Standard"));

      Parameters

      • deckData: object[]

        Array of legacy deck objects

      • Optionaloptions: { folder?: string } = {}
        • Optionalfolder?: string

          Folder name to place imported decks in (created if missing)

      Returns Promise<Cards[]>

      The created Foundry Cards documents