From 65b0f961e54fe0cf24ec58ef9c3244e49ea030d9 Mon Sep 17 00:00:00 2001 From: Refactoring Agent <[email protected]> Date: Sat, 25 Apr 2026 19:09:40 +0200 Subject: [PATCH] Task 2 progress: Remove Transference from LootTab essence list, delete Ascension skills --- src/components/game/LootInventory.tsx | 3 ++- src/lib/game/constants/skills.ts | 5 ----- src/lib/game/utils.ts | 5 ----- 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100755 src/lib/game/utils.ts diff --git a/src/components/game/LootInventory.tsx b/src/components/game/LootInventory.tsx index b742200..ae432fc 100755 --- a/src/components/game/LootInventory.tsx +++ b/src/components/game/LootInventory.tsx @@ -72,7 +72,7 @@ export function LootInventoryDisplay({ // Count items const materialCount = Object.values(inventory.materials).reduce((a, b) => a + b, 0); - const essenceCount = elements ? Object.values(elements).reduce((a, e) => a + e.current, 0) : 0; + const essenceCount = elements ? Object.entries(elements).reduce((a, [id, e]) => id === 'transference' ? a : a + e.current, 0) : 0; const blueprintCount = inventory.blueprints.length; const equipmentCount = Object.keys(equipmentInstances).length; const totalItems = materialCount + blueprintCount + equipmentCount; @@ -108,6 +108,7 @@ export function LootInventoryDisplay({ ? Object.entries(elements) .filter(([id, state]) => { if (!state.unlocked || state.current <= 0) return false; + if (id === 'transference') return false; // Transference is not loot if (searchTerm && !ELEMENTS[id]?.name.toLowerCase().includes(searchTerm.toLowerCase())) return false; return true; }) diff --git a/src/lib/game/constants/skills.ts b/src/lib/game/constants/skills.ts index ed96578..a079ea5 100644 --- a/src/lib/game/constants/skills.ts +++ b/src/lib/game/constants/skills.ts @@ -104,10 +104,6 @@ export const SKILLS_DEF: Record = { deepTrance: { name: "Deep Trance", desc: "Extend meditation bonus to 6hrs for 3x", cat: "research", max: 1, base: 900, studyTime: 48, req: { meditation: 1 } }, voidMeditation:{ name: "Void Meditation", desc: "Extend meditation bonus to 8hrs for 5x", cat: "research", max: 1, base: 1500, studyTime: 72, req: { deepTrance: 1 } }, - // Ascension Skills (very long study, powerful effects) - Require any attunement level 5+ - insightHarvest: { name: "Insight Harvest", desc: "+10% insight gain", cat: "ascension", max: 5, base: 1000, studyTime: 20, attunementReq: { enchanter: 1 } }, - guardianBane: { name: "Guardian Bane", desc: "+20% dmg vs guardians", cat: "ascension", max: 3, base: 1500, studyTime: 30, attunementReq: { invoker: 1 } }, - // ═══════════════════════════════════════════════════════════════════════════ // INVOKER SKILLS - Require Invoker attunement // ═══════════════════════════════════════════════════════════════════════════ @@ -194,7 +190,6 @@ export const SKILL_CATEGORIES = [ { id: 'mana', name: 'Mana', icon: '💧', attunement: null }, { id: 'study', name: 'Study', icon: '📚', attunement: null }, { id: 'research', name: 'Research', icon: '🔮', attunement: null }, - { id: 'ascension', name: 'Ascension', icon: '⭐', attunement: null }, // Enchanter attunement (Right Hand) { id: 'enchant', name: 'Enchanting', icon: '✨', attunement: 'enchanter' }, diff --git a/src/lib/game/utils.ts b/src/lib/game/utils.ts deleted file mode 100755 index 412ba2e..0000000 --- a/src/lib/game/utils.ts +++ /dev/null @@ -1,5 +0,0 @@ -// ─── Game Utilities - Re-export from focused modules ─────────────────────── -// This file is kept for backward compatibility -// All utilities have been moved to focused modules in the utils/ directory - -export * from './utils';