v2.1.0: fixed errors with pitfall trap effect stacking, and visuals

This commit is contained in:
Evan Debenham
2023-04-24 17:02:30 -04:00
parent 1f0ea47d14
commit c622a1658f
@@ -53,7 +53,7 @@ public class PitfallTrap extends Trap {
return; return;
} }
DelayedPit p = Buff.affect(Dungeon.hero, DelayedPit.class, 1); DelayedPit p = Buff.append(Dungeon.hero, DelayedPit.class, 1);
p.depth = Dungeon.depth; p.depth = Dungeon.depth;
p.pos = pos; p.pos = pos;
@@ -105,6 +105,7 @@ public class PitfallTrap extends Trap {
} }
heap.sprite.kill(); heap.sprite.kill();
GameScene.discard(heap); GameScene.discard(heap);
heap.sprite.drop();
Dungeon.level.heaps.remove(cell); Dungeon.level.heaps.remove(cell);
} }