v0.4.1: more fixes for keys

This commit is contained in:
Evan Debenham 2016-07-04 15:50:21 -04:00 committed by Evan Debenham
parent 308a882a09
commit bc7d157b44
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}