You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

63 lines
990 B

  1. module.exports = {
  2. events: {
  3. beforeSpawnProjectile: function (item, spell, projectileConfig) {
  4. if (spell.name.toLowerCase() !== 'ice spear')
  5. return;
  6. let cpnProjectile = projectileConfig.components.find(c => (c.type === 'projectile'));
  7. cpnProjectile.particles = {
  8. color: {
  9. start: ['51fc9a', '48edff'],
  10. end: ['48edff', '51fc9a']
  11. },
  12. scale: {
  13. start: {
  14. min: 2,
  15. max: 12
  16. },
  17. end: {
  18. min: 0,
  19. max: 6
  20. }
  21. },
  22. lifetime: {
  23. min: 2,
  24. max: 4
  25. },
  26. alpha: {
  27. start: 0.7,
  28. end: 0
  29. },
  30. speed: {
  31. start: {
  32. min: 4,
  33. max: 24
  34. },
  35. end: {
  36. min: 0,
  37. max: 12
  38. }
  39. },
  40. startRotation: {
  41. min: 0,
  42. max: 360
  43. },
  44. rotationSpeed: {
  45. min: 0,
  46. max: 360
  47. },
  48. randomScale: true,
  49. randomColor: true,
  50. randomSpeed: true,
  51. chance: 0.55,
  52. spawnType: 'circle',
  53. spawnCircle: {
  54. x: 0,
  55. y: 0,
  56. r: 8
  57. }
  58. };
  59. }
  60. }
  61. };