Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

91 linhas
2.3 KiB

  1. const calculateAugmentMaterials = require('./enchanting/calculateAugmentMaterials');
  2. const reroll = require('./enchanting/craftActions/reroll');
  3. const relevel = require('./enchanting/craftActions/relevel');
  4. const augment = require('./enchanting/craftActions/augment');
  5. const reslot = require('./enchanting/craftActions/reslot');
  6. const reforge = require('./enchanting/craftActions/reforge');
  7. const scour = require('./enchanting/craftActions/scour');
  8. module.exports = [{
  9. name: 'Augment',
  10. description: 'Adds a random stat to an item. Items can hold a maximum of three augments.',
  11. materialGenerator: calculateAugmentMaterials,
  12. craftAction: augment,
  13. needItems: [{
  14. info: 'Pick an item to augment',
  15. withProps: ['slot'],
  16. withoutProps: ['noAugment'],
  17. checks: [
  18. item => {
  19. return !item.power || item.power < 3;
  20. }
  21. ]
  22. }]
  23. }, {
  24. name: 'Reroll',
  25. description: 'Rerolls an item\'s implicit and explicit stats. Augmentations are not affected.',
  26. materials: [{
  27. name: 'Unstable Idol',
  28. quantity: 1
  29. }],
  30. needItems: [{
  31. info: 'Pick an item to reroll',
  32. withProps: ['slot'],
  33. withoutProps: ['noAugment']
  34. }],
  35. craftAction: reroll
  36. }, {
  37. name: 'Increase Level',
  38. description: 'Adds [1 - 3] to an item\'s required level. Items with higher levels yield better stats when rerolled.',
  39. materials: [{
  40. name: 'Ascendant Idol',
  41. quantity: 1
  42. }],
  43. needItems: [{
  44. info: 'Pick an item to reroll',
  45. withProps: ['slot'],
  46. withoutProps: ['noAugment']
  47. }],
  48. craftAction: relevel
  49. }, {
  50. name: 'Reslot',
  51. description: 'Reforms the item into a random new item that retains the source item\'s quality and stat types.',
  52. materials: [{
  53. name: 'Dragon-Glass Idol',
  54. quantity: 1
  55. }],
  56. needItems: [{
  57. info: 'Pick an item to reroll',
  58. withProps: ['slot'],
  59. withoutProps: ['noAugment', 'effects']
  60. }],
  61. craftAction: reslot
  62. }, {
  63. name: 'Reforge Weapon',
  64. description: 'Rerolls a weapon\'s damage range.',
  65. materials: [{
  66. name: 'Bone Idol',
  67. quantity: 1
  68. }],
  69. needItems: [{
  70. info: 'Pick an item to reroll',
  71. withProps: ['slot', 'spell'],
  72. withoutProps: ['noAugment']
  73. }],
  74. craftAction: reforge
  75. }, {
  76. name: 'Scour',
  77. description: 'Rerolls a weapon\'s damage range.',
  78. materials: [{
  79. name: 'Bone Idol',
  80. quantity: 1
  81. }],
  82. needItems: [{
  83. info: 'Pick an item to reroll',
  84. withProps: ['slot', 'power'],
  85. withoutProps: ['noAugment']
  86. }],
  87. craftAction: scour
  88. }];