gw2e-account-statistics 3.4.2 → 3.5.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.
@@ -35,6 +35,15 @@ describe('statistics > items', () => {
35
35
  whiteMantlePortalDevices: null,
36
36
  blackLionClaimTickets: null,
37
37
  instruments: null,
38
+ fishItems: null,
39
+ fishItemsLegendary: null,
40
+ fishItemsAscended: null,
41
+ fishItemsExotic: null,
42
+ fishItemsRare: null,
43
+ fishItemsMasterwork: null,
44
+ fishItemsFine: null,
45
+ fishItemsBasic: null,
46
+ fishItemsJunk: null,
38
47
  musicBoxes: null,
39
48
  chakEggs: null,
40
49
  fossilizedInsects: null,
@@ -106,6 +115,7 @@ describe('statistics > items', () => {
106
115
  polysaturatingInfusions: null,
107
116
  silverwastesShovels: null,
108
117
  thirtyTwoSlotBags: null,
118
+ flyingCowTokens: null,
109
119
  heartOfTheKhanUr: null,
110
120
  brokenTwig: null,
111
121
  warmStone: null,
@@ -121,7 +131,8 @@ describe('statistics > items', () => {
121
131
  deldrimorStoneskinInfusions: null,
122
132
  jormagEyeInfusions: null,
123
133
  primordusEyeInfusions: null,
124
- _legendaryDivinationsFromItems
134
+ _legendaryInsightsFromItems: null,
135
+ _legendaryDivinationsFromItems: null
125
136
  }
126
137
 
127
138
  const bothPermissions = {bank: null, characters: null}
@@ -262,7 +273,7 @@ describe('statistics > items', () => {
262
273
 
263
274
  function countFromList (itemList) {
264
275
  const account = generateAccount(itemList.map(id => ({id, count: 1})))
265
- return itemsStatistics(account).legendaryInsights
276
+ return itemsStatistics(account)._legendaryInsightsFromItems
266
277
  }
267
278
 
268
279
  // Count the basic items
@@ -270,7 +281,7 @@ describe('statistics > items', () => {
270
281
  {id: 80516, count: 3}, // Envoy Insignia => 25 each
271
282
  {id: 78989, count: 1}, // Gift of Prowess => 25 each
272
283
  {id: 77302, count: 7} // Legendary Insight => 1 each
273
- ])).legendaryInsights, 'basic items').to.equal(3 * 25 + 25 + 7)
284
+ ]))._legendaryInsightsFromItems, 'basic items').to.equal(3 * 25 + 25 + 7)
274
285
 
275
286
  // Count the full first ascended set (from the achievement, so no LI spent)
276
287
  const oneWeightAscendedSet = [
@@ -457,6 +468,21 @@ describe('statistics > items', () => {
457
468
  ])).instruments).to.equal(2)
458
469
  })
459
470
 
