diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java index d1c0d2676..eb4c1f896 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java @@ -31,6 +31,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.watabou.noosa.audio.Sample; import com.watabou.utils.Bundle; +import com.watabou.utils.GameMath; import java.util.ArrayList; @@ -52,7 +53,7 @@ public class DewVial extends Item { unique = true; } - private int volume = 0; + private int volume = 20; private static final String VOLUME = "volume"; @@ -92,7 +93,7 @@ public class DewVial extends Item { //trimming off 0.01 drops helps with floating point errors int dropsNeeded = (int)Math.ceil((missingHealthPercent / dropHealPercent) - 0.01f); - dropsNeeded = Math.min(dropsNeeded, volume); + dropsNeeded = (int)GameMath.gate(1, dropsNeeded, volume); int heal = Math.round( hero.HT * dropHealPercent * dropsNeeded ); diff --git a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties index 19e19e8a2..57fba1e5b 100644 --- a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties +++ b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/items/items.properties @@ -984,10 +984,10 @@ items.dewdrop.desc=A crystal clear dewdrop.\n\nDue to the magic of this place, p items.dewvial.name=dew vial items.dewvial.ac_drink=DRINK items.dewvial.value=%+dHP -items.dewvial.collected=You collected a dewdrop into your dew vial. +items.dewvial.collected=You collect the dewdrop into your dew vial. items.dewvial.full=Your dew vial is full! items.dewvial.empty=Your dew vial is empty! -items.dewvial.desc=You can store excess dew in this tiny vessel for drinking it later. The more full the vial is, the more each dew drop will heal you. A full vial is as strong as a potion of healing.\n\nVials like this one used to be imbued with revival magic, but that power has faded. There still seems to be some residual power left, perhaps a full vial can bless another revival item. +items.dewvial.desc=You can store excess dew in this tiny vessel and drink it later. The more full the vial is, the more you will be instantly healed when drinking it. You will only drink as much as you need.\n\nVials like this one used to be imbued with revival magic, but that power has faded. There still seems to be some residual power left, perhaps a full vial can bless another revival item. items.equipableitem.unequip_cursed=You can't remove a cursed item! items.equipableitem.ac_equip=EQUIP