From 432f9ee4409dd309412086ff8a2b09e36044f1a6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 9 Aug 2015 15:26:54 -0400 Subject: [PATCH] v0.3.1: clarity and balance improvements following dew changes --- .../shatteredpixeldungeon/items/Dewdrop.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Dewdrop.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Dewdrop.java index 471a0f409..0542a28bc 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Dewdrop.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Dewdrop.java @@ -20,6 +20,7 @@ */ package com.shatteredpixel.shatteredpixeldungeon.items; +import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.watabou.noosa.audio.Sample; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; @@ -58,10 +59,11 @@ public class Dewdrop extends Item { hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 ); hero.sprite.showStatus( CharSprite.POSITIVE, TXT_VALUE, effect ); } else { + GLog.i("You already have full health."); return false; } - } else if (vial != null) { + } else { vial.collectDew( this ); @@ -72,9 +74,16 @@ public class Dewdrop extends Item { return true; } - + + @Override + //max of one dew in a stack + public Item quantity(int value) { + quantity = Math.min( value, 1); + return this; + } + @Override public String info() { - return "A crystal clear dewdrop."; + return "A crystal clear dewdrop.\n\nDue to the magic of this place, pure water has minor restorative properties."; } }