'use client'; import { ELEMENTS, GUARDIANS } from '@/lib/game/constants'; import { getTierMultiplier } from '@/lib/game/skill-evolution'; import { hasSpecial, SPECIAL_EFFECTS } from '@/lib/game/effects'; import { fmt, fmtDec } from '@/lib/game/store'; import type { GameStore, UnifiedEffects } from '@/lib/game/types'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import { FlaskConical, Trophy, RotateCcw } from 'lucide-react'; import { ManaStatsSection } from '../stats/ManaStatsSection'; import { ManaTypeBreakdown } from '../stats/ManaTypeBreakdown'; import { CombatStatsSection } from '../stats/CombatStatsSection'; import { StudyStatsSection } from '../stats/StudyStatsSection'; import { UpgradeEffectsSection } from '../stats/UpgradeEffectsSection'; export interface StatsTabProps { store: GameStore; upgradeEffects: UnifiedEffects; maxMana: number; baseRegen: number; clickMana: number; meditationMultiplier: number; effectiveRegen: number; incursionStrength: number; manaCascadeBonus: number; manaWaterfallBonus: number; hasManaWaterfall: boolean; hasFlowSurge: boolean; hasManaOverflow: boolean; hasEternalFlow: boolean; studySpeedMult: number; studyCostMult: number; } export function StatsTab({ store, upgradeEffects, maxMana, baseRegen, clickMana, meditationMultiplier, effectiveRegen, incursionStrength, manaCascadeBonus, manaWaterfallBonus, hasManaWaterfall, hasFlowSurge, hasManaOverflow, hasEternalFlow, studySpeedMult, studyCostMult, }: StatsTabProps) { // Compute element max const elemMax = (() => { const ea = store.skillTiers?.elemAttune || 1; const tieredSkillId = ea > 1 ? `elemAttune_t${ea}` : 'elemAttune'; const level = store.skills[tieredSkillId] || store.skills.elemAttune || 0; const tierMult = getTierMultiplier(tieredSkillId); return 10 + level * 50 * tierMult + (store.prestigeUpgrades.elementalAttune || 0) * 25; })(); return (
Increases the power of all enchantments by {((upgradeEffects?.enchantmentPowerMultiplier || 1) - 1) * 100}%. Multiplier applied to all enchantment effects.