Task 2: ActionButtons rework - remove manual selection, auto-transition to Meditate

This commit is contained in:
Refactoring Agent
2026-04-26 18:49:50 +02:00
parent b10d92b7ae
commit 313aa334a9
3 changed files with 19 additions and 6 deletions
+3
View File
@@ -785,9 +785,12 @@ export function processCraftingTick(
created: Date.now(),
};
// If the first design slot is also null, transition to meditate
const shouldTransitionToMeditate = !state.designProgress;
updates = {
...updates,
designProgress2: null,
currentAction: shouldTransitionToMeditate ? 'meditate' : state.currentAction,
enchantmentDesigns: [...state.enchantmentDesigns, completedDesign],
log: [`✅ Enchantment design "${dp.name}" complete! (2nd slot)`, ...log],
};