From 608ba09a94bb6f275a11e9c54ba4086f4211ab52 Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 26 Apr 2026 19:12:35 +0200 Subject: [PATCH 1/2] feat: parse cost and effect lines separately from feature descriptions in ikonis-data.js --- scripts/ikonis-data.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/ikonis-data.js b/scripts/ikonis-data.js index 51381db..c0def78 100644 --- a/scripts/ikonis-data.js +++ b/scripts/ikonis-data.js @@ -25,12 +25,18 @@ export function getAugments() { for (const [id, feature] of Object.entries(allFeatures)) { const name = feature.label || feature.name || ""; if (name.startsWith("Ikonis:")) { + const desc = feature.description ? feature.description.replace(/<[^>]*>?/gm, '').trim() : ""; + const lines = desc.split(/\n|\r/).map(l => l.trim()).filter(l => l.length > 0); + + const costLine = lines.find(l => l.toLowerCase().startsWith("cost:")); + const effectLine = lines.find(l => !l.toLowerCase().startsWith("cost:")); + augments.push({ id: id, name: name.replace("Ikonis:", "").trim(), fullName: name, - effect: feature.description ? feature.description.replace(/<[^>]*>?/gm, '').substring(0, 200).trim() : "Native Feature", - cost: "" // Cost is included in the description + effect: effectLine || "Native Feature", + cost: costLine || "" }); } } From c32ebdda397e99654237b852ee1ba4bcce293b1e Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 26 Apr 2026 19:12:42 +0200 Subject: [PATCH 2/2] fix: update augment card layout by adjusting height and adding cost display --- templates/ikonis-motherboard.hbs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/ikonis-motherboard.hbs b/templates/ikonis-motherboard.hbs index 793d6b6..c2596b4 100644 --- a/templates/ikonis-motherboard.hbs +++ b/templates/ikonis-motherboard.hbs @@ -28,13 +28,14 @@
{{#each ikonis.augments as |aug|}} -
+
{{aug.name}}
-
- {{aug.effect}} +
+
{{aug.effect}}
+
{{aug.cost}}
{{else}}