Files
Mana-Loop/src/lib/game/data/disciplines/enchanter-utility.ts
T
n8n-gitea 23a83a04cf
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m17s
fix: resolve all TypeScript compilation errors
- Fixed DisciplinesAttunementType enum usage in discipline data files
- Fixed EquipmentSlot import in equipment/types.ts
- Fixed enchantment-effects.ts export/import chain
- Fixed safe-persist.ts StateStorage type compatibility
- Fixed store persist partial return types for all stores
- Fixed gameStore.ts ElementState type and error handling
- Fixed useGameDerived.ts missing properties on GameCoordinatorStore
- Added SkillUpgradeChoice type to types.ts
- Fixed ActionButtons.tsx optional currentStudyTarget prop
- Fixed GameToast.tsx Toast type compatibility
- Fixed EnchantmentDesigner sub-component type mismatches
- Fixed SpireCombatPage equippedInstances/equipmentInstances types
- Fixed page.tsx computeClickMana argument
- Added baseCastTime to SpellDef type
- Fixed golem/types.ts and loot-drops.ts import paths
- Fixed craftingStore.ts missing lastError in initial state and actions
- Fixed store-actions-combat-prestige.test.ts Memory type usage
- Fixed floor-utils.upgraded.test.ts array type annotation
- Fixed computed-stats.test.ts state type assertions
- Fixed activity-log.test.ts state type annotation
- Fixed discipline-math.test.ts enum value usage
- Fixed game-loop.test.ts vitest mock import
- Various other test file type fixes
2026-05-24 14:34:49 +02:00

109 lines
3.0 KiB
TypeScript

// ─── Enchanter Utility & Mana Disciplines ──────────────────────────────────────
// Disciplines for unlocking utility and mana enchantment effects
import { DisciplinesAttunementType } from '../../types/disciplines';
import type { DisciplineDefinition } from '../../types/disciplines';
export const enchanterUtilityDisciplines: DisciplineDefinition[] = [
{
id: 'study-utility-enchantments',
name: 'Study Utility Enchantments',
attunement: DisciplinesAttunementType.ENCHANTER,
manaType: 'light',
baseCost: 8,
description: 'Learn to enchant equipment with utility effects.',
statBonus: { stat: 'studySpeed', baseValue: 0.05 },
difficultyFactor: 80,
scalingFactor: 60,
drainBase: 2,
perks: [
{
id: 'utility-meditate',
type: 'once',
threshold: 50,
value: 0,
description: 'Unlock Meditative Focus enchantment',
unlocksEffects: ['meditate_10'],
},
{
id: 'utility-study',
type: 'once',
threshold: 100,
value: 0,
description: 'Unlock Quick Study enchantment',
unlocksEffects: ['study_10'],
},
{
id: 'utility-insight',
type: 'once',
threshold: 150,
value: 0,
description: 'Unlock Insightful enchantment',
unlocksEffects: ['insight_5'],
},
],
},
{
id: 'study-mana-enchantments',
name: 'Study Mana Enchantments',
attunement: DisciplinesAttunementType.ENCHANTER,
manaType: 'water',
baseCost: 15,
description: 'Learn to enchant equipment with mana-boosting effects.',
statBonus: { stat: 'maxMana', baseValue: 10 },
difficultyFactor: 150,
scalingFactor: 100,
drainBase: 3,
perks: [
{
id: 'mana-cap-50',
type: 'once',
threshold: 75,
value: 0,
description: 'Unlock Mana Reserve enchantment',
unlocksEffects: ['mana_cap_50'],
},
{
id: 'mana-cap-100',
type: 'once',
threshold: 150,
value: 0,
description: 'Unlock Mana Reservoir enchantment',
unlocksEffects: ['mana_cap_100'],
},
{
id: 'mana-regen-1',
type: 'once',
threshold: 100,
value: 0,
description: 'Unlock Trickle enchantment',
unlocksEffects: ['mana_regen_1'],
},
{
id: 'mana-regen-2',
type: 'once',
threshold: 200,
value: 0,
description: 'Unlock Stream enchantment',
unlocksEffects: ['mana_regen_2'],
},
{
id: 'click-mana-1',
type: 'once',
threshold: 125,
value: 0,
description: 'Unlock Mana Tap enchantment',
unlocksEffects: ['click_mana_1'],
},
{
id: 'click-mana-3',
type: 'once',
threshold: 225,
value: 0,
description: 'Unlock Mana Surge enchantment',
unlocksEffects: ['click_mana_3'],
},
],
},
];