// ─── Advanced Hybrid Golems ────────────────────────────────────
// Require Enchanter 5 + Fabricator 5

import type { GolemDef } from './types';
import { elemCost } from './types';

export const HYBRID_GOLEMS: Record<string, GolemDef> = {
  // Lava Golem - Fire + Earth fusion
  lavaGolem: {
    id: 'lavaGolem',
    name: 'Lava Golem',
    description: 'Molten earth and fire combined. Burns enemies over time.',
    baseManaType: 'earth',
    summonCost: [elemCost('earth', 10), elemCost('fire', 8)],
    maintenanceCost: [elemCost('earth', 0.4), elemCost('fire', 0.5)],
    damage: 15,
    attackSpeed: 1.0,
    hp: 70,
    armorPierce: 0.2,
    isAoe: true,
    aoeTargets: 2,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 3,
  },
  
  // Galvanic Golem - Metal + Lightning fusion
  galvanicGolem: {
    id: 'galvanicGolem',
    name: 'Galvanic Golem',
    description: 'A conductive metal construct charged with lightning. Extremely fast attacks.',
    baseManaType: 'metal',
    summonCost: [elemCost('metal', 8), elemCost('lightning', 6)],
    maintenanceCost: [elemCost('metal', 0.3), elemCost('lightning', 0.6)],
    damage: 10,
    attackSpeed: 3.5,
    hp: 45,
    armorPierce: 0.45,
    isAoe: false,
    aoeTargets: 1,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 3,
  },
  
  // Obsidian Golem - Dark + Earth fusion
  obsidianGolem: {
    id: 'obsidianGolem',
    name: 'Obsidian Golem',
    description: 'Volcanic glass animated by shadow. Devastating single-target damage.',
    baseManaType: 'earth',
    summonCost: [elemCost('earth', 12), elemCost('dark', 6)],
    maintenanceCost: [elemCost('earth', 0.3), elemCost('dark', 0.4)],
    damage: 25,
    attackSpeed: 0.8,
    hp: 55,
    armorPierce: 0.5,
    isAoe: false,
    aoeTargets: 1,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 4,
  },
  
  // Prism Golem - Light + Crystal fusion
  prismGolem: {
    id: 'prismGolem',
    name: 'Prism Golem',
    description: 'A radiant crystal construct. Channels light into piercing beams.',
    baseManaType: 'crystal',
    summonCost: [elemCost('crystal', 10), elemCost('light', 6)],
    maintenanceCost: [elemCost('crystal', 0.4), elemCost('light', 0.4)],
    damage: 20,
    attackSpeed: 1.5,
    hp: 50,
    armorPierce: 0.35,
    isAoe: true,
    aoeTargets: 3,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 4,
  },
  
  // Quicksilver Golem - Water + Metal fusion
  quicksilverGolem: {
    id: 'quicksilverGolem',
    name: 'Quicksilver Golem',
    description: 'Liquid metal that flows around defenses. Fast and hard to dodge.',
    baseManaType: 'metal',
    summonCost: [elemCost('metal', 6), elemCost('water', 6)],
    maintenanceCost: [elemCost('metal', 0.3), elemCost('water', 0.3)],
    damage: 8,
    attackSpeed: 4.0,
    hp: 40,
    armorPierce: 0.3,
    isAoe: false,
    aoeTargets: 1,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 3,
  },
  
  // Voidstone Golem - Void + Earth fusion (ultimate)
  voidstoneGolem: {
    id: 'voidstoneGolem',
    name: 'Voidstone Golem',
    description: 'Earth infused with void energy. The ultimate golem construct.',
    baseManaType: 'earth',
    summonCost: [elemCost('earth', 15), elemCost('void', 8)],
    maintenanceCost: [elemCost('earth', 0.3), elemCost('void', 0.6)],
    damage: 40,
    attackSpeed: 0.6,
    hp: 100,
    armorPierce: 0.6,
    isAoe: true,
    aoeTargets: 3,
    unlockCondition: {
      type: 'dual_attunement',
      attunements: ['enchanter', 'fabricator'],
      levels: [5, 5],
    },
    tier: 4,
  },
};
