gw2e-account-statistics 3.14.1 → 3.15.0

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,15 @@
1
+ 'use strict';
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _statInfusions = require('@gw2efficiency/game-data/items/categories/stat-infusions');
6
+
7
+ var _statInfusions2 = _interopRequireDefault(_statInfusions);
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+
11
+ var statInfusionIds = _statInfusions2.default.map(function (x) {
12
+ return x.id;
13
+ });
14
+
15
+ exports.default = statInfusionIds;
@@ -143,6 +143,7 @@ exports.default = function (accountData) {
143
143
  emblemOfTournamentVictory: countItems(items, 93012),
144
144
  emblemOfVictory: countItems(items, 93022),
145
145
  miniProfessorMew: countItems(items, 74268),
146
+ statInfusions: countItems(items, _statInfusions2.default),
146
147
 
147
148
  // (10) ASCENDED MATERIALS
148
149
  dragoniteOre: weightedCountItems(items, { 46733: 1, 46732: 100 }),
@@ -394,6 +395,10 @@ var _abyssalFractalWeapons = require('../static/abyssalFractalWeapons');
394
395
 
395
396
  var _abyssalFractalWeapons2 = _interopRequireDefault(_abyssalFractalWeapons);
396
397
 
398
+ var _statInfusions = require('../gameData/statInfusions');
399
+
400
+ var _statInfusions2 = _interopRequireDefault(_statInfusions);
401
+
397
402
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
398
403
 
399
404
  // 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.14.1",
3
+ "version": "3.15.0",
4
4
  "description": "Calculate statistics of guildwars2 accounts",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -157,7 +157,8 @@ describe('statistics > items', () => {
157
157
  possessionInfusion: null,
158
158
  silentSymphony: null,
159
159
  arcaneFlowInfusion: null,
160
- mistwalkerInfusion: null
160
+ mistwalkerInfusion: null,
161
+ statInfusions: null
161
162
  }
162
163
 
163
164
  const bothPermissions = {bank: null, characters: null}
@@ -954,4 +955,14 @@ describe('statistics > items', () => {
954
955
  {id: 81761, count: 9999999} // Celestial Infusion (Blue) -- (!) Does not count
955
956
  ]))._unstableFractalEssenceFromItems).to.equal(7410)
956
957
  })
958
+
959
+ it('can calculate stat infusion count', () => {
960
+ expect(itemsStatistics(generateAccount([
961
+ { id: 101263, count: 2 },
962
+ { id: 101146, count: 1 },
963
+ { id: 71383, count: 1 },
964
+ { id: 38129, count: 1 },
965
+ { id: 47897, count: 1 }
966
+ ])).statInfusions).to.equal(3)
967
+ })
957
968
  })