Add proper sound effects for crafting runes and antifire/antiposion expiration.

This commit is contained in:
Avi Weinstock 2021-09-27 16:56:40 -04:00
parent 4124ebdef3
commit a7ff35c9d2
2 changed files with 3 additions and 0 deletions

View file

@ -480,6 +480,7 @@ public class Player extends Entity {
if(time == 0){
sendMessage(colorize("%RYour antifire potion has expired."));
removeAttribute("fire:immune");
getAudioManager().send(2607);
}
}
if(getAttribute("poison:immunity",0) > 0){
@ -491,6 +492,7 @@ public class Player extends Entity {
if(time == 0){
sendMessage(colorize("%RYour antipoison potion has expired."));
removeAttribute("poison:immunity");
getAudioManager().send(2607);
}
}
if (!artificial && (System.currentTimeMillis() - getSession().getLastPing()) > 20_000L) {

View file

@ -133,6 +133,7 @@ public final class RuneCraftPulse extends SkillPulse<Item> {
public void animate() {
player.animate(ANIMATION);
player.graphics(GRAPHICS);
player.getAudioManager().send(2710);
}
@Override