// ─── 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: 'transference',
    baseCost: 8,
    description: 'Increase your study speed, unlocking utility enchantments faster.',
    statBonus: { stat: 'studySpeed', baseValue: 0.05, label: 'Study Speed' },
    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: 'transference',
    baseCost: 15,
    description: 'Increase your max mana, unlocking mana enchantments for equipment.',
    statBonus: { stat: 'maxManaBonus', baseValue: 10, label: 'Max Mana' },
    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'],
      },
    ],
  },
];