471
+ it('can calculate fish items count', () => {
472
+ const _statistics = itemsStatistics(generateAccount([
473
+ {id: 66323, count: 1},
474
+ {id: , count: 2},
475
+ {id: 82432, count: 1},
476
+ {id: , count: 1},
477
+ {id: 83826, count: 1}
478
+ ]))
479
+
480
+ expect(_statistics.fishItems).to.equal(3)
481
+ expect(_statistics.fishItemsLegendary).to.equal(2)
482
+ expect(_statistics.fishItemsAscended).to.equal(1)
483
+ expect(_statistics.fishItemsExotic).to.equal(0)
484
+ })
485
+
460
486
  it('can calculate music box count', () => {
461
487
  expect(itemsStatistics(generateAccount([
462
488
  {id: 66323, count: 1},
@@ -898,7 +924,7 @@ describe('statistics > items', () => {
898
924
  {id: 81790, count: 1}, // Celestial Infusion Chest
899
925
  {id: 82070, count: 1}, // Celestial Infusion (Red)
900
926
  {id: 81632, count: 1}, // Endless Chaos Combat Tonic
901
- {id: 94021, count: 1}, // Endless Inner Demon Combat Tonic
927
+ {id: 94055, count: 1}, // Endless Inner Demon Combat Tonic
902
928
 
903
929
  {id: 81761, count: 9999999} // Celestial Infusion (Blue) -- (!) Does not count
904
930
  ]))._unstableFractalEssenceFromItems).to.equal(7410)
@@ -35,6 +35,15 @@ describe('statistics > items', () => {
35
35
  whiteMantlePortalDevices: null,
36
36
  blackLionClaimTickets: null,
37
37
  instruments: null,
38
+ fishItems: null,
39
+ fishItemsLegendary: null,
40
+ fishItemsAscended: null,
41
+ fishItemsExotic: null,
42
+ fishItemsRare: null,
43
+ fishItemsMasterwork: null,
44
+ fishItemsFine: null,
45
+ fishItemsBasic: null,
46
+ fishItemsJunk: null,
38
47
  musicBoxes: null,
39
48
  chakEggs: null,
40
49
  fossilizedInsects: null,
@@ -106,6 +115,7 @@ describe('statistics > items', () => {
106
115
  polysaturatingInfusions: null,
107
116
  silverwastesShovels: null,
108
117
  thirtyTwoSlotBags: null,
118
+ flyingCowTokens: null,
109
119
  heartOfTheKhanUr: null,
110
120
  brokenTwig: null,
111
121
  warmStone: null,
@@ -121,8 +131,8 @@ describe('statistics > items', () => {
121
131
  deldrimorStoneskinInfusions: null,
122
132
  jormagEyeInfusions: null,
123
133
  primordusEyeInfusions: null,
124
- _legendaryDivinationsFromItems: null,
125
- _legendaryInsightsFromItems: null
134
+ _legendaryInsightsFromItems: null,
135
+ _legendaryDivinationsFromItems: null
126
136
  }
127
137
 
128
138
  const bothPermissions = {bank: null, characters: null}
@@ -263,7 +273,7 @@ describe('statistics > items', () => {
263
273
 
264
274
  function countFromList (itemList) {
265
275
  const account = generateAccount(itemList.map(id => ({id, count: 1})))
266
- return itemsStatistics(account).legendaryInsights
276
+ return itemsStatistics(account)._legendaryInsightsFromItems
267
277
  }
268
278
 
269
279
  // Count the basic items
@@ -271,7 +281,7 @@ describe('statistics > items', () => {
271
281
  {id: 80516, count: 3}, // Envoy Insignia => 25 each
272
282
  {id: 78989, count: 1}, // Gift of Prowess => 25 each
273
283
  {id: 77302, count: 7} // Legendary Insight => 1 each
274
- ])).legendaryInsights, 'basic items').to.equal(3 * 25 + 25 + 7)
284
+ ]))._legendaryInsightsFromItems, 'basic items').to.equal(3 * 25 + 25 + 7)
275
285
 
276
286
  // Count the full first ascended set (from the achievement, so no LI spent)
277
287
  const oneWeightAscendedSet = [
@@ -458,6 +468,21 @@ describe('statistics > items', () => {
458
468
  ])).instruments).to.equal(2)
459
469
  })
460
470
 
471
+ it('can calculate fish items count', () => {
472
+ const _statistics = itemsStatistics(generateAccount([
473
+ {id: 66323, count: 1},
474
+ {id: , count: 2},
475
+ {id: 82432, count: 1},
476
+ {id: 97409, count: 1},
477
+ {id: 83826, count: 1}
478
+ ]))
479
+
480
+ expect(_statistics.fishItems).to.equal(3)
481
+ expect(_statistics.fishItemsLegendary).to.equal(2)
482
+ expect(_statistics.fishItemsAscended).to.equal(1)
483
+ expect(_statistics.fishItemsExotic).to.equal(0)
484
+ })
485
+
461
486
  it('can calculate music box count', () => {
462
487
  expect(itemsStatistics(generateAccount([
463
488
  {id: 66323, count: 1},
@@ -899,7 +924,7 @@ describe('statistics > items', () => {
899
924
  {id: 81790, count: 1}, // Celestial Infusion Chest
900
925
  {id: 82070, count: 1}, // Celestial Infusion (Red)
901
926
  {id: 81632, count: 1}, // Endless Chaos Combat Tonic
902
- {id: 94021, count: 1}, // Endless Inner Demon Combat Tonic
927
+ {id: 94055, count: 1}, // Endless Inner Demon Combat Tonic
903
928
 
904
929
  {id: 81761, count: 9999999} // Celestial Infusion (Blue) -- (!) Does not count
905
930
  ]))._unstableFractalEssenceFromItems).to.equal(7410)