From d30593cc9ba19ed74e2a06e068bc5623f1dbd90c Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 23 Aug 2020 17:18:48 -0700 Subject: [PATCH] Implemented skill dosound and added stsoundclass --- core/src/com/riiablo/codec/excel/Skills.java | 2 ++ core/src/com/riiablo/engine/client/SkillCastHandler.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/core/src/com/riiablo/codec/excel/Skills.java b/core/src/com/riiablo/codec/excel/Skills.java index e40b99ca..a01c3a2b 100644 --- a/core/src/com/riiablo/codec/excel/Skills.java +++ b/core/src/com/riiablo/codec/excel/Skills.java @@ -35,6 +35,8 @@ public class Skills extends Excel { @Column public String charclass; @Column public String skilldesc; @Column public String stsound; + @Column public String stsoundclass; + @Column public String dosound; @Column public String castoverlay; @Column public String anim; @Column public String seqtrans; diff --git a/core/src/com/riiablo/engine/client/SkillCastHandler.java b/core/src/com/riiablo/engine/client/SkillCastHandler.java index d3f05479..80013a2a 100644 --- a/core/src/com/riiablo/engine/client/SkillCastHandler.java +++ b/core/src/com/riiablo/engine/client/SkillCastHandler.java @@ -39,6 +39,9 @@ public class SkillCastHandler extends PassiveSystem { @Subscribe public void cltdofunc(SkillDoEvent event) { + final Skills.Entry skill = Riiablo.files.skills.get(event.skillId); + Riiablo.audio.play(skill.dosound, true); + switch (event.cltdofunc) { case 0: break;