Lien vers Items monde/compendium
This commit is contained in:
@ -87,6 +87,11 @@ export class SystemCompendiums extends FormApplication {
|
||||
return items;
|
||||
}
|
||||
|
||||
static async loadDocument(document) {
|
||||
const pack = game.packs.get(document.pack);
|
||||
return await pack.getDocument(document.id ?? document._id);
|
||||
}
|
||||
|
||||
static async getItems(compendium, itemType = undefined) {
|
||||
const items = await SystemCompendiums.getPackContent(compendium, 'Item');
|
||||
return (itemType ? items.filter(it => it.type == itemType) : items);
|
||||
|
Reference in New Issue
Block a user