fix: conditionally render description tags and update augment data structure and effects
This commit is contained in:
parent
bbe8da130e
commit
99810cbf5e
2 changed files with 13 additions and 9 deletions
|
|
@ -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 || []
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue