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
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m59s
This commit is contained in:
@@ -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' });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user