Changed so that the ItemBrowser can take in preset.items

This commit is contained in:
WBHarry 2026-05-04 00:31:36 +02:00
parent 533421abba
commit 46af7ad228
2 changed files with 63 additions and 66 deletions

View file

@ -440,9 +440,7 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
};
if (type === 'subclasses')
presets.filter = {
'system.linkedClass': { key: 'system.linkedClass', value: this.setup.class?.uuid }
};
presets.items = await (await foundry.utils.fromUuid(this.setup.class.uuid)).system.fetchSubclasses();
if (equipment.includes(type))
presets.filter = {