From 3e0e2a66a56234b6b46fc86a4f12e9d5a0b61271 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 6 Jan 2015 00:28:13 -0500 Subject: [PATCH] v0.2.3: added new mode to bag selector --- .../shatteredpixel/shatteredpixeldungeon/windows/WndBag.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java index 7da2c81a4..03fb144f0 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java @@ -22,6 +22,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Belongings; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; +import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem; import com.shatteredpixel.shatteredpixeldungeon.items.Gold; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor; @@ -63,7 +64,8 @@ public class WndBag extends WndTabbed { SEED, FOOD, POTION, - SCROLL + SCROLL, + EQUIPMENT } protected static final int COLS = 4; @@ -356,6 +358,7 @@ public class WndBag extends WndTabbed { mode == Mode.FOOD && (item instanceof Food) || mode == Mode.POTION && (item instanceof Potion) || mode == Mode.SCROLL && (item instanceof Scroll) || + mode == Mode.EQUIPMENT && (item instanceof EquipableItem) || mode == Mode.ALL ); }