gw2e-account-statistics 3.17.1 → 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 +2 -0
- package/package.json +1 -1
- package/tests/items.spec.js +13 -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),
|
|
@@ -126,6 +127,7 @@ exports.default = function (accountData, extraInformation) {
|
|
|
126
127
|
amnytasHerosChoice: countItems(items, 100193),
|
|
127
128
|
innerNayosEndHerosChoice: countItems(items, 101195),
|
|
128
129
|
convergenceHerosChoice: countItems(items, 101185),
|
|
130
|
+
convergenceMountBalriorWayfindersChoice: countItems(items, 103842),
|
|
129
131
|
citadelOfZakirosHerosChoice: countItems(items, 101748),
|
|
130
132
|
janthirSyntriHerosChoice: countItems(items, 102265),
|
|
131
133
|
giftsOfExploration: countItems(items, 19677),
|
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,
|
|
@@ -84,6 +85,7 @@ describe('statistics > items', () => {
|
|
|
84
85
|
amnytasHerosChoice: null,
|
|
85
86
|
innerNayosEndHerosChoice: null,
|
|
86
87
|
convergenceHerosChoice: null,
|
|
88
|
+
convergenceMountBalriorWayfindersChoice: null,
|
|
87
89
|
citadelOfZakirosHerosChoice: null,
|
|
88
90
|
janthirSyntriHerosChoice: null,
|
|
89
91
|
uniqueTonics: null,
|
|
@@ -254,6 +256,17 @@ describe('statistics > items', () => {
|
|
|
254
256
|
]), EXTRA_INFO).legendaryItemsTrinket).to.equal(1)
|
|
255
257
|
})
|
|
256
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
|
+
|
|
257
270
|
it('can calculate fractal tonic count', () => {
|
|
258
271
|
expect(itemsStatistics(generateAccount([
|
|
259
272
|
{id: 49277, count: 1},
|