v0.3.1: added sound effects to Lloyd's beacon

This commit is contained in:
Evan Debenham 2015-08-17 10:30:56 -04:00
parent e93facb91a
commit a0d2e3986a

View File

@ -204,6 +204,7 @@ public class LloydsBeacon extends Artifact {
if (Actor.findChar(target) == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext(1f);
} else {
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
@ -211,8 +212,10 @@ public class LloydsBeacon extends Artifact {
if (ch == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext( 1f );
} else {
Sample.INSTANCE.play( Assets.SND_ZAP );
curUser.sprite.zap(bolt.collisionPos);
curUser.busy();