Play Sound Options for Ranged Attacks

This commit is contained in:
Kam committed 2025-03-19 18:07:21 -04:00
1 parent 353d90a00a
commit bcf329c0ae
5 files changed
+20 -1

No files matched your search

+5
View File
@@ -49,9 +49,12 @@ public class DataStats {
public ScriptParticle pCustom = new ScriptParticle("");
public int pEffAmp = 0;
public String fireSound = "random.bow";
public boolean onSoundBegin = false;
public boolean playBurstSound = true; // Internal Only
public byte aimType = 0;
public boolean projectilesKeepTerrain = false;
public EnumCreatureAttribute creatureType = EnumCreatureAttribute.UNDEFINED;
private EntityNPCInterface npc;
@@ -110,6 +113,7 @@ public class DataStats {
compound.setInteger("pTrail", pTrail.ordinal());
compound.setInteger("pEffAmp", pEffAmp);
compound.setString("FiringSound", fireSound);
compound.setBoolean("FiringSoundBegin", onSoundBegin);
compound.setByte("AimType", aimType);
compound.setBoolean("ProjectilesKeepTerrain", projectilesKeepTerrain);
if(pTrail == EnumParticleType.Custom)
@@ -178,6 +182,7 @@ public class DataStats {
pTrail = EnumParticleType.values()[compound.getInteger("pTrail") % EnumParticleType.values().length];
pEffAmp = compound.getInteger("pEffAmp");
fireSound = compound.getString("FiringSound");
onSoundBegin = compound.getBoolean("FiringSoundBegin");
aimType = compound.getByte("AimType");
projectilesKeepTerrain = compound.getBoolean("ProjectilesKeepTerrain");
if(pTrail == EnumParticleType.Custom)