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"));
Array of legacy deck objects
Optional
Folder name to place imported decks in (created if missing)
The created Foundry Cards documents
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"));