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

View file

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