# Wildstrider - Ranged Physical
# Flexible hybrid class: Choose Marksmanship (precision ranged) or Beast Companion (pet damage)

class_id: wildstrider
name: Wildstrider
description: >
  A master of the wilds who excels at ranged combat and bonds with nature. Wildstriders
  can become elite marksmen with unmatched accuracy or beast masters commanding powerful
  animal companions. Choose your path: perfect your aim or unleash the wild.

# Base stats (total: 66 + luck)
base_stats:
  strength: 10      # Average physical power
  dexterity: 14     # High agility
  constitution: 11  # Above average endurance
  intelligence: 9   # Below average magic
  wisdom: 13        # Above average perception
  charisma: 9       # Below average social
  luck: 10          # Average luck, self-reliant

starting_equipment:
  - rusty_bow
  - cloth_armor
  - rusty_knife

starting_abilities:
  - basic_attack

skill_trees:
  # ==================== MARKSMANSHIP (Precision Ranged) ====================
  - tree_id: marksmanship
    name: Marksmanship
    description: >
      The path of the sharpshooter. Master the bow to deliver devastating precision
      strikes from afar, never missing your mark.

    nodes:
      # --- TIER 1 ---
      - skill_id: aimed_shot
        name: Aimed Shot
        description: Take careful aim before firing, dealing increased damage with high accuracy.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - aimed_shot

      - skill_id: steady_hand
        name: Steady Hand
        description: Your ranged accuracy improves through training.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            dexterity: 5

      # --- TIER 2 ---
      - skill_id: multishot
        name: Multishot
        description: Fire multiple arrows at once, hitting up to 3 targets.
        tier: 2
        prerequisites:
          - aimed_shot
        effects:
          abilities:
            - multishot

      - skill_id: eagle_eye
        name: Eagle Eye
        description: Your perception sharpens, increasing critical hit chance with ranged weapons.
        tier: 2
        prerequisites:
          - steady_hand
        effects:
          stat_bonuses:
            wisdom: 5
          combat_bonuses:
            ranged_crit_chance: 0.15  # +15% crit with ranged

      # --- TIER 3 ---
      - skill_id: piercing_shot
        name: Piercing Shot
        description: Fire an arrow that pierces through enemies, hitting all in a line.
        tier: 3
        prerequisites:
          - multishot
        effects:
          abilities:
            - piercing_shot

      - skill_id: deadly_aim
        name: Deadly Aim
        description: Your arrows find vital spots with deadly precision.
        tier: 3
        prerequisites:
          - eagle_eye
        effects:
          stat_bonuses:
            dexterity: 10
          combat_bonuses:
            ranged_crit_chance: 0.10  # Additional +10% crit
            ranged_crit_multiplier: 0.5  # +0.5 to crit damage

      # --- TIER 4 ---
      - skill_id: explosive_shot
        name: Explosive Shot
        description: Fire an explosive arrow that detonates on impact, damaging nearby enemies.
        tier: 4
        prerequisites:
          - piercing_shot
        effects:
          abilities:
            - explosive_shot

      - skill_id: master_archer
        name: Master Archer
        description: Your archery skills reach legendary status.
        tier: 4
        prerequisites:
          - deadly_aim
        effects:
          stat_bonuses:
            dexterity: 15
          combat_bonuses:
            ranged_damage_bonus: 0.25  # +25% ranged damage

      # --- TIER 5 (Ultimate) ---
      - skill_id: rain_of_arrows
        name: Rain of Arrows
        description: Fire countless arrows into the sky that rain down on all enemies.
        tier: 5
        prerequisites:
          - explosive_shot
        effects:
          abilities:
            - rain_of_arrows

      - skill_id: true_shot
        name: True Shot
        description: Every arrow finds its mark. Massive ranged combat bonuses.
        tier: 5
        prerequisites:
          - master_archer
        effects:
          stat_bonuses:
            dexterity: 20
            wisdom: 10
          combat_bonuses:
            ranged_damage_bonus: 0.50  # Additional +50% ranged damage
            ranged_crit_chance: 0.20   # Additional +20% crit

  # ==================== BEAST COMPANION (Pet Damage) ====================
  - tree_id: beast_companion
    name: Beast Companion
    description: >
      The path of the beast master. Bond with a wild animal companion that fights
      alongside you, growing stronger as your connection deepens.

    nodes:
      # --- TIER 1 ---
      - skill_id: summon_companion
        name: Summon Companion
        description: Call a loyal animal companion to fight by your side.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - summon_companion

      - skill_id: animal_bond
        name: Animal Bond
        description: Your connection with nature strengthens your companion.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            wisdom: 5
          combat_bonuses:
            pet_damage_bonus: 0.15  # +15% pet damage

      # --- TIER 2 ---
      - skill_id: coordinated_attack
        name: Coordinated Attack
        description: Command your companion to attack with you for combined damage.
        tier: 2
        prerequisites:
          - summon_companion
        effects:
          abilities:
            - coordinated_attack

      - skill_id: feral_instinct
        name: Feral Instinct
        description: Your companion becomes more ferocious and resilient.
        tier: 2
        prerequisites:
          - animal_bond
        effects:
          stat_bonuses:
            wisdom: 5
          combat_bonuses:
            pet_damage_bonus: 0.20  # Additional +20% pet damage
            pet_health_bonus: 0.25  # +25% pet HP

      # --- TIER 3 ---
      - skill_id: bestial_wrath
        name: Bestial Wrath
        description: Enrage your companion, drastically increasing its damage for 3 turns.
        tier: 3
        prerequisites:
          - coordinated_attack
        effects:
          abilities:
            - bestial_wrath

      - skill_id: wild_empathy
        name: Wild Empathy
        description: Your bond with beasts allows your companion to grow stronger.
        tier: 3
        prerequisites:
          - feral_instinct
        effects:
          stat_bonuses:
            wisdom: 10
          combat_bonuses:
            pet_damage_bonus: 0.25  # Additional +25% pet damage

      # --- TIER 4 ---
      - skill_id: primal_fury
        name: Primal Fury
        description: Your companion enters a primal rage, dealing massive damage to all enemies.
        tier: 4
        prerequisites:
          - bestial_wrath
        effects:
          abilities:
            - primal_fury

      - skill_id: apex_predator
        name: Apex Predator
        description: Your companion becomes an apex predator, feared by all.
        tier: 4
        prerequisites:
          - wild_empathy
        effects:
          stat_bonuses:
            wisdom: 10
          combat_bonuses:
            pet_damage_bonus: 0.35  # Additional +35% pet damage
            pet_health_bonus: 0.50  # Additional +50% pet HP
            pet_crit_chance: 0.20   # +20% pet crit

      # --- TIER 5 (Ultimate) ---
      - skill_id: stampede
        name: Stampede
        description: Summon a stampede of beasts that trample all enemies, dealing catastrophic damage.
        tier: 5
        prerequisites:
          - primal_fury
        effects:
          abilities:
            - stampede

      - skill_id: one_with_the_wild
        name: One with the Wild
        description: You and your companion become one with nature. Incredible bonuses.
        tier: 5
        prerequisites:
          - apex_predator
        effects:
          stat_bonuses:
            wisdom: 20
            dexterity: 10
          combat_bonuses:
            pet_damage_bonus: 1.0  # Additional +100% pet damage (double damage!)
            pet_health_bonus: 1.0  # Additional +100% pet HP
