gw2e-account-statistics 3.7.0 → 3.9.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.
@@ -64,6 +64,7 @@ describe('statistics > items', () => {
64
64
  petrifiedWood: null,
65
65
  tomesOfKnowledge: null,
66
66
  permanentContracts: null,
67
+ permanentLoungePasses: null,
67
68
  freshWinterberries: null,
68
69
  wintersHeartInfusions: null,
69
70
  kodasWarmthEnrichment: null,
@@ -76,6 +77,9 @@ describe('statistics > items', () => {
76
77
  dragoniteOre: null,
77
78
  bloodstoneDust: null,
78
79
  empyrealFragments: null,
80
+ essenceOfDespair: null,
81
+ essenceOfGreed: null,
82
+ essenceOfTriumph: null,
79
83
  crystallineOre: null,
80
84
  airshipOil: null,
81
85
  auricDust: null,
@@ -132,7 +136,10 @@ describe('statistics > items', () => {
132
136
  jormagEyeInfusions: null,
133
137
  primordusEyeInfusions: null,
134
138
  _legendaryInsightsFromItems: null,
135
- _legendaryDivinationsFromItems: null
139
+ imperialEverbloom: null,
140
+ clockworkInfusion: null,
141
+ jotunInfusion: null,
142
+ _legendaryDivinationsFromItems: null,
136
143
  }
137
144
 
138
145
  const bothPermissions = {bank: null, characters: null}
@@ -471,9 +478,9 @@ describe('statistics > items', () => {
471
478
  it('can calculate fish items count', () => {
472
479
  const _statistics = itemsStatistics(generateAccount([
473
480
  {id: 66323, count: 1},
474
- {id: 30687, count: 1},
481
+ {id: 97654, count: 2},
475
482
  {id: 82432, count: 1},
476
- {id: 38129, count: 1},
483
+ {id: 97409, count: 1},
477
484
  {id: 83826, count: 1}
478
485
  ]))
479
486
 
@@ -64,6 +64,7 @@ describe('statistics > items', () => {
64
64
  petrifiedWood: null,
65
65
  tomesOfKnowledge: null,
66
66
  permanentContracts: null,
67
+ permanentLoungePasses: null,
67
68
  freshWinterberries: null,
68
69
  wintersHeartInfusions: null,
69
70
  kodasWarmthEnrichment: null,
@@ -76,6 +77,9 @@ describe('statistics > items', () => {
76
77
  dragoniteOre: null,
77
78
  bloodstoneDust: null,
78
79
  empyrealFragments: null,
80
+ essenceOfDespair: null,
81
+ essenceOfGreed: null,
82
+ essenceOfTriumph: null,
79
83
  crystallineOre: null,
80
84
  airshipOil: null,
81
85
  auricDust: null,
@@ -132,6 +136,9 @@ describe('statistics > items', () => {
132
136
  jormagEyeInfusions: null,
133
137
  primordusEyeInfusions: null,
134
138
  _legendaryInsightsFromItems: null,
139
+ imperialEverbloom: null,
140
+ clockworkInfusion: null,
141
+ jotunInfusion: null,
135
142
  _legendaryDivinationsFromItems: null
136
143
  }
137
144
 
@@ -64,6 +64,7 @@ describe('statistics > items', () => {
64
64
  petrifiedWood: null,
65
65
  tomesOfKnowledge: null,
66
66
  permanentContracts: null,
67
+ permanentLoungePasses: null,
67
68
  freshWinterberries: null,
68
69
  wintersHeartInfusions: null,
69
70
  kodasWarmthEnrichment: null,
@@ -76,6 +77,9 @@ describe('statistics > items', () => {
76
77
  dragoniteOre: null,
77
78
  bloodstoneDust: null,
78
79
  empyrealFragments: null,
80
+ essenceOfDespair: null,
81
+ essenceOfGreed: null,
82
+ essenceOfTriumph: null,
79
83
  crystallineOre: null,
80
84
  airshipOil: null,
81
85
  auricDust: null,
@@ -132,7 +136,10 @@ describe('statistics > items', () => {
132
136
  jormagEyeInfusions: null,
133
137
  primordusEyeInfusions: null,
134
138
  _legendaryInsightsFromItems: null,
135
- _legendaryDivinationsFromItems: null
139
+ imperialEverbloom: null,
140
+ clockworkInfusion: null,
141
+ jotunInfusion: null,
142
+
136
143
  }
137
144
 
138
145
  const bothPermissions = {bank: null, characters: null}
@@ -471,7 +478,7 @@ describe('statistics > items', () => {
471
478
  it('can calculate fish items count', () => {
472
479
  const _statistics = itemsStatistics(generateAccount([
473
480
  {id: 66323, count: 1},
474
- {id: , count: 2},
481
+ {id: 97654, count: 2},
475
482
  {id: 82432, count: 1},
476
483
  {id: 97409, count: 1},
477
484
  {id: 83826, count: 1}
@@ -64,6 +64,7 @@ describe('statistics > items', () => {
64
64
  petrifiedWood: null,
65
65
  tomesOfKnowledge: null,
66
66
  permanentContracts: null,
67
+ permanentLoungePasses: null,
67
68
  freshWinterberries: null,
68
69
  wintersHeartInfusions: null,
69
70
  kodasWarmthEnrichment: null,
@@ -76,6 +77,9 @@ describe('statistics > items', () => {
76
77
  dragoniteOre: null,
77
78
  bloodstoneDust: null,
78
79
  empyrealFragments: null,
80
+ essenceOfDespair: null,
81
+ essenceOfGreed: null,
82
+ essenceOfTriumph: null,
79
83
  crystallineOre: null,
80
84
  airshipOil: null,
81
85
  auricDust: null,
@@ -132,7 +136,12 @@ describe('statistics > items', () => {
132
136
  jormagEyeInfusions: null,
133
137
  primordusEyeInfusions: null,
134
138
  _legendaryInsightsFromItems: null,
135
- _legendaryDivinationsFromItems: null
139
+ imperialEverbloom: null,
140
+ clockworkInfusion: null,
141
+ jotunInfusion: null,
142
+ _legendaryDivinationsFromItems: null,
143
+ marshFrog: null,
144
+ miniProfessorMew: null
136
145
  }
137
146
 
138
147
  const bothPermissions = {bank: null, characters: null}
@@ -471,9 +480,9 @@ describe('statistics > items', () => {
471
480
  it('can calculate fish items count', () => {
472
481
  const _statistics = itemsStatistics(generateAccount([
473
482
  {id: 66323, count: 1},
474
- {id: , count: 2},
483
+ {id: 97654, count: 2},
475
484
  {id: 82432, count: 1},
476
- {id: , count: 1},
485
+ {id: 97409, count: 1},
477
486
  {id: 83826, count: 1}
478
487
  ]))
479
488
 
@@ -59,11 +59,16 @@ exports.default = {
59
59
  tyrianDefenseSeals: 60,
60
60
  researchNotes: 61,
61
61
  unusualCoins: 62,
62
+ astralAcclaim: 63,
62
63
  jadeSlivers: 64,
63
64
  testimonyOfJadeHeroics: 65,
64
65
  ancientCoins: 66,
65
66
  canachCoins: 67,
66
67
  imperialFavor: 68,
67
68
  talesOfDungeonDelving: 69,
68
- _legendaryInsightsFromWallet: 70
69
+ _legendaryInsightsFromWallet: 70,
70
+ jadeMinersKeycard: 71,
71
+ staticCharge: 72,
72
+ pinchOfStardust: 73,
73
+ calcifiedGasp: 75
69
74
  };
@@ -133,6 +133,7 @@ exports.default = function (accountData) {
133
133
  emblemOfTheConqueror: countItems(items, 93146),
134
134
  emblemOfTournamentVictory: countItems(items, 93012),
135
135
  emblemOfVictory: countItems(items, 93022),
136
+ miniProfessorMew: countItems(items, 74268),
136
137
 
137
138
  // (10) ASCENDED MATERIALS
138
139
  dragoniteOre: weightedCountItems(items, { 46733: 1, 46732: 100 }),
@@ -317,6 +318,7 @@ exports.default = function (accountData) {
317
318
  crumblingBone: countItems(items, 19530),
318
319
  mangledTalon: countItems(items, 19576),
319
320
  clumpOfResin: countItems(items, 19537),
321
+ marshFrog: countItems(items, 24420),
320
322
 
321
323
  // (XXX) Used for aggregate statistics
322
324
  _unstableFractalEssenceFromItems: unstableFractalEssenceFromItems(items)
@@ -14,6 +14,7 @@ exports.default = function (accountData) {
14
14
  southsunSurvivalRounds: achievementCurrent(accountData, 752, 6),
15
15
  crabTossRounds: achievementCurrent(accountData, 757, 12),
16
16
  winterWonderlandCompletions: winterWonderlandCompletions(accountData),
17
+ madKingsClockTowerCompletions: achievementCurrent(accountData, 3926, 3),
17
18
  wvwPlayerKills: achievementCurrent(accountData, 283),
18
19
  wvwSupplyCaravansKilled: achievementCurrent(accountData, 288),
19
20
  wvwSupplyCaravansEscorted: achievementCurrent(accountData, 285),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gw2e-account-statistics",
3
- "version": "3.7.0",
3
+ "version": "3.9.0",
4
4
  "description": "Calculate statistics of guildwars2 accounts",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -38,10 +38,13 @@ describe('statistics > aggregate', () => {
38
38
  snowDiamondInfusions: 1,
39
39
  toyShellInfusions: 1,
40
40
  wintersHeartInfusions: 1,
41
+ imperialEverbloom: 1,
42
+ clockworkInfusion: 1,
43
+ jotunInfusion: 1,
41
44
 
42
45
  // (!) Has to be ignored, else it's counting double
43
46
  celestialInfusion: 999
44
- }).totalAuras).to.equal(29)
47
+ }).totalAuras).to.equal(32)
45
48
  })
46
49
 
47
50
  it('can calculate death count per hour', () => {
@@ -136,7 +136,12 @@ describe('statistics > items', () => {
136
136
  jormagEyeInfusions: null,
137
137
  primordusEyeInfusions: null,
138
138
  _legendaryInsightsFromItems: null,
139
- _legendaryDivinationsFromItems: null
139
+ imperialEverbloom: null,
140
+ clockworkInfusion: null,
141
+ jotunInfusion: null,
142
+ _legendaryDivinationsFromItems: null,
143
+ marshFrog: null,
144
+ miniProfessorMew: null
140
145
  }
141
146
 
142
147
  const bothPermissions = {bank: null, characters: null}
@@ -106,6 +106,14 @@ describe('statistics > progression', () => {
106
106
  }).winterWonderlandCompletions).to.equal(8293)
107
107
  })
108
108
 
109
+ it('can calculate the completed mad king\'s clock tower jps', () => {
110
+ expect(progressionStatistics({}).madKingsClockTowerCompletions).to.equal(null)
111
+ expect(progressionStatistics({achievements: []}).madKingsClockTowerCompletions).to.equal(0)
112
+ expect(progressionStatistics({
113
+ achievements: [{id: 3926, current: 1, max: 3, done: true, repeated: 15}]
114
+ }).madKingsClockTowerCompletions).to.equal(46)
115
+ })
116
+
109
117
  it('can calculate the completed dungeons', () => {
110
118
  expect(progressionStatistics({}).completedDungeons).to.equal(null)
111
119
  expect(progressionStatistics({achievements: []}).completedDungeons).to.equal(0)
@@ -69,7 +69,12 @@ describe('statistics > wallet', () => {
69
69
  canachCoins: null,
70
70
  imperialFavor: null,
71
71
  talesOfDungeonDelving: null,
72
- _legendaryInsightsFromWallet: null
72
+ _legendaryInsightsFromWallet: null,
73
+ astralAcclaim: null,
74
+ calcifiedGasp: null,
75
+ jadeMinersKeycard: null,
76
+ pinchOfStardust: null,
77
+ staticCharge: null
73
78
  })
74
79
  })
75
80
 
@@ -184,7 +189,12 @@ describe('statistics > wallet', () => {
184
189
  ancientCoins: 0,
185
190
  imperialFavor: 0,
186
191
  talesOfDungeonDelving: 0,
187
- _legendaryInsightsFromWallet: 0
192
+ _legendaryInsightsFromWallet: 0,
193
+ astralAcclaim: 0,
194
+ calcifiedGasp: 0,
195
+ jadeMinersKeycard: 0,
196
+ pinchOfStardust: 0,
197
+ staticCharge: 0
188
198
  })
189
199
  })
190
200