From 7a89def76fabdddd3b22ff6463e01ebe0df44bfc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 11 Aug 2015 01:25:08 -0400 Subject: [PATCH] v0.3.1: grim and worn traps are now always visible --- .../shatteredpixeldungeon/levels/traps/GrimTrap.java | 6 ++++++ .../shatteredpixeldungeon/levels/traps/WornTrap.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrimTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrimTrap.java index c0d1b967c..227ad7bce 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrimTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrimTrap.java @@ -44,6 +44,12 @@ public class GrimTrap extends Trap { shape = TrapSprite.LARGE_DOT; } + @Override + public Trap hide() { + //cannot hide this trap + return reveal(); + } + @Override public void activate() { Char target = Actor.findChar(pos); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/WornTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/WornTrap.java index 7eb36346c..5144e674a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/WornTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/WornTrap.java @@ -31,6 +31,12 @@ public class WornTrap extends Trap { shape = TrapSprite.DOTS; } + @Override + public Trap hide() { + //this one can't be hidden + return reveal(); + } + @Override public void activate() { GLog.i("nothing happens..");