unite-lib 1.0.3 → 1.2.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.
- package/LICENSE +21 -21
- package/README.md +248 -203
- package/dist/i18n/index.cjs +116 -6
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +12 -3
- package/dist/i18n/index.d.ts +12 -3
- package/dist/i18n/index.global.js +114 -6
- package/dist/i18n/index.global.js.map +1 -1
- package/dist/i18n/index.js +114 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +112 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.global.js +109 -17
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +109 -17
- package/dist/index.js.map +1 -1
- package/maps/map-groudon/map-groudon@1x.png +0 -0
- package/maps/map-groudon/map-groudon@2x.png +0 -0
- package/maps/map-groudon/map-groudon@4x.png +0 -0
- package/maps/map-kyogre/map-kyogre@1x.png +0 -0
- package/maps/map-kyogre/map-kyogre@2x.png +0 -0
- package/maps/map-kyogre/map-kyogre@4x.png +0 -0
- package/maps/map-rayquaza/map-rayquaza@1x.png +0 -0
- package/maps/map-rayquaza/map-rayquaza@2x.png +0 -0
- package/maps/map-rayquaza/map-rayquaza@4x.png +0 -0
- package/moves/moltres_s11.png +0 -0
- package/moves/moltres_s21.png +0 -0
- package/package.json +66 -47
- package/pokemons/roster-moltres-2x.png +0 -0
- package/pokemons/roster-moltres.png +0 -0
- package/pokemons/stat-moltres.png +0 -0
- package/maps/groudon.png +0 -0
package/dist/i18n/index.js
CHANGED
|
@@ -703,6 +703,31 @@ var pokemons = [
|
|
|
703
703
|
],
|
|
704
704
|
"difficulty": 1
|
|
705
705
|
},
|
|
706
|
+
{
|
|
707
|
+
"name": "Moltres",
|
|
708
|
+
"dex": 146,
|
|
709
|
+
"images": {
|
|
710
|
+
"main": "pokemons/roster-moltres.png",
|
|
711
|
+
"big": "pokemons/roster-moltres-2x.png",
|
|
712
|
+
"complete": "pokemons/stat-moltres.png",
|
|
713
|
+
"move_s11": "moves/moltres_s11.png",
|
|
714
|
+
"move_s21": "moves/moltres_s21.png"
|
|
715
|
+
},
|
|
716
|
+
"active": true,
|
|
717
|
+
"battleType": BattleType.ALLROUNDER,
|
|
718
|
+
"stats": {
|
|
719
|
+
"offense": 4,
|
|
720
|
+
"endurance": 2.5,
|
|
721
|
+
"mobility": 2,
|
|
722
|
+
"scoring": 2,
|
|
723
|
+
"support": 2
|
|
724
|
+
},
|
|
725
|
+
"tags": [
|
|
726
|
+
Tag.ALLROUNDER,
|
|
727
|
+
Tag.MELEE
|
|
728
|
+
],
|
|
729
|
+
"difficulty": 2
|
|
730
|
+
},
|
|
706
731
|
{
|
|
707
732
|
"name": "Dragonite",
|
|
708
733
|
"dex": 149,
|
|
@@ -731,7 +756,7 @@ var pokemons = [
|
|
|
731
756
|
"difficulty": 1
|
|
732
757
|
},
|
|
733
758
|
{
|
|
734
|
-
"name": "Mewtwo X",
|
|
759
|
+
"name": "Mega Mewtwo X",
|
|
735
760
|
"dex": 150,
|
|
736
761
|
"images": {
|
|
737
762
|
"main": "pokemons/roster-mewtwox.png",
|
|
@@ -758,7 +783,7 @@ var pokemons = [
|
|
|
758
783
|
"difficulty": 1
|
|
759
784
|
},
|
|
760
785
|
{
|
|
761
|
-
"name": "Mewtwo Y",
|
|
786
|
+
"name": "Mega Mewtwo Y",
|
|
762
787
|
"dex": 150,
|
|
763
788
|
"images": {
|
|
764
789
|
"main": "pokemons/roster-mewtwoy.png",
|
|
@@ -2341,6 +2366,44 @@ var pokemons = [
|
|
|
2341
2366
|
];
|
|
2342
2367
|
var pokemons_default = pokemons;
|
|
2343
2368
|
|
|
2369
|
+
// src/maps.ts
|
|
2370
|
+
var maps = [
|
|
2371
|
+
{
|
|
2372
|
+
id: "map-groudon",
|
|
2373
|
+
name: "Theia Sky Ruins",
|
|
2374
|
+
image: "maps/map-groudon/map-groudon@4x.png",
|
|
2375
|
+
images: {
|
|
2376
|
+
"1": "maps/map-groudon/map-groudon@1x.png",
|
|
2377
|
+
"2": "maps/map-groudon/map-groudon@2x.png",
|
|
2378
|
+
"4": "maps/map-groudon/map-groudon@4x.png"
|
|
2379
|
+
},
|
|
2380
|
+
description: "Map with Groudon."
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
id: "map-kyogre",
|
|
2384
|
+
name: "Theia Sky Ruins",
|
|
2385
|
+
image: "maps/map-kyogre/map-kyogre@4x.png",
|
|
2386
|
+
images: {
|
|
2387
|
+
"1": "maps/map-kyogre/map-kyogre@1x.png",
|
|
2388
|
+
"2": "maps/map-kyogre/map-kyogre@2x.png",
|
|
2389
|
+
"4": "maps/map-kyogre/map-kyogre@4x.png"
|
|
2390
|
+
},
|
|
2391
|
+
description: "Map with Kyogre."
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
id: "map-rayquaza",
|
|
2395
|
+
name: "Theia Sky Ruins",
|
|
2396
|
+
image: "maps/map-rayquaza/map-rayquaza@4x.png",
|
|
2397
|
+
images: {
|
|
2398
|
+
"1": "maps/map-rayquaza/map-rayquaza@1x.png",
|
|
2399
|
+
"2": "maps/map-rayquaza/map-rayquaza@2x.png",
|
|
2400
|
+
"4": "maps/map-rayquaza/map-rayquaza@4x.png"
|
|
2401
|
+
},
|
|
2402
|
+
description: "Map with Rayquaza."
|
|
2403
|
+
}
|
|
2404
|
+
];
|
|
2405
|
+
var maps_default = maps;
|
|
2406
|
+
|
|
2344
2407
|
// src/i18n/en.ts
|
|
2345
2408
|
function slugFromMain(mainPath) {
|
|
2346
2409
|
return mainPath.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
|
|
@@ -2349,10 +2412,23 @@ var names = {};
|
|
|
2349
2412
|
for (const p of pokemons_default) {
|
|
2350
2413
|
names[slugFromMain(p.images.main)] = p.name;
|
|
2351
2414
|
}
|
|
2415
|
+
for (const m of maps_default) {
|
|
2416
|
+
names[m.id] = m.name;
|
|
2417
|
+
if (m.description) names[`${m.id}.description`] = m.description;
|
|
2418
|
+
}
|
|
2352
2419
|
var en_default = names;
|
|
2353
2420
|
|
|
2354
2421
|
// src/i18n/pt-BR.ts
|
|
2355
|
-
var ptBR = {
|
|
2422
|
+
var ptBR = {
|
|
2423
|
+
...en_default,
|
|
2424
|
+
// Maps — names and descriptions
|
|
2425
|
+
"map-groudon": "Ru\xEDnas Celestes de Theia",
|
|
2426
|
+
"map-groudon.description": "Mapa 5v5 com Groudon.",
|
|
2427
|
+
"map-kyogre": "Ru\xEDnas Celestes de Theia",
|
|
2428
|
+
"map-kyogre.description": "Mapa 5v5 com Kyogre.",
|
|
2429
|
+
"map-rayquaza": "Ru\xEDnas Celestes de Theia",
|
|
2430
|
+
"map-rayquaza.description": "Mapa 5v5 com Rayquaza."
|
|
2431
|
+
};
|
|
2356
2432
|
var pt_BR_default = ptBR;
|
|
2357
2433
|
|
|
2358
2434
|
// src/i18n/ja-JP.ts
|
|
@@ -2443,7 +2519,14 @@ var jaJP = {
|
|
|
2443
2519
|
armarouge: "\u30B0\u30EC\u30F3\u30A2\u30EB\u30DE",
|
|
2444
2520
|
ceruledge: "\u30BD\u30A6\u30D6\u30EC\u30A4\u30BA",
|
|
2445
2521
|
tinkaton: "\u30C7\u30AB\u30CC\u30C1\u30E3\u30F3",
|
|
2446
|
-
miraidon: "\u30DF\u30E9\u30A4\u30C9\u30F3"
|
|
2522
|
+
miraidon: "\u30DF\u30E9\u30A4\u30C9\u30F3",
|
|
2523
|
+
// Maps — names and descriptions
|
|
2524
|
+
"map-groudon": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
|
|
2525
|
+
"map-groudon.description": "\u30B0\u30E9\u30FC\u30C9\u30F3\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002",
|
|
2526
|
+
"map-kyogre": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
|
|
2527
|
+
"map-kyogre.description": "\u30AB\u30A4\u30AA\u30FC\u30AC\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002",
|
|
2528
|
+
"map-rayquaza": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
|
|
2529
|
+
"map-rayquaza.description": "\u30EC\u30C3\u30AF\u30A6\u30B6\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002"
|
|
2447
2530
|
};
|
|
2448
2531
|
var ja_JP_default = jaJP;
|
|
2449
2532
|
|
|
@@ -2535,7 +2618,14 @@ var fr = {
|
|
|
2535
2618
|
armarouge: "Carmadura",
|
|
2536
2619
|
ceruledge: "Malvalame",
|
|
2537
2620
|
tinkaton: "Forgerette",
|
|
2538
|
-
miraidon: "Miraidon"
|
|
2621
|
+
miraidon: "Miraidon",
|
|
2622
|
+
// Maps — names and descriptions
|
|
2623
|
+
"map-groudon": "Ruines C\xE9lestes de Theia",
|
|
2624
|
+
"map-groudon.description": "Carte 5v5 avec Groudon.",
|
|
2625
|
+
"map-kyogre": "Ruines C\xE9lestes de Theia",
|
|
2626
|
+
"map-kyogre.description": "Carte 5v5 avec Kyogre.",
|
|
2627
|
+
"map-rayquaza": "Ruines C\xE9lestes de Theia",
|
|
2628
|
+
"map-rayquaza.description": "Carte 5v5 avec Rayquaza."
|
|
2539
2629
|
};
|
|
2540
2630
|
var fr_default = fr;
|
|
2541
2631
|
|
|
@@ -2627,7 +2717,14 @@ var es = {
|
|
|
2627
2717
|
armarouge: "Armarouge",
|
|
2628
2718
|
ceruledge: "Ceruledge",
|
|
2629
2719
|
tinkaton: "Tinkaton",
|
|
2630
|
-
miraidon: "Miraidon"
|
|
2720
|
+
miraidon: "Miraidon",
|
|
2721
|
+
// Maps — names and descriptions
|
|
2722
|
+
"map-groudon": "Ruinas Celestiales de Theia",
|
|
2723
|
+
"map-groudon.description": "Mapa 5v5 con Groudon.",
|
|
2724
|
+
"map-kyogre": "Ruinas Celestiales de Theia",
|
|
2725
|
+
"map-kyogre.description": "Mapa 5v5 con Kyogre.",
|
|
2726
|
+
"map-rayquaza": "Ruinas Celestiales de Theia",
|
|
2727
|
+
"map-rayquaza.description": "Mapa 5v5 con Rayquaza."
|
|
2631
2728
|
};
|
|
2632
2729
|
var es_default = es;
|
|
2633
2730
|
|
|
@@ -2643,10 +2740,21 @@ function getPokemonName(id, locale = "en") {
|
|
|
2643
2740
|
const map = locales[locale] ?? en_default;
|
|
2644
2741
|
return map[id] ?? en_default[id] ?? id;
|
|
2645
2742
|
}
|
|
2743
|
+
function getMapName(mapId, locale = "en") {
|
|
2744
|
+
const map = locales[locale] ?? en_default;
|
|
2745
|
+
return map[mapId] ?? en_default[mapId] ?? mapId;
|
|
2746
|
+
}
|
|
2747
|
+
function getMapDescription(mapId, locale = "en") {
|
|
2748
|
+
const key = `${mapId}.description`;
|
|
2749
|
+
const map = locales[locale] ?? en_default;
|
|
2750
|
+
return map[key] ?? en_default[key] ?? "";
|
|
2751
|
+
}
|
|
2646
2752
|
export {
|
|
2647
2753
|
en_default as en,
|
|
2648
2754
|
es_default as es,
|
|
2649
2755
|
fr_default as fr,
|
|
2756
|
+
getMapDescription,
|
|
2757
|
+
getMapName,
|
|
2650
2758
|
getPokemonName,
|
|
2651
2759
|
ja_JP_default as jaJP,
|
|
2652
2760
|
pt_BR_default as ptBR
|