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.
- package/build/statistics/items.js +1 -0
- package/package.json +1 -1
- package/tests/items.spec.js +12 -0
|
@@ -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
package/tests/items.spec.js
CHANGED
|
@@ -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},
|