mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
.
This commit is contained in:
parent
0bb20b2ddc
commit
d01965e5b9
20 changed files with 146 additions and 67 deletions
|
|
@ -14,7 +14,7 @@ export default class ClassSheet extends DHBaseItemSheet {
|
|||
tagifyConfigs: [
|
||||
{
|
||||
selector: '.domain-input',
|
||||
options: () => CONFIG.DH.DOMAIN.domains,
|
||||
options: () => CONFIG.DH.DOMAIN.orderedDomains(),
|
||||
callback: ClassSheet.#onDomainSelect,
|
||||
tagifyOptions: {
|
||||
maxTags: () => game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).maxDomains
|
||||
|
|
|
|||
|
|
@ -34,4 +34,12 @@ export default class DomainCardSheet extends DHBaseItemSheet {
|
|||
scrollable: ['.effects']
|
||||
}
|
||||
};
|
||||
|
||||
async _prepareContext(options) {
|
||||
const context = await super._prepareContext(options);
|
||||
context.domain = CONFIG.DH.DOMAIN.allDomains()[this.document.system.domain];
|
||||
context.domainChoices = CONFIG.DH.DOMAIN.orderedDomains();
|
||||
|
||||
return context;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue