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.
 
 
 

386 rivejä
6.5 KiB

  1. let events = require('../misc/events');
  2. let spells = [{
  3. name: 'Melee',
  4. description: 'Performs a quick melee attack.',
  5. type: 'melee',
  6. icon: [7, 0]
  7. }, {
  8. name: 'Projectile',
  9. description: 'Performs a basic magical attack.',
  10. type: 'projectile',
  11. icon: [7, 1],
  12. animation: 'hitStaff',
  13. row: 11,
  14. col: 4,
  15. speed: 110,
  16. particles: {
  17. color: {
  18. start: ['ffeb38', 'ff6942'],
  19. end: ['ff6942', 'd43346']
  20. },
  21. scale: {
  22. start: {
  23. min: 2,
  24. max: 14
  25. },
  26. end: {
  27. min: 0,
  28. max: 8
  29. }
  30. },
  31. lifetime: {
  32. min: 1,
  33. max: 1
  34. },
  35. alpha: {
  36. start: 0.5,
  37. end: 0
  38. },
  39. randomScale: true,
  40. randomColor: true,
  41. chance: 0.25
  42. }
  43. }, {
  44. name: 'Magic Missile',
  45. description: 'Launches an orb of unfocused energy at your target.',
  46. type: 'projectile',
  47. icon: [1, 0],
  48. animation: 'hitStaff',
  49. particles: {
  50. color: {
  51. start: ['7a3ad3', '3fa7dd'],
  52. end: ['3fa7dd', '7a3ad3']
  53. },
  54. scale: {
  55. start: {
  56. min: 2,
  57. max: 14
  58. },
  59. end: {
  60. min: 0,
  61. max: 8
  62. }
  63. },
  64. lifetime: {
  65. min: 1,
  66. max: 3
  67. },
  68. alpha: {
  69. start: 0.7,
  70. end: 0
  71. },
  72. randomScale: true,
  73. randomColor: true,
  74. chance: 0.6
  75. }
  76. }, {
  77. name: 'Ice Spear',
  78. description: 'A jagged projectile of pure ice pierces your target and slows his movement.',
  79. type: 'iceSpear',
  80. icon: [1, 1],
  81. animation: 'hitStaff',
  82. particles: {
  83. color: {
  84. start: ['51fc9a', '48edff'],
  85. end: ['48edff', '44cb95']
  86. },
  87. scale: {
  88. start: {
  89. min: 2,
  90. max: 12
  91. },
  92. end: {
  93. min: 0,
  94. max: 6
  95. }
  96. },
  97. lifetime: {
  98. min: 1,
  99. max: 2
  100. },
  101. alpha: {
  102. start: 0.8,
  103. end: 0
  104. },
  105. randomScale: true,
  106. randomColor: true,
  107. frequency: 0.2
  108. }
  109. }, {
  110. name: 'Fireblast',
  111. description: 'Unleashes a blast of fire that damages and pushes back nearby foes.',
  112. type: 'fireblast',
  113. icon: [1, 2],
  114. animation: 'raiseStaff',
  115. particles: {
  116. color: {
  117. start: ['d43346', 'faac45'],
  118. end: ['c0c3cf', '929398']
  119. },
  120. scale: {
  121. start: {
  122. min: 4,
  123. max: 24
  124. },
  125. end: {
  126. min: 0,
  127. max: 12
  128. }
  129. },
  130. frequency: 0.02,
  131. emitterLifetime: 0.15,
  132. spawnType: 'circle',
  133. lifetime: {
  134. min: 1,
  135. max: 2
  136. },
  137. spawnCircle: {
  138. x: 0,
  139. y: 0,
  140. r: 8
  141. },
  142. speed: {
  143. start: {
  144. min: 4,
  145. max: 24
  146. },
  147. end: {
  148. min: 0,
  149. max: 12
  150. }
  151. },
  152. randomSpeed: true,
  153. randomScale: true,
  154. randomColor: true
  155. }
  156. }, {
  157. name: 'Smite',
  158. description: 'Calls down holy energy from the heavens upon your foe.',
  159. type: 'smite',
  160. row: 2,
  161. col: 0,
  162. icon: [0, 0],
  163. animation: 'hitStaff'
  164. }, {
  165. name: 'Consecrate',
  166. description: 'Creates a circle of pure holy energy that heals allies for a brief period.',
  167. type: 'healingCircle',
  168. icon: [0, 1],
  169. animation: 'raiseStaff',
  170. particles: {
  171. scale: {
  172. start: {
  173. min: 6,
  174. max: 16
  175. },
  176. end: {
  177. min: 0,
  178. max: 4
  179. }
  180. },
  181. speed: {
  182. start: {
  183. min: 2,
  184. max: 12
  185. },
  186. end: {
  187. min: 0,
  188. max: 4
  189. }
  190. },
  191. lifetime: {
  192. min: 1,
  193. max: 3
  194. },
  195. alpha: {
  196. start: 0.45,
  197. end: 0
  198. },
  199. color: {
  200. start: ['ffeb38', 'fcfcfc'],
  201. end: ['fcfcfc', 'faac45']
  202. },
  203. spawnType: 'circle',
  204. spawnCircle: {
  205. x: 0,
  206. y: 0,
  207. r: 12
  208. },
  209. randomScale: true,
  210. randomColor: true,
  211. randomSpeed: true,
  212. chance: 0.02
  213. }
  214. }, {
  215. name: 'Holy Vengeance',
  216. description: 'Grants holy vengeance to a friendly target. For the duration of the effect, dealing damage will also heal the attacker.',
  217. type: 'holyVengeance',
  218. spellType: 'buff',
  219. icon: [0, 2]
  220. }, {
  221. name: 'Slash',
  222. description: 'Performs a melee attack with your equipped weapon.',
  223. type: 'slash',
  224. row: 0,
  225. col: 0,
  226. icon: [3, 0],
  227. animation: 'hitSword'
  228. }, {
  229. name: 'Charge',
  230. type: 'charge',
  231. description: 'Charges at a foe, dealing damage and stunning them for a short period.',
  232. icon: [3, 1],
  233. animation: 'raiseShield'
  234. }, {
  235. name: 'Reflect Damage',
  236. type: 'reflectdamage',
  237. description: 'Gain an ethereal shield that reflects damage until the buff wears off.',
  238. icon: [3, 2],
  239. animation: 'raiseShield'
  240. }, {
  241. name: 'Flurry',
  242. type: 'flurry',
  243. description: 'Grants a stack of frenzy, greatly inreasing your attack speed.',
  244. animation: 'hitSword',
  245. row: 1,
  246. col: 0,
  247. icon: [2, 3]
  248. }, {
  249. name: 'Smokebomb',
  250. type: 'smokeBomb',
  251. description: 'Envelops the caster in a cloud of poisonous smoke, dealing damage to enemies every tick until it dissipates.',
  252. animation: 'raiseHands',
  253. icon: [2, 1],
  254. particles: {
  255. scale: {
  256. start: {
  257. min: 16,
  258. max: 30
  259. },
  260. end: {
  261. min: 8,
  262. max: 14
  263. }
  264. },
  265. opacity: {
  266. start: 0.02,
  267. end: 0
  268. },
  269. lifetime: {
  270. min: 1,
  271. max: 3
  272. },
  273. speed: {
  274. start: 12,
  275. end: 2
  276. },
  277. color: {
  278. start: ['fcfcfc', '80f643'],
  279. end: ['c0c3cf', '2b4b3e']
  280. },
  281. chance: 0.03,
  282. randomColor: true,
  283. randomScale: true,
  284. blendMode: 'screen'
  285. }
  286. }, {
  287. name: 'Whirlwind',
  288. description: 'You furiously spin in a circle, striking all foes around you.',
  289. type: 'whirlwind',
  290. icon: [5, 0],
  291. row: 5,
  292. col: 0,
  293. frames: 3
  294. }, {
  295. name: 'Ambush',
  296. type: 'ambush',
  297. description: 'Step into the shadows and reappear behind your target before delivering a concussing blow.',
  298. icon: [2, 4],
  299. animation: 'raiseShield'
  300. }, {
  301. name: 'Stealth',
  302. description: 'The thief slips into the shadows and becomes undetectable by foes. Performing an attack removes this effect.',
  303. type: 'stealth',
  304. icon: [2, 2]
  305. },
  306. {
  307. name: 'Crystal Spikes',
  308. description: 'Jagged crystals break through the ground at your target destination',
  309. type: 'warnBlast',
  310. animation: 'raiseHands',
  311. icon: [0, 7],
  312. particles: {
  313. color: {
  314. start: ['c0c3cf', '929398'],
  315. end: ['929398', 'c0c3cf']
  316. },
  317. scale: {
  318. start: {
  319. min: 4,
  320. max: 10
  321. },
  322. end: {
  323. min: 0,
  324. max: 4
  325. }
  326. },
  327. speed: {
  328. start: {
  329. min: 2,
  330. max: 16
  331. },
  332. end: {
  333. min: 0,
  334. max: 8
  335. }
  336. },
  337. lifetime: {
  338. min: 1,
  339. max: 1
  340. },
  341. spawnType: 'circle',
  342. spawnCircle: {
  343. x: 0,
  344. y: 0,
  345. r: 12
  346. },
  347. randomScale: true,
  348. randomSpeed: true,
  349. chance: 0.075,
  350. randomColor: true
  351. }
  352. }, {
  353. name: 'Chain Lightning',
  354. description: 'Creates a circle of pure holy energy that heals allies for a brief period.',
  355. type: 'chainLightning',
  356. icon: [0, 1],
  357. animation: 'raiseStaff'
  358. }, {
  359. name: 'Innervation',
  360. description: 'Grants an aura that regenerates hp for you and your allies.',
  361. type: 'aura',
  362. spellType: 'aura',
  363. icon: [3, 3]
  364. }, {
  365. name: 'Tranquility',
  366. description: 'Grants an aura that regenerates mana for you and your allies.',
  367. type: 'aura',
  368. spellType: 'aura',
  369. icon: [3, 4]
  370. }, {
  371. name: 'Swiftness',
  372. description: 'Grants an aura that grants increased movement speed to you and your allies.',
  373. type: 'aura',
  374. spellType: 'aura',
  375. icon: [3, 5]
  376. }
  377. ];
  378. module.exports = {
  379. spells: spells,
  380. init: function () {
  381. events.emit('onBeforeGetSpellsInfo', spells);
  382. }
  383. };