# Necromancer - DoT/Summoner
# Flexible hybrid class: Choose Dark Affliction (DoTs/debuffs) or Raise Dead (summon undead)

class_id: necromancer
name: Necromancer
description: >
  A master of death magic who manipulates life force and commands the undead. Necromancers
  excel in draining enemies over time or overwhelming foes with undead minions.
  Choose your dark art: curse your enemies or raise an army of the dead.

# Base stats (total: 65)
base_stats:
  strength: 8       # Low physical power
  dexterity: 10     # Average agility
  constitution: 10  # Average endurance
  intelligence: 14  # High magical power
  wisdom: 11        # Above average perception
  charisma: 12      # Above average social (commands undead)

starting_equipment:
  - bone_wand
  - cloth_armor
  - rusty_knife

starting_abilities:
  - basic_attack

skill_trees:
  # ==================== DARK AFFLICTION (DoTs/Debuffs) ====================
  - tree_id: dark_affliction
    name: Dark Affliction
    description: >
      The path of the curseweaver. Master dark magic to drain life, inflict agonizing
      curses, and watch enemies wither away over time.

    nodes:
      # --- TIER 1 ---
      - skill_id: drain_life
        name: Drain Life
        description: Siphon life force from an enemy, damaging them and healing yourself.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - drain_life

      - skill_id: dark_knowledge
        name: Dark Knowledge
        description: Study of forbidden arts enhances your dark magic power.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            intelligence: 5

      # --- TIER 2 ---
      - skill_id: plague
        name: Plague
        description: Infect an enemy with disease that spreads to nearby foes, dealing damage over time.
        tier: 2
        prerequisites:
          - drain_life
        effects:
          abilities:
            - plague

      - skill_id: soul_harvest
        name: Soul Harvest
        description: Absorb the life essence of dying enemies, increasing your power.
        tier: 2
        prerequisites:
          - dark_knowledge
        effects:
          stat_bonuses:
            intelligence: 5
          combat_bonuses:
            lifesteal: 0.15  # Heal for 15% of damage dealt

      # --- TIER 3 ---
      - skill_id: curse_of_agony
        name: Curse of Agony
        description: Curse an enemy with excruciating pain, dealing heavy damage over 5 turns.
        tier: 3
        prerequisites:
          - plague
        effects:
          abilities:
            - curse_of_agony

      - skill_id: dark_empowerment
        name: Dark Empowerment
        description: Channel dark energy to enhance all damage over time effects.
        tier: 3
        prerequisites:
          - soul_harvest
        effects:
          stat_bonuses:
            intelligence: 10
          combat_bonuses:
            dot_damage_bonus: 0.30  # +30% DoT damage

      # --- TIER 4 ---
      - skill_id: soul_rot
        name: Soul Rot
        description: Rot an enemy's soul, dealing massive damage over time and reducing their healing.
        tier: 4
        prerequisites:
          - curse_of_agony
        effects:
          abilities:
            - soul_rot

      - skill_id: death_mastery
        name: Death Mastery
        description: Master the art of death magic, dramatically increasing curse potency.
        tier: 4
        prerequisites:
          - dark_empowerment
        effects:
          stat_bonuses:
            intelligence: 15
          combat_bonuses:
            dot_damage_bonus: 0.40  # Additional +40% DoT damage
            lifesteal: 0.15  # Additional +15% lifesteal

      # --- TIER 5 (Ultimate) ---
      - skill_id: epidemic
        name: Epidemic
        description: Unleash a deadly epidemic that afflicts all enemies with multiple DoTs.
        tier: 5
        prerequisites:
          - soul_rot
        effects:
          abilities:
            - epidemic

      - skill_id: lord_of_decay
        name: Lord of Decay
        description: Become a lord of death and decay. Incredible DoT and drain bonuses.
        tier: 5
        prerequisites:
          - death_mastery
        effects:
          stat_bonuses:
            intelligence: 25
            wisdom: 15
          combat_bonuses:
            dot_damage_bonus: 1.0  # Additional +100% DoT damage
            lifesteal: 0.30  # Additional +30% lifesteal

  # ==================== RAISE DEAD (Summon Undead) ====================
  - tree_id: raise_dead
    name: Raise Dead
    description: >
      The path of the necromancer. Command armies of the undead, raising fallen
      enemies and empowering your minions with dark magic.

    nodes:
      # --- TIER 1 ---
      - skill_id: summon_skeleton
        name: Summon Skeleton
        description: Raise a skeleton warrior from the ground to fight for you.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - summon_skeleton

      - skill_id: dark_command
        name: Dark Command
        description: Your mastery over the undead makes your minions stronger.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            charisma: 5
          combat_bonuses:
            minion_damage_bonus: 0.15  # +15% minion damage

      # --- TIER 2 ---
      - skill_id: raise_ghoul
        name: Raise Ghoul
        description: Summon a ravenous ghoul that deals heavy melee damage.
        tier: 2
        prerequisites:
          - summon_skeleton
        effects:
          abilities:
            - raise_ghoul

      - skill_id: unholy_bond
        name: Unholy Bond
        description: Strengthen your connection to the undead, empowering your minions.
        tier: 2
        prerequisites:
          - dark_command
        effects:
          stat_bonuses:
            charisma: 5
          combat_bonuses:
            minion_damage_bonus: 0.20  # Additional +20% minion damage
            minion_health_bonus: 0.25  # +25% minion HP

      # --- TIER 3 ---
      - skill_id: corpse_explosion
        name: Corpse Explosion
        description: Detonate a corpse or minion, dealing massive AoE damage.
        tier: 3
        prerequisites:
          - raise_ghoul
        effects:
          abilities:
            - corpse_explosion

      - skill_id: death_pact
        name: Death Pact
        description: Sacrifice a minion to restore your health and mana.
        tier: 3
        prerequisites:
          - unholy_bond
        effects:
          abilities:
            - death_pact

      # --- TIER 4 ---
      - skill_id: summon_abomination
        name: Summon Abomination
        description: Raise a massive undead abomination that dominates the battlefield.
        tier: 4
        prerequisites:
          - corpse_explosion
        effects:
          abilities:
            - summon_abomination

      - skill_id: legion_master
        name: Legion Master
        description: Command larger armies of undead with increased effectiveness.
        tier: 4
        prerequisites:
          - death_pact
        effects:
          stat_bonuses:
            charisma: 15
            intelligence: 5
          combat_bonuses:
            minion_damage_bonus: 0.35  # Additional +35% minion damage
            minion_health_bonus: 0.50  # Additional +50% minion HP
            max_minions: 2  # +2 max minions

      # --- TIER 5 (Ultimate) ---
      - skill_id: army_of_the_dead
        name: Army of the Dead
        description: Summon a massive army of undead warriors to overwhelm your enemies.
        tier: 5
        prerequisites:
          - summon_abomination
        effects:
          abilities:
            - army_of_the_dead

      - skill_id: lich_lord
        name: Lich Lord
        description: Transcend mortality to become a lich lord. Incredible minion bonuses.
        tier: 5
        prerequisites:
          - legion_master
        effects:
          stat_bonuses:
            charisma: 25
            intelligence: 20
          combat_bonuses:
            minion_damage_bonus: 1.0  # Additional +100% minion damage
            minion_health_bonus: 1.0  # Additional +100% minion HP
            max_minions: 3  # Additional +3 max minions
