gw2e-account-statistics 3.17.2 → 3.17.4

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.
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = [103995, // Infinite Arrow Cart Blueprint
5
+ 103993, // Infinite Ballista Blueprint
6
+ 103963, // Infinite Catapult Blueprint
7
+ 103878, // Infinite Flame Ram Blueprint
8
+ 103915, // Infinite Shield Generator Blueprint
9
+ 103911, // Infinite Siege Golem Blueprint
10
+ 103980 // Infinite Trebuchet Blueprint
11
+ ];
@@ -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),
@@ -173,6 +174,7 @@ exports.default = function (accountData, extraInformation) {
173
174
  // (12) WORLD VS WORLD
174
175
  potionOfWvwRewards: countItems(items, 78600),
175
176
  skirmishChests: countItems(items, [84966, 81324, 96536]),
177
+ infiniteWvwBlueprints: countItems(items, _infiniteWvwBlueprints2.default, true),
176
178
 
177
179
  // (13) PLAYER VS PLAYER
178
180
  potionOfPvpRewards: countItems(items, 68110),
@@ -415,6 +417,10 @@ var _statInfusions = require('../gameData/statInfusions');
415
417
 
416
418
  var _statInfusions2 = _interopRequireDefault(_statInfusions);
417
419
 
420
+ var _infiniteWvwBlueprints = require('../static/infiniteWvwBlueprints');
421
+
422
+ var _infiniteWvwBlueprints2 = _interopRequireDefault(_infiniteWvwBlueprints);
423
+
418
424
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
419
425
 
420
426
  // Get all the items on the account
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.4",
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,
@@ -177,7 +178,8 @@ describe('statistics > items', () => {
177
178
  silentSymphony: null,
178
179
  arcaneFlowInfusion: null,
179
180
  mistwalkerInfusion: null,
180
- statInfusions: null
181
+ statInfusions: null,
182
+ infiniteWvwBlueprints: null
181
183
  }
182
184
 
183
185
  const bothPermissions = {bank: null, characters: null}
@@ -255,6 +257,17 @@ describe('statistics > items', () => {
255
257
  ]), EXTRA_INFO).legendaryItemsTrinket).to.equal(1)
256
258
  })
257
259
 
260
+ it('can calculate legendary upgrade component count', () => {
261
+ expect(itemsStatistics(generateAccount([
262
+ {id: 123, count: 1},
263
+ {id: 74155, count: 1},
264
+ {id: 80277, count: 1},
265
+ {id: 1, count: 1},
266
+ {id: 91536, count: 1},
267
+ {id: 77474, count: 1}
268
+ ]), EXTRA_INFO).legendaryItemsUpgradeComponent).to.equal(1)
269
+ })
270
+
258
271
  it('can calculate fractal tonic count', () => {
259
272
  expect(itemsStatistics(generateAccount([
260
273
  {id: 49277, count: 1},
@@ -984,4 +997,14 @@ describe('statistics > items', () => {
984
997
  { id: 47897, count: 1 }
985
998
  ]), EXTRA_INFO).statInfusions).to.equal(3)
986
999
  })
1000
+
1001
+ it('can calculate infinite blueprint count uniquely', () => {
1002
+ expect(itemsStatistics(generateAccount([
1003
+ { id: 103995, count: 2 },
1004
+ { id: 103993, count: 1 },
1005
+ { id: 71383, count: 1 },
1006
+ { id: 38129, count: 1 },
1007
+ { id: 47897, count: 1 }
1008
+ ]), EXTRA_INFO).infiniteWvwBlueprints).to.equal(2)
1009
+ })
987
1010
  })