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.
 
 
 

53 lines
773 B

  1. define([
  2. 'misc/events'
  3. ], function(
  4. events
  5. ) {
  6. var classes = {
  7. spells: {
  8. wizard: ['ice spear'],
  9. cleric: ['healing circle'],
  10. warrior: ['charge'],
  11. thief: ['smokebomb']
  12. },
  13. stats: {
  14. wizard: {
  15. values: {
  16. hpMax: 80
  17. },
  18. vitScale: 10,
  19. },
  20. cleric: {
  21. values: {
  22. hpMax: 90
  23. },
  24. vitScale: 10
  25. },
  26. warrior: {
  27. values: {
  28. hpMax: 110
  29. },
  30. vitScale: 10
  31. },
  32. thief: {
  33. values: {
  34. hpMax: 100
  35. },
  36. vitScale: 10
  37. }
  38. },
  39. weapons: {
  40. wizard: 'Gnarled Staff',
  41. cleric: 'Mace',
  42. thief: 'Dagger',
  43. warrior: 'Axe'
  44. },
  45. getSpritesheet: function(className) {
  46. return this.stats[className].spritesheet || 'characters';
  47. }
  48. };
  49. events.emit('onBeforeGetClasses', classes);
  50. return classes;
  51. });