fix: multiple bug fixes - infinite loop crash, enchant tick handlers, discipline crash, Plasma symbol, desync
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m24s
- #236: Fix Climb the Spire React #185 infinite loop - removed redundant set() in processCombatTick that caused double Zustand writes per tick - #235: Add enchanting design/prepare/apply tick handlers - extracted to pipelines/enchanting-tick.ts - #235: Fix startApplying not setting currentAction to 'enchant' - #243: Guard discipline store against undefined activeIds/processedPerks from corrupted persisted state - #245: Change Plasma symbol from ⚡ (conflicts with Lightning) to 🔴 - #241: Fix combat store maxFloorReached desync - initialize to 0, reset on exitSpireMode - #239: Fix EffectSelector not rendering when unlockedEffects is empty (fresh game) - Created pipelines/enchanting-tick.ts to keep gameStore.ts under 400 lines
This commit is contained in:
@@ -127,13 +127,17 @@ export const useCraftingStore = create<CraftingStore>()(
|
||||
// Enchantment application actions
|
||||
startApplying: (equipmentInstanceId, designId) => {
|
||||
const currentAction = useCombatStore.getState().currentAction;
|
||||
return ApplicationActions.startApplying(
|
||||
const result = ApplicationActions.startApplying(
|
||||
equipmentInstanceId,
|
||||
designId,
|
||||
get,
|
||||
set as unknown as (partial: Partial<CraftingState>) => void,
|
||||
currentAction
|
||||
);
|
||||
if (result) {
|
||||
useCombatStore.setState({ currentAction: 'enchant' });
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
||||
pauseApplication: () => {
|
||||
|
||||
Reference in New Issue
Block a user