Fix: Add missing startCraftingEquipment and cancelEquipmentCrafting actions to craftingStore
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m37s
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user