From bc7d157b44307f6bd83557830e521c42ee8e318c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 4 Jul 2016 15:50:21 -0400 Subject: [PATCH] v0.4.1: more fixes for keys --- .../shatteredpixeldungeon/items/keys/GoldenKey.java | 2 +- .../shatteredpixeldungeon/items/keys/IronKey.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java index 423da1fd9..68bcd56e2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java @@ -32,7 +32,7 @@ public class GoldenKey extends Key { @Override public boolean doPickUp(Hero hero) { - Dungeon.hero.belongings.specialKeys[depth]++; + Dungeon.hero.belongings.specialKeys[depth] += quantity(); return super.doPickUp(hero); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java index 1a3955b72..685157cc7 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java @@ -25,8 +25,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; public class IronKey extends Key { - - public static int curDepthQuantity = 0; { image = ItemSpriteSheet.IRON_KEY; @@ -34,7 +32,7 @@ public class IronKey extends Key { @Override public boolean doPickUp(Hero hero) { - Dungeon.hero.belongings.ironKeys[depth]++; + Dungeon.hero.belongings.ironKeys[depth] += quantity(); return super.doPickUp(hero); }