From 25b4464512da89e647925178d01996697dcaec1b Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Thu, 11 Nov 2021 00:38:55 -0500 Subject: [PATCH] Add fairy ring teleportation sound effect. --- CHANGELOG | 3 ++- .../core/game/node/entity/player/link/TeleportManager.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8559182a0..7412cbd9b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -49,4 +49,5 @@ - Fix Yak Hide Armor crafting level requirements - Spiky Vambraces crafing added - Fixed Typo in Professor Oddenstein's dialogue -- Random Events can no longer spawn in the wilderness. \ No newline at end of file +- Random Events can no longer spawn in the wilderness. +- Fairy rings emit a sound when teleporting. diff --git a/Server/src/main/java/core/game/node/entity/player/link/TeleportManager.java b/Server/src/main/java/core/game/node/entity/player/link/TeleportManager.java index d3933cfe2..4e7b5750a 100644 --- a/Server/src/main/java/core/game/node/entity/player/link/TeleportManager.java +++ b/Server/src/main/java/core/game/node/entity/player/link/TeleportManager.java @@ -447,6 +447,9 @@ public class TeleportManager { switch (++delay) { case 2: entity.animate(Animation.create(3265)); + if(entity instanceof Player) { + ((Player) entity).getAudioManager().send(1098, 1); + } break; case 4: Quest quest = null; @@ -834,4 +837,4 @@ public class TeleportManager { public void setTeleportType(int teleportType) { this.teleportType = teleportType; } -} \ No newline at end of file +}