Add proper sound effects for the explorer's ring and fix leaf-bladed sword's sound effects.

This commit is contained in:
Avi Weinstock
2021-12-26 00:25:02 +00:00
committed by Ceikry
parent eb73b64137
commit 913173a3bd
6 changed files with 9 additions and 5 deletions
@@ -40,6 +40,7 @@ class ExplorersRingPlugin : InteractionListener() {
return@on true
}
player.settings.updateRunEnergy(-50.0)
player.audioManager.send(5035)
getStoreFile()[player.username.toLowerCase() + ":run"] = charges + 1
@@ -96,4 +97,4 @@ class ExplorersRingPlugin : InteractionListener() {
fun getStoreFile(): JSONObject{
return ServerStore.getArchive("daily-explorer-ring")
}
}
}
@@ -582,7 +582,7 @@ public class TeleportManager {
public boolean pulse() {
if (delay == 0) {
if (entity instanceof Player) {
entity.asPlayer().getAudioManager().send(200);
entity.asPlayer().getAudioManager().send(5036);
}
entity.getAnimator().forceAnimation(new Animation(getSettings().getStartEmote()));
entity.graphics(new Graphics(getSettings().getStartGfx()));
@@ -590,7 +590,7 @@ public class TeleportManager {
entity.getProperties().setTeleportLocation(Location.create(location));
fireRandom(entity, location);
if (entity instanceof Player) {
entity.asPlayer().getAudioManager().send(201);
entity.asPlayer().getAudioManager().send(5034);
}
entity.getAnimator().forceAnimation(new Animation(getSettings().getEndEmote(), Priority.HIGH));
entity.graphics(new Graphics(getSettings().getEndGfx()));