mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Updated compendium YML
This commit is contained in:
parent
683907c62b
commit
fa0fa1f9ee
330 changed files with 259 additions and 624 deletions
|
|
@ -106,11 +106,11 @@ export async function runMigrations() {
|
|||
}
|
||||
const documents = await pack.getDocuments();
|
||||
|
||||
compendiumItems.push(...documents.filter(x => x.system.metadata.hasActions));
|
||||
compendiumItems.push(...documents.filter(x => x.system?.metadata?.hasActions));
|
||||
compendiumItems.push(
|
||||
...documents
|
||||
.filter(x => x.items)
|
||||
.flatMap(actor => actor.items.filter(x => x.system.metadata.hasActions))
|
||||
.flatMap(actor => actor.items.filter(x => x.system?.metadata?.hasActions))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ export async function runMigrations() {
|
|||
return {
|
||||
...rest,
|
||||
key: 'resource',
|
||||
itemId: key
|
||||
itemId: cost.key
|
||||
};
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue