v0.6.1: bugfixes to dew vial and keys

This commit is contained in:
Evan Debenham 2017-07-11 01:55:01 -04:00
parent 6162aadf42
commit fcef3e6382
3 changed files with 4 additions and 4 deletions

View File

@ -95,9 +95,9 @@ public class Belongings implements Iterable<Item> {
for (int i = 0; i < specialKeys.length; i++){
if (specialKeys[i] > 0){
if (i % 5 == 0){
Notes.add((Key) new GoldenKey(i).quantity(specialKeys[i]));
} else {
Notes.add((Key) new SkeletonKey(i).quantity(specialKeys[i]));
} else {
Notes.add((Key) new GoldenKey(i).quantity(specialKeys[i]));
}
}
}

View File

@ -773,7 +773,7 @@ public class Hero extends Char {
hasKey = true;
} else if (door == Terrain.LOCKED_EXIT
&& Notes.keyCount(new GoldenKey(Dungeon.depth)) > 0) {
&& Notes.keyCount(new SkeletonKey(Dungeon.depth)) > 0) {
hasKey = true;

View File

@ -53,7 +53,7 @@ public class DewVial extends Item {
unique = true;
}
private int volume = 20;
private int volume = 0;
private static final String VOLUME = "volume";