# Oathkeeper - Hybrid Tank/Healer
# Flexible hybrid class: Choose Aegis of Light (protection/tanking) or Redemption (healing/support)

class_id: oathkeeper
name: Oathkeeper
description: >
  A sacred warrior bound by holy oaths. Oathkeepers excel as versatile protectors,
  capable of becoming an unyielding shield for their allies or a beacon of healing light.
  Choose your oath: defend the weak or redeem the fallen.

# Base stats (total: 67)
base_stats:
  strength: 12      # Above average physical power
  dexterity: 9      # Below average agility
  constitution: 13  # High endurance
  intelligence: 10  # Average magic
  wisdom: 12        # Above average perception
  charisma: 11      # Above average social

starting_equipment:
  - rusty_sword
  - rusty_shield
  - cloth_armor
  - rusty_knife

starting_abilities:
  - basic_attack

skill_trees:
  # ==================== AEGIS OF LIGHT (Protection/Tanking) ====================
  - tree_id: aegis_of_light
    name: Aegis of Light
    description: >
      The path of the protector. Become an unyielding guardian who shields allies
      from harm and draws enemy attention through divine resilience.

    nodes:
      # --- TIER 1 ---
      - skill_id: taunt
        name: Taunt
        description: Challenge enemies to attack you instead of your allies.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - taunt

      - skill_id: blessed_armor
        name: Blessed Armor
        description: Divine power enhances your natural toughness.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            constitution: 5

      # --- TIER 2 ---
      - skill_id: shield_of_faith
        name: Shield of Faith
        description: Conjure a holy shield that absorbs damage for you and nearby allies.
        tier: 2
        prerequisites:
          - taunt
        effects:
          abilities:
            - shield_of_faith

      - skill_id: sacred_resilience
        name: Sacred Resilience
        description: Your oath grants you resistance to harm.
        tier: 2
        prerequisites:
          - blessed_armor
        effects:
          stat_bonuses:
            constitution: 5
            resistance: 5

      # --- TIER 3 ---
      - skill_id: consecrated_ground
        name: Consecrated Ground
        description: Bless the ground beneath you, providing damage reduction to allies standing in it.
        tier: 3
        prerequisites:
          - shield_of_faith
        effects:
          abilities:
            - consecrated_ground

      - skill_id: unbreakable_oath
        name: Unbreakable Oath
        description: Your oath makes you incredibly difficult to bring down.
        tier: 3
        prerequisites:
          - sacred_resilience
        effects:
          stat_bonuses:
            constitution: 10
            defense: 10

      # --- TIER 4 ---
      - skill_id: divine_aegis
        name: Divine Aegis
        description: Summon a massive divine shield that protects all allies for 3 turns.
        tier: 4
        prerequisites:
          - consecrated_ground
        effects:
          abilities:
            - divine_aegis

      - skill_id: indomitable
        name: Indomitable
        description: Nothing can break your will or body. Massive defensive bonuses.
        tier: 4
        prerequisites:
          - unbreakable_oath
        effects:
          stat_bonuses:
            constitution: 15
            defense: 15
          combat_bonuses:
            damage_reduction: 0.15  # Reduce all damage by 15%

      # --- TIER 5 (Ultimate) ---
      - skill_id: last_stand
        name: Last Stand
        description: Become invulnerable for 3 turns while taunting all enemies. Cannot be canceled.
        tier: 5
        prerequisites:
          - divine_aegis
        effects:
          abilities:
            - last_stand

      - skill_id: eternal_guardian
        name: Eternal Guardian
        description: You are an eternal bastion of protection. Incredible defensive bonuses.
        tier: 5
        prerequisites:
          - indomitable
        effects:
          stat_bonuses:
            constitution: 25
            defense: 20
            resistance: 15
          combat_bonuses:
            damage_reduction: 0.30  # Additional 30% damage reduction

  # ==================== REDEMPTION (Healing/Support) ====================
  - tree_id: redemption
    name: Redemption
    description: >
      The path of the redeemer. Channel divine power to heal wounds, cleanse corruption,
      and grant your allies second chances through sacred intervention.

    nodes:
      # --- TIER 1 ---
      - skill_id: lay_on_hands
        name: Lay on Hands
        description: Touch an ally to restore their health through divine power.
        tier: 1
        prerequisites: []
        effects:
          abilities:
            - lay_on_hands

      - skill_id: divine_wisdom
        name: Divine Wisdom
        description: Your wisdom grows through devotion to your oath.
        tier: 1
        prerequisites: []
        effects:
          stat_bonuses:
            wisdom: 5

      # --- TIER 2 ---
      - skill_id: cleanse
        name: Cleanse
        description: Remove all debuffs and negative effects from an ally.
        tier: 2
        prerequisites:
          - lay_on_hands
        effects:
          abilities:
            - cleanse

      - skill_id: aura_of_mercy
        name: Aura of Mercy
        description: Emit a merciful aura that slowly heals all nearby allies each turn.
        tier: 2
        prerequisites:
          - divine_wisdom
        effects:
          passive_effects:
            - healing_aura  # 3% max HP per turn

      # --- TIER 3 ---
      - skill_id: word_of_healing
        name: Word of Healing
        description: Speak a divine word that heals all allies within range.
        tier: 3
        prerequisites:
          - cleanse
        effects:
          abilities:
            - word_of_healing

      - skill_id: blessed_sacrifice
        name: Blessed Sacrifice
        description: Transfer an ally's wounds to yourself, healing them while you take damage.
        tier: 3
        prerequisites:
          - aura_of_mercy
        effects:
          abilities:
            - blessed_sacrifice

      # --- TIER 4 ---
      - skill_id: divine_blessing
        name: Divine Blessing
        description: Grant an ally a powerful blessing that increases their stats and regenerates health.
        tier: 4
        prerequisites:
          - word_of_healing
        effects:
          abilities:
            - divine_blessing

      - skill_id: martyr
        name: Martyr
        description: Your willingness to sacrifice yourself empowers your healing abilities.
        tier: 4
        prerequisites:
          - blessed_sacrifice
        effects:
          stat_bonuses:
            wisdom: 15
          combat_bonuses:
            healing_power: 0.35  # +35% healing

      # --- TIER 5 (Ultimate) ---
      - skill_id: miracle
        name: Miracle
        description: Perform a divine miracle, fully healing all allies and removing all debuffs.
        tier: 5
        prerequisites:
          - divine_blessing
        effects:
          abilities:
            - miracle

      - skill_id: sainthood
        name: Sainthood
        description: Achieve sainthood through your devotion. Incredible healing and support bonuses.
        tier: 5
        prerequisites:
          - martyr
        effects:
          stat_bonuses:
            wisdom: 25
            charisma: 15
          combat_bonuses:
            healing_power: 0.75  # Additional +75% healing
            aura_radius: 2  # Increase aura range
