From a421950b3e966a925af0f273a2343912eb2fff90 Mon Sep 17 00:00:00 2001 From: cosmo Date: Sun, 26 Apr 2026 19:04:02 +0200 Subject: [PATCH] remove bonded feature logic and unused imports from ikonis-sheet.js --- scripts/ikonis-sheet.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/ikonis-sheet.js b/scripts/ikonis-sheet.js index 684a9e8..7de8db7 100644 --- a/scripts/ikonis-sheet.js +++ b/scripts/ikonis-sheet.js @@ -1,4 +1,4 @@ -import { getAugments, getSlotCount, getAttachedFeature } from './ikonis-data.js'; +import { getAugments, getSlotCount } from './ikonis-data.js'; /** * Patches the Daggerheart Weapon sheet to include the Ikonis tab. @@ -26,8 +26,6 @@ export function patchIkonisSheet() { } // 2. Add the Motherboard Part to PARTS - // We REMOVE the 'tab' property here to prevent Foundry from automatically hiding it - // instead, we will handle visibility in the template. if (!Weapon.PARTS.motherboard) { Weapon.PARTS.motherboard = { template: 'modules/dh-ikonis/templates/ikonis-motherboard.hbs', @@ -56,17 +54,9 @@ export function patchIkonisSheet() { processedAugments.push({ ...base, installed: true }); } - const bondedUuid = doc.getFlag('dh-ikonis', 'bondedFeatureUuid') || game.settings.get('dh-ikonis', 'defaultBondedUuid'); - const bonded = { enabled: true, feature: null }; - if (bondedUuid) { - const item = await getAttachedFeature(bondedUuid); - if (item) bonded.feature = { name: item.name, img: item.img, uuid: item.uuid }; - } - context.ikonis = { enabled: true, augments: processedAugments, - bonded: bonded, isGM: game.user?.isGM || false };