@robsonbittencourt/calc 0.11.5 → 0.11.6

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.
@@ -374,7 +374,7 @@ var SV = SS.concat([
374
374
  'Wind Rider',
375
375
  'Zero to Hero',
376
376
  ]);
377
- var Champions = [
377
+ var CHAMPIONS = [
378
378
  'Adaptability',
379
379
  'Aerilate',
380
380
  'Aftermath',
@@ -587,7 +587,7 @@ var Champions = [
587
587
  'White Smoke',
588
588
  'Zero to Hero',
589
589
  ];
590
- exports.ABILITIES = [Champions, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
590
+ exports.ABILITIES = [CHAMPIONS, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
591
591
  var Abilities = (function () {
592
592
  function Abilities(gen) {
593
593
  this.gen = gen;
@@ -592,7 +592,7 @@ var SV = SS.concat(__spreadArray(__spreadArray([], __read(Object.keys(ZA_MEGA_ST
592
592
  'Unremarkable Teacup',
593
593
  'Wellspring Mask',
594
594
  ], false).sort());
595
- var Champions = [
595
+ var CHAMPIONS = [
596
596
  'Abomasite',
597
597
  'Absolite',
598
598
  'Aerodactylite',
@@ -791,7 +791,7 @@ var BERRIES = {
791
791
  'Yache Berry': { t: 'Ice', p: 80 }
792
792
  };
793
793
  exports.MEGA_STONES = Object.assign({}, GEN_6_MEGA_STONES, ZA_MEGA_STONES);
794
- exports.ITEMS = [Champions, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
794
+ exports.ITEMS = [CHAMPIONS, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
795
795
  var Items = (function () {
796
796
  function Items(gen) {
797
797
  this.gen = gen;
@@ -37,7 +37,7 @@ var __values = (this && this.__values) || function(o) {
37
37
  };
38
38
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
39
39
  };
40
- var e_1, _a, e_2, _b, e_3, _c;
40
+ var e_1, _a, e_2, _b;
41
41
  exports.__esModule = true;
42
42
  exports.Moves = exports.MOVES = void 0;
43
43
  var util_1 = require("../util");
@@ -4920,7 +4920,7 @@ var ZA_PATCH = {
4920
4920
  }
4921
4921
  };
4922
4922
  var SV = (0, util_1.extend)(true, {}, SS, SV_PATCH, ZA_PATCH);
4923
- var ChampionsLegal = [
4923
+ var CHAMPIONS_LIST = [
4924
4924
  '(No Move)',
4925
4925
  'Accelerock',
4926
4926
  'Acid Armor',
@@ -5418,21 +5418,7 @@ var ChampionsLegal = [
5418
5418
  'Zap Cannon',
5419
5419
  'Zen Headbutt',
5420
5420
  ];
5421
- var Champions_AVAILABLE = {};
5422
- try {
5423
- for (var ChampionsLegal_1 = __values(ChampionsLegal), ChampionsLegal_1_1 = ChampionsLegal_1.next(); !ChampionsLegal_1_1.done; ChampionsLegal_1_1 = ChampionsLegal_1.next()) {
5424
- var move = ChampionsLegal_1_1.value;
5425
- Champions_AVAILABLE[move] = SV[move];
5426
- }
5427
- }
5428
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
5429
- finally {
5430
- try {
5431
- if (ChampionsLegal_1_1 && !ChampionsLegal_1_1.done && (_b = ChampionsLegal_1["return"])) _b.call(ChampionsLegal_1);
5432
- }
5433
- finally { if (e_2) throw e_2.error; }
5434
- }
5435
- var Champions_PATCH = {
5421
+ var CHAMPIONS_PATCH = {
5436
5422
  'Apple Acid': { bp: 90 },
5437
5423
  'Beak Blast': { bp: 120 },
5438
5424
  'Bone Rush': { bp: 30 },
@@ -5452,9 +5438,9 @@ var Champions_PATCH = {
5452
5438
  'Spirit Shackle': { bp: 90 },
5453
5439
  'Trop Kick': { bp: 85 }
5454
5440
  };
5455
- var Champions = (0, util_1.extend)(true, {}, Champions_AVAILABLE, Champions_PATCH);
5456
- delete Champions['Freeze-Dry'].secondaries;
5457
- exports.MOVES = [Champions, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
5441
+ var CHAMPIONS = (0, util_1.extend)(true, {}, Object.fromEntries(CHAMPIONS_LIST.map(function (m) { return [m, SV[m]]; })), CHAMPIONS_PATCH);
5442
+ delete CHAMPIONS['Freeze-Dry'].secondaries;
5443
+ exports.MOVES = [CHAMPIONS, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
5458
5444
  var Moves = (function () {
5459
5445
  function Moves(gen) {
5460
5446
  this.gen = gen;
@@ -5555,11 +5541,11 @@ try {
5555
5541
  gen++;
5556
5542
  }
5557
5543
  }
5558
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
5544
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
5559
5545
  finally {
5560
5546
  try {
5561
- if (MOVES_1_1 && !MOVES_1_1.done && (_c = MOVES_1["return"])) _c.call(MOVES_1);
5547
+ if (MOVES_1_1 && !MOVES_1_1.done && (_b = MOVES_1["return"])) _b.call(MOVES_1);
5562
5548
  }
5563
- finally { if (e_3) throw e_3.error; }
5549
+ finally { if (e_2) throw e_2.error; }
5564
5550
  }
5565
5551
  //# sourceMappingURL=moves.js.map