@pkmn/sim 0.4.20 → 0.4.24

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 +415 -688
  2. package/build/config/formats.js.map +1 -1
  3. package/build/data/aliases.js +7 -5
  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 +18 -18
  8. package/build/data/formats-data.js.map +1 -1
  9. package/build/data/learnsets.js +10 -8
  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 +25 -13
  32. package/build/data/moves.js.map +1 -1
  33. package/build/data/rulesets.js +221 -1
  34. package/build/data/rulesets.js.map +1 -1
  35. package/build/data/tags.js +2 -2
  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 +1 -0
  52. package/build/sim/global-types.d.ts +1 -0
  53. package/build/sim/side.js +2 -2
  54. package/build/sim/side.js.map +1 -1
  55. package/build/sim/team-validator.js +2 -2
  56. package/build/sim/team-validator.js.map +1 -1
  57. package/build/sim/tools/runner.d.ts +1 -6
  58. package/build/sim/tools/runner.js +6 -6
  59. package/build/sim/tools/runner.js.map +1 -1
  60. package/config/formats.ts +393 -643
  61. package/data/aliases.ts +7 -5
  62. package/data/conditions.ts +4 -1
  63. package/data/formats-data.ts +18 -18
  64. package/data/learnsets.ts +10 -8
  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 +22 -13
  76. package/data/rulesets.ts +199 -1
  77. package/data/tags.ts +2 -2
  78. package/lib/streams.ts +1 -874
  79. package/package.json +3 -2
  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 +1 -0
  85. package/sim/global-types.ts +1 -0
  86. package/sim/side.ts +2 -2
  87. package/sim/team-validator.ts +2 -2
  88. package/sim/tools/runner.ts +2 -0
@@ -76669,12 +76669,12 @@ exports.Learnsets = {
76669
76669
  hypervoice: ["8M"],
76670
76670
  icefang: ["8M"],
76671
76671
  imprison: ["8M"],
76672
- ironhead: ["8M", "8L33", "8S0"],
76672
+ ironhead: ["8M", "8L33", "8S0", "8S1"],
76673
76673
  irontail: ["8M"],
76674
76674
  laserfocus: ["8L44"],
76675
76675
  metalclaw: ["8L1"],
76676
76676
  moonblast: ["8L66"],
76677
- playrough: ["8M"],
76677
+ playrough: ["8M", "8S1"],
76678
76678
  protect: ["8M"],
76679
76679
  psychicfangs: ["8M"],
76680
76680
  psychocut: ["8M"],
@@ -76685,7 +76685,7 @@ exports.Learnsets = {
76685
76685
  revenge: ["8M"],
76686
76686
  reversal: ["8M"],
76687
76687
  round: ["8M"],
76688
- sacredsword: ["8L1", "8S0"],
76688
+ sacredsword: ["8L1", "8S0", "8S1"],
76689
76689
  scaryface: ["8M"],
76690
76690
  slash: ["8L11"],
76691
76691
  sleeptalk: ["8M"],
@@ -76695,7 +76695,7 @@ exports.Learnsets = {
76695
76695
  steelbeam: ["8T"],
76696
76696
  substitute: ["8M"],
76697
76697
  swift: ["8M"],
76698
- swordsdance: ["8M", "8L22", "8S0"],
76698
+ swordsdance: ["8M", "8L22", "8S0", "8S1"],
76699
76699
  tailslap: ["8M"],
76700
76700
  thunderfang: ["8M"],
76701
76701
  wildcharge: ["8M"],
@@ -76703,6 +76703,7 @@ exports.Learnsets = {
76703
76703
  },
76704
76704
  eventData: [
76705
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" },
76706
76707
  ],
76707
76708
  eventOnly: true,
76708
76709
  },
@@ -76716,7 +76717,7 @@ exports.Learnsets = {
76716
76717
  learnset: {
76717
76718
  agility: ["8M"],
76718
76719
  bite: ["8L1"],
76719
- closecombat: ["8M", "8L77"],
76720
+ closecombat: ["8M", "8L77", "8S1"],
76720
76721
  coaching: ["8T"],
76721
76722
  crunch: ["8M", "8L55", "8S0"],
76722
76723
  dazzlinggleam: ["8M"],
@@ -76735,8 +76736,8 @@ exports.Learnsets = {
76735
76736
  hypervoice: ["8M"],
76736
76737
  icefang: ["8M"],
76737
76738
  imprison: ["8M"],
76738
- irondefense: ["8M", "8L22", "8S0"],
76739
- ironhead: ["8M", "8L33", "8S0"],
76739
+ irondefense: ["8M", "8L22", "8S0", "8S1"],
76740
+ ironhead: ["8M", "8L33", "8S0", "8S1"],
76740
76741
  irontail: ["8M"],
76741
76742
  laserfocus: ["8L44"],
76742
76743
  lightscreen: ["8M"],
@@ -76767,12 +76768,13 @@ exports.Learnsets = {
76767
76768
  swift: ["8M"],
76768
76769
  tailslap: ["8M"],
76769
76770
  thunderfang: ["8M"],
76770
- wideguard: ["8L1"],
76771
+ wideguard: ["8L1", "8S1"],
76771
76772
  wildcharge: ["8M"],
76772
76773
  workup: ["8M"],
76773
76774
  },
76774
76775
  eventData: [
76775
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" },
76776
76778
  ],
76777
76779
  eventOnly: true,
76778
76780
  },