From 308a882a09804040b9272a6b837fc049e23c1bde Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 4 Jul 2016 15:40:38 -0400 Subject: [PATCH] v0.4.1: fixed keys giving values for current depth, rather than their depth --- .../shatteredpixeldungeon/items/keys/GoldenKey.java | 2 +- .../shatteredpixeldungeon/items/keys/IronKey.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java index b53e76941..423da1fd9 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[Dungeon.depth]++; + Dungeon.hero.belongings.specialKeys[depth]++; 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 59c598bdc..1a3955b72 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java @@ -34,7 +34,7 @@ public class IronKey extends Key { @Override public boolean doPickUp(Hero hero) { - Dungeon.hero.belongings.ironKeys[Dungeon.depth]++; + Dungeon.hero.belongings.ironKeys[depth]++; return super.doPickUp(hero); }