User Tools

Site Tools


mr:potion_of_might_item

Potion of Might Item - Code References

Potion of Might

Java Classes

JSON Configuration

This entity is implemented in Java, no JSON configuration exists

String Resources (All Languages)

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:
    1. Increases hero STR by +1: `hero.STR(hero.STR() + 1)`
    2. Increases hero max HP by +5: `hero.ht(hero.ht() + 5)`
    3. Heals hero by 5: `hero.heal(5, this)`
    4. Shows status: “+1 str, +5 ht”
    5. Displays: “Newfound strength surges through your body.”
  • Badge: Triggers Badges.validateStrengthAttained(hero)

Usage in Code

mr/potion_of_might_item.txt · Last modified: by 127.0.0.1