====== Potion of Purity ====== {{ rpd:images:item_PotionOfPurity.png|Potion of Purity }} **Potion of Purity** is a [[en:rpd:potion_item|potion]] in Remixed Pixel Dungeon that neutralizes harmful gases and poisons. ==== Description ==== A clear potion that sparkles with clean energy. When thrown, it neutralizes all harmful gases in its area of effect, including [[en:rpd:toxic_gas|toxic gas]], [[en:rpd:paralytic_gas|paralytic gas]], and other environmental effects. ==== Stats ==== * **Type:** Potion * **Weight:** 1 * **Price:** 50 gold ==== Effects ==== When thrown on the ground or at a location: * Neutralizes toxic gas clouds * Neutralizes paralytic gas clouds * Neutralizes confusion gas clouds * Clears other harmful environmental effects * Does not affect the hero or enemies directly * When drunk, provides temporary immunity to harmful gases for 5 turns (multiplied by quality factor) ==== Moistening ==== The Potion of Purity has a special alchemy interaction when used to moisten items: * **With Rotten Food:** Purifies the food completely * **With Arrows:** Converts special arrows back into [[en:rpd:common_arrow_item|Common Arrows]] This makes it the only potion that reverses moistening, converting special arrows back to base arrows. ==== Identification ==== * The effect of this potion is immediately obvious when thrown * No need to identify to understand its function * Appears as a clear, sparkling potion when identified ==== Strategy ==== * Essential for navigating areas filled with harmful gases * Important for escaping gas-trap rooms * Useful when surrounded by toxic gas clouds * The moistening effect allows recycling of special arrows back to common arrows ==== Availability ==== * Found in the Prison and deeper levels * Appears in shops, particularly in prison shops * Relatively rare but crucial in gas-filled areas ==== Alchemy ==== * Can be used to purify [[en:rpd:rotten_food|Rotten Food]] via moistening * Can convert special arrows back to common arrows via moistening * Part of the alchemy system for resource management ==== Related ==== * [[en:rpd:potions|All Potions]] - Complete list of potions * [[en:rpd:moisten|Moistening]] - Alchemy technique for creating special arrows * [[en:rpd:common_arrow_item|Common Arrow]] - Result of moistening with Purity * [[en:rpd:rotten_food|Rotten Food]] - Can be purified via moistening * [[en:rpd:alchemy|Alchemy]] - Creating items from potions ==== Source Code ==== * Java: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java|PotionOfPurity.java]] * String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L2209-L2212|Potion name and description strings]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java#L50-L72|shatter() method]] - Implementation for throwing the potion and neutralizing gases * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java#L75-L78|apply() method]] - Implementation for drinking the potion and gaining immunity * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java#L112-L114|basePrice() method]] - Price of 50 gold * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java#L117-L125|moistenRottenFood() method]] - Purity effect on rotten food * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/potions/PotionOfPurity.java#L127-L131|moistenArrow() method]] - Purity effect on arrows * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/ToxicGas.java|ToxicGas.java]] - Gas affected by the potion * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/ParalyticGas.java|ParalyticGas.java]] - Gas affected by the potion * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/ConfusionGas.java|ConfusionGas.java]] - Gas affected by the potion * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mechanics/buffs/BuffFactory.java#L72|GASES_IMMUNITY buff]] - Immunity granted when drinking ==== Notes ==== The Potion of Purity is particularly important in gas-filled environments and for alchemy purposes, especially when you want to convert special arrows back to common arrows for other uses. {{tag> rpd items potions alchemy purity}}