v0.9.2b: prevented pitfall traps from affecting shops and locked chests

This commit is contained in:
Evan Debenham 2021-03-19 22:39:48 -04:00
parent 3e7a48d59b
commit ee0bfb13c5

View File

@ -91,7 +91,9 @@ public class PitfallTrap extends Trap {
Heap heap = Dungeon.level.heaps.get(cell);
if (heap != null) {
if (heap != null && heap.type != Heap.Type.FOR_SALE
&& heap.type != Heap.Type.LOCKED_CHEST
&& heap.type != Heap.Type.CRYSTAL_CHEST) {
for (Item item : heap.items) {
Dungeon.dropToChasm(item);
}