# Arcanist - Magic Burst
# Flexible hybrid class: Choose Pyromancy (fire AoE) or Cryomancy (ice control)

class_id: arcanist
name: Arcanist
description: >
  A master of elemental magic who bends the forces of fire and ice to their will. Arcanists
  excel in devastating spell damage, capable of incinerating groups of foes or freezing
  enemies in place. Choose your element: embrace the flames or command the frost.

# Base stats (total: 65 + luck)
base_stats:
  strength: 8       # Low physical power
  dexterity: 10     # Average agility
  constitution: 9   # Below average endurance
  intelligence: 15  # Exceptional magical power
  wisdom: 12        # Above average perception
  charisma: 11      # Above average social
  luck: 9           # Slight chaos magic boost

starting_equipment:
  - worn_staff
  - cloth_armor
  - rusty_knife

starting_abilities:
  - basic_attack

skill_trees:
  # ==================== PYROMANCY (Fire AoE) ====================
  - tree_id: pyromancy
    name: Pyromancy
    description: >
      The path of flame. Master destructive fire magic to incinerate your enemies
      with overwhelming area damage and burning DoTs.

    nodes:
      # --- TIER 1 ---
      - skill_id: fireball
        name: Fireball
        description: Hurl a ball of flame at an enemy, dealing fire damage and igniting them.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - fireball

      - skill_id: flame_attunement
        name: Flame Attunement
        description: Your affinity with fire magic increases your magical power.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            intelligence: 5

      # --- TIER 2 ---
      - skill_id: flame_burst
        name: Flame Burst
        description: Release a burst of fire around you, damaging all nearby enemies.
        tier: 2
        prerequisites:
          - fireball
        effects:
          abilities:
            - flame_burst

      - skill_id: burning_soul
        name: Burning Soul
        description: Your inner fire burns brighter, increasing fire damage.
        tier: 2
        prerequisites:
          - flame_attunement
        effects:
          stat_bonuses:
            intelligence: 5
          combat_bonuses:
            fire_damage_bonus: 0.15  # +15% fire damage

      # --- TIER 3 ---
      - skill_id: inferno
        name: Inferno
        description: Summon a raging inferno that burns all enemies for 3 turns.
        tier: 3
        prerequisites:
          - flame_burst
        effects:
          abilities:
            - inferno

      - skill_id: combustion
        name: Combustion
        description: Your fire spells can cause targets to explode on death, damaging nearby enemies.
        tier: 3
        prerequisites:
          - burning_soul
        effects:
          passive_effects:
            - burning_enemies_explode_on_death

      # --- TIER 4 ---
      - skill_id: firestorm
        name: Firestorm
        description: Call down a storm of meteors on all enemies, dealing massive fire damage.
        tier: 4
        prerequisites:
          - inferno
        effects:
          abilities:
            - firestorm

      - skill_id: pyroclasm
        name: Pyroclasm
        description: Your mastery of flame makes all fire spells more devastating.
        tier: 4
        prerequisites:
          - combustion
        effects:
          stat_bonuses:
            intelligence: 10
          combat_bonuses:
            fire_damage_bonus: 0.25  # Additional +25% fire damage

      # --- TIER 5 (Ultimate) ---
      - skill_id: sun_burst
        name: Sun Burst
        description: Channel the power of the sun itself, dealing catastrophic fire damage to all enemies.
        tier: 5
        prerequisites:
          - firestorm
        effects:
          abilities:
            - sun_burst

      - skill_id: master_of_flame
        name: Master of Flame
        description: You are flame incarnate. Incredible fire magic bonuses.
        tier: 5
        prerequisites:
          - pyroclasm
        effects:
          stat_bonuses:
            intelligence: 20
          combat_bonuses:
            fire_damage_bonus: 0.50  # Additional +50% fire damage

  # ==================== CRYOMANCY (Ice Control) ====================
  - tree_id: cryomancy
    name: Cryomancy
    description: >
      The path of frost. Master ice magic to freeze and slow enemies,
      controlling the battlefield with chilling precision.

    nodes:
      # --- TIER 1 ---
      - skill_id: ice_shard
        name: Ice Shard
        description: Launch a shard of ice at an enemy, dealing damage and slowing them.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - ice_shard

      - skill_id: frost_attunement
        name: Frost Attunement
        description: Your affinity with ice magic increases your magical power.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            intelligence: 5

      # --- TIER 2 ---
      - skill_id: frozen_orb
        name: Frozen Orb
        description: Summon an orb of ice that explodes, freezing enemies in place for 1 turn.
        tier: 2
        prerequisites:
          - ice_shard
        effects:
          abilities:
            - frozen_orb

      - skill_id: cold_embrace
        name: Cold Embrace
        description: The cold empowers you, increasing ice damage and mana.
        tier: 2
        prerequisites:
          - frost_attunement
        effects:
          stat_bonuses:
            intelligence: 5
          combat_bonuses:
            ice_damage_bonus: 0.15  # +15% ice damage

      # --- TIER 3 ---
      - skill_id: blizzard
        name: Blizzard
        description: Summon a raging blizzard that damages and slows all enemies.
        tier: 3
        prerequisites:
          - frozen_orb
        effects:
          abilities:
            - blizzard

      - skill_id: permafrost
        name: Permafrost
        description: Your ice magic becomes more potent, with longer freeze durations.
        tier: 3
        prerequisites:
          - cold_embrace
        effects:
          stat_bonuses:
            wisdom: 5
          combat_bonuses:
            freeze_duration_bonus: 1  # +1 turn to freeze effects

      # --- TIER 4 ---
      - skill_id: glacial_spike
        name: Glacial Spike
        description: Impale an enemy with a massive ice spike, dealing heavy damage and freezing them.
        tier: 4
        prerequisites:
          - blizzard
        effects:
          abilities:
            - glacial_spike

      - skill_id: ice_mastery
        name: Ice Mastery
        description: Your command of ice magic reaches new heights.
        tier: 4
        prerequisites:
          - permafrost
        effects:
          stat_bonuses:
            intelligence: 10
          combat_bonuses:
            ice_damage_bonus: 0.25  # Additional +25% ice damage

      # --- TIER 5 (Ultimate) ---
      - skill_id: absolute_zero
        name: Absolute Zero
        description: Freeze all enemies solid for 2 turns while dealing massive damage over time.
        tier: 5
        prerequisites:
          - glacial_spike
        effects:
          abilities:
            - absolute_zero

      - skill_id: winter_incarnate
        name: Winter Incarnate
        description: You become the embodiment of winter itself. Incredible ice magic bonuses.
        tier: 5
        prerequisites:
          - ice_mastery
        effects:
          stat_bonuses:
            intelligence: 20
            wisdom: 10
          combat_bonuses:
            ice_damage_bonus: 0.50  # Additional +50% ice damage
