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 || "" }); } } 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 @@