====== Potion Of Healing - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfHealing.java|PotionOfHealing.java]] - Main healing potion class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/Potion.java|Potion.java]] - Parent class for all potions * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/Item.java|Item.java]] - Base item class ===== JSON Configuration ===== This entity is implemented in Java, no JSON configuration exists ===== String Resources ===== Potion of Healing An elixir that will instantly return you to full health and cure poison. Your wounds heal completely. ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Related mr Entities ===== * [[mr:potion_item|Potion (Item)]] * [[mr:item|Item]] * [[mr:health_arrow_item|Health Arrow]] - Arrow moistened by this potion ===== Code Details ===== * **labelIndex**: 5 - Potion label index for identification * **heal()**: Static method that heals character for portion of HP (default 100% for self-use, 50% for shatter) * **Buffs Removed**: Poison, Cripple, Weakness, Bleeding * **price()**: 30 gold when known * **shatter()**: When potion breaks, heals character in cell for 50% HP * **moistenArrow()**: Creates HealthArrow when used to moisten arrows