💡 Remove memory slot system and Memories section from PrestigeTab #122

Closed
opened 2026-05-22 13:20:55 +02:00 by Anexim · 2 comments
Owner

Request

The memory slot system (inscribing spells into a grimoire for the next loop) should be removed. This involves:

  1. Remove the Memories section from PrestigeTab.tsx (the MemoriesCard component and its usage)
  2. Remove the Deep Memory upgrade from constants/prestige.ts
  3. Remove memory-related state from prestigeStore.ts (memorySlots, memories, addMemory, removeMemory, clearMemories)
  4. Remove the Memory interface from types.ts
  5. Remove memorySlots display from StatsTab/LoopStatsSection.tsx
  6. Update tests that reference memory slots and deep memory

Files Involved

  • src/components/game/tabs/PrestigeTab.tsx — Remove MemoriesCard component and its usage
  • src/lib/game/constants/prestige.ts — Remove deepMemory entry
  • src/lib/game/stores/prestigeStore.ts — Remove memory-related state and actions
  • src/lib/game/stores/gameLoopActions.ts — Remove deepMemory reference in slot calculation
  • src/lib/game/types.ts — Remove Memory interface
  • src/components/game/tabs/StatsTab/LoopStatsSection.tsx — Remove memory slots display
  • src/lib/game/__tests__/store-actions-combat-prestige.test.ts — Remove memory-related tests
  • src/components/game/tabs/PrestigeTab.test.ts — Remove deepMemory from expected upgrades

Context

The memory slot system is fully wired in the store and UI but has no gameplay mechanic that populates memories — no code calls addMemory() outside of tests. The memories array is always empty in practice. Removing this system simplifies the Prestige tab and eliminates dead code.

## Request The memory slot system (inscribing spells into a grimoire for the next loop) should be removed. This involves: 1. **Remove the Memories section** from `PrestigeTab.tsx` (the `MemoriesCard` component and its usage) 2. **Remove the Deep Memory upgrade** from `constants/prestige.ts` 3. **Remove memory-related state** from `prestigeStore.ts` (`memorySlots`, `memories`, `addMemory`, `removeMemory`, `clearMemories`) 4. **Remove the `Memory` interface** from `types.ts` 5. **Remove `memorySlots` display** from `StatsTab/LoopStatsSection.tsx` 6. **Update tests** that reference memory slots and deep memory ## Files Involved - `src/components/game/tabs/PrestigeTab.tsx` — Remove `MemoriesCard` component and its usage - `src/lib/game/constants/prestige.ts` — Remove `deepMemory` entry - `src/lib/game/stores/prestigeStore.ts` — Remove memory-related state and actions - `src/lib/game/stores/gameLoopActions.ts` — Remove `deepMemory` reference in slot calculation - `src/lib/game/types.ts` — Remove `Memory` interface - `src/components/game/tabs/StatsTab/LoopStatsSection.tsx` — Remove memory slots display - `src/lib/game/__tests__/store-actions-combat-prestige.test.ts` — Remove memory-related tests - `src/components/game/tabs/PrestigeTab.test.ts` — Remove `deepMemory` from expected upgrades ## Context The memory slot system is fully wired in the store and UI but has no gameplay mechanic that populates memories — no code calls `addMemory()` outside of tests. The memories array is always empty in practice. Removing this system simplifies the Prestige tab and eliminates dead code.
Anexim added the ai:todo label 2026-05-22 13:20:55 +02:00
n8n-gitea was assigned by Anexim 2026-05-22 13:20:55 +02:00
Author
Owner

Starting work on #122 — removing the memory slot system and Memories section from PrestigeTab. Reading all affected files first.

Starting work on #122 — removing the memory slot system and Memories section from PrestigeTab. Reading all affected files first.
Author
Owner

#122 — Remove Memory Slot System — RESOLVED

Successfully removed the memory slot system across 9 files (11 files changed, 29 insertions, 151 deletions):

Source changes:

  • src/lib/game/constants/prestige.ts — Removed deepMemory upgrade entry
  • src/lib/game/types.ts — Removed Memory interface
  • src/lib/game/stores/prestigeStore.ts — Removed memorySlots, memories, addMemory, removeMemory, clearMemories state/actions; simplified resetPrestigeForNewLoop signature
  • src/lib/game/stores/gameLoopActions.ts — Removed deepMemory/memories references from resetPrestigeForNewLoop call
  • src/components/game/tabs/PrestigeTab.tsx — Removed MemoriesCard component and its usage; updated "memories" text references
  • src/components/game/tabs/StatsTab/LoopStatsSection.tsx — Removed memorySlots display stat

Test changes:

  • src/lib/game/__tests__/store-actions-combat-prestige.test.ts — Removed deepMemory test, addMemory/removeMemory/clearMemories tests, updated resetPrestigeForNewLoop test
  • src/components/game/tabs/PrestigeTab.test.ts — Removed deepMemory from expected IDs, updated count from 14→13
  • src/lib/game/__tests__/tick-integration.test.ts — Removed memorySlots/memories from prestige store reset

All 76 tests in affected test files pass. Commit: 25109c9

✅ **#122 — Remove Memory Slot System — RESOLVED** Successfully removed the memory slot system across 9 files (11 files changed, 29 insertions, 151 deletions): **Source changes:** - `src/lib/game/constants/prestige.ts` — Removed `deepMemory` upgrade entry - `src/lib/game/types.ts` — Removed `Memory` interface - `src/lib/game/stores/prestigeStore.ts` — Removed `memorySlots`, `memories`, `addMemory`, `removeMemory`, `clearMemories` state/actions; simplified `resetPrestigeForNewLoop` signature - `src/lib/game/stores/gameLoopActions.ts` — Removed `deepMemory`/memories references from `resetPrestigeForNewLoop` call - `src/components/game/tabs/PrestigeTab.tsx` — Removed `MemoriesCard` component and its usage; updated "memories" text references - `src/components/game/tabs/StatsTab/LoopStatsSection.tsx` — Removed `memorySlots` display stat **Test changes:** - `src/lib/game/__tests__/store-actions-combat-prestige.test.ts` — Removed deepMemory test, addMemory/removeMemory/clearMemories tests, updated resetPrestigeForNewLoop test - `src/components/game/tabs/PrestigeTab.test.ts` — Removed `deepMemory` from expected IDs, updated count from 14→13 - `src/lib/game/__tests__/tick-integration.test.ts` — Removed memorySlots/memories from prestige store reset All 76 tests in affected test files pass. Commit: `25109c9`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#122