36 lines
2.6 KiB
Markdown
36 lines
2.6 KiB
Markdown
**Role:** You are an expert Next.js game developer.
|
|
**Project Context:** `/home/user/repos/Mana-Loop`
|
|
**Objective:** Execute a multi-system update covering UI reworks, state-machine logic, game balance, developer tools, and critical bug fixes.
|
|
|
|
### **1. Workflow & State Management (Priority)**
|
|
* **Initialization:** Check `docs/task2_progress.md` and `docs/task2.md` to identify current progress.
|
|
* **Tracking:** Use the `todo_list` tool. Document all actions in the `docs/` files.
|
|
* **Delegation:** Use sub-agents for modular tasks; commit and push changes incrementally.
|
|
|
|
### **2. Automation & State Logic**
|
|
* **ActionButtons Rework:**
|
|
* **Remove Manual Selection:** Remove buttons that allow players to manually choose their action.
|
|
* **Automatic Transition:** Automatically switch the state to **"Meditate"** whenever a Study or Crafting task finishes.
|
|
* **Status Display:** Replace buttons with a read-only "Current Activity" indicator.
|
|
* **Research Locking:** In the `SkillsTab`, prevent switching research topics while a study action is in progress.
|
|
|
|
### **3. Feature Reworks & UI**
|
|
* **SpireTab Overhaul:** * **"Climb the Spire":** Create an entry button navigating to a dedicated, locked "Spire Mode."
|
|
* **Exit Condition:** Player must "climb down" to exit.
|
|
* **Persistent UI:** Only `ManaDisplay` and `CalendarDisplay` remain. Display Spire info and Golems.
|
|
* **Equipment System:** Support **2-Handed Weapons**. Staves must block the offhand slot.
|
|
|
|
### **4. Developer & System Tools**
|
|
* **DebugTab Update:** Add **Invoker Debugging Buttons** to manually trigger/force **Pacts with different Guardians**.
|
|
* **System Integrity:** Fix the **"Show Component Names"** debug option. Following the recent refactor, ensure this works for **all** components. Check for missing `displayName` properties or wrappers that might be masking component identities in the DOM/DevTools.
|
|
|
|
### **5. Bug Fixes & Refinement**
|
|
* **CRITICAL: Mana Well Bug:** Fix the "Deep Basin" upgrade logic. Currently, choosing this upgrade resets max mana capacity to 120 instead of the expected 600. Ensure the upgrade correctly calculates or adds to the base capacity rather than overwriting it with a flat value.
|
|
* **Combat UI:** Fix the "Casting Bar" progress animation; ensure the progress bar fills correctly.
|
|
* **LootTab:** Remove "Transference" mana from Essence/Item lists.
|
|
* **Crafting:** Disable "Prepare" for non-enchanted items; limit "Design" to gear types currently owned.
|
|
|
|
### **6. Game Balance & Progression**
|
|
* **SkillsTab:** Delete all "Ascension" skills (Insight gain is prestige-only).
|
|
* **StatsTab:** Lock Fire, Water, Air, and Earth at start. Only "Transference" is unlocked initially.
|