Merge branch 'runecrafting-sfx' into 'master'

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

See merge request 2009scape/2009scape!276
This commit is contained in:
Ceikry 2021-09-28 13:48:18 +00:00
commit fc4959dc4b
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