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.
 
 
 

388 lines
6.5 KiB

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