This commit is contained in:
WBHarry 2026-02-09 19:38:29 +01:00
parent 514e0260eb
commit fb9f89fa9d
8 changed files with 127 additions and 57 deletions

View file

@ -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();
}

View file

@ -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;
}