Fix Task6: Add missing calcDamage import to SpireTab.tsx

- Added missing calcDamage import from @/lib/game/store
- Fixed TypeScript error in SpireTab.tsx related to calcDamage
This commit is contained in:
Refactoring Agent
2026-04-28 15:35:48 +02:00
parent 6f0b86d4d7
commit 351b6c2dca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ export default function ManaLoopGame() {
disabled={store.isDescending}
>
<ChevronDown className="w-4 h-4 mr-2" />
{store.isDescending ? 'Descending' :
{store.isDescending ? 'Descending' :
store.climbDirection === 'up' ? 'Climbing' :
'Begin Descent'}
</Button>
+1 -1
View File
@@ -12,7 +12,7 @@ import type { ActivityLogEntry } from '@/lib/game/types';
import type { GameStore } from '@/lib/game/store';
import { ELEMENTS, GUARDIANS, SPELLS_DEF, SKILLS_DEF, ROOM_TYPE_LABELS } from '@/lib/game/constants';
import { GOLEMS_DEF, getGolemDamage, getGolemAttackSpeed } from '@/lib/game/data/golems';
import { fmt, fmtDec, getFloorElement, canAffordSpellCost, getEnemyName } from '@/lib/game/store';
import { fmt, fmtDec, getFloorElement, canAffordSpellCost, getEnemyName, calcDamage } from '@/lib/game/store';
import { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
import { formatSpellCost, getSpellCostColor, formatStudyTime } from '@/lib/game/formatting';
import { CraftingProgress, StudyProgress } from '@/components/game';