v0.4.1: fixed golen chests not opening properly

This commit is contained in:
Evan Debenham 2016-07-11 05:18:08 -04:00 committed by Evan Debenham
parent f961f3105d
commit 2e9f307a60

View File

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