// ─── Tier 2 Advanced Spells ───────────────────────────────────

import type { EnchantmentEffectDef } from './types';
import { ALL_CASTER } from './types';

export const TIER2_SPELL_EFFECTS: Record<string, EnchantmentEffectDef> = {
  spell_inferno: {
    id: 'spell_inferno',
    name: 'Inferno',
    description: 'Grants the ability to cast Inferno (60 fire damage)',
    category: 'spell',
    baseCapacityCost: 180,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'inferno' }
  },
  spell_tidalWave: {
    id: 'spell_tidalWave',
    name: 'Tidal Wave',
    description: 'Grants the ability to cast Tidal Wave (55 water damage)',
    category: 'spell',
    baseCapacityCost: 175,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'tidalWave' }
  },
  spell_hurricane: {
    id: 'spell_hurricane',
    name: 'Hurricane',
    description: 'Grants the ability to cast Hurricane (50 air damage)',
    category: 'spell',
    baseCapacityCost: 170,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'hurricane' }
  },
  spell_earthquake: {
    id: 'spell_earthquake',
    name: 'Earthquake',
    description: 'Grants the ability to cast Earthquake (70 earth damage)',
    category: 'spell',
    baseCapacityCost: 200,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'earthquake' }
  },
  spell_solarFlare: {
    id: 'spell_solarFlare',
    name: 'Solar Flare',
    description: 'Grants the ability to cast Solar Flare (65 light damage)',
    category: 'spell',
    baseCapacityCost: 190,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'solarFlare' }
  },
  spell_voidRift: {
    id: 'spell_voidRift',
    name: 'Void Rift',
    description: 'Grants the ability to cast Void Rift (55 dark damage)',
    category: 'spell',
    baseCapacityCost: 175,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'voidRift' }
  },

  // Additional Tier 2 Spells
  spell_flameWave: {
    id: 'spell_flameWave',
    name: 'Flame Wave',
    description: 'Grants the ability to cast Flame Wave (45 fire damage)',
    category: 'spell',
    baseCapacityCost: 165,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'flameWave' }
  },
  spell_iceStorm: {
    id: 'spell_iceStorm',
    name: 'Ice Storm',
    description: 'Grants the ability to cast Ice Storm (50 water damage)',
    category: 'spell',
    baseCapacityCost: 170,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'iceStorm' }
  },
  spell_windBlade: {
    id: 'spell_windBlade',
    name: 'Wind Blade',
    description: 'Grants the ability to cast Wind Blade (40 air damage)',
    category: 'spell',
    baseCapacityCost: 155,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'windBlade' }
  },
  spell_stoneBarrage: {
    id: 'spell_stoneBarrage',
    name: 'Stone Barrage',
    description: 'Grants the ability to cast Stone Barrage (55 earth damage)',
    category: 'spell',
    baseCapacityCost: 175,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'stoneBarrage' }
  },
  spell_divineSmite: {
    id: 'spell_divineSmite',
    name: 'Divine Smite',
    description: 'Grants the ability to cast Divine Smite (55 light damage)',
    category: 'spell',
    baseCapacityCost: 175,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'divineSmite' }
  },
  spell_shadowStorm: {
    id: 'spell_shadowStorm',
    name: 'Shadow Storm',
    description: 'Grants the ability to cast Shadow Storm (48 dark damage)',
    category: 'spell',
    baseCapacityCost: 168,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'shadowStorm' }
  },
  spell_soulRend: {
    id: 'spell_soulRend',
    name: 'Soul Rend',
    description: 'Grants the ability to cast Soul Rend (50 death damage)',
    category: 'spell',
    baseCapacityCost: 170,
    maxStacks: 1,
    allowedEquipmentCategories: ALL_CASTER,
    effect: { type: 'spell', spellId: 'soulRend' }
  },
};
