mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
display only class subclasses on character creation
Fixes #715 This PR fixes the issue where all subclasses are displayed in the compendium browser by allowing a fixed set of items as part of the presets passed to the ItemBrowser. Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
parent
85982bac8c
commit
a853f150be
2 changed files with 19 additions and 10 deletions
|
|
@ -511,6 +511,10 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
|||
'system.domain': { key: 'system.domain', value: this.setup.class?.system.domains ?? null }
|
||||
};
|
||||
|
||||
if (type === 'subclasses') {
|
||||
presets.items = this.setup.class?.system.subclasses ?? null;
|
||||
}
|
||||
|
||||
return (this.itemBrowser = await new ItemBrowser({ presets }).render({ force: true }));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue