This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
RotateCcw, AlertTriangle, Zap, Clock, Settings, Eye,
|
||||
} from 'lucide-react';
|
||||
import { DebugName, useDebug } from '@/components/game/debug/debug-context';
|
||||
import { useGameStore, useManaStore, useUIStore, useCombatStore } from '@/lib/game/stores';
|
||||
import { useGameStore, useManaStore, useUIStore } from '@/lib/game/stores';
|
||||
import { computeMaxMana } from '@/lib/game/stores';
|
||||
|
||||
// ─── Warning Banner ──────────────────────────────────────────────────────────
|
||||
|
||||
@@ -5,7 +5,6 @@ import { ATTUNEMENTS_DEF, ATTUNEMENT_SLOT_NAMES, getAttunementXPForLevel, MAX_AT
|
||||
import type { AttunementDef, AttunementState } from '@/lib/game/types';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Progress } from '@/components/ui/progress';
|
||||
import { DebugName } from '@/components/game/debug/debug-context';
|
||||
import { fmt } from '@/lib/game/stores';
|
||||
|
||||
|
||||
@@ -9,12 +9,7 @@ import { ScrollArea } from '@/components/ui/scroll-area';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Anvil, FlaskConical, Hammer, Package, Sparkles, Sword } from 'lucide-react';
|
||||
import { MaterialRecipeCard } from './MaterialRecipeCard';
|
||||
import {
|
||||
FABRICATOR_RECIPES,
|
||||
MATERIAL_RECIPES,
|
||||
getRecipesByManaType,
|
||||
canCraftRecipe,
|
||||
} from '@/lib/game/data/fabricator-recipes';
|
||||
import { FABRICATOR_RECIPES, MATERIAL_RECIPES, canCraftRecipe } from '@/lib/game/data/fabricator-recipes';
|
||||
import { MANA_TYPE_LABELS } from '@/lib/game/data/fabricator-recipe-types';
|
||||
import { LOOT_DROPS, LOOT_RARITY_COLORS } from '@/lib/game/data/loot-drops';
|
||||
import { useCraftingStore, useManaStore } from '@/lib/game/stores';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
RotateCcw, AlertTriangle, Zap, Clock, Eye,
|
||||
} from 'lucide-react';
|
||||
import { DebugName, useDebug } from '@/components/game/debug/debug-context';
|
||||
import { useGameStore, useManaStore, useUIStore, useCombatStore } from '@/lib/game/stores';
|
||||
import { useGameStore, useManaStore, useUIStore } from '@/lib/game/stores';
|
||||
import { computeMaxMana } from '@/lib/game/stores';
|
||||
|
||||
// ─── Display Options ─────────────────────────────────────────────────────────
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import type { DisciplineDefinition } from '@/lib/game/types/disciplines';
|
||||
import type { ManaType } from '@/lib/game/types/elements';
|
||||
import { ELEMENTS } from '@/lib/game/constants/elements';
|
||||
import { calculateStatBonus, calculateManaDrain } from '@/lib/game/utils/discipline-math';
|
||||
import clsx from 'clsx';
|
||||
@@ -43,7 +42,7 @@ export const DisciplineCard: React.FC<DisciplineCardProps> = ({
|
||||
const manaIcon = elementDef?.sym ?? '✦';
|
||||
const manaName = elementDef?.name ?? manaType;
|
||||
const isActive = activeIds.includes(id);
|
||||
const activeNotPaused = activeIds.filter((aid) => {
|
||||
const _activeNotPaused = activeIds.filter((aid) => {
|
||||
// Count how many active disciplines are not paused
|
||||
return aid === id ? !isPaused : true;
|
||||
}).length;
|
||||
|
||||
Reference in New Issue
Block a user