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:
Collin Smith 2020-08-23 19:23:24 -07:00
parent 25885b46fe
commit b56eec0dda

View File

@ -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);