v0.4.1: more fixes for keys
This commit is contained in:
parent
308a882a09
commit
bc7d157b44
|
@ -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[depth]++;
|
Dungeon.hero.belongings.specialKeys[depth] += quantity();
|
||||||
return super.doPickUp(hero);
|
return super.doPickUp(hero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,15 +26,13 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||||
|
|
||||||
public class IronKey extends Key {
|
public class IronKey extends Key {
|
||||||
|
|
||||||
public static int curDepthQuantity = 0;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
image = ItemSpriteSheet.IRON_KEY;
|
image = ItemSpriteSheet.IRON_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean doPickUp(Hero hero) {
|
public boolean doPickUp(Hero hero) {
|
||||||
Dungeon.hero.belongings.ironKeys[depth]++;
|
Dungeon.hero.belongings.ironKeys[depth] += quantity();
|
||||||
return super.doPickUp(hero);
|
return super.doPickUp(hero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user