mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 04:01:06 +01:00
Finished token implementation
This commit is contained in:
parent
3b237a223f
commit
809255ba79
7 changed files with 466 additions and 34 deletions
|
|
@ -427,10 +427,7 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
|
||||
static async resetTokenSizes() {
|
||||
await this.settings.updateSource({
|
||||
tokenSizes: Object.values(this.settings.schema.fields.tokenSizes.fields).reduce(
|
||||
(acc, field) => ({ ...acc, [field.name]: field.initial }),
|
||||
{}
|
||||
)
|
||||
tokenSizes: this.settings.schema.fields.tokenSizes.initial
|
||||
});
|
||||
|
||||
this.render();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue