// ─── Physical Branch Recipes ────────────────────────────────────────────────────
// Sword, speed, and combat gear focused on attack speed, damage, and combat
// effectiveness.

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

export const PHYSICAL_BRANCH_RECIPES: FabricatorRecipe[] = [
  {
    id: 'crystalBlade',
    name: 'Crystal Blade',
    description: 'A blade made of crystallized mana. Excellent for elemental enchantments.',
    manaType: 'crystal',
    equipmentTypeId: 'crystalBlade',
    slot: 'mainHand',
    materials: { manaCrystalDust: 8, crystalShard: 4, elementalCore: 2 },
    manaCost: 500,
    craftTime: 5,
    rarity: 'rare',
    gearTrait: '+20% Cast Speed, +15% Spell Damage',
    bonusEnchantments: [
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
    ],
  },
  {
    id: 'arcanistBlade',
    name: 'Arcanist Blade',
    description: 'A sword forged for battle mages. High capacity for powerful enchantments.',
    manaType: 'metal',
    equipmentTypeId: 'arcanistBlade',
    slot: 'mainHand',
    materials: { manaCrystalDust: 10, metalShard: 5, elementalCore: 3 },
    manaCost: 600,
    craftTime: 7,
    rarity: 'epic',
    gearTrait: '+15% Spell Damage, +15% Cast Speed, +10% Enchantment Power',
    bonusEnchantments: [
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
      { effectId: 'metal_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'voidBlade',
    name: 'Void-Touched Blade',
    description: 'A blade corrupted by void energy. Powerful but consumes more mana.',
    manaType: 'crystal',
    equipmentTypeId: 'voidBlade',
    slot: 'mainHand',
    materials: { manaCrystalDust: 9, darkCrystal: 3, voidEssence: 2, elementalCore: 2 },
    manaCost: 550,
    craftTime: 6,
    rarity: 'epic',
    gearTrait: '+25% Spell Damage, +10% Attack Speed',
    bonusEnchantments: [
      { effectId: 'damage_10', stacks: 1, actualCost: 28 },
      { effectId: 'dark_cap_10', stacks: 1, actualCost: 30 },
    ],
  },
  {
    id: 'battleHelm',
    name: 'Battle Helm',
    description: 'A sturdy helm for battle mages. Balances protection with magical capacity.',
    manaType: 'metal',
    equipmentTypeId: 'battleHelm',
    slot: 'head',
    materials: { manaCrystalDust: 6, metalShard: 3, elementalCore: 1 },
    manaCost: 350,
    craftTime: 4,
    rarity: 'rare',
    gearTrait: '+10% Spell Damage, +15% Attack Speed',
    bonusEnchantments: [
      { effectId: 'damage_5', stacks: 1, actualCost: 15 },
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
    ],
  },
  {
    id: 'battleRobe',
    name: 'Battle Robe',
    description: 'A reinforced robe designed for combat mages. Durable without sacrificing capacity.',
    manaType: 'sand',
    equipmentTypeId: 'battleRobe',
    slot: 'body',
    materials: { manaCrystalDust: 8, sandShard: 3, elementalCore: 2 },
    manaCost: 400,
    craftTime: 5,
    rarity: 'rare',
    gearTrait: '+15% Cast Speed, +10% Evasion',
    bonusEnchantments: [
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
      { effectId: 'mana_cap_50', stacks: 1, actualCost: 20 },
    ],
  },
  {
    id: 'battleBoots',
    name: 'Battle Boots',
    description: 'Sturdy boots for combat situations. Lightweight yet protective.',
    manaType: 'sand',
    equipmentTypeId: 'battleBoots',
    slot: 'feet',
    materials: { manaCrystalDust: 4, sandShard: 2 },
    manaCost: 180,
    craftTime: 3,
    rarity: 'uncommon',
    gearTrait: '+12% Cast Speed, +8% Attack Speed',
    bonusEnchantments: [
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
    ],
  },
  {
    id: 'combatGauntlets',
    name: 'Combat Gauntlets',
    description: 'Armored gauntlets for battle mages. Enhances both casting and melee.',
    manaType: 'metal',
    equipmentTypeId: 'combatGauntlets',
    slot: 'hands',
    materials: { manaCrystalDust: 5, metalShard: 2, elementalCore: 1 },
    manaCost: 300,
    craftTime: 3,
    rarity: 'uncommon',
    gearTrait: '+10% Attack Speed, +10% Cast Speed',
    bonusEnchantments: [
      { effectId: 'attack_speed_10', stacks: 1, actualCost: 22 },
    ],
  },
];
