mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 02:49:55 +02:00
Create migration handler
This commit is contained in:
parent
17c09c76b0
commit
01a6ce7d78
3 changed files with 88 additions and 40 deletions
|
|
@ -1,7 +1,15 @@
|
|||
export class Migration_2_5_2 {
|
||||
version = '2.5.2';
|
||||
import { MigrationHandlerBase } from './base.mjs';
|
||||
|
||||
async updateEffect(effectSource, item) {
|
||||
export class Migration_2_5_2 extends MigrationHandlerBase {
|
||||
version = '2.5.2';
|
||||
documentNames = ['Actor', 'Item'];
|
||||
|
||||
/** @protected */
|
||||
_preMigrate() {
|
||||
|
||||
}
|
||||
|
||||
async updateEffectSource(effectSource, item) {
|
||||
let shouldUpdate = false;
|
||||
const newChanges = [];
|
||||
const srdItem = item?._stats.compendiumSource ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue