gw2e-account-statistics 3.17.3 → 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
+ ];
@@ -174,6 +174,7 @@ exports.default = function (accountData, extraInformation) {
174
174
  // (12) WORLD VS WORLD
175
175
  potionOfWvwRewards: countItems(items, 78600),
176
176
  skirmishChests: countItems(items, [84966, 81324, 96536]),
177
+ infiniteWvwBlueprints: countItems(items, _infiniteWvwBlueprints2.default, true),
177
178
 
178
179
  // (13) PLAYER VS PLAYER
179
180
  potionOfPvpRewards: countItems(items, 68110),
@@ -416,6 +417,10 @@ var _statInfusions = require('../gameData/statInfusions');
416
417
 
417
418
  var _statInfusions2 = _interopRequireDefault(_statInfusions);
418
419
 
420
+ var _infiniteWvwBlueprints = require('../static/infiniteWvwBlueprints');
421
+
422
+ var _infiniteWvwBlueprints2 = _interopRequireDefault(_infiniteWvwBlueprints);
423
+
419
424
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
420
425
 
421
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.3",
3
+ "version": "3.17.4",
4
4
  "description": "Calculate statistics of guildwars2 accounts",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -178,7 +178,8 @@ describe('statistics > items', () => {
178
178
  silentSymphony: null,
179
179
  arcaneFlowInfusion: null,
180
180
  mistwalkerInfusion: null,
181
- statInfusions: null
181
+ statInfusions: null,
182
+ infiniteWvwBlueprints: null
182
183
  }
183
184
 
184
185
  const bothPermissions = {bank: null, characters: null}
@@ -996,4 +997,14 @@ describe('statistics > items', () => {
996
997
  { id: 47897, count: 1 }
997
998
  ]), EXTRA_INFO).statInfusions).to.equal(3)
998
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
+ })
999
1010
  })