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);
|
Sample.INSTANCE.play(Assets.SND_TRAP);
|
||||||
}
|
}
|
||||||
//this trap is not disarmed by being triggered
|
//this trap is not disarmed by being triggered
|
||||||
|
reveal();
|
||||||
activate();
|
activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ public abstract class Trap implements Bundlable {
|
|||||||
Sample.INSTANCE.play(Assets.SND_TRAP);
|
Sample.INSTANCE.play(Assets.SND_TRAP);
|
||||||
}
|
}
|
||||||
disarm();
|
disarm();
|
||||||
|
reveal();
|
||||||
activate();
|
activate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +83,6 @@ public abstract class Trap implements Bundlable {
|
|||||||
Dungeon.level.disarmTrap(pos);
|
Dungeon.level.disarmTrap(pos);
|
||||||
active = false;
|
active = false;
|
||||||
if (sprite != null) {
|
if (sprite != null) {
|
||||||
sprite.visible = true;
|
|
||||||
sprite.reset( this );
|
sprite.reset( this );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user