Remove Temporal Memory skill, fix unimplemented crafting effects
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 27s

- Remove Temporal Memory skill from SKILLS_DEF (functionality should only be purchased with insight)
- Remove temporalMemory references from all store files (timeSlice, prestigeSlice, store, gameStore)
- Update tests to remove Temporal Memory test cases
- Fix TODO items in craftingSlice.ts:
  - Add skill caching for calculateApplicationTime
  - Use getEnchantEfficiencyBonus for efficiency calculation
- Transference mana type verified and working correctly
This commit is contained in:
Z User
2026-03-28 08:29:21 +00:00
parent 17c6d5652d
commit a64a412f2c
9 changed files with 61 additions and 72 deletions

View File

@@ -55,15 +55,6 @@ export const createPrestigeSlice = (
const insightGained = state.loopInsight || calcInsight(state);
const total = state.insight + insightGained;
// Keep some spells through temporal memory
const spellsToKeep: string[] = [];
if (state.skills.temporalMemory) {
const learnedSpells = Object.entries(state.spells)
.filter(([, s]) => s.learned)
.map(([id]) => id);
spellsToKeep.push(...learnedSpells.slice(0, state.skills.temporalMemory));
}
// Reset to initial state with insight carried over
const pu = state.prestigeUpgrades;
const startFloor = 1 + (pu.spireKey || 0) * 2;
@@ -79,17 +70,14 @@ export const createPrestigeSlice = (
};
});
// Reset spells
// Reset spells - always start with Mana Bolt
const spells: Record<string, { learned: boolean; level: number; studyProgress: number }> = {
manaBolt: { learned: true, level: 1, studyProgress: 0 },
};
spellsToKeep.forEach(spellId => {
spells[spellId] = { learned: true, level: 1, studyProgress: 0 };
});
// Add random starting spells from spell memory upgrade
// Add random starting spells from spell memory prestige upgrade (purchased with insight)
if (pu.spellMemory) {
const availableSpells = Object.keys(SPELLS_DEF).filter(s => s !== 'manaBolt' && !spellsToKeep.includes(s));
const availableSpells = Object.keys(SPELLS_DEF).filter(s => s !== 'manaBolt');
const shuffled = availableSpells.sort(() => Math.random() - 0.5);
for (let i = 0; i < Math.min(pu.spellMemory, shuffled.length); i++) {
spells[shuffled[i]] = { learned: true, level: 1, studyProgress: 0 };