en:rpd:healer_npc
Table of Contents
Healer NPC
The Healer NPC is a non-player character found in town who provides healing services and plays a role in unlocking the Gnoll Guardian subclass.
Description
The Healer NPC is found in the town area and provides healing services in exchange for gold. The Healer can heal both the player character and their pet companions.
Services
- Hero Healing: Heals the player character completely and satisfies hunger for approximately 75 gold (base cost, affected by difficulty and Ring of Haggler)
- Pet Healing: Heals all pet companions completely and satisfies their hunger for approximately 50 gold per pet (base cost, affected by difficulty and Ring of Haggler)
- Hunger Satisfaction: Satisfies hunger for all healed characters (cures starving status)
Special Interaction - Gnoll Subclass Unlock
- When the player brings a Brute mob to the Healer and pays to heal it, this action triggers the “Gnoll Unlocked” badge
- Once the badge is earned, Gnoll characters will automatically receive the Tome of Mastery at the start of the game to choose the Guardian subclass
Cost
- Hero healing: Base 75 gold, multiplied by difficulty factor and potentially reduced by Ring of Haggler (-10%)
- Pet healing: Base 50 gold per pet, multiplied by difficulty factor and potentially reduced by Ring of Haggler (-10%)
- Healing cost is dynamically adjusted based on game difficulty via GameLoop.getDifficultyFactor()
Strategy
- Visit the Healer early in the game if you need to restore health or satisfy hunger
- Bring pet companions to the Healer when they take damage during dungeon exploration
- The Healer occasionally speaks messages when the hero is nearby (within distance of 4 tiles), with 5% chance per turn
Code Implementation Details
Based on the Java source code:
- Immobile: Set as immovable (movable = false)
- Interaction: Opens WndPriest window when interacted with
- Messages: Randomly speaks one of three messages when hero is nearby (within L2 distance of 4): “Free treatment for every adventurer!”, “Come back anytime you feel sick or hungry!”, or “I wonder why the church doesn't allow us to wear hats… it's really cold out here.”
- Pet Treatment: The healer treats all pets as well as the hero, using PotionOfHealing.heal() with full healing (1.0f) for each patient
- Brute Healing Unlock: When a mob with entity kind “Brute” is healed by the priest, it validates the Gnoll unlock badge via Badges.validateGnollUnlocked()
Source Code Reference
- WndPriest.java (interaction window)
- Badges.java (validation for Gnoll unlock)
- String Resources (English): HealerNPC strings (line 1666-1672)
- String Resources (Russian): HealerNPC strings (line 1667-1673)
- String Resources for WndPriest (English): WndPriest strings (line 1686-1689)
See Also
en/rpd/healer_npc.txt · Last modified: by 127.0.0.1
