From acc249ec321f0ecaf84484513c7e88e0d70b746f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 6 Nov 2015 18:56:37 -0500 Subject: [PATCH] v0.3.2a: also fixed a bug where ore veins would sparkle after being removed. --- .../shatteredpixeldungeon/levels/CavesLevel.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java index 17431061f..708441e74 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/CavesLevel.java @@ -269,8 +269,14 @@ public class CavesLevel extends RegularLevel { if (visible = Dungeon.visible[pos]) { super.update(); - + if ((delay -= Game.elapsed) <= 0) { + + //pickaxe can remove the ore, should remove the sparkling too. + if (Dungeon.level.map[pos] != Terrain.WALL_DECO){ + kill(); + return; + } delay = Random.Float();