From 2e9f307a60622fcd8c5cbd714a6d9d830720a450 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 11 Jul 2016 05:18:08 -0400 Subject: [PATCH] v0.4.1: fixed golen chests not opening properly --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index e8b4ddc76..850cd5d93 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -695,7 +695,7 @@ public class Hero extends Char { Heap heap = Dungeon.level.heaps.get( dst ); if (heap != null && (heap.type != Type.HEAP && heap.type != Type.FOR_SALE)) { - if (heap.type == Type.LOCKED_CHEST || heap.type == Type.CRYSTAL_CHEST + if ((heap.type == Type.LOCKED_CHEST || heap.type == Type.CRYSTAL_CHEST) && belongings.specialKeys[Dungeon.depth] < 1) { GLog.w( Messages.get(this, "locked_chest") );