gw2e-account-statistics 3.14.0 → 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.0",
3
+ "version": "3.15.0",
4
4
  "description": "Calculate statistics of guildwars2 accounts",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -41,10 +41,17 @@ describe('statistics > aggregate', () => {
41
41
  imperialEverbloom: 1,
42
42
  clockworkInfusion: 1,
43
43
  jotunInfusion: 1,
44
+ wurmsBlessingEnrichment: 1,
45
+ echoOfTheDragonvoid: 1,
46
+ moteOfDarkness: 1,
47
+ possessionInfusion: 1,
48
+ silentSymphony: 1,
49
+ arcaneFlowInfusion: 1,
50
+ mistwalkerInfusion: 1,
44
51
 
45
52
  // (!) Has to be ignored, else it's counting double
46
53
  celestialInfusion: 999
47
- }).totalAuras).to.equal(32)
54
+ }).totalAuras).to.equal(39)
48
55
  })
49
56
 
50
57
  it('can calculate death count per hour', () => {
@@ -150,7 +150,15 @@ describe('statistics > items', () => {
150
150
  jotunInfusion: null,
151
151
  _legendaryDivinationsFromItems: null,
152
152
  marshFrog: null,
153
- miniProfessorMew: null
153
+ miniProfessorMew: null,
154
+ wurmsBlessingEnrichment: null,
155
+ echoOfTheDragonvoid: null,
156
+ moteOfDarkness: null,
157
+ possessionInfusion: null,
158
+ silentSymphony: null,
159
+ arcaneFlowInfusion: null,
160
+ mistwalkerInfusion: null,
161
+ statInfusions: null
154
162
  }
155
163
 
156
164
  const bothPermissions = {bank: null, characters: null}
@@ -947,4 +955,14 @@ describe('statistics > items', () => {
947
955
  {id: 81761, count: 9999999} // Celestial Infusion (Blue) -- (!) Does not count
948
956
  ]))._unstableFractalEssenceFromItems).to.equal(7410)
949
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
+ })
950
968
  })