// ─── Wizard Branch Recipes ─────────────────────────────────────────────────────
// Staff, crown/circlet, and catalyst gear focused on mana capacity, regen,
// enchantment power, and spell casting.

import type { FabricatorRecipe } from './fabricator-recipe-types';

export const WIZARD_BRANCH_RECIPES: FabricatorRecipe[] = [
  {
    id: 'oakStaff',
    name: 'Oak Staff',
    description: 'A sturdy oak staff with decent mana capacity. Reliable for extended casting.',
    manaType: 'earth',
    equipmentTypeId: 'oakStaff',
    slot: 'mainHand',
    materials: { manaCrystalDust: 5, earthShard: 2 },
    manaCost: 200,
    craftTime: 3,
    rarity: 'uncommon',
    gearTrait: '+15% Mana Regen, +20 Earth Mana Capacity',
    bonusEnchantments: [
      { effectId: 'mana_regen_1', stacks: 1, actualCost: 15 },
      { effectId: 'earth_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'arcanistStaff',
    name: 'Arcanist Staff',
    description: 'A staff designed for advanced spellcasters. High capacity for complex enchantments.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistStaff',
    slot: 'mainHand',
    materials: { manaCrystalDust: 12, crystalShard: 6, elementalCore: 3 },
    manaCost: 700,
    craftTime: 8,
    rarity: 'epic',
    gearTrait: '+30% Enchantment Capacity, +20% Mana Regen',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'mana_regen_2', stacks: 1, actualCost: 28 },
    ],
  },
  {
    id: 'battlestaff',
    name: 'Battlestaff',
    description: 'A reinforced staff suitable for both casting and combat. Balanced and sturdy.',
    manaType: 'metal',
    equipmentTypeId: 'battlestaff',
    slot: 'mainHand',
    materials: { manaCrystalDust: 8, metalShard: 4, elementalCore: 2 },
    manaCost: 500,
    craftTime: 6,
    rarity: 'rare',
    gearTrait: '+10% Enchantment Power, +10% Cast Speed',
    bonusEnchantments: [
      { effectId: 'damage_5', stacks: 1, actualCost: 15 },
      { effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
      { effectId: 'metal_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'arcanistCirclet',
    name: 'Arcanist Circlet',
    description: 'A silver circlet worn by accomplished arcanists. Sharpens mental focus.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistCirclet',
    slot: 'head',
    materials: { manaCrystalDust: 6, crystalShard: 2, lightCrystal: 1 },
    manaCost: 300,
    craftTime: 4,
    rarity: 'rare',
    gearTrait: '+20% Enchantment Power, +15 Light Mana Capacity',
    bonusEnchantments: [
      { effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
      { effectId: 'light_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'arcanistRobe',
    name: 'Arcanist Robe',
    description: 'An ornate robe for master arcanists. High capacity for body armor.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistRobe',
    slot: 'body',
    materials: { manaCrystalDust: 14, crystalShard: 7, elementalCore: 3 },
    manaCost: 800,
    craftTime: 8,
    rarity: 'epic',
    gearTrait: '+35% Enchantment Capacity, +10% all Mana Regen',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'mana_regen_5', stacks: 1, actualCost: 50 },
    ],
  },
  {
    id: 'voidCatalyst',
    name: 'Void Catalyst',
    description: 'A rare catalyst touched by void energy. High capacity but volatile.',
    manaType: 'crystal',
    equipmentTypeId: 'voidCatalyst',
    slot: 'mainHand',
    materials: { manaCrystalDust: 10, darkCrystal: 3, voidEssence: 2, elementalCore: 2 },
    manaCost: 600,
    craftTime: 7,
    rarity: 'epic',
    gearTrait: '+30% Dark Enchantment Power, +15% Spell Damage',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
      { effectId: 'dark_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'arcanistPendant',
    name: 'Arcanist Pendant',
    description: 'A powerful pendant worn by master arcanists. Amplifies all enchantment effects.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistPendant',
    slot: 'accessory1',
    materials: { manaCrystalDust: 8, crystalShard: 4, elementalCore: 2 },
    manaCost: 500,
    craftTime: 5,
    rarity: 'epic',
    gearTrait: '+15% all enchantment effects, +10% Mana Regen',
    bonusEnchantments: [
      { effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
      { effectId: 'mana_regen_2', stacks: 1, actualCost: 28 },
    ],
  },

  // ─── Aether Weave Gear (Air+Light — ultimate enchanting robes) ───────
  {
    id: 'aetherRobe',
    name: 'Aetherweave Robe',
    description: 'A robe woven from Aether Weave. Shimmers with latent air and light mana. Exceptional enchanting potential.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistRobe',
    slot: 'body',
    materials: { aetherWeave: 3, manaCrystalDust: 15, crystalShard: 8, elementalCore: 4 },
    manaCost: 1200,
    craftTime: 15,
    rarity: 'legendary',
    gearTrait: '+50% Enchantment Capacity, +20% all Mana Regen',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'mana_regen_5', stacks: 1, actualCost: 50 },
      { effectId: 'crystal_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'aetherCirclet',
    name: 'Aetherweave Circlet',
    description: 'A circlet infused with Aether Weave. Sharpens focus and amplifies arcane power.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistCirclet',
    slot: 'head',
    materials: { aetherWeave: 2, manaCrystalDust: 10, lightCrystal: 3, elementalCore: 3 },
    manaCost: 900,
    craftTime: 10,
    rarity: 'epic',
    gearTrait: '+30% Enchantment Power, +25 Crystal Mana Capacity',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'crystal_cap_10', stacks: 1, actualCost: 30 },
    ],
  },

  // ─── Void Cloth Gear (Air+Dark — stealth/dark arcana) ────────────────
  {
    id: 'voidRobe',
    name: 'Voidweave Robe',
    description: 'A robe stitched from Void Cloth. Seems to absorb light and sound. Perfect for dark arcana.',
    manaType: 'sand',
    equipmentTypeId: 'arcanistRobe',
    slot: 'body',
    materials: { voidCloth: 3, manaCrystalDust: 15, crystalShard: 8, voidEssence: 3 },
    manaCost: 1200,
    craftTime: 15,
    rarity: 'legendary',
    gearTrait: '+45% Dark Enchantment Power, +20% Spell Damage, +10% Evasion',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
      { effectId: 'sand_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'voidCowl',
    name: 'Voidweave Cowl',
    description: 'A deep cowl made from Void Cloth. Shields the wearer from detection.',
    manaType: 'sand',
    equipmentTypeId: 'arcanistCirclet',
    slot: 'head',
    materials: { voidCloth: 2, manaCrystalDust: 10, darkCrystal: 3, voidEssence: 2 },
    manaCost: 900,
    craftTime: 10,
    rarity: 'epic',
    gearTrait: '+25% Dark Enchantment Power, +15% Evasion',
    bonusEnchantments: [
      { effectId: 'sand_cap_10', stacks: 1, actualCost: 30 },
      { effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
    ],
  },

  // ─── Liquid Crystal Lattice Gear (ultimate enchantable) ──────────────
  {
    id: 'latticeStaff',
    name: 'Crystal Lattice Staff',
    description: 'A staff encased inLiquid Crystal Lattice. An ever-flowing shell of pure arcane energy. The pinnacle of enchantment craft.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistStaff',
    slot: 'mainHand',
    materials: { liquidCrystalLattice: 2, aetherWeave: 2, voidCloth: 2, elementalCore: 5 },
    manaCost: 2000,
    craftTime: 25,
    rarity: 'legendary',
    gearTrait: '+60% Enchantment Capacity, +25% all enchantment effects',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'mana_regen_5', stacks: 1, actualCost: 50 },
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
    ],
  },
  {
    id: 'latticeAmulet',
    name: 'Crystal Lattice Amulet',
    description: 'An amulet housing a fragment of Liquid Crystal Lattice. Flows with limitless adaptability.',
    manaType: 'crystal',
    equipmentTypeId: 'arcanistPendant',
    slot: 'accessory1',
    materials: { liquidCrystalLattice: 1, crystalCrystal: 5, elementalCore: 4, voidEssence: 2 },
    manaCost: 1500,
    craftTime: 18,
    rarity: 'legendary',
    gearTrait: '+30% all enchantment effects, +15% all Mana Regen',
    bonusEnchantments: [
      { effectId: 'mana_cap_100', stacks: 1, actualCost: 35 },
      { effectId: 'mana_regen_5', stacks: 1, actualCost: 50 },
    ],
  },
];
