From 689a9ec2ff4d70a3cdd4214645363c484bbfa83a Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 26 Apr 2026 18:37:19 +0200 Subject: [PATCH] refactor: update ikonis features injection to use array-based storage instead of object assignment --- scripts/ikonis-data.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ikonis-data.js b/scripts/ikonis-data.js index 030f91f..ee320c5 100644 --- a/scripts/ikonis-data.js +++ b/scripts/ikonis-data.js @@ -204,18 +204,18 @@ export function patchDhCharacter(DhCharacter) { const originalSheetLists = descriptor.get; Object.defineProperty(DhCharacter.prototype, 'sheetLists', { get: function() { - const lists = originalSheetLists.call(this); - if (!this.parent) return lists; + const lists = originalSheetLists.call(this); // This is an Array + if (!this.parent || !Array.isArray(lists)) return lists; const ikonisFeatures = _injectIkonisFeatures(this.parent); if (ikonisFeatures.length > 0) { - if (!lists.features) lists.features = {}; - lists.features["Ikonis Augments"] = { + // Add our custom category to the end of the lists array + lists.push({ title: "Ikonis Augments", type: "ikonis", values: ikonisFeatures - }; + }); } return lists;