v1.0.1: fixed disarming traps braking containers

This commit is contained in:
Evan Debenham 2021-08-20 20:16:34 -04:00
parent 69f122d449
commit b2d113c53a

View File

@ -53,9 +53,11 @@ public class DisarmingTrap extends Trap{
if (cell != -1) { if (cell != -1) {
Item item = heap.pickUp(); Item item = heap.pickUp();
Dungeon.level.drop( item, cell ).seen = true; Heap dropped = Dungeon.level.drop( item, cell );
for (int i : PathFinder.NEIGHBOURS9) dropped.type = heap.type;
Dungeon.level.visited[cell+i] = true; dropped.sprite.view( dropped );
dropped.seen = true;
for (int i : PathFinder.NEIGHBOURS9) Dungeon.level.visited[cell+i] = true;
GameScene.updateFog(); GameScene.updateFog();
Sample.INSTANCE.play(Assets.Sounds.TELEPORT); Sample.INSTANCE.play(Assets.Sounds.TELEPORT);