mr:potion_of_might_item
Table of Contents
Potion of Might Item - Code References
Java Classes
- PotionOfMight.java - Main class implementation
- Parent: PotionOfStrength.java - Extends this class
- Related: Potion.java - Base potion class
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources (All Languages)
- Chinese (Traditional): PotionOfMight_Name, PotionOfMight_Info, PotionOfMight_Apply, PotionOfMight_StaApply (繁體中.)
Lua Scripts
This entity is implemented in Java, no Lua script exists
Implementation Details
- Type: item (potion)
- Package: com.watabou.pixeldungeon.items.potions
- Base Class: PotionOfStrength
- Base Price: 200 gold
- Effect: Permanently increases strength by +1 and health by +5
Behavior
- On Apply:
- Increases hero STR by +1: `hero.STR(hero.STR() + 1)`
- Increases hero max HP by +5: `hero.ht(hero.ht() + 5)`
- Heals hero by 5: `hero.heal(5, this)`
- Shows status: “+1 str, +5 ht”
- Displays: “Newfound strength surges through your body.”
- Badge: Triggers Badges.validateStrengthAttained(hero)
Usage in Code
- ItemFactory.java - Registered item class
- WaterOfTransmutation.java - Can be created from transmutation
- ShopPainter.java - Can appear in shops
- AzuterronNPC.java - Exchange item (HeartOfDarkness → PotionOfMight)
- Potion.java - Listed in potion array
- Potion.java - Identified as positive potion
Related mr Entities
- potion_of_strength_item - Parent potion class
- heart_of_darkness_item - Can be exchanged for PotionOfMight
- water_of_transmutation - Can create PotionOfMight
mr/potion_of_might_item.txt · Last modified: by 127.0.0.1

