// ─── Material Crafting Recipes ─────────────────────────────────────────────────
// Separate file to keep equipment recipes under the 400-line limit.

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

export const MATERIAL_RECIPES: FabricatorRecipe[] = [
  {
    id: 'manaCrystal',
    name: 'Mana Crystal',
    description: 'Condense raw mana into a stable crystal. Used in all advanced crafting.',
    manaType: 'raw',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: {},
    manaCost: 500,
    craftTime: 1,
    rarity: 'uncommon',
    gearTrait: 'Produces 1 Mana Crystal',
    recipeType: 'material',
    resultMaterial: 'manaCrystal',
    resultAmount: 1,
  },
  {
    id: 'manaCrystalDustCraft',
    name: 'Mana Crystal Dust',
    description: 'Grind a Mana Crystal into dust. Used as a base material.',
    manaType: 'raw',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 10,
    craftTime: 1,
    rarity: 'common',
    gearTrait: 'Produces 2 Mana Crystal Dust',
    recipeType: 'material',
    resultMaterial: 'manaCrystalDust',
    resultAmount: 2,
  },
  {
    id: 'fireCrystal',
    name: 'Fire Attuned Crystal',
    description: 'Infuse a Mana Crystal with fire mana to attune it to the flame element.',
    manaType: 'fire',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Fire Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'fireCrystal',
    resultAmount: 1,
  },
  {
    id: 'waterCrystal',
    name: 'Water Attuned Crystal',
    description: 'Infuse a Mana Crystal with water mana to attune it to the flow element.',
    manaType: 'water',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Water Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'waterCrystal',
    resultAmount: 1,
  },
  {
    id: 'airCrystal',
    name: 'Air Attuned Crystal',
    description: 'Infuse a Mana Crystal with air mana to attune it to the wind element.',
    manaType: 'air',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Air Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'airCrystal',
    resultAmount: 1,
  },
  {
    id: 'earthCrystal',
    name: 'Earth Attuned Crystal',
    description: 'Infuse a Mana Crystal with earth mana to attune it to the stone element.',
    manaType: 'earth',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Earth Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'earthCrystal',
    resultAmount: 1,
  },
  {
    id: 'lightCrystal',
    name: 'Light Attuned Crystal',
    description: 'Infuse a Mana Crystal with light mana to attune it to the radiant element.',
    manaType: 'light',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Light Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'lightCrystal',
    resultAmount: 1,
  },
  {
    id: 'darkCrystal',
    name: 'Dark Attuned Crystal',
    description: 'Infuse a Mana Crystal with dark mana to attune it to the shadow element.',
    manaType: 'dark',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Dark Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'darkCrystal',
    resultAmount: 1,
  },
  {
    id: 'metalCrystal',
    name: 'Metal Attuned Crystal',
    description: 'Infuse a Mana Crystal with metal mana to attune it to the alloy element.',
    manaType: 'metal',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'rare',
    gearTrait: 'Produces 1 Metal Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'metalCrystal',
    resultAmount: 1,
  },
  {
    id: 'crystalCrystal',
    name: 'Crystal Attuned Crystal',
    description: 'Infuse a Mana Crystal with crystal mana to attune it to the prismatic element.',
    manaType: 'crystal',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 1 },
    manaCost: 100,
    craftTime: 1,
    rarity: 'epic',
    gearTrait: 'Produces 1 Crystal Attuned Crystal',
    recipeType: 'material',
    resultMaterial: 'crystalCrystal',
    resultAmount: 1,
  },
  {
    id: 'earthShardCraft',
    name: 'Earth Shard',
    description: 'Grind an Earth Attuned Crystal into a shard. Used for earth equipment crafting.',
    manaType: 'earth',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { earthCrystal: 1 },
    manaCost: 50,
    craftTime: 1,
    rarity: 'common',
    gearTrait: 'Produces 1 Earth Shard',
    recipeType: 'material',
    resultMaterial: 'earthShard',
    resultAmount: 1,
  },
  {
    id: 'elementalCore',
    name: 'Elemental Core',
    description: 'Combine mana crystals and all four base elements into a powerful core.',
    manaType: 'raw',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { manaCrystal: 10 },
    manaCost: 100,
    craftTime: 10,
    rarity: 'epic',
    gearTrait: 'Produces 1 Elemental Core',
    recipeType: 'material',
    resultMaterial: 'elementalCore',
    resultAmount: 1,
  },
  {
    id: 'aetherWeave',
    name: 'Aether Weave',
    description: 'Weave air and light mana into a shimmering silk fabric. High enchanting potential.',
    manaType: 'air',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { airCrystal: 3, lightCrystal: 3, elementalCore: 2 },
    manaCost: 500,
    craftTime: 12,
    rarity: 'epic',
    gearTrait: 'Produces 1 Aether Weave',
    recipeType: 'material',
    resultMaterial: 'aetherWeave',
    resultAmount: 1,
  },
  {
    id: 'voidCloth',
    name: 'Void Cloth',
    description: 'Weave air and dark mana into a shadowy, arcane cloth. Used for stealth and dark arcana armor.',
    manaType: 'dark',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { airCrystal: 3, darkCrystal: 3, voidEssence: 2 },
    manaCost: 500,
    craftTime: 12,
    rarity: 'epic',
    gearTrait: 'Produces 1 Void Cloth',
    recipeType: 'material',
    resultMaterial: 'voidCloth',
    resultAmount: 1,
  },
  {
    id: 'liquidCrystalLattice',
    name: 'Liquid Crystal Lattice',
    description: 'Combine crystal, transference, and exotic energies into an ever-flowing aethereal liquid crystal shell. The ultimate enchantable material.',
    manaType: 'crystal',
    equipmentTypeId: 'basicStaff',
    slot: 'mainHand',
    materials: { crystalCrystal: 5, elementalCore: 3, voidEssence: 2, celestialFragment: 1 },
    manaCost: 800,
    craftTime: 20,
    rarity: 'legendary',
    gearTrait: 'Produces 1 Liquid Crystal Lattice',
    recipeType: 'material',
    resultMaterial: 'liquidCrystalLattice',
    resultAmount: 1,
  },
];
