Add migration for slayer points
This commit is contained in:
parent
8cf6db2ba5
commit
a2e2aea78b
1 changed files with 8 additions and 1 deletions
|
@ -60,7 +60,14 @@ function getActorUpdateData(actorData: DeepPartial<Actor.Data>) {
|
|||
return itemData;
|
||||
}
|
||||
});
|
||||
return hasItemUpdates ? { items } : undefined;
|
||||
const updateData: Record<string, unknown> = {};
|
||||
if (actorData.type === "character") {
|
||||
updateData["data.slayerPoints"] = { value: 0 };
|
||||
}
|
||||
if (hasItemUpdates) {
|
||||
updateData["items"] = items;
|
||||
}
|
||||
return updateData;
|
||||
}
|
||||
|
||||
async function migrateScenes() {
|
||||
|
|
Loading…
Reference in a new issue