Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

411 řádky
7.5 KiB

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