From 99810cbf5e940016de4a002e29142058afd13bd3 Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 26 Apr 2026 20:07:16 +0200 Subject: [PATCH] fix: conditionally render description tags and update augment data structure and effects --- scripts/augments.js | 18 +++++++++++------- scripts/ikonis-data.js | 4 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/scripts/augments.js b/scripts/augments.js index 4a4f62d..47023e9 100644 --- a/scripts/augments.js +++ b/scripts/augments.js @@ -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: "" }, diff --git a/scripts/ikonis-data.js b/scripts/ikonis-data.js index 9b77914..9f011fa 100644 --- a/scripts/ikonis-data.js +++ b/scripts/ikonis-data.js @@ -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: `

${aug.effect}

${aug.cost}

`, + description: aug.cost ? `

${aug.effect}

${aug.cost}

` : `

${aug.effect}

`, 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: `

${aug.effect}

${aug.cost}

`, + description: aug.cost ? `

${aug.effect}

${aug.cost}

` : `

${aug.effect}

`, actions: aug.actions || {}, effects: aug.effects || [] };