Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

95 Zeilen
2.5 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 => !item.power || item.power < 3
  19. ]
  20. }]
  21. }, {
  22. name: 'Reroll',
  23. description: 'Rerolls an item\'s implicit and explicit stats. Augmentations are not affected.',
  24. materials: [{
  25. name: 'Unstable Idol',
  26. quantity: 1
  27. }],
  28. needItems: [{
  29. info: 'Pick an item to reroll',
  30. withProps: ['slot'],
  31. withoutProps: ['noAugment']
  32. }],
  33. craftAction: reroll
  34. }, {
  35. name: 'Increase Level',
  36. description: 'Adds [1 - 3] to an item\'s required level. Items with higher levels yield better stats when rerolled.',
  37. materials: [{
  38. name: 'Ascendant Idol',
  39. quantity: 1
  40. }],
  41. needItems: [{
  42. info: 'Pick the item you wish to ascend',
  43. withProps: ['slot'],
  44. withoutProps: ['noAugment'],
  45. checks: [
  46. item => item.level && (item.originalLevel || item.level) < consts.maxLevel
  47. ]
  48. }],
  49. craftAction: relevel
  50. }, {
  51. name: 'Reslot',
  52. description: 'Reforms the item into a random new item that retains the source item\'s quality and stat types.',
  53. materials: [{
  54. name: 'Dragon-Glass Idol',
  55. quantity: 1
  56. }],
  57. needItems: [{
  58. info: 'Pick an item to reslot',
  59. withProps: ['slot'],
  60. withoutProps: ['noAugment', 'effects', 'factions']
  61. }],
  62. craftAction: reslot
  63. }, {
  64. name: 'Reforge Weapon',
  65. description: 'Rerolls a weapon\'s damage range.',
  66. materials: [{
  67. name: 'Bone Idol',
  68. quantity: 1
  69. }],
  70. needItems: [{
  71. info: 'Pick an item to reforge',
  72. withProps: ['slot', 'spell'],
  73. withoutProps: ['noAugment']
  74. }],
  75. craftAction: reforge
  76. }, {
  77. name: 'Scour',
  78. description: 'Wipe all augments from an item.',
  79. materials: [{
  80. name: 'Smoldering Idol',
  81. quantity: 1
  82. }],
  83. needItems: [{
  84. info: 'Pick an item to scour',
  85. withProps: ['slot', 'power'],
  86. withoutProps: ['noAugment']
  87. }],
  88. craftAction: scour,
  89. checks: [
  90. item => item.power && item.power >= 1
  91. ]
  92. }];