mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Fixed barbarian stomp sound playing for nova
Implemented client-side callbacks for srvstfunc and srvdofunc Changed stomp sound to play for client-side srvdofunc callback
This commit is contained in:
parent
25885b46fe
commit
b56eec0dda
@ -21,6 +21,33 @@ public class SkillCastHandler extends PassiveSystem {
|
||||
public void onSkillCast(SkillCastEvent event) {
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void srvstfunc(SkillStartEvent event) {
|
||||
log.trace("srvstfunc({},{})", event.entityId, event.srvstfunc);
|
||||
switch (event.srvstfunc) {
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
log.warn("Unsupported srvstfunc({}) for {} casting {}", event.srvstfunc, event.entityId, event.skillId);
|
||||
// TODO: default case will log an error when all valid cases are enumerated
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void srvdofunc(SkillDoEvent event) {
|
||||
log.trace("srvdofunc({},{})", event.entityId, event.srvdofunc);
|
||||
switch (event.srvdofunc) {
|
||||
case 0:
|
||||
break;
|
||||
case 68: // shouts
|
||||
Riiablo.audio.play("barbarian_circle_1", true);
|
||||
break;
|
||||
default:
|
||||
log.warn("Unsupported srvdofunc({}) for {} casting {}", event.srvdofunc, event.entityId, event.skillId);
|
||||
// TODO: default case will log an error when all valid cases are enumerated
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void cltstfunc(SkillStartEvent event) {
|
||||
log.trace("cltstfunc({},{})", event.entityId, event.cltstfunc);
|
||||
@ -53,8 +80,7 @@ public class SkillCastHandler extends PassiveSystem {
|
||||
switch (event.cltdofunc) {
|
||||
case 0:
|
||||
break;
|
||||
case 25: // shout
|
||||
Riiablo.audio.play("barbarian_circle_1", true);
|
||||
case 25: // shouts / novas
|
||||
break;
|
||||
default:
|
||||
log.warn("Unsupported cltdofunc({}) for {} casting {}", event.cltdofunc, event.entityId, event.skillId);
|
||||
|
Loading…
Reference in New Issue
Block a user