User Tools

Site Tools


mr:dewdrop_item

Dewdrop Item - Code References

Dewdrop

Overview

The Dewdrop is a consumable item in Remixed Dungeon that restores HP or can be collected by Dew Vial.

Java Implementation

  • Class: Dewdrop.java
  • Package: com.watabou.pixeldungeon.items
  • Extends: Item
  • Sprite: ItemSpriteSheet.DEWDROP

Key Methods

  • doPickUp(Char hero): Handles dewdrop collection
    1. If hero has DewVial and it's not full: collects dew into vial
    2. If hero HP < max HP: heals hero for (1 + (depth - 1) / 5) HP per dewdrop
    3. Plays sound: Assets.SND_DEWDROP
  • burn(int cell): Returns null (dewdrop cannot burn)
  • announcePickUp(): Returns false (no announcement)

Properties

  • stackable: true (can stack multiple dewdrops)
  • image: ItemSpriteSheet.DEWDROP
  • Healing Formula: min(hero.maxHP - hero.currentHP, (1 + (depth - 1) / 5 + buff bonuses) * quantity)

String Resources

  • English:
    1. Name: dewdrop (Dewdrop_Name)
    2. Description: A crystal clear dewdrop. (Dewdrop_Info)
  • Russian:
    1. Name: капля росы (Dewdrop_Name)
    2. Description: Кристально чистая капля росы. (Dewdrop_Info)
  • Dew Vial - Collects and stores dewdrops
  • Healing - Dewdrops provide healing effect

Code References

mr/dewdrop_item.txt · Last modified: by 127.0.0.1