v0.3.1b: fixed visibility bugs with spear traps and traps in general
This commit is contained in:
@@ -46,6 +46,7 @@ public class SpearTrap extends Trap {
|
||||
Sample.INSTANCE.play(Assets.SND_TRAP);
|
||||
}
|
||||
//this trap is not disarmed by being triggered
|
||||
reveal();
|
||||
activate();
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ public abstract class Trap implements Bundlable {
|
||||
Sample.INSTANCE.play(Assets.SND_TRAP);
|
||||
}
|
||||
disarm();
|
||||
reveal();
|
||||
activate();
|
||||
}
|
||||
}
|
||||
@@ -82,7 +83,6 @@ public abstract class Trap implements Bundlable {
|
||||
Dungeon.level.disarmTrap(pos);
|
||||
active = false;
|
||||
if (sprite != null) {
|
||||
sprite.visible = true;
|
||||
sprite.reset( this );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user