v0.4.1: fixed keys giving values for current depth, rather than their depth

This commit is contained in:
Evan Debenham 2016-07-04 15:40:38 -04:00 committed by Evan Debenham
parent 026a1a9e2e
commit 308a882a09
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class GoldenKey extends Key {
@Override @Override
public boolean doPickUp(Hero hero) { public boolean doPickUp(Hero hero) {
Dungeon.hero.belongings.specialKeys[Dungeon.depth]++; Dungeon.hero.belongings.specialKeys[depth]++;
return super.doPickUp(hero); return super.doPickUp(hero);
} }

View File

@ -34,7 +34,7 @@ public class IronKey extends Key {
@Override @Override
public boolean doPickUp(Hero hero) { public boolean doPickUp(Hero hero) {
Dungeon.hero.belongings.ironKeys[Dungeon.depth]++; Dungeon.hero.belongings.ironKeys[depth]++;
return super.doPickUp(hero); return super.doPickUp(hero);
} }