Increase amount of smoke particles

This commit is contained in:
LCastr0 2017-05-03 22:22:16 -03:00
parent ddd196ba0c
commit cf56dfb9cf

View File

@ -15,18 +15,20 @@ public class SingleParticleKitSelector extends KitSelectorGadget
{
private UtilParticle.ParticleType _particleType;
private int _particleCount;
public SingleParticleKitSelector(GadgetManager manager, String name, String[] lore, int cost, Material mat, byte data,
UtilParticle.ParticleType particleType, String... alternativeSalesPackageNames)
UtilParticle.ParticleType particleType, int particleCount, String... alternativeSalesPackageNames)
{
super(manager, name, lore, cost, mat, data, alternativeSalesPackageNames);
_particleType = particleType;
_particleCount = particleCount;
}
@Override
public void playParticle(Entity entity, Player playTo)
{
UtilParticle.PlayParticle(_particleType, entity.getLocation().add(0, 1, 0), 0.5f, 0.5f, 0.5f, 0, 1, UtilParticle.ViewDist.NORMAL, playTo);
UtilParticle.PlayParticle(_particleType, entity.getLocation().add(0, 1, 0), 0.5f, 0.5f, 0.5f, 0, _particleCount, UtilParticle.ViewDist.NORMAL, playTo);
}
public enum SingleParticleSelectors
@ -34,7 +36,7 @@ public class SingleParticleKitSelector extends KitSelectorGadget
FLAMES_OF_FURY("Flames Of Fury", UtilText.splitLinesToArray(new String[]{C.cGray + "Placeholder"}, LineFormat.LORE),
0, Material.GLASS, (byte) 0, UtilParticle.ParticleType.FLAME),
EMBER("Ember", UtilText.splitLinesToArray(new String[]{C.cGray + "Placeholder"}, LineFormat.LORE),
0, Material.GLASS, (byte) 0, UtilParticle.ParticleType.SMOKE),
0, Material.GLASS, (byte) 0, UtilParticle.ParticleType.SMOKE, 3),
LOVE("Kit Love", UtilText.splitLinesToArray(new String[]{C.cGray + "Placeholder"}, LineFormat.LORE),
0, Material.GLASS, (byte) 0, UtilParticle.ParticleType.HEART);
@ -44,6 +46,7 @@ public class SingleParticleKitSelector extends KitSelectorGadget
private Material _material;
private byte _data;
private UtilParticle.ParticleType _particleType;
private int _particleCount = 1;
private String[] _alternativeSalesPackageNames;
SingleParticleSelectors(String name, String[] lore, int cost, Material material, byte data, UtilParticle.ParticleType particleType, String... alternativeSalesPackageNames)
@ -57,9 +60,21 @@ public class SingleParticleKitSelector extends KitSelectorGadget
_alternativeSalesPackageNames = alternativeSalesPackageNames;
}
SingleParticleSelectors(String name, String[] lore, int cost, Material material, byte data, UtilParticle.ParticleType particleType, int particleCount, String... alternativeSalesPackageNames)
{
_name = name;
_lore = lore;
_cost = cost;
_material = material;
_data = data;
_particleType = particleType;
_alternativeSalesPackageNames = alternativeSalesPackageNames;
_particleCount = particleCount;
}
public KitSelectorGadget getKitSelectorGadget(GadgetManager manager)
{
return new SingleParticleKitSelector(manager, _name, _lore, _cost, _material, _data, _particleType, _alternativeSalesPackageNames);
return new SingleParticleKitSelector(manager, _name, _lore, _cost, _material, _data, _particleType, _particleCount, _alternativeSalesPackageNames);
}
}