fix: conditionally render description tags and update augment data structure and effects

This commit is contained in:
CPTN Cosmo 2026-04-26 20:07:16 +02:00
parent bbe8da130e
commit 99810cbf5e
2 changed files with 13 additions and 9 deletions

View file

@ -14,7 +14,7 @@ export function registerIkonisFeatures() {
CONFIG.DH.ITEM.weaponFeatures[nativeId] = {
name: `Ikonis: ${aug.name}`,
img: aug.img || "systems/daggerheart/assets/icons/documents/items/chip.svg",
description: `<p>${aug.effect}</p><p>${aug.cost}</p>`,
description: aug.cost ? `<p>${aug.effect}</p><p>${aug.cost}</p>` : `<p>${aug.effect}</p>`,
actions: aug.actions || {},
effects: aug.effects || []
};
@ -55,7 +55,7 @@ export async function seedIkonisHomebrew() {
homebrew.itemFeatures.weaponFeatures[nativeId] = {
name: `Ikonis: ${aug.name}`,
img: aug.img || "systems/daggerheart/assets/icons/documents/items/chip.svg",
description: `<p>${aug.effect}</p><p>${aug.cost}</p>`,
description: aug.cost ? `<p>${aug.effect}</p><p>${aug.cost}</p>` : `<p>${aug.effect}</p>`,
actions: aug.actions || {},
effects: aug.effects || []
};