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:
+1
-1
@@ -272,7 +272,7 @@ export default function ManaLoopGame() {
|
|||||||
disabled={store.isDescending}
|
disabled={store.isDescending}
|
||||||
>
|
>
|
||||||
<ChevronDown className="w-4 h-4 mr-2" />
|
<ChevronDown className="w-4 h-4 mr-2" />
|
||||||
{store.isDescending ? 'Descending' :
|
{store.isDescending ? 'Descending…' :
|
||||||
store.climbDirection === 'up' ? 'Climbing' :
|
store.climbDirection === 'up' ? 'Climbing' :
|
||||||
'Begin Descent'}
|
'Begin Descent'}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import type { ActivityLogEntry } from '@/lib/game/types';
|
|||||||
import type { GameStore } from '@/lib/game/store';
|
import type { GameStore } from '@/lib/game/store';
|
||||||
import { ELEMENTS, GUARDIANS, SPELLS_DEF, SKILLS_DEF, ROOM_TYPE_LABELS } from '@/lib/game/constants';
|
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 { 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 { getActiveEquipmentSpells, getTotalDPS } from '@/lib/game/computed-stats';
|
||||||
import { formatSpellCost, getSpellCostColor, formatStudyTime } from '@/lib/game/formatting';
|
import { formatSpellCost, getSpellCostColor, formatStudyTime } from '@/lib/game/formatting';
|
||||||
import { CraftingProgress, StudyProgress } from '@/components/game';
|
import { CraftingProgress, StudyProgress } from '@/components/game';
|
||||||
|
|||||||
Reference in New Issue
Block a user