Class HealerAdder
java.lang.Object
games.stendhal.server.entity.npc.behaviour.adder.HealerAdder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHealer(SpeakerNPC npc, int cost) Makes this NPC a healer, i.e.voidaddHealer(SpeakerNPC npc, ChatAction calculateCostAction, ChatAction healAction) Makes the NPC a healer.
-
Constructor Details
-
HealerAdder
public HealerAdder()
-
-
Method Details
-
addHealer
Makes this NPC a healer, i.e. someone who sets the player's hp to the value of their base hp.
Player killers are not healed at all even by healers who charge.
Too strong players (atk >35 or def > 35) cannot be healed for free.
Players who have done PVP in the last 2 hours cannot be healed free, unless they are very new to the game.
- Parameters:
npc- SpeakerNPCcost- The price which can be positive for a lump sum cost, 0 for free healing or negative for a price dependent on level of player.
-
addHealer
Makes the NPC a healer.- Parameters:
npc- SpeakerNPC who does the healing.calculateCostAction- Action to take to determine cost.healAction- Action to take when player is healed.
-