v0.4.2: fixed key display not updating when opening a chest
This commit is contained in:
parent
5d9035e9d9
commit
824c8f789c
|
@ -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,6 +1552,7 @@ public class Hero extends Char {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void next() {
|
public void next() {
|
||||||
|
if (isAlive())
|
||||||
super.next();
|
super.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user