diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Blandfruit.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Blandfruit.java index 75b54cfc7..0c4b4ba1a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Blandfruit.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/food/Blandfruit.java @@ -34,12 +34,26 @@ public class Blandfruit extends Food { { name = "Blandfruit"; - stackable = false; + stackable = true; image = ItemSpriteSheet.BLANDFRUIT; energy = (Hunger.STARVING - Hunger.HUNGRY)/2; hornValue = 6; //only applies when blandfruit is cooked } + @Override + public boolean isSimilar( Item item ) { + if (item instanceof Blandfruit){ + if (potionAttrib == null){ + if (((Blandfruit)item).potionAttrib == null) + return true; + } else if (((Blandfruit)item).potionAttrib != null){ + if (((Blandfruit)item).potionAttrib.getClass() == potionAttrib.getClass()) + return true; + } + } + return false; + } + @Override public void execute( Hero hero, String action ) { if (action.equals( AC_EAT )){