This commit is contained in:
WBHarry 2026-01-10 15:48:40 +01:00
parent 9d353fe54a
commit 4a027e8591
8 changed files with 45 additions and 16 deletions

View file

@ -55,7 +55,7 @@ export default class DHArmor extends AttachableItem {
}
/**@inheritdoc */
async getDescriptionData(large) {
async getDescriptionData(options = {}) {
const baseDescription = await super.getDescriptionData();
const allFeatures = CONFIG.DH.ITEM.allArmorFeatures();
const features = this.armorFeatures.map(x => allFeatures[x.value]);
@ -63,7 +63,7 @@ export default class DHArmor extends AttachableItem {
const prepend = await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/sheets/items/armor/description.hbs',
{ features, large }
{ features, headerStyle: options.headerStyle }
);
const mainDescription = baseDescription ? `\n<hr>\n${baseDescription}` : '';