// ─── Shadow Glass Spells ─────────────────────────────────────────────────────
// Shadow Glass magic - Earth + Dark compound, spike/armor pierce focus
import type { SpellDef } from '../../types';
import { elemCost } from '../elements';

export const SHADOWGLASS_SPELLS: Record<string, SpellDef> = {
  // Tier 1 - Basic Shadow Glass
  shadowSpike: {
    name: "Shadow Spike",
    elem: "shadowglass",
    dmg: 15,
    cost: elemCost("shadowglass", 2),
    tier: 1,
    castSpeed: 2,
    unlock: 220,
    studyTime: 3,
    desc: "A spike of shadow glass erupts from the ground. Sharp and fast.",
    effects: [{ type: 'armor_pierce', value: 0.2 }]
  },
  darkShard: {
    name: "Dark Shard",
    elem: "shadowglass",
    dmg: 24,
    cost: elemCost("shadowglass", 3),
    tier: 1,
    castSpeed: 1.6,
    unlock: 360,
    studyTime: 4,
    desc: "A shard of pure shadow glass. High armor pierce.",
    effects: [{ type: 'armor_pierce', value: 0.28 }]
  },

  // Tier 2 - Advanced Shadow Glass
  obsidianStorm: {
    name: "Obsidian Storm",
    elem: "shadowglass",
    dmg: 42,
    cost: elemCost("shadowglass", 6),
    tier: 2,
    castSpeed: 1.3,
    unlock: 1000,
    studyTime: 9,
    desc: "A storm of shadow glass shards. Hits multiple enemies.",
    isAoe: true,
    aoeTargets: 3,
    effects: [{ type: 'armor_pierce', value: 0.3 }]
  },
  voidBlade: {
    name: "Void Blade",
    elem: "shadowglass",
    dmg: 60,
    cost: elemCost("shadowglass", 9),
    tier: 2,
    castSpeed: 0.9,
    unlock: 1700,
    studyTime: 12,
    desc: "A blade of condensed shadow. Ignores most armor.",
    effects: [{ type: 'armor_pierce', value: 0.42 }]
  },

  // Tier 3 - Master Shadow Glass
  shadowGlassCataclysm: {
    name: "Shadow Glass Cataclysm",
    elem: "shadowglass",
    dmg: 155,
    cost: elemCost("shadowglass", 20),
    tier: 3,
    castSpeed: 0.5,
    unlock: 17000,
    studyTime: 30,
    desc: "Shatter the earth into a storm of shadow glass. Ignores all armor.",
    effects: [{ type: 'armor_pierce', value: 0.55 }]
  },
};
