Changed particles for wings

This commit is contained in:
LCastr0 2017-01-21 19:58:59 -02:00
parent 023ed5ed4a
commit 9876c0c61c
2 changed files with 13 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public class ParticleWingsLove extends ParticleGadget
{
private ShapeWings _wings = new ShapeWings(UtilParticle.ParticleType.RED_DUST.particleName, new Vector(1, 1, 1), 1, 0, false, ShapeWings.DEFAULT_ROTATION, ShapeWings.BUTTERFLY_WING_PATTERN);
private ShapeWings _wingsEdge = new ShapeWings(UtilParticle.ParticleType.HEART.particleName, new Vector(0, 0, 0), 0, 0, true, ShapeWings.DEFAULT_ROTATION, ShapeWings.BUTTERFLY_WING_PATTERN);
private ShapeWings _wingsEdge = new ShapeWings(UtilParticle.ParticleType.RED_DUST.particleName, new Vector(0, 0, 0), 0, 0, true, ShapeWings.DEFAULT_ROTATION, ShapeWings.BUTTERFLY_WING_PATTERN);
public ParticleWingsLove(GadgetManager manager)
{
@ -44,7 +44,8 @@ public class ParticleWingsLove extends ParticleGadget
return;
}
if (event.getType() == UpdateType.SEC) UtilParticle.PlayParticle(UtilParticle.ParticleType.HEART, player.getLocation(), 0.75f, 0.75f, 0.75f, 0.5f, 7, UtilParticle.ViewDist.NORMAL);
if (event.getType() == UpdateType.FAST) _wings.displayColored(loc, Color.PINK);
if (event.getType() == UpdateType.FAST) _wingsEdge.display(loc);
if (event.getType() == UpdateType.FAST) _wingsEdge.displayColored(loc, Color.PINK);
}
}

View File

@ -507,10 +507,19 @@ public class PetManager extends MiniClientPlugin<PetClient>
Location loc = creature.getLocation().clone().add(0, .5, 0).add(creature.getLocation().getDirection().multiply(-0.2));
_cupidWings.displayColored(loc, Color.PINK);
_cupidWingsEdge.display(loc);
_cupidWingsEdge.displayColored(loc, Color.PINK);
}
}
}
else if (event.getType() == UpdateType.SEC)
{
PetType petType = getActivePetType(playerName);
if (petType == PetType.CUPID_PET)
{
Location loc = creature.getLocation().clone().add(0, .5, 0);
UtilParticle.PlayParticle(ParticleType.HEART, loc, 0.25f, 0.25f, 0.25f, 0.25f, 3, ViewDist.NORMAL);
}
}
}
if (event.getType() != UpdateType.FAST)