v0.4.1: fixed keys giving values for current depth, rather than their depth
This commit is contained in:
parent
026a1a9e2e
commit
308a882a09
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user