@robsonbittencourt/calc 0.11.7 → 0.11.9
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.
- package/dist/data/production.min.js +1 -1
- package/dist/data/species.js +59 -22
- package/dist/data/species.js.map +1 -1
- package/dist/desc.js +9 -4
- package/dist/desc.js.map +1 -1
- package/dist/production.min.js +1 -1
- package/dist/result.js +1 -1
- package/dist/result.js.map +1 -1
- package/dist/test/berry.test.js +37 -20
- package/dist/test/berry.test.js.map +1 -1
- package/package.json +1 -1
- package/src/data/species.ts +32 -13
- package/src/desc.ts +7 -4
- package/src/result.ts +1 -0
- package/src/test/berry.test.ts +40 -20
package/dist/data/species.js
CHANGED
|
@@ -62,7 +62,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
62
62
|
}
|
|
63
63
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
64
64
|
};
|
|
65
|
-
var e_1, _a, e_2, _b;
|
|
65
|
+
var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
|
|
66
66
|
exports.__esModule = true;
|
|
67
67
|
exports.Species = exports.SPECIES = void 0;
|
|
68
68
|
var util_1 = require("../util");
|
|
@@ -8948,8 +8948,40 @@ var SS_PATCH = {
|
|
|
8948
8948
|
}
|
|
8949
8949
|
};
|
|
8950
8950
|
var SS = (0, util_1.extend)(true, {}, SM, SS_PATCH);
|
|
8951
|
-
delete SS['Pikachu-Starter'];
|
|
8952
8951
|
delete SS['Eevee-Starter'];
|
|
8952
|
+
removeAttr(SS, 'Eevee', 'otherFormes');
|
|
8953
|
+
delete SS['Pikachu-Starter'];
|
|
8954
|
+
var TOTEM_SIZED = [
|
|
8955
|
+
'Araquanid-Totem',
|
|
8956
|
+
'Gumshoos-Totem',
|
|
8957
|
+
'Kommo-o-Totem',
|
|
8958
|
+
'Lurantis-Totem',
|
|
8959
|
+
'Marowak-Alola-Totem',
|
|
8960
|
+
'Mimikyu-Busted-Totem',
|
|
8961
|
+
'Mimikyu-Totem',
|
|
8962
|
+
'Raticate-Alola-Totem',
|
|
8963
|
+
'Ribombee-Totem',
|
|
8964
|
+
'Salazzle-Totem',
|
|
8965
|
+
'Togedemaru-Totem',
|
|
8966
|
+
'Vikavolt-Totem',
|
|
8967
|
+
];
|
|
8968
|
+
try {
|
|
8969
|
+
for (var TOTEM_SIZED_1 = __values(TOTEM_SIZED), TOTEM_SIZED_1_1 = TOTEM_SIZED_1.next(); !TOTEM_SIZED_1_1.done; TOTEM_SIZED_1_1 = TOTEM_SIZED_1.next()) {
|
|
8970
|
+
var species = TOTEM_SIZED_1_1.value;
|
|
8971
|
+
var base = SS[SS[species].baseSpecies];
|
|
8972
|
+
base.otherFormes = __spreadArray([], __read(new Set(base.otherFormes)), false).filter(function (f) { return !f.endsWith('-Totem'); });
|
|
8973
|
+
if (!base.otherFormes.length)
|
|
8974
|
+
delete base.otherFormes;
|
|
8975
|
+
delete SS[species];
|
|
8976
|
+
}
|
|
8977
|
+
}
|
|
8978
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
8979
|
+
finally {
|
|
8980
|
+
try {
|
|
8981
|
+
if (TOTEM_SIZED_1_1 && !TOTEM_SIZED_1_1.done && (_a = TOTEM_SIZED_1["return"])) _a.call(TOTEM_SIZED_1);
|
|
8982
|
+
}
|
|
8983
|
+
finally { if (e_1) throw e_1.error; }
|
|
8984
|
+
}
|
|
8953
8985
|
var PLA_PATCH = {
|
|
8954
8986
|
Arcanine: { otherFormes: ['Arcanine-Hisui'] },
|
|
8955
8987
|
Avalugg: { otherFormes: ['Avalugg-Hisui'] },
|
|
@@ -10694,8 +10726,8 @@ var ZA_PATCH = {
|
|
|
10694
10726
|
};
|
|
10695
10727
|
var SV = (0, util_1.extend)(true, {}, SS, PLA_PATCH, SV_PATCH, ZA_PATCH);
|
|
10696
10728
|
try {
|
|
10697
|
-
for (var
|
|
10698
|
-
var
|
|
10729
|
+
for (var _e = __values(Object.entries(SV)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
10730
|
+
var _g = __read(_f.value, 2), name_1 = _g[0], specie = _g[1];
|
|
10699
10731
|
if (name_1.endsWith('-Gmax')) {
|
|
10700
10732
|
delete SV[name_1];
|
|
10701
10733
|
continue;
|
|
@@ -10707,12 +10739,12 @@ try {
|
|
|
10707
10739
|
}
|
|
10708
10740
|
}
|
|
10709
10741
|
}
|
|
10710
|
-
catch (
|
|
10742
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
10711
10743
|
finally {
|
|
10712
10744
|
try {
|
|
10713
|
-
if (
|
|
10745
|
+
if (_f && !_f.done && (_b = _e["return"])) _b.call(_e);
|
|
10714
10746
|
}
|
|
10715
|
-
finally { if (
|
|
10747
|
+
finally { if (e_2) throw e_2.error; }
|
|
10716
10748
|
}
|
|
10717
10749
|
var CHAMPIONS_LIST = [
|
|
10718
10750
|
'Abomasnow',
|
|
@@ -11007,19 +11039,24 @@ var CHAMPIONS_PATCH = {
|
|
|
11007
11039
|
'Floette-Mega': { baseSpecies: 'Floette-Eternal' }
|
|
11008
11040
|
};
|
|
11009
11041
|
var CHAMPIONS = (0, util_1.extend)(true, {}, Object.fromEntries(CHAMPIONS_LIST.map(function (s) { return [s, SV[s]]; })), CHAMPIONS_PATCH);
|
|
11010
|
-
removeAttr(CHAMPIONS, 'Alcremie', 'otherFormes');
|
|
11011
|
-
removeAttr(CHAMPIONS, 'Appletun', 'otherFormes');
|
|
11012
|
-
removeAttr(CHAMPIONS, 'Araquanid', 'otherFormes');
|
|
11013
|
-
removeAttr(CHAMPIONS, 'Corviknight', 'otherFormes');
|
|
11014
|
-
removeAttr(CHAMPIONS, 'Flapple', 'otherFormes');
|
|
11015
11042
|
removeAttr(CHAMPIONS, 'Floette-Eternal', 'baseSpecies');
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11043
|
+
try {
|
|
11044
|
+
for (var _h = __values(Object.values(CHAMPIONS)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
11045
|
+
var species = _j.value;
|
|
11046
|
+
if (species.otherFormes) {
|
|
11047
|
+
species.otherFormes = __spreadArray([], __read(new Set(species.otherFormes)), false).filter(function (f) { return CHAMPIONS_LIST.includes(f); });
|
|
11048
|
+
if (!species.otherFormes.length)
|
|
11049
|
+
delete species.otherFormes;
|
|
11050
|
+
}
|
|
11051
|
+
}
|
|
11052
|
+
}
|
|
11053
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
11054
|
+
finally {
|
|
11055
|
+
try {
|
|
11056
|
+
if (_j && !_j.done && (_c = _h["return"])) _c.call(_h);
|
|
11057
|
+
}
|
|
11058
|
+
finally { if (e_3) throw e_3.error; }
|
|
11059
|
+
}
|
|
11023
11060
|
exports.SPECIES = [CHAMPIONS, RBY, GSC, ADV, DPP, BW, XY, SM, SS, SV];
|
|
11024
11061
|
var Species = (function () {
|
|
11025
11062
|
function Species(gen) {
|
|
@@ -11093,11 +11130,11 @@ try {
|
|
|
11093
11130
|
gen++;
|
|
11094
11131
|
}
|
|
11095
11132
|
}
|
|
11096
|
-
catch (
|
|
11133
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
11097
11134
|
finally {
|
|
11098
11135
|
try {
|
|
11099
|
-
if (SPECIES_1_1 && !SPECIES_1_1.done && (
|
|
11136
|
+
if (SPECIES_1_1 && !SPECIES_1_1.done && (_d = SPECIES_1["return"])) _d.call(SPECIES_1);
|
|
11100
11137
|
}
|
|
11101
|
-
finally { if (
|
|
11138
|
+
finally { if (e_4) throw e_4.error; }
|
|
11102
11139
|
}
|
|
11103
11140
|
//# sourceMappingURL=species.js.map
|