From fcef3e63822ae7471049dd2abf710b75304c0978 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 11 Jul 2017 01:55:01 -0400 Subject: [PATCH] v0.6.1: bugfixes to dew vial and keys --- .../shatteredpixeldungeon/actors/hero/Belongings.java | 4 ++-- .../shatteredpixeldungeon/actors/hero/Hero.java | 2 +- .../shatteredpixel/shatteredpixeldungeon/items/DewVial.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Belongings.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Belongings.java index 2281ecdce..760345e43 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Belongings.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Belongings.java @@ -95,9 +95,9 @@ public class Belongings implements Iterable { 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])); } } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 288fb6e31..05c2ce03f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -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; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java index eb4c1f896..c859af11e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/DewVial.java @@ -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";