v1.0.1: fixed disarming traps braking containers
This commit is contained in:
parent
69f122d449
commit
b2d113c53a
|
@ -53,9 +53,11 @@ public class DisarmingTrap extends Trap{
|
|||
|
||||
if (cell != -1) {
|
||||
Item item = heap.pickUp();
|
||||
Dungeon.level.drop( item, cell ).seen = true;
|
||||
for (int i : PathFinder.NEIGHBOURS9)
|
||||
Dungeon.level.visited[cell+i] = true;
|
||||
Heap dropped = Dungeon.level.drop( item, cell );
|
||||
dropped.type = heap.type;
|
||||
dropped.sprite.view( dropped );
|
||||
dropped.seen = true;
|
||||
for (int i : PathFinder.NEIGHBOURS9) Dungeon.level.visited[cell+i] = true;
|
||||
GameScene.updateFog();
|
||||
|
||||
Sample.INSTANCE.play(Assets.Sounds.TELEPORT);
|
||||
|
|
Loading…
Reference in New Issue
Block a user