v0.4.2: fixed key display not updating when opening a chest

This commit is contained in:
Evan Debenham 2016-08-27 17:45:39 -04:00 committed by Evan Debenham
parent 5d9035e9d9
commit 824c8f789c

View File

@ -1424,6 +1424,7 @@ public class Hero extends Char {
} else if (heap.type == Type.LOCKED_CHEST || heap.type == Type.CRYSTAL_CHEST){ } else if (heap.type == Type.LOCKED_CHEST || heap.type == Type.CRYSTAL_CHEST){
belongings.specialKeys[Dungeon.depth]--; belongings.specialKeys[Dungeon.depth]--;
} }
StatusPane.needsKeyUpdate = true;
heap.open( this ); heap.open( this );
} }
curAction = null; curAction = null;
@ -1551,7 +1552,8 @@ public class Hero extends Char {
@Override @Override
public void next() { public void next() {
super.next(); if (isAlive())
super.next();
} }
public static interface Doom { public static interface Doom {