@pkmn/sim 0.4.19 → 0.4.23

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 (88) hide show
  1. package/build/config/formats.js +752 -743
  2. package/build/config/formats.js.map +1 -1
  3. package/build/data/aliases.js +4 -4
  4. package/build/data/aliases.js.map +1 -1
  5. package/build/data/conditions.js +4 -1
  6. package/build/data/conditions.js.map +1 -1
  7. package/build/data/formats-data.js +27 -27
  8. package/build/data/formats-data.js.map +1 -1
  9. package/build/data/learnsets.js +10 -10
  10. package/build/data/learnsets.js.map +1 -1
  11. package/build/data/mods/gen1/moves.js +1 -1
  12. package/build/data/mods/gen1/moves.js.map +1 -1
  13. package/build/data/mods/gen1/scripts.js +18 -22
  14. package/build/data/mods/gen1/scripts.js.map +1 -1
  15. package/build/data/mods/gen2/scripts.js +16 -23
  16. package/build/data/mods/gen2/scripts.js.map +1 -1
  17. package/build/data/mods/gen3/moves.js +2 -1
  18. package/build/data/mods/gen3/moves.js.map +1 -1
  19. package/build/data/mods/gen4/conditions.js +6 -0
  20. package/build/data/mods/gen4/conditions.js.map +1 -1
  21. package/build/data/mods/gen4/moves.js +2 -1
  22. package/build/data/mods/gen4/moves.js.map +1 -1
  23. package/build/data/mods/gen4/scripts.js +2 -1
  24. package/build/data/mods/gen4/scripts.js.map +1 -1
  25. package/build/data/mods/gen6/conditions.js +4 -1
  26. package/build/data/mods/gen6/conditions.js.map +1 -1
  27. package/build/data/mods/gen7/formats-data.js +2 -2
  28. package/build/data/mods/gen7/formats-data.js.map +1 -1
  29. package/build/data/mods/gen7/moves.js +8 -0
  30. package/build/data/mods/gen7/moves.js.map +1 -1
  31. package/build/data/moves.js +26 -14
  32. package/build/data/moves.js.map +1 -1
  33. package/build/data/rulesets.js +258 -16
  34. package/build/data/rulesets.js.map +1 -1
  35. package/build/data/tags.js +3 -3
  36. package/build/data/tags.js.map +1 -1
  37. package/build/lib/streams.d.ts +1 -199
  38. package/build/lib/streams.js +11 -772
  39. package/build/lib/streams.js.map +1 -1
  40. package/build/sim/battle-actions.d.ts +1 -1
  41. package/build/sim/battle-actions.js +18 -42
  42. package/build/sim/battle-actions.js.map +1 -1
  43. package/build/sim/battle.d.ts +1 -0
  44. package/build/sim/battle.js +5 -0
  45. package/build/sim/battle.js.map +1 -1
  46. package/build/sim/dex-moves.d.ts +31 -11
  47. package/build/sim/dex-moves.js +4 -3
  48. package/build/sim/dex-moves.js.map +1 -1
  49. package/build/sim/dex-species.js +11 -1
  50. package/build/sim/dex-species.js.map +1 -1
  51. package/build/sim/exported-global-types.d.ts +4 -0
  52. package/build/sim/global-types.d.ts +4 -0
  53. package/build/sim/pokemon.js +1 -1
  54. package/build/sim/pokemon.js.map +1 -1
  55. package/build/sim/side.js +2 -2
  56. package/build/sim/side.js.map +1 -1
  57. package/build/sim/team-validator.d.ts +4 -0
  58. package/build/sim/team-validator.js +37 -11
  59. package/build/sim/team-validator.js.map +1 -1
  60. package/config/formats.ts +649 -630
  61. package/data/aliases.ts +4 -4
  62. package/data/conditions.ts +4 -1
  63. package/data/formats-data.ts +27 -27
  64. package/data/learnsets.ts +10 -10
  65. package/data/mods/gen1/moves.ts +1 -1
  66. package/data/mods/gen1/scripts.ts +23 -19
  67. package/data/mods/gen2/scripts.ts +20 -19
  68. package/data/mods/gen3/moves.ts +2 -1
  69. package/data/mods/gen4/conditions.ts +6 -0
  70. package/data/mods/gen4/moves.ts +2 -1
  71. package/data/mods/gen4/scripts.ts +1 -1
  72. package/data/mods/gen6/conditions.ts +4 -1
  73. package/data/mods/gen7/formats-data.ts +2 -2
  74. package/data/mods/gen7/moves.ts +8 -0
  75. package/data/moves.ts +23 -14
  76. package/data/rulesets.ts +235 -16
  77. package/data/tags.ts +3 -3
  78. package/lib/streams.ts +1 -874
  79. package/package.json +4 -3
  80. package/sim/battle-actions.ts +19 -40
  81. package/sim/battle.ts +6 -0
  82. package/sim/dex-moves.ts +35 -13
  83. package/sim/dex-species.ts +10 -1
  84. package/sim/exported-global-types.ts +4 -0
  85. package/sim/global-types.ts +4 -0
  86. package/sim/pokemon.ts +1 -1
  87. package/sim/side.ts +2 -2
  88. package/sim/team-validator.ts +41 -10
