v0.3.1: added sound effects to Lloyd's beacon
This commit is contained in:
parent
e93facb91a
commit
a0d2e3986a
|
@ -204,6 +204,7 @@ public class LloydsBeacon extends Artifact {
|
||||||
|
|
||||||
if (Actor.findChar(target) == curUser){
|
if (Actor.findChar(target) == curUser){
|
||||||
ScrollOfTeleportation.teleportHero(curUser);
|
ScrollOfTeleportation.teleportHero(curUser);
|
||||||
|
Sample.INSTANCE.play(Assets.SND_TELEPORT);
|
||||||
curUser.spendAndNext(1f);
|
curUser.spendAndNext(1f);
|
||||||
} else {
|
} else {
|
||||||
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
|
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
|
||||||
|
@ -211,8 +212,10 @@ public class LloydsBeacon extends Artifact {
|
||||||
|
|
||||||
if (ch == curUser){
|
if (ch == curUser){
|
||||||
ScrollOfTeleportation.teleportHero(curUser);
|
ScrollOfTeleportation.teleportHero(curUser);
|
||||||
|
Sample.INSTANCE.play(Assets.SND_TELEPORT);
|
||||||
curUser.spendAndNext( 1f );
|
curUser.spendAndNext( 1f );
|
||||||
} else {
|
} else {
|
||||||
|
Sample.INSTANCE.play( Assets.SND_ZAP );
|
||||||
curUser.sprite.zap(bolt.collisionPos);
|
curUser.sprite.zap(bolt.collisionPos);
|
||||||
curUser.busy();
|
curUser.busy();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user