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

@ -3,7 +3,7 @@ export const DEFAULT_AUGMENTS = [
id: "bonded",
name: "Bonded",
effect: "Primary module for Ikonis hardware synchronization.",
cost: "Cost: None",
cost: "",
img: "icons/magic/control/debuff-energy-hold-blue-yellow.webp",
effects: [
{
@ -80,15 +80,19 @@ export const DEFAULT_AUGMENTS = [
_id: "IkonisGuardEffXX",
name: "Ikonis: Guard",
type: "base",
img: "icons/magic/fire/flame-burning-orange.webp",
img: "icons/equipment/chest/breastplate-metal-scaled-grey.webp",
system: {
changes: [
{
key: "system.damageType",
type: "override",
value: "fire",
priority: null,
phase: "initial"
type: "armor",
phase: "initial",
value: {
current: 0,
max: "1",
interaction: "none",
damageThresholds: null
},
priority: 20
}
],
duration: { description: "", type: "" },

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 || []
};