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.
@@ -23,6 +23,8 @@ __export(i18n_exports, {
23
23
  en: () => en_default,
24
24
  es: () => es_default,
25
25
  fr: () => fr_default,
26
+ getMapDescription: () => getMapDescription,
27
+ getMapName: () => getMapName,
26
28
  getPokemonName: () => getPokemonName,
27
29
  jaJP: () => ja_JP_default,
28
30
  ptBR: () => pt_BR_default
@@ -734,6 +736,31 @@ var pokemons = [
734
736
  ],
735
737
  "difficulty": 1
736
738
  },
739
+ {
740
+ "name": "Moltres",
741
+ "dex": 146,
742
+ "images": {
743
+ "main": "pokemons/roster-moltres.png",
744
+ "big": "pokemons/roster-moltres-2x.png",
745
+ "complete": "pokemons/stat-moltres.png",
746
+ "move_s11": "moves/moltres_s11.png",
747
+ "move_s21": "moves/moltres_s21.png"
748
+ },
749
+ "active": true,
750
+ "battleType": BattleType.ALLROUNDER,
751
+ "stats": {
752
+ "offense": 4,
753
+ "endurance": 2.5,
754
+ "mobility": 2,
755
+ "scoring": 2,
756
+ "support": 2
757
+ },
758
+ "tags": [
759
+ Tag.ALLROUNDER,
760
+ Tag.MELEE
761
+ ],
762
+ "difficulty": 2
763
+ },
737
764
  {
738
765
  "name": "Dragonite",
739
766
  "dex": 149,
@@ -762,7 +789,7 @@ var pokemons = [
762
789
  "difficulty": 1
763
790
  },
764
791
  {
765
- "name": "Mewtwo X",
792
+ "name": "Mega Mewtwo X",
766
793
  "dex": 150,
767
794
  "images": {
768
795
  "main": "pokemons/roster-mewtwox.png",
@@ -789,7 +816,7 @@ var pokemons = [
789
816
  "difficulty": 1
790
817
  },
791
818
  {
792
- "name": "Mewtwo Y",
819
+ "name": "Mega Mewtwo Y",
793
820
  "dex": 150,
794
821
  "images": {
795
822
  "main": "pokemons/roster-mewtwoy.png",
@@ -2372,6 +2399,44 @@ var pokemons = [
2372
2399
  ];
2373
2400
  var pokemons_default = pokemons;
2374
2401
 
2402
+ // src/maps.ts
2403
+ var maps = [
2404
+ {
2405
+ id: "map-groudon",
2406
+ name: "Theia Sky Ruins",
2407
+ image: "maps/map-groudon/map-groudon@4x.png",
2408
+ images: {
2409
+ "1": "maps/map-groudon/map-groudon@1x.png",
2410
+ "2": "maps/map-groudon/map-groudon@2x.png",
2411
+ "4": "maps/map-groudon/map-groudon@4x.png"
2412
+ },
2413
+ description: "Map with Groudon."
2414
+ },
2415
+ {
2416
+ id: "map-kyogre",
2417
+ name: "Theia Sky Ruins",
2418
+ image: "maps/map-kyogre/map-kyogre@4x.png",
2419
+ images: {
2420
+ "1": "maps/map-kyogre/map-kyogre@1x.png",
2421
+ "2": "maps/map-kyogre/map-kyogre@2x.png",
2422
+ "4": "maps/map-kyogre/map-kyogre@4x.png"
2423
+ },
2424
+ description: "Map with Kyogre."
2425
+ },
2426
+ {
2427
+ id: "map-rayquaza",
2428
+ name: "Theia Sky Ruins",
2429
+ image: "maps/map-rayquaza/map-rayquaza@4x.png",
2430
+ images: {
2431
+ "1": "maps/map-rayquaza/map-rayquaza@1x.png",
2432
+ "2": "maps/map-rayquaza/map-rayquaza@2x.png",
2433
+ "4": "maps/map-rayquaza/map-rayquaza@4x.png"
2434
+ },
2435
+ description: "Map with Rayquaza."
2436
+ }
2437
+ ];
2438
+ var maps_default = maps;
2439
+
2375
2440
  // src/i18n/en.ts
2376
2441
  function slugFromMain(mainPath) {
2377
2442
  return mainPath.replace(/^pokemons\/roster-/, "").replace(/\.png$/, "");
@@ -2380,10 +2445,23 @@ var names = {};
2380
2445
  for (const p of pokemons_default) {
2381
2446
  names[slugFromMain(p.images.main)] = p.name;
2382
2447
  }
2448
+ for (const m of maps_default) {
2449
+ names[m.id] = m.name;
2450
+ if (m.description) names[`${m.id}.description`] = m.description;
2451
+ }
2383
2452
  var en_default = names;
2384
2453
 
2385
2454
  // src/i18n/pt-BR.ts
2386
- var ptBR = { ...en_default, zapdos: "Zapdos" };
2455
+ var ptBR = {
2456
+ ...en_default,
2457
+ // Maps — names and descriptions
2458
+ "map-groudon": "Ru\xEDnas Celestes de Theia",
2459
+ "map-groudon.description": "Mapa 5v5 com Groudon.",
2460
+ "map-kyogre": "Ru\xEDnas Celestes de Theia",
2461
+ "map-kyogre.description": "Mapa 5v5 com Kyogre.",
2462
+ "map-rayquaza": "Ru\xEDnas Celestes de Theia",
2463
+ "map-rayquaza.description": "Mapa 5v5 com Rayquaza."
2464
+ };
2387
2465
  var pt_BR_default = ptBR;
2388
2466
 
2389
2467
  // src/i18n/ja-JP.ts
@@ -2474,7 +2552,14 @@ var jaJP = {
2474
2552
  armarouge: "\u30B0\u30EC\u30F3\u30A2\u30EB\u30DE",
2475
2553
  ceruledge: "\u30BD\u30A6\u30D6\u30EC\u30A4\u30BA",
2476
2554
  tinkaton: "\u30C7\u30AB\u30CC\u30C1\u30E3\u30F3",
2477
- miraidon: "\u30DF\u30E9\u30A4\u30C9\u30F3"
2555
+ miraidon: "\u30DF\u30E9\u30A4\u30C9\u30F3",
2556
+ // Maps — names and descriptions
2557
+ "map-groudon": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
2558
+ "map-groudon.description": "\u30B0\u30E9\u30FC\u30C9\u30F3\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002",
2559
+ "map-kyogre": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
2560
+ "map-kyogre.description": "\u30AB\u30A4\u30AA\u30FC\u30AC\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002",
2561
+ "map-rayquaza": "\u30C6\u30A4\u30A2\u306E\u5929\u7A7A\u907A\u8DE1",
2562
+ "map-rayquaza.description": "\u30EC\u30C3\u30AF\u30A6\u30B6\u304C\u767B\u5834\u3059\u308B5v5\u30DE\u30C3\u30D7\u3002"
2478
2563
  };
2479
2564
  var ja_JP_default = jaJP;
2480
2565
 
@@ -2566,7 +2651,14 @@ var fr = {
2566
2651
  armarouge: "Carmadura",
2567
2652
  ceruledge: "Malvalame",
2568
2653
  tinkaton: "Forgerette",
2569
- miraidon: "Miraidon"
2654
+ miraidon: "Miraidon",
2655
+ // Maps — names and descriptions
2656
+ "map-groudon": "Ruines C\xE9lestes de Theia",
2657
+ "map-groudon.description": "Carte 5v5 avec Groudon.",
2658
+ "map-kyogre": "Ruines C\xE9lestes de Theia",
2659
+ "map-kyogre.description": "Carte 5v5 avec Kyogre.",
2660
+ "map-rayquaza": "Ruines C\xE9lestes de Theia",
2661
+ "map-rayquaza.description": "Carte 5v5 avec Rayquaza."
2570
2662
  };
2571
2663
  var fr_default = fr;
2572
2664
 
@@ -2658,7 +2750,14 @@ var es = {
2658
2750
  armarouge: "Armarouge",
2659
2751
  ceruledge: "Ceruledge",
2660
2752
  tinkaton: "Tinkaton",
2661
- miraidon: "Miraidon"
2753
+ miraidon: "Miraidon",
2754
+ // Maps — names and descriptions
2755
+ "map-groudon": "Ruinas Celestiales de Theia",
2756
+ "map-groudon.description": "Mapa 5v5 con Groudon.",
2757
+ "map-kyogre": "Ruinas Celestiales de Theia",
2758
+ "map-kyogre.description": "Mapa 5v5 con Kyogre.",
2759
+ "map-rayquaza": "Ruinas Celestiales de Theia",
2760
+ "map-rayquaza.description": "Mapa 5v5 con Rayquaza."
2662
2761
  };
2663
2762
  var es_default = es;
2664
2763
 
@@ -2674,11 +2773,22 @@ function getPokemonName(id, locale = "en") {
2674
2773
  const map = locales[locale] ?? en_default;
2675
2774
  return map[id] ?? en_default[id] ?? id;
2676
2775
  }
2776
+ function getMapName(mapId, locale = "en") {
2777
+ const map = locales[locale] ?? en_default;
2778
+ return map[mapId] ?? en_default[mapId] ?? mapId;
2779
+ }
2780
+ function getMapDescription(mapId, locale = "en") {
2781
+ const key = `${mapId}.description`;
2782
+ const map = locales[locale] ?? en_default;
2783
+ return map[key] ?? en_default[key] ?? "";
2784
+ }
2677
2785
  // Annotate the CommonJS export names for ESM import in node:
2678
2786
  0 && (module.exports = {
2679
2787
  en,
2680
2788
  es,
2681
2789
  fr,
2790
+ getMapDescription,
2791
+ getMapName,
2682
2792
  getPokemonName,
2683
2793
  jaJP,
2684
2794
  ptBR