@@ -46378,7 +46378,6 @@ exports.Learnsets = {
46378
46378
  coaching: ["8T"],
46379
46379
  confide: ["7M", "6M"],
46380
46380
  corrosivegas: ["8T"],
46381
- covet: ["7T", "6T", "5T"],
46382
46381
  crosspoison: ["8M"],
46383
46382
  cut: ["6M", "5M", "4M"],
46384
46383
  darkpulse: ["8M", "7M", "6M", "5T", "4M"],
@@ -76670,12 +76669,12 @@ exports.Learnsets = {
76670
76669
  hypervoice: ["8M"],
76671
76670
  icefang: ["8M"],
76672
76671
  imprison: ["8M"],
76673
- ironhead: ["8M", "8L33", "8S0"],
76672
+ ironhead: ["8M", "8L33", "8S0", "8S1"],
76674
76673
  irontail: ["8M"],
76675
76674
  laserfocus: ["8L44"],
76676
76675
  metalclaw: ["8L1"],
76677
76676
  moonblast: ["8L66"],
76678
- playrough: ["8M"],
76677
+ playrough: ["8M", "8S1"],
76679
76678
  protect: ["8M"],
76680
76679
  psychicfangs: ["8M"],
76681
76680
  psychocut: ["8M"],
@@ -76686,7 +76685,7 @@ exports.Learnsets = {
76686
76685
  revenge: ["8M"],
76687
76686
  reversal: ["8M"],
76688
76687
  round: ["8M"],
76689
- sacredsword: ["8L1", "8S0"],
76688
+ sacredsword: ["8L1", "8S0", "8S1"],
76690
76689
  scaryface: ["8M"],
76691
76690
  slash: ["8L11"],
76692
76691
  sleeptalk: ["8M"],
@@ -76696,7 +76695,7 @@ exports.Learnsets = {
76696
76695
  steelbeam: ["8T"],
76697
76696
  substitute: ["8M"],
76698
76697
  swift: ["8M"],
76699
- swordsdance: ["8M", "8L22", "8S0"],
76698
+ swordsdance: ["8M", "8L22", "8S0", "8S1"],
76700
76699
  tailslap: ["8M"],
76701
76700
  thunderfang: ["8M"],
76702
76701
  wildcharge: ["8M"],
@@ -76704,6 +76703,7 @@ exports.Learnsets = {
76704
76703
  },
76705
76704
  eventData: [
76706
76705
  { generation: 8, level: 70, perfectIVs: 3, moves: ["sacredsword", "swordsdance", "ironhead", "crunch"] },
76706
+ { generation: 8, level: 100, shiny: true, nature: "Adamant", ivs: { hp: 31, atk: 31, def: 31, spa: 30, spd: 31, spe: 31 }, moves: ["ironhead", "playrough", "swordsdance", "sacredsword"], pokeball: "cherishball" },
76707
76707
  ],
76708
76708
  eventOnly: true,
76709
76709
  },
@@ -76717,7 +76717,7 @@ exports.Learnsets = {
76717
76717
  learnset: {
76718
76718
  agility: ["8M"],
76719
76719
  bite: ["8L1"],
76720
- closecombat: ["8M", "8L77"],
76720
+ closecombat: ["8M", "8L77", "8S1"],
76721
76721
  coaching: ["8T"],
76722
76722
  crunch: ["8M", "8L55", "8S0"],
76723
76723
  dazzlinggleam: ["8M"],
@@ -76736,8 +76736,8 @@ exports.Learnsets = {
76736
76736
  hypervoice: ["8M"],
76737
76737
  icefang: ["8M"],
76738
76738
  imprison: ["8M"],
76739
- irondefense: ["8M", "8L22", "8S0"],
76740
- ironhead: ["8M", "8L33", "8S0"],
76739
+ irondefense: ["8M", "8L22", "8S0", "8S1"],
76740
+ ironhead: ["8M", "8L33", "8S0", "8S1"],
76741
76741
  irontail: ["8M"],
76742
76742
  laserfocus: ["8L44"],
76743
76743
  lightscreen: ["8M"],
@@ -76768,12 +76768,13 @@ exports.Learnsets = {
76768
76768
  swift: ["8M"],
76769
76769
  tailslap: ["8M"],
76770
76770
  thunderfang: ["8M"],
76771
- wideguard: ["8L1"],
76771
+ wideguard: ["8L1", "8S1"],
76772
76772
  wildcharge: ["8M"],
76773
76773
  workup: ["8M"],
76774
76774
  },
76775
76775
  eventData: [
76776
76776
  { generation: 8, level: 70, perfectIVs: 3, moves: ["slash", "crunch", "ironhead", "irondefense"] },
76777
+ { generation: 8, level: 100, shiny: true, nature: "Adamant", ivs: { hp: 31, atk: 31, def: 31, spa: 30, spd: 31, spe: 31 }, moves: ["ironhead", "closecombat", "irondefense", "wideguard"], pokeball: "cherishball" },
76777
76778
  ],
76778
76779
  eventOnly: true,
76779
76780
  },
@@ -82521,7 +82522,6 @@ exports.Learnsets = {
82521
82522
  snatch: ["7M", "4M"],
82522
82523
  snore: ["8M", "7T", "4T"],
82523
82524
  spite: ["8L12", "7T", "4T"],
82524
- steelbeam: ["8T"],
82525
82525
  substitute: ["8M", "7M", "4M"],
82526
82526
  suckerpunch: ["8E", "7E", "4T"],
82527
82527
  sunnyday: ["8M", "7M", "4M"],