unite-lib 1.3.0 → 1.3.2
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 +14 -3
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.global.js +14 -3
- package/dist/i18n/index.global.js.map +1 -1
- package/dist/i18n/index.js +14 -3
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +20 -7
- 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 +19 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
getPokemonByName: () => getPokemonByName,
|
|
35
35
|
getPokemonBySlug: () => getPokemonBySlug,
|
|
36
36
|
getPokemonName: () => getPokemonName,
|
|
37
|
+
getPokemonSlug: () => getPokemonSlug,
|
|
37
38
|
getPokemonsByBattleType: () => getPokemonsByBattleType,
|
|
38
39
|
getPokemonsByTag: () => getPokemonsByTag,
|
|
39
40
|
getSpawnInfo: () => getSpawnInfo,
|
|
@@ -2450,7 +2451,7 @@ var maps = [
|
|
|
2450
2451
|
"2": "maps/map-groudon/map-groudon@2x.png",
|
|
2451
2452
|
"4": "maps/map-groudon/map-groudon@4x.png"
|
|
2452
2453
|
},
|
|
2453
|
-
description: "Map with Groudon
|
|
2454
|
+
description: "Map with Groudon"
|
|
2454
2455
|
},
|
|
2455
2456
|
{
|
|
2456
2457
|
id: "map-kyogre",
|
|
@@ -2461,7 +2462,7 @@ var maps = [
|
|
|
2461
2462
|
"2": "maps/map-kyogre/map-kyogre@2x.png",
|
|
2462
2463
|
"4": "maps/map-kyogre/map-kyogre@4x.png"
|
|
2463
2464
|
},
|
|
2464
|
-
description: "Map with Kyogre
|
|
2465
|
+
description: "Map with Kyogre"
|
|
2465
2466
|
},
|
|
2466
2467
|
{
|
|
2467
2468
|
id: "map-rayquaza",
|
|
@@ -2472,7 +2473,7 @@ var maps = [
|
|
|
2472
2473
|
"2": "maps/map-rayquaza/map-rayquaza@2x.png",
|
|
2473
2474
|
"4": "maps/map-rayquaza/map-rayquaza@4x.png"
|
|
2474
2475
|
},
|
|
2475
|
-
description: "Map with Rayquaza
|
|
2476
|
+
description: "Map with Rayquaza"
|
|
2476
2477
|
}
|
|
2477
2478
|
];
|
|
2478
2479
|
var maps_default = maps;
|
|
@@ -4909,11 +4910,11 @@ function getPokemonByName(name) {
|
|
|
4909
4910
|
function getPokemonByDex(dex) {
|
|
4910
4911
|
return pokemons_default.find((p) => p.dex === dex);
|
|
4911
4912
|
}
|
|
4913
|
+
function getPokemonSlug(pokemon) {
|
|
4914
|
+
return pokemon.images.main.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
|
|
4915
|
+
}
|
|
4912
4916
|
function getPokemonBySlug(slug) {
|
|
4913
|
-
return pokemons_default.find((p) =>
|
|
4914
|
-
const s = p.images.main.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
|
|
4915
|
-
return s === slug;
|
|
4916
|
-
});
|
|
4917
|
+
return pokemons_default.find((p) => getPokemonSlug(p) === slug);
|
|
4917
4918
|
}
|
|
4918
4919
|
function getPokemonsByBattleType(battleType) {
|
|
4919
4920
|
return pokemons_default.filter((p) => p.battleType === battleType);
|
|
@@ -4940,6 +4941,8 @@ for (const m of maps_default) {
|
|
|
4940
4941
|
for (const n of neutrals_default) {
|
|
4941
4942
|
names[n.id] = n.name;
|
|
4942
4943
|
}
|
|
4944
|
+
names["mega-mewtwo-x"] = "Mega Mewtwo X";
|
|
4945
|
+
names["mega-mewtwo-y"] = "Mega Mewtwo Y";
|
|
4943
4946
|
Object.assign(names, {
|
|
4944
4947
|
"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>",
|
|
4945
4948
|
"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>",
|
|
@@ -5074,9 +5077,12 @@ var jaJP = {
|
|
|
5074
5077
|
vaporeon: "\u30B7\u30E3\u30EF\u30FC\u30BA",
|
|
5075
5078
|
snorlax: "\u30AB\u30D3\u30B4\u30F3",
|
|
5076
5079
|
zapdos: "\u30B5\u30F3\u30C0\u30FC",
|
|
5080
|
+
moltres: "\u30D5\u30A1\u30A4\u30E4\u30FC",
|
|
5077
5081
|
dragonite: "\u30AB\u30A4\u30EA\u30E5\u30FC",
|
|
5078
5082
|
mewtwox: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCX",
|
|
5079
5083
|
mewtwoy: "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCY",
|
|
5084
|
+
"mega-mewtwo-x": "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCX",
|
|
5085
|
+
"mega-mewtwo-y": "\u30E1\u30AC\u30DF\u30E5\u30A6\u30C4\u30FCY",
|
|
5080
5086
|
mew: "\u30DF\u30E5\u30A6",
|
|
5081
5087
|
azumarill: "\u30DE\u30EA\u30EB\u30EA",
|
|
5082
5088
|
espeon: "\u30A8\u30FC\u30D5\u30A3",
|
|
@@ -5237,9 +5243,12 @@ var fr = {
|
|
|
5237
5243
|
vaporeon: "Aquali",
|
|
5238
5244
|
snorlax: "Ronflex",
|
|
5239
5245
|
zapdos: "\xC9lecthor",
|
|
5246
|
+
moltres: "Sulfura",
|
|
5240
5247
|
dragonite: "Dracolosse",
|
|
5241
5248
|
mewtwox: "M\xE9ga-Mewtwo X",
|
|
5242
5249
|
mewtwoy: "M\xE9ga-Mewtwo Y",
|
|
5250
|
+
"mega-mewtwo-x": "M\xE9ga-Mewtwo X",
|
|
5251
|
+
"mega-mewtwo-y": "M\xE9ga-Mewtwo Y",
|
|
5243
5252
|
mew: "Mew",
|
|
5244
5253
|
azumarill: "Azumarill",
|
|
5245
5254
|
espeon: "Mentali",
|
|
@@ -5400,9 +5409,12 @@ var es = {
|
|
|
5400
5409
|
vaporeon: "Vaporeon",
|
|
5401
5410
|
snorlax: "Snorlax",
|
|
5402
5411
|
zapdos: "Zapdos",
|
|
5412
|
+
moltres: "Moltres",
|
|
5403
5413
|
dragonite: "Dragonite",
|
|
5404
5414
|
mewtwox: "Mega-Mewtwo X",
|
|
5405
5415
|
mewtwoy: "Mega-Mewtwo Y",
|
|
5416
|
+
"mega-mewtwo-x": "Mega-Mewtwo X",
|
|
5417
|
+
"mega-mewtwo-y": "Mega-Mewtwo Y",
|
|
5406
5418
|
mew: "Mew",
|
|
5407
5419
|
azumarill: "Azumarill",
|
|
5408
5420
|
espeon: "Espeon",
|
|
@@ -5588,6 +5600,7 @@ function getSpawnInfoForSpawn(spawn, locale = "en") {
|
|
|
5588
5600
|
getPokemonByName,
|
|
5589
5601
|
getPokemonBySlug,
|
|
5590
5602
|
getPokemonName,
|
|
5603
|
+
getPokemonSlug,
|
|
5591
5604
|
getPokemonsByBattleType,
|
|
5592
5605
|
getPokemonsByTag,
|
|
5593
5606
|
getSpawnInfo,
|