From aba1265cbc4a4ac433201133792003617a88b804 Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Thu, 28 May 2026 12:18:52 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20combat=20action=20guard=20from?= =?UTF-8?q?=20craftMaterial=20=E2=80=94=20material=20crafting=20is=20insta?= =?UTF-8?q?nt=20and=20should=20work=20in=20any=20combat=20state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/game/crafting-actions/crafting-material-actions.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/game/crafting-actions/crafting-material-actions.ts b/src/lib/game/crafting-actions/crafting-material-actions.ts index b6bc96f..92a5ade 100644 --- a/src/lib/game/crafting-actions/crafting-material-actions.ts +++ b/src/lib/game/crafting-actions/crafting-material-actions.ts @@ -2,7 +2,6 @@ // Separate file to avoid exceeding the 400-line limit in craftingStore.ts. import { useManaStore } from '../stores/manaStore'; -import { useCombatStore } from '../stores/combatStore'; import { useUIStore } from '../stores/uiStore'; import { getFabricatorRecipe, @@ -19,9 +18,6 @@ export function craftMaterial( recipeId: string, lootInventoryMaterials: Record, ): CraftMaterialResult { - const currentAction = useCombatStore.getState().currentAction; - if (currentAction !== 'meditate') return { success: false }; - const recipe = getFabricatorRecipe(recipeId); if (!recipe || recipe.recipeType !== 'material') return { success: false }; if (!recipe.resultMaterial || !recipe.resultAmount) return { success: false };