# Wraith Lord - Hard elite undead commander
# An ancient and powerful wraith that rules over lesser spirits

enemy_id: wraith_lord
name: Wraith Lord
description: >
  An ancient spirit of terrible power, once a great lord or
  mage in life, now a being of pure malevolence. The Wraith
  Lord retains its intelligence and ambition, commanding
  legions of lesser undead from its shadow throne. Its form
  is more defined than common wraiths, wearing spectral armor
  and wielding a blade of condensed darkness that severs both
  flesh and soul.

base_stats:
  strength: 8
  dexterity: 14
  constitution: 14
  intelligence: 16
  wisdom: 16
  charisma: 20
  luck: 14

abilities:
  - basic_attack
  - soul_blade
  - life_drain
  - incorporeal_movement
  - create_spawn
  - command_undead
  - death_wave
  - dark_aura
  - fear

loot_table:
  # Static drops - guaranteed materials
  - loot_type: static
    item_id: soul_essence
    drop_chance: 1.0
    quantity_min: 3
    quantity_max: 5
  - loot_type: static
    item_id: shadow_residue
    drop_chance: 1.0
    quantity_min: 4
    quantity_max: 8
  - loot_type: static
    item_id: death_essence
    drop_chance: 0.80
    quantity_min: 2
    quantity_max: 3
  - loot_type: static
    item_id: wraith_lord_crown
    drop_chance: 0.60
    quantity_min: 1
    quantity_max: 1
  - loot_type: static
    item_id: spectral_blade_shard
    drop_chance: 0.50
    quantity_min: 1
    quantity_max: 1

  # Treasure from mortal life
  - loot_type: static
    item_id: gold_coin
    drop_chance: 0.80
    quantity_min: 40
    quantity_max: 100
  - loot_type: static
    item_id: gemstone
    drop_chance: 0.60
    quantity_min: 2
    quantity_max: 4
  - loot_type: static
    item_id: ancient_jewelry
    drop_chance: 0.40
    quantity_min: 1
    quantity_max: 1

  # Consumables
  - loot_type: static
    item_id: health_potion_large
    drop_chance: 0.35
    quantity_min: 1
    quantity_max: 1
  - loot_type: static
    item_id: mana_potion_large
    drop_chance: 0.35
    quantity_min: 1
    quantity_max: 1
  - loot_type: static
    item_id: elixir_of_wisdom
    drop_chance: 0.15
    quantity_min: 1
    quantity_max: 1

  # Procedural equipment
  - loot_type: procedural
    item_type: weapon
    drop_chance: 0.30
    rarity_bonus: 0.25
    quantity_min: 1
    quantity_max: 1
  - loot_type: procedural
    item_type: armor
    drop_chance: 0.25
    rarity_bonus: 0.20
    quantity_min: 1
    quantity_max: 1
  - loot_type: procedural
    item_type: accessory
    drop_chance: 0.30
    rarity_bonus: 0.20
    quantity_min: 1
    quantity_max: 1

experience_reward: 130
gold_reward_min: 50
gold_reward_max: 125
difficulty: hard

tags:
  - undead
  - incorporeal
  - wraith
  - leader
  - elite
  - boss
  - intelligent

location_tags:
  - crypt
  - ruins
  - dungeon
  - haunted

base_damage: 14
crit_chance: 0.15
flee_chance: 0.05
