fix: issues #221 #217 #225 #227 #224 #226 - crafting refunds, mana tracking, cancel slot, multi-element guardians, spell kill advance
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m59s

This commit is contained in:
2026-05-31 01:18:01 +02:00
parent e4f4b297e8
commit 6793461a9f
16 changed files with 263 additions and 63 deletions
+13 -4
View File
@@ -82,9 +82,18 @@ export const useCraftingStore = create<CraftingStore>()(
return true;
},
cancelDesign: () => {
cancelDesign: (slot?: 1 | 2) => {
const state = get();
if (state.designProgress) {
if (slot === 2) {
if (state.designProgress2) {
set({ designProgress2: null });
}
} else if (slot === 1) {
if (state.designProgress) {
set({ designProgress: null });
useCombatStore.setState({ currentAction: 'meditate' });
}
} else if (state.designProgress) {
set({ designProgress: null });
useCombatStore.setState({ currentAction: 'meditate' });
} else if (state.designProgress2) {
@@ -136,7 +145,7 @@ export const useCraftingStore = create<CraftingStore>()(
},
cancelApplication: () => {
ApplicationActions.cancelApplication(set as unknown as (partial: Partial<CraftingState>) => void);
ApplicationActions.cancelApplication(get, set as unknown as (partial: Partial<CraftingState>) => void);
useCombatStore.setState({ currentAction: 'meditate' });
},
@@ -169,7 +178,7 @@ export const useCraftingStore = create<CraftingStore>()(
},
cancelPreparation: () => {
PreparationActions.cancelPreparation(set);
PreparationActions.cancelPreparation(get, set);
useCombatStore.setState({ currentAction: 'meditate' });
},