This commit is contained in:
WBHarry 2026-03-09 14:18:27 +01:00
parent 708056713b
commit 0e3f2fe632
11 changed files with 51 additions and 99 deletions

View file

@ -53,14 +53,14 @@ export default class DHArmor extends AttachableItem {
}
/**@inheritdoc */
async getDescriptionData() {
async getDescriptionData({ inCompendium }) {
const baseDescription = this.description;
const allFeatures = CONFIG.DH.ITEM.allArmorFeatures();
const features = this.armorFeatures.map(x => allFeatures[x.value]).filter(x => x);
const prefix = await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/sheets/items/armor/description.hbs',
{ item: this.parent, features }
{ item: this.parent, inCompendium, features }
);
return { prefix, value: baseDescription, suffix: null };