Fix: Add missing startCraftingEquipment and cancelEquipmentCrafting actions to craftingStore
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m37s

- Added startCraftingEquipment action that validates and initializes equipment crafting
- Added cancelEquipmentCrafting action that cancels crafting and refunds mana
- Used CraftingEquipment functions directly instead of deprecated wrapper actions
- Updated craftingStore imports to include useManaStore and useUIStore
- Fixed crafting/index.tsx barrel file export (removed non-existent type exports)
- Fixed syntax errors in craftingStore.ts (missing commas in function params)

Fixes issue where EquipmentCrafter component couldn't find these actions on craftingStore.
This commit is contained in:
2026-05-06 10:58:58 +02:00
parent a5ff32cb91
commit 17b3571a18
3 changed files with 69 additions and 24 deletions
@@ -1,8 +1,13 @@
// ─── Equipment Crafting Actions ────────────────────────────────────────────
// Note: The main implementation is now in craftingStore.ts
// These wrappers are kept for backward compatibility but are no longer used directly
import type { GameState } from '../types';
import * as CraftingEquipment from '../crafting-equipment';
// Wrapper functions kept for backward compatibility
// The actual implementation is in craftingStore.ts using CraftingEquipment functions directly
export function startCraftingEquipment(
blueprintId: string,
get: () => GameState,