'use client'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Bug, Wand2 } from 'lucide-react'; import { useCombatStore } from '@/lib/game/stores'; import { GOLEMS_DEF } from '@/lib/game/data/golems'; export function GolemDebugSection() { const golemancy = useCombatStore((s) => s.golemancy); const setEnabledGolems = useCombatStore((s) => s.setEnabledGolems); const enabledGolems = golemancy?.enabledGolems || []; const handleEnableAll = () => { setEnabledGolems(Object.keys(GOLEMS_DEF)); }; const handleDisableAll = () => { setEnabledGolems([]); }; const handleToggleGolem = (golemId: string) => { if (enabledGolems.includes(golemId)) { setEnabledGolems(enabledGolems.filter(id => id !== golemId)); } else { setEnabledGolems([...enabledGolems, golemId]); } }; return ( Golem Debug
Enabled: {enabledGolems.length} / {Object.keys(GOLEMS_DEF).length}
{Object.entries(GOLEMS_DEF).map(([id, def]) => { const isEnabled = enabledGolems.includes(id); return (
{def.name}
{def.baseManaType}
); })}
); } GolemDebugSection.displayName = "GolemDebugSection";