mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
.
This commit is contained in:
parent
514e0260eb
commit
fb9f89fa9d
8 changed files with 127 additions and 57 deletions
|
|
@ -10,7 +10,6 @@ export default class ArmorActiveEffectConfig extends HandlebarsApplicationMixin(
|
|||
closeOnSubmit: false
|
||||
},
|
||||
actions: {
|
||||
addEffect: ArmorActiveEffectConfig.#addEffect,
|
||||
finish: ArmorActiveEffectConfig.#finish
|
||||
}
|
||||
};
|
||||
|
|
@ -54,11 +53,6 @@ export default class ArmorActiveEffectConfig extends HandlebarsApplicationMixin(
|
|||
this.render();
|
||||
}
|
||||
|
||||
static #addEffect() {
|
||||
this.document.update({ 'system.changes': [...this.document.system.changes, {}] });
|
||||
this.render();
|
||||
}
|
||||
|
||||
static #finish() {
|
||||
this.close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export default class ArmorSheet extends ItemAttachmentSheet(DHBaseItemSheet) {
|
|||
switch (partId) {
|
||||
case 'settings':
|
||||
context.features = this.document.system.armorFeatures.map(x => x.value);
|
||||
context.armorScore = this.document.system.armorEffect?.system.armorData?.max;
|
||||
context.armorScore = this.document.system.armorData.max;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue