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.
 
 
 

62 lines
1.2 KiB

  1. module.exports = {
  2. currencies: {
  3. 'Unstable Idol': {
  4. quantity: 1,
  5. quality: 1,
  6. description: 'Rerolls the stats on an item',
  7. material: true,
  8. sprite: [1, 8],
  9. action: 'reroll'
  10. },
  11. 'Ascendant Idol': {
  12. quantity: 1,
  13. quality: 2,
  14. description: 'Increases the level of an item',
  15. material: true,
  16. sprite: [3, 8],
  17. action: 'relevel'
  18. },
  19. 'Dragon-Glass Idol': {
  20. quantity: 1,
  21. quality: 3,
  22. description: 'Rerolls an item\'s slot',
  23. material: true,
  24. sprite: [6, 8],
  25. action: 'reslot'
  26. },
  27. 'Bone Idol': {
  28. quantity: 1,
  29. quality: 3,
  30. description: 'Rescales a weapon\'s damage',
  31. material: true,
  32. sprite: [7, 8],
  33. action: 'reforge'
  34. },
  35. 'Smoldering Idol': {
  36. quantity: 1,
  37. quality: 4,
  38. description: 'Removes all augments from an item',
  39. material: true,
  40. sprite: [8, 8],
  41. action: 'scour'
  42. }
  43. },
  44. chance: {
  45. 'Unstable Idol': 37,
  46. 'Ascendant Idol': 15,
  47. 'Dragon-Glass Idol': 5,
  48. 'Bone Idol': 6,
  49. 'Smoldering Idol': 1
  50. },
  51. getCurrencyFromAction: function (action) {
  52. let currencies = this.currencies;
  53. let pick = Object.keys(currencies).find(o => (currencies[o].action === action));
  54. return extend(true, {
  55. name: pick
  56. }, currencies[pick]);
  57. }
  58. };