unite-lib 1.3.0 → 1.3.1
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/README.md +19 -7
- package/dist/i18n/index.cjs +11 -0
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.global.js +11 -0
- package/dist/i18n/index.global.js.map +1 -1
- package/dist/i18n/index.js +11 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +17 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.global.js +16 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4860,11 +4860,11 @@ function getPokemonByName(name) {
|
|
|
4860
4860
|
function getPokemonByDex(dex) {
|
|
4861
4861
|
return pokemons_default.find((p) => p.dex === dex);
|
|
4862
4862
|
}
|
|
4863
|
+
function getPokemonSlug(pokemon) {
|
|
4864
|
+
return pokemon.images.main.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
|
|
4865
|
+
}
|
|
4863
4866
|
function getPokemonBySlug(slug) {
|
|
4864
|
-
return pokemons_default.find((p) =>
|
|
4865
|
-
const s = p.images.main.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
|
|
4866
|
-
return s === slug;
|
|
4867
|
-
});
|
|
4867
|
+
return pokemons_default.find((p) => getPokemonSlug(p) === slug);
|
|
4868
4868
|
}
|
|
4869
4869
|
function getPokemonsByBattleType(battleType) {
|
|
4870
4870
|
return pokemons_default.filter((p) => p.battleType === battleType);
|
|
@@ -4891,6 +4891,8 @@ for (const m of maps_default) {
|
|
|
4891
4891
|
for (const n of neutrals_default) {
|
|
4892
4892
|
names[n.id] = n.name;
|
|
4893
4893
|
}
|
|
4894
|
+
names["mega-mewtwo-x"] = "Mega Mewtwo X";
|
|
4895
|
+
names["mega-mewtwo-y"] = "Mega Mewtwo Y";
|
|
4894
4896
|
Object.assign(names, {
|
|
4895
4897
|
"spawn.info.groudon.boss": "<p>When defeated, all team members alive receive a <strong>buff</strong> and <strong>15 aeos points</strong>.<br>This buff is <strong>permanent until the holder is KO'd</strong>. When the holder is <strong>KO'd</strong>, the buff <strong>transfers to the killer</strong>.<br>It provides a <strong>goal-scoring speed boost</strong>, a <strong>huge damage boost</strong>, and a <strong>small shield</strong>.<br>Always spawn at 2:00.</p>",
|
|
4896
4898
|
"spawn.info.bunnelby.initial": "<p>They <strong>spawn at the beginning of the game</strong> and <strong>never respawn</strong> once killed.</p><p>Give 2 points.</p>",
|
|
@@ -5025,9 +5027,12 @@ var jaJP = {
|
|
|
5025
5027
|
vaporeon: "\u30B7\u30E3\u30EF\u30FC\u30BA",
|
|
5026
5028
|
snorlax: "\u30AB\u30D3\u30B4\u30F3",
|
|
5027
5029
|
zapdos: "\u30B5\u30F3\u30C0\u30FC",
|
|
5030
|
+
moltres: "\u30D5\u30A1\u30A4\u30E4\u30FC",
|
|
5028
5031
|
dragonite: "\u30AB\u30A4\u30EA\u30E5\u30FC",
|
|
5029
5032
|
mewtwox: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCX",
|
|
5030
5033
|
mewtwoy: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCY",
|
|
5034
|
+
"mega-mewtwo-x": "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCX",
|
|
5035
|
+
"mega-mewtwo-y": "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCY",
|
|
5031
5036
|
mew: "\u30DF\u30E5\u30A6",
|
|
5032
5037
|
azumarill: "\u30DE\u30EA\u30EB\u30EA",
|
|
5033
5038
|
espeon: "\u30A8\u30FC\u30D5\u30A3",
|
|
@@ -5188,9 +5193,12 @@ var fr = {
|
|
|
5188
5193
|
vaporeon: "Aquali",
|
|
5189
5194
|
snorlax: "Ronflex",
|
|
5190
5195
|
zapdos: "\xC9lecthor",
|
|
5196
|
+
moltres: "Sulfura",
|
|
5191
5197
|
dragonite: "Dracolosse",
|
|
5192
5198
|
mewtwox: "M\xE9ga-Mewtwo X",
|
|
5193
5199
|
mewtwoy: "M\xE9ga-Mewtwo Y",
|
|
5200
|
+
"mega-mewtwo-x": "M\xE9ga-Mewtwo X",
|
|
5201
|
+
"mega-mewtwo-y": "M\xE9ga-Mewtwo Y",
|
|
5194
5202
|
mew: "Mew",
|
|
5195
5203
|
azumarill: "Azumarill",
|
|
5196
5204
|
espeon: "Mentali",
|
|
@@ -5351,9 +5359,12 @@ var es = {
|
|
|
5351
5359
|
vaporeon: "Vaporeon",
|
|
5352
5360
|
snorlax: "Snorlax",
|
|
5353
5361
|
zapdos: "Zapdos",
|
|
5362
|
+
moltres: "Moltres",
|
|
5354
5363
|
dragonite: "Dragonite",
|
|
5355
5364
|
mewtwox: "Mega-Mewtwo X",
|
|
5356
5365
|
mewtwoy: "Mega-Mewtwo Y",
|
|
5366
|
+
"mega-mewtwo-x": "Mega-Mewtwo X",
|
|
5367
|
+
"mega-mewtwo-y": "Mega-Mewtwo Y",
|
|
5357
5368
|
mew: "Mew",
|
|
5358
5369
|
azumarill: "Azumarill",
|
|
5359
5370
|
espeon: "Espeon",
|
|
@@ -5538,6 +5549,7 @@ export {
|
|
|
5538
5549
|
getPokemonByName,
|
|
5539
5550
|
getPokemonBySlug,
|
|
5540
5551
|
getPokemonName,
|
|
5552
|
+
getPokemonSlug,
|
|
5541
5553
|
getPokemonsByBattleType,
|
|
5542
5554
|
getPokemonsByTag,
|
|
5543
5555
|
getSpawnInfo,
|