mr:potion_of_levitation_item
Table of Contents
Potion Of Levitation Item - Code References
Java Classes
- PotionOfLevitation.java - Main potion class extending UpgradablePotion
- UpgradablePotion.java - Base class for upgradeable potions
- Levitation.java - Buff applied by this potion
- Potion.java - Base potion class (registers PotionOfLevitation)
- ItemFactory.java - Registers PotionOfLevitation class (line 280)
- AirElemental.java - Air Elemental can drop this potion (10% chance)
- TrapsPainter.java - Spawns this potion in trap rooms
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources
<string name="PotionOfLevitation_Name">Potion of Levitation</string> <string name="PotionOfLevitation_Info">Drinking this curious liquid will cause you to hover in the air, able to drift effortlessly over traps. Flames and gases fill the air, however, and cannot be bypassed while airborne.</string> <string name="PotionOfLevitation_Apply">You float into the air!</string> <string name="Potion_ItemFliesAway">Used when moistening other items</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Implementation Details
- Base Price: 35 gold
- Label Index: 2 (used for potion identification)
- Extends: UpgradablePotion (can be upgraded to improve effects)
- Primary Effect: Applies Levitation buff with duration based on quality: `Levitation.DURATION * qualityFactor()`
- Moisten Effects:
- Arrows: Detaches 10 * qualityFactor items, makes them fly away
- Scrolls: Detaches 3 * qualityFactor items, makes them fly away
- Rotten Food: Detaches 1 * qualityFactor items, makes them fly away
- Drop Source: Air Elemental has 10% chance to drop this potion
- Spawn Location: Generated in trap rooms by TrapsPainter
Related mr Entities
mr/potion_of_levitation_item.txt · Last modified: by 127.0.0.1
