feat: update for v10
This commit is contained in:
parent
6277e27056
commit
f25b46a226
63 changed files with 41349 additions and 24332 deletions
|
@ -23,15 +23,15 @@ async function migrate() {
|
|||
/** @type {import("./migrationHelpers").ItemUpdateDataGetter} */
|
||||
function getItemUpdateData(itemData) {
|
||||
if (itemData.type !== "spell") return;
|
||||
const spellCategory = itemData.data?.spellCategory;
|
||||
const spellCategory = itemData.system?.spellCategory;
|
||||
const spellGroups = migrateSpellCategory(spellCategory);
|
||||
|
||||
// @ts-expect-error bonus is removed with this migration
|
||||
const bonus = itemData.data?.bonus;
|
||||
const bonus = itemData.system?.bonus;
|
||||
const spellModifier = migrateBonus(bonus);
|
||||
|
||||
const updateData = {
|
||||
data: {
|
||||
system: {
|
||||
spellGroups,
|
||||
"-=spellCategory": null,
|
||||
spellModifier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue