v0.3.1: dew drops can no longer be picked up when they would have no effect.

This commit is contained in:
Evan Debenham 2015-07-16 13:45:52 -04:00
parent 18e488c63e
commit 8334332d0f

View File

@ -57,6 +57,8 @@ public class Dewdrop extends Item {
hero.HP += effect; hero.HP += effect;
hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 ); hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 );
hero.sprite.showStatus( CharSprite.POSITIVE, TXT_VALUE, effect ); hero.sprite.showStatus( CharSprite.POSITIVE, TXT_VALUE, effect );
} else {
return false;
} }
} else if (vial != null) { } else if (vial != null) {