gw2e-account-statistics 3.17.2 → 3.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,7 @@ exports.default = function (accountData, extraInformation) {
104
104
  }).map(function (x) {
105
105
  return x.id;
106
106
  })),
107
+ legendaryItemsUpgradeComponent: countItems(items, [91505, 91536, 101582]),
107
108
  brokenSpoons: countItems(items, 74996),
108
109
  shinyBaubles: countItems(items, 70093),
109
110
  championBags: countItems(items, _championBagIds2.default),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gw2e-account-statistics",
3
- "version": "3.17.2",
3
+ "version": "3.17.3",
4
4
  "description": "Calculate statistics of guildwars2 accounts",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -45,6 +45,7 @@ describe('statistics > items', () => {
45
45
  legendaryItemsArmor: null,
46
46
  legendaryItemsBack: null,
47
47
  legendaryItemsTrinket: null,
48
+ legendaryItemsUpgradeComponent: null,
48
49
  luminescentRefractors: null,
49
50
  preservedQueenBees: null,
50
51
  permanentTools: null,
@@ -255,6 +256,17 @@ describe('statistics > items', () => {
255
256
  ]), EXTRA_INFO).legendaryItemsTrinket).to.equal(1)
256
257
  })
257
258
 
259
+ it('can calculate legendary upgrade component count', () => {
260
+ expect(itemsStatistics(generateAccount([
261
+ {id: 123, count: 1},
262
+ {id: 74155, count: 1},
263
+ {id: 80277, count: 1},
264
+ {id: 1, count: 1},
265
+ {id: 91536, count: 1},
266
+ {id: 77474, count: 1}
267
+ ]), EXTRA_INFO).legendaryItemsUpgradeComponent).to.equal(1)
268
+ })
269
+
258
270
  it('can calculate fractal tonic count', () => {
259
271
  expect(itemsStatistics(generateAccount([
260
272
  {id: 49277, count: 1},