diff --git a/docs/project-structure.txt b/docs/project-structure.txt
index bc9729c..619059c 100644
--- a/docs/project-structure.txt
+++ b/docs/project-structure.txt
@@ -459,11 +459,15 @@ Mana-Loop/
├── Caddyfile
├── Dockerfile
├── README.md
+├── add_debugname.py
├── bun.lock
├── bunfig.toml
├── components.json
├── docker-compose.yml
├── eslint.config.mjs
+├── fix_remaining.py
+├── fix_tabs.py
+├── fix_tabs2.py
├── next.config.ts
├── package-lock.json
├── package.json
diff --git a/src/components/game/debug/AttunementDebug.tsx b/src/components/game/debug/AttunementDebug.tsx
index d27a595..0d09dea 100644
--- a/src/components/game/debug/AttunementDebug.tsx
+++ b/src/components/game/debug/AttunementDebug.tsx
@@ -5,6 +5,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Sparkles, Unlock } from 'lucide-react';
import { ATTUNEMENTS_DEF } from '@/lib/game/data/attunements';
import { useAttunementStore } from '@/lib/game/stores';
+import { useManaStore } from '@/lib/game/stores';
export function AttunementDebug() {
const attunements = useAttunementStore((s) => s.attunements);
@@ -14,6 +15,10 @@ export function AttunementDebug() {
const handleUnlockAttunement = (id: string) => {
if (debugUnlockAttunement) {
debugUnlockAttunement(id);
+ // When unlocking Enchanter, also unlock the transference element
+ if (id === 'enchanter') {
+ useManaStore.getState().unlockElement('transference', 500);
+ }
}
};
diff --git a/src/components/game/debug/ElementDebug.tsx b/src/components/game/debug/ElementDebug.tsx
index 5d0f023..8c6963b 100644
--- a/src/components/game/debug/ElementDebug.tsx
+++ b/src/components/game/debug/ElementDebug.tsx
@@ -8,16 +8,15 @@ import { ELEMENTS } from '@/lib/game/constants';
export function ElementDebug() {
const elements = useManaStore((s) => s.elements);
- const unlockElement = useManaStore((s) => s.unlockElement);
- const addElementMana = useManaStore((s) => s.addElementMana);
const handleUnlockElement = (element: string) => {
- unlockElement(element, 500);
+ useManaStore.getState().unlockElement(element, 500);
};
const handleAddElementalMana = (element: string, amount: number) => {
- if (addElementMana) {
- addElementMana(element, amount, 100);
+ const elem = elements?.[element];
+ if (elem?.unlocked) {
+ useManaStore.getState().addElementMana(element, amount, elem.max);
}
};
diff --git a/src/components/game/debug/GameStateDebug.tsx b/src/components/game/debug/GameStateDebug.tsx
index 81ca3e5..008f49c 100644
--- a/src/components/game/debug/GameStateDebug.tsx
+++ b/src/components/game/debug/GameStateDebug.tsx
@@ -29,8 +29,9 @@ export function GameStateDebug() {
// Get actions from stores
const resetGame = useGameStore((s) => s.resetGame);
- const setFloor = useCombatStore((s) => s.debugSetFloor);
- const resetHP = useCombatStore((s) => s.resetFloorHP);
+ const debugSetFloor = useCombatStore((s) => s.debugSetFloor);
+ const resetFloorHP = useCombatStore((s) => s.resetFloorHP);
+ const debugSetTime = useCombatStore((s) => s.debugSetTime);
const handleReset = () => {
if (confirmReset) {
@@ -186,13 +187,13 @@ export function GameStateDebug() {
-