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:
@@ -480,6 +480,7 @@ public class Player extends Entity {
|
|||||||
if(time == 0){
|
if(time == 0){
|
||||||
sendMessage(colorize("%RYour antifire potion has expired."));
|
sendMessage(colorize("%RYour antifire potion has expired."));
|
||||||
removeAttribute("fire:immune");
|
removeAttribute("fire:immune");
|
||||||
|
getAudioManager().send(2607);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(getAttribute("poison:immunity",0) > 0){
|
if(getAttribute("poison:immunity",0) > 0){
|
||||||
@@ -491,6 +492,7 @@ public class Player extends Entity {
|
|||||||
if(time == 0){
|
if(time == 0){
|
||||||
sendMessage(colorize("%RYour antipoison potion has expired."));
|
sendMessage(colorize("%RYour antipoison potion has expired."));
|
||||||
removeAttribute("poison:immunity");
|
removeAttribute("poison:immunity");
|
||||||
|
getAudioManager().send(2607);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!artificial && (System.currentTimeMillis() - getSession().getLastPing()) > 20_000L) {
|
if (!artificial && (System.currentTimeMillis() - getSession().getLastPing()) > 20_000L) {
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ public final class RuneCraftPulse extends SkillPulse<Item> {
|
|||||||
public void animate() {
|
public void animate() {
|
||||||
player.animate(ANIMATION);
|
player.animate(ANIMATION);
|
||||||
player.graphics(GRAPHICS);
|
player.graphics(GRAPHICS);
|
||||||
|
player.getAudioManager().send(2710);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user