v0.6.1: tweaks to new dew vial

This commit is contained in:
Evan Debenham
2017-07-04 19:44:59 -04:00
parent 4b2ffa060f
commit 13f8bf3d60
2 changed files with 5 additions and 4 deletions
@@ -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 );
@@ -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