mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
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:
commit
fc4959dc4b
2 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue