@pkmn/sim 0.6.1 → 0.6.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.
Files changed (43) hide show
  1. package/build/config/formats.js +71 -97
  2. package/build/config/formats.js.map +1 -1
  3. package/build/data/aliases.js +2 -2
  4. package/build/data/aliases.js.map +1 -1
  5. package/build/data/formats-data.js +111 -115
  6. package/build/data/formats-data.js.map +1 -1
  7. package/build/data/items.js +7 -1
  8. package/build/data/items.js.map +1 -1
  9. package/build/data/learnsets.js +3 -2
  10. package/build/data/learnsets.js.map +1 -1
  11. package/build/data/mods/gen1/moves.js +0 -10
  12. package/build/data/mods/gen1/moves.js.map +1 -1
  13. package/build/data/mods/gen1/scripts.js +15 -14
  14. package/build/data/mods/gen1/scripts.js.map +1 -1
  15. package/build/data/mods/gen2/moves.js +0 -1
  16. package/build/data/mods/gen2/moves.js.map +1 -1
  17. package/build/data/moves.js +44 -25
  18. package/build/data/moves.js.map +1 -1
  19. package/build/data/pokedex.js +1 -1
  20. package/build/sim/dex-conditions.d.ts +1 -0
  21. package/build/sim/dex-conditions.js.map +1 -1
  22. package/build/sim/field.js +1 -0
  23. package/build/sim/field.js.map +1 -1
  24. package/build/sim/pokemon.js +2 -10
  25. package/build/sim/pokemon.js.map +1 -1
  26. package/build/sim/team-validator.d.ts +2 -2
  27. package/build/sim/team-validator.js +19 -14
  28. package/build/sim/team-validator.js.map +1 -1
  29. package/config/formats.ts +75 -103
  30. package/data/aliases.ts +2 -2
  31. package/data/formats-data.ts +111 -115
  32. package/data/items.ts +7 -1
  33. package/data/learnsets.ts +3 -2
  34. package/data/mods/gen1/moves.ts +0 -10
  35. package/data/mods/gen1/scripts.ts +14 -14
  36. package/data/mods/gen2/moves.ts +0 -1
  37. package/data/moves.ts +43 -23
  38. package/data/pokedex.ts +1 -1
  39. package/package.json +1 -1
  40. package/sim/dex-conditions.ts +1 -0
  41. package/sim/field.ts +1 -0
  42. package/sim/pokemon.ts +1 -8
  43. package/sim/team-validator.ts +27 -15
package/config/formats.ts CHANGED
@@ -284,6 +284,14 @@ export const Formats: FormatList = [
284
284
  name: "[Gen 8] Battle Stadium Singles",
285
285
 
286
286
  mod: 'gen8',
287
+ ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 8', 'VGC Timer', 'Limit Two Restricted'],
288
+ restricted: ['Restricted Legendary'],
289
+ },
290
+ {
291
+ name: "[Gen 8] Battle Stadium Singles Series 13",
292
+
293
+ mod: 'gen8',
294
+ searchShow: false,
287
295
  ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 8'],
288
296
  banlist: ['Eternatus-Eternamax'],
289
297
  unbanlist: ['Mythical', 'Restricted Legendary'],
@@ -377,21 +385,12 @@ export const Formats: FormatList = [
377
385
  name: "[Gen 8] Battle Stadium Doubles Series 13",
378
386
 
379
387
  mod: 'gen8',
388
+ searchShow: false,
380
389
  gameType: 'doubles',
381
390
  ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 8', 'VGC Timer'],
382
391
  banlist: ['Eternatus-Eternamax'],
383
392
  unbanlist: ['Mythical', 'Restricted Legendary'],
384
393
  },
385
- {
386
- name: "[Gen 8] Ultimate Finale",
387
- threads: [
388
- `&bullet; <a href="https://www.smogon.com/forums/threads/3709248/">Ultimate Finale Discussion</a>`,
389
- ],
390
-
391
- mod: 'gen8',
392
- gameType: 'doubles',
393
- ruleset: ['Obtainable', 'Team Preview', 'Nickname Clause', 'Adjust Level = 100', 'Cancel Mod', 'Min Source Gen = 8'],
394
- },
395
394
  {
396
395
  name: "[Gen 8] Spikemuth Cup",
397
396
 
@@ -639,39 +638,14 @@ export const Formats: FormatList = [
639
638
  column: 2,
640
639
  },
641
640
  {
642
- name: "[Gen 8] Revelationmons",
643
- desc: `The moves in the first slot(s) of a Pok&eacute;mon's set have their types changed to match the Pok&eacute;mon's type(s).`,
644
- threads: [
645
- `&bullet; <a href="https://www.smogon.com/forums/threads/3692297/">Revelationmons</a>`,
646
- ],
647
-
648
- mod: 'gen8',
649
- ruleset: ['Standard OMs', 'Revelationmons Mod', 'Sleep Moves Clause'],
650
- banlist: [
651
- 'Blacephalon', 'Calyrex-Ice', 'Calyrex-Shadow', 'Darmanitan-Galar', 'Dialga', 'Dracovish', 'Dragonite', 'Dragapult', 'Eternatus',
652
- 'Genesect', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Kingdra', 'Kommo-o', 'Kyogre', 'Kyurem-Black', 'Kyurem-White',
653
- 'Landorus-Base', 'Lugia', 'Lunala', 'Magearna', 'Marshadow', 'Mewtwo', 'Naganadel', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane',
654
- 'Noivern', 'Palkia', 'Pheromosa', 'Polteageist', 'Rayquaza', 'Reshiram', 'Solgaleo', 'Spectrier', 'Thundurus-Therian', 'Urshifu-Base',
655
- 'Xerneas', 'Yveltal', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zekrom', 'Zygarde-Base', 'Arena Trap', 'Magnet Pull',
656
- 'Moody', 'Power Construct', 'Shadow Tag', 'King\'s Rock', 'Baton Pass',
657
- ],
658
- restricted: ['Bolt Beak', 'Close Combat', 'U-turn', 'Volt Switch'],
659
- },
660
- {
661
- name: "[Gen 8] Tag Team Singles",
662
- desc: `Bring four Pok&eacute;mon to Team Preview and choose two to battle in a singles battle.`,
641
+ name: "[Gen 8] Pure Hackmons",
642
+ desc: `Anything directly hackable onto a set (EVs, IVs, forme, ability, item, and move) and is usable in local battles is allowed.`,
663
643
  threads: [
664
- `&bullet; <a href="https://www.smogon.com/forums/threads/3705415/">Tag Team Singles</a>`,
644
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3656851/">Pure Hackmons</a>`,
665
645
  ],
666
646
 
667
647
  mod: 'gen8',
668
- ruleset: ['Picked Team Size = 2', 'Max Team Size = 4', 'Standard OMs', 'Sleep Moves Clause', 'Evasion Abilities Clause'],
669
- banlist: [
670
- 'Calyrex-Ice', 'Calyrex-Shadow', 'Cinderace', 'Dialga', 'Eternatus', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Kyogre', 'Kyurem-Black',
671
- 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Marshadow', 'Melmetal', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia',
672
- 'Rayquaza', 'Reshiram', 'Solgaleo', 'Spectrier', 'Xerneas', 'Yveltal', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned',
673
- 'Zekrom', 'Moody', 'Power Construct', 'Bright Powder', 'Focus Sash', 'King\'s Rock', 'Lax Incense', 'Final Gambit',
674
- ],
648
+ ruleset: ['-Nonexistent', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod', 'Endless Battle Clause'],
675
649
  },
676
650
 
677
651
  // Other Metagames
@@ -683,7 +657,7 @@ export const Formats: FormatList = [
683
657
  },
684
658
  {
685
659
  name: "[Gen 8] Balanced Hackmons",
686
- desc: `Anything that can be hacked in-game and is usable in local battles is allowed.`,
660
+ desc: `Anything directly hackable onto a set (EVs, IVs, forme, ability, item, and move) and is usable in local battles is allowed.`,
687
661
  threads: [
688
662
  `&bullet; <a href="https://www.smogon.com/forums/threads/3656408/">Balanced Hackmons</a>`,
689
663
  `&bullet; <a href="https://www.smogon.com/forums/threads/3659817/">BH Resources</a>`,
@@ -1867,17 +1841,6 @@ export const Formats: FormatList = [
1867
1841
  pokemon.m.innates = undefined;
1868
1842
  },
1869
1843
  },
1870
- {
1871
- name: "[Gen 8] Pure Hackmons",
1872
- desc: `Anything that can be hacked in-game and is usable in local battles is allowed.`,
1873
- threads: [
1874
- `&bullet; <a href="https://www.smogon.com/forums/threads/3656851/">Pure Hackmons</a>`,
1875
- ],
1876
-
1877
- mod: 'gen8',
1878
- searchShow: false,
1879
- ruleset: ['-Nonexistent', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod', 'Endless Battle Clause'],
1880
- },
1881
1844
  {
1882
1845
  name: "[Gen 8] Shared Power",
1883
1846
  desc: `Once a Pok&eacute;mon switches in, its ability is shared with the rest of the team.`,
@@ -1939,6 +1902,23 @@ export const Formats: FormatList = [
1939
1902
  }
1940
1903
  },
1941
1904
  },
1905
+ {
1906
+ name: "[Gen 8] Tag Team Singles",
1907
+ desc: `Bring four Pok&eacute;mon to Team Preview and choose two to battle in a singles battle.`,
1908
+ threads: [
1909
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3705415/">Tag Team Singles</a>`,
1910
+ ],
1911
+
1912
+ mod: 'gen8',
1913
+ searchShow: false,
1914
+ ruleset: ['Picked Team Size = 2', 'Max Team Size = 4', 'Standard OMs', 'Sleep Moves Clause', 'Evasion Abilities Clause'],
1915
+ banlist: [
1916
+ 'Calyrex-Ice', 'Calyrex-Shadow', 'Cinderace', 'Dialga', 'Eternatus', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Kyogre', 'Kyurem-Black',
1917
+ 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Marshadow', 'Melmetal', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia',
1918
+ 'Rayquaza', 'Reshiram', 'Solgaleo', 'Spectrier', 'Xerneas', 'Yveltal', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned',
1919
+ 'Zekrom', 'Moody', 'Power Construct', 'Bright Powder', 'Focus Sash', 'King\'s Rock', 'Lax Incense', 'Final Gambit',
1920
+ ],
1921
+ },
1942
1922
  {
1943
1923
  name: "[Gen 8] Trademarked",
1944
1924
  desc: `Sacrifice your Pok&eacute;mon's ability for a status move that activates on switch-in.`,
@@ -2550,34 +2530,39 @@ export const Formats: FormatList = [
2550
2530
  column: 3,
2551
2531
  },
2552
2532
  {
2553
- name: "[Gen 5] Ubers",
2533
+ name: "[Gen 6] Ubers",
2554
2534
  threads: [
2555
- `&bullet; <a href="https://www.smogon.com/forums/posts/8286278/">BW2 Ubers</a>`,
2535
+ `&bullet; <a href="https://www.smogon.com/forums/posts/8286277/">ORAS Ubers</a>`,
2556
2536
  ],
2557
2537
 
2558
- mod: 'gen5',
2538
+ mod: 'gen6',
2559
2539
  // searchShow: false,
2560
- ruleset: ['Standard', 'Sleep Clause Mod'],
2540
+ ruleset: ['Standard', 'Swagger Clause', 'Mega Rayquaza Clause'],
2561
2541
  },
2562
2542
  {
2563
- name: "[Gen 7] PU",
2543
+ name: "[Gen 3] Doubles OU",
2564
2544
  threads: [
2565
- `&bullet; <a href="https://www.smogon.com/forums/threads/3611496/">USM PU Sample Teams</a>`,
2566
- `&bullet; <a href="https://www.smogon.com/forums/threads/3614892/">USM PU Viability Rankings</a>`,
2545
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3666831/">ADV Doubles OU</a>`,
2567
2546
  ],
2568
2547
 
2569
- mod: 'gen7',
2548
+ mod: 'gen3',
2570
2549
  // searchShow: false,
2571
- ruleset: ['[Gen 7] NU'],
2572
- banlist: ['NU', 'PUBL'],
2550
+ gameType: 'doubles',
2551
+ ruleset: ['Standard', '!Sleep Clause Mod', '!Switch Priority Clause Mod'],
2552
+ banlist: ['Uber'],
2553
+ unbanlist: ['Deoxys-Speed', 'Wobbuffet', 'Wynaut'],
2573
2554
  },
2574
2555
  {
2575
- name: "[Gen 2] UUBL",
2576
- threads: [`&bullet; <a href="https://www.smogon.com/forums/threads/3662389/">GSC UUBL</a>`],
2556
+ name: "[Gen 3] UU",
2557
+ threads: [
2558
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3585923/">ADV UU Metagame Discussion</a>`,
2559
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3548578/">ADV UU Viability Rankings</a>`,
2560
+ ],
2577
2561
 
2578
- mod: 'gen2',
2579
- ruleset: ['[Gen 2] OU'],
2580
- banlist: ['OU'],
2562
+ mod: 'gen3',
2563
+ // searchShow: false,
2564
+ ruleset: ['Standard'],
2565
+ banlist: ['Uber', 'OU', 'UUBL', 'Smeargle + Ingrain', 'Arena Trap', 'Baton Pass', 'Swagger'],
2581
2566
  },
2582
2567
 
2583
2568
  // Past Gens OU
@@ -2676,7 +2661,7 @@ export const Formats: FormatList = [
2676
2661
  },
2677
2662
  {
2678
2663
  name: "[Gen 7] Balanced Hackmons",
2679
- desc: `Anything that can be hacked in-game and is usable in local battles is allowed.`,
2664
+ desc: `Anything directly hackable onto a set (EVs, IVs, forme, ability, item, and move) and is usable in local battles is allowed.`,
2680
2665
  threads: [
2681
2666
  `&bullet; <a href="https://www.smogon.com/forums/posts/8407209/">USM Balanced Hackmons</a>`,
2682
2667
  ],
@@ -2848,6 +2833,18 @@ export const Formats: FormatList = [
2848
2833
  ruleset: ['[Gen 7] RU'],
2849
2834
  banlist: ['RU', 'NUBL', 'Drought'],
2850
2835
  },
2836
+ {
2837
+ name: "[Gen 7] PU",
2838
+ threads: [
2839
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3611496/">USM PU Sample Teams</a>`,
2840
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3614892/">USM PU Viability Rankings</a>`,
2841
+ ],
2842
+
2843
+ mod: 'gen7',
2844
+ searchShow: false,
2845
+ ruleset: ['[Gen 7] NU'],
2846
+ banlist: ['NU', 'PUBL'],
2847
+ },
2851
2848
  {
2852
2849
  name: "[Gen 7] LC",
2853
2850
  threads: [
@@ -3106,16 +3103,6 @@ export const Formats: FormatList = [
3106
3103
  section: "OR/AS Singles",
3107
3104
  column: 4,
3108
3105
  },
3109
- {
3110
- name: "[Gen 6] Ubers",
3111
- threads: [
3112
- `&bullet; <a href="https://www.smogon.com/forums/posts/8286277/">ORAS Ubers</a>`,
3113
- ],
3114
-
3115
- mod: 'gen6',
3116
- searchShow: false,
3117
- ruleset: ['Standard', 'Swagger Clause', 'Mega Rayquaza Clause'],
3118
- },
3119
3106
  {
3120
3107
  name: "[Gen 6] UU",
3121
3108
  threads: [
@@ -3393,6 +3380,16 @@ export const Formats: FormatList = [
3393
3380
  section: "B2/W2 Singles",
3394
3381
  column: 4,
3395
3382
  },
3383
+ {
3384
+ name: "[Gen 5] Ubers",
3385
+ threads: [
3386
+ `&bullet; <a href="https://www.smogon.com/forums/posts/8286278/">BW2 Ubers</a>`,
3387
+ ],
3388
+
3389
+ mod: 'gen5',
3390
+ searchShow: false,
3391
+ ruleset: ['Standard', 'Sleep Clause Mod'],
3392
+ },
3396
3393
  {
3397
3394
  name: "[Gen 5] UU",
3398
3395
  threads: [
@@ -3780,18 +3777,6 @@ export const Formats: FormatList = [
3780
3777
  ruleset: ['Standard', 'Deoxys Camouflage Clause', 'One Baton Pass Clause'],
3781
3778
  banlist: ['Wobbuffet + Leftovers'],
3782
3779
  },
3783
- {
3784
- name: "[Gen 3] UU",
3785
- threads: [
3786
- `&bullet; <a href="https://www.smogon.com/forums/threads/3585923/">ADV UU Metagame Discussion</a>`,
3787
- `&bullet; <a href="https://www.smogon.com/forums/threads/3548578/">ADV UU Viability Rankings</a>`,
3788
- ],
3789
-
3790
- mod: 'gen3',
3791
- searchShow: false,
3792
- ruleset: ['Standard'],
3793
- banlist: ['Uber', 'OU', 'UUBL', 'Smeargle + Ingrain', 'Arena Trap', 'Baton Pass', 'Swagger'],
3794
- },
3795
3780
  {
3796
3781
  name: "[Gen 3] NU",
3797
3782
  threads: [
@@ -3822,19 +3807,6 @@ export const Formats: FormatList = [
3822
3807
  ],
3823
3808
  unbanlist: ['Mr. Mime', 'Wobbuffet', 'Wynaut', 'Sand Veil', 'Soundproof'],
3824
3809
  },
3825
- {
3826
- name: "[Gen 3] Doubles OU",
3827
- threads: [
3828
- `&bullet; <a href="https://www.smogon.com/forums/threads/3666831/">ADV Doubles OU</a>`,
3829
- ],
3830
-
3831
- mod: 'gen3',
3832
- searchShow: false,
3833
- gameType: 'doubles',
3834
- ruleset: ['Standard', '!Sleep Clause Mod', '!Switch Priority Clause Mod'],
3835
- banlist: ['Uber'],
3836
- unbanlist: ['Deoxys-Speed', 'Wobbuffet', 'Wynaut'],
3837
- },
3838
3810
  {
3839
3811
  name: "[Gen 3] Custom Game",
3840
3812
 
@@ -3958,7 +3930,7 @@ export const Formats: FormatList = [
3958
3930
  {
3959
3931
  name: "[Gen 1] NU",
3960
3932
  threads: [
3961
- `&bullet; <a href="https://www.smogon.com/forums/threads/3668913/">RBY NU Viability Rankings</a>`,
3933
+ `&bullet; <a href="https://www.smogon.com/forums/threads/3679758/">RBY NU Metagame Discussion &amp; Resources</a>`,
3962
3934
  ],
3963
3935
 
3964
3936
  mod: 'gen1',
package/data/aliases.ts CHANGED
@@ -71,8 +71,8 @@ export const Aliases: {[alias: string]: string} = {
71
71
  gen6ag: "[Gen 6] Anything Goes",
72
72
  crossevo: "[Gen 8] Cross Evolution",
73
73
  mayhem: "[Gen 8] Random Battle Mayhem",
74
- omotm: "[Gen 8] Revelationmons",
75
- lcotm: "[Gen 8] Tag Team Singles",
74
+ omotm: "[Gen 8] Pure Hackmons",
75
+ // lcotm: "[Gen 8] Tag Team Singles",
76
76
 
77
77
  // mega evos
78
78
  fabio: "Ampharos-Mega",