@pkmn/sim 0.7.40 → 0.7.42

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 (61) hide show
  1. package/build/cjs/config/formats.js +254 -152
  2. package/build/cjs/config/formats.js.map +1 -1
  3. package/build/cjs/data/abilities.js +2 -3
  4. package/build/cjs/data/abilities.js.map +1 -1
  5. package/build/cjs/data/aliases.js +3 -3
  6. package/build/cjs/data/aliases.js.map +1 -1
  7. package/build/cjs/data/formats-data.js +276 -346
  8. package/build/cjs/data/formats-data.js.map +1 -1
  9. package/build/cjs/data/items.js +0 -25
  10. package/build/cjs/data/items.js.map +1 -1
  11. package/build/cjs/data/learnsets.js +39 -0
  12. package/build/cjs/data/learnsets.js.map +1 -1
  13. package/build/cjs/data/mods/gen1/formats-data.js +2 -2
  14. package/build/cjs/data/mods/gen1/formats-data.js.map +1 -1
  15. package/build/cjs/data/mods/gen3/formats-data.js +3 -3
  16. package/build/cjs/data/mods/gen3/formats-data.js.map +1 -1
  17. package/build/cjs/data/mods/gen8/abilities.js +12 -0
  18. package/build/cjs/data/mods/gen8/abilities.js.map +1 -1
  19. package/build/cjs/data/mods/gen8/items.js +63 -20
  20. package/build/cjs/data/mods/gen8/items.js.map +1 -1
  21. package/build/cjs/data/mods/gen8/pokedex.js +4 -0
  22. package/build/cjs/data/mods/gen8/pokedex.js.map +1 -1
  23. package/build/cjs/data/moves.js +15 -22
  24. package/build/cjs/data/moves.js.map +1 -1
  25. package/build/cjs/data/pokedex.js +13 -1
  26. package/build/cjs/data/pokedex.js.map +1 -1
  27. package/build/cjs/data/text/abilities.js +4 -1
  28. package/build/cjs/data/text/abilities.js.map +1 -1
  29. package/build/cjs/sim/team-validator.js +21 -0
  30. package/build/cjs/sim/team-validator.js.map +1 -1
  31. package/build/esm/config/formats.mjs +254 -152
  32. package/build/esm/config/formats.mjs.map +1 -1
  33. package/build/esm/data/abilities.mjs +2 -3
  34. package/build/esm/data/abilities.mjs.map +1 -1
  35. package/build/esm/data/aliases.mjs +3 -3
  36. package/build/esm/data/aliases.mjs.map +1 -1
  37. package/build/esm/data/formats-data.mjs +276 -346
  38. package/build/esm/data/formats-data.mjs.map +1 -1
  39. package/build/esm/data/items.mjs +0 -25
  40. package/build/esm/data/items.mjs.map +1 -1
  41. package/build/esm/data/learnsets.mjs +39 -0
  42. package/build/esm/data/learnsets.mjs.map +1 -1
  43. package/build/esm/data/mods/gen1/formats-data.mjs +2 -2
  44. package/build/esm/data/mods/gen1/formats-data.mjs.map +1 -1
  45. package/build/esm/data/mods/gen3/formats-data.mjs +3 -3
  46. package/build/esm/data/mods/gen3/formats-data.mjs.map +1 -1
  47. package/build/esm/data/mods/gen8/abilities.mjs +12 -0
  48. package/build/esm/data/mods/gen8/abilities.mjs.map +1 -1
  49. package/build/esm/data/mods/gen8/items.mjs +63 -20
  50. package/build/esm/data/mods/gen8/items.mjs.map +1 -1
  51. package/build/esm/data/mods/gen8/pokedex.mjs +4 -0
  52. package/build/esm/data/mods/gen8/pokedex.mjs.map +1 -1
  53. package/build/esm/data/moves.mjs +15 -22
  54. package/build/esm/data/moves.mjs.map +1 -1
  55. package/build/esm/data/pokedex.mjs +13 -1
  56. package/build/esm/data/pokedex.mjs.map +1 -1
  57. package/build/esm/data/text/abilities.mjs +4 -1
  58. package/build/esm/data/text/abilities.mjs.map +1 -1
  59. package/build/esm/sim/team-validator.mjs +21 -0
  60. package/build/esm/sim/team-validator.mjs.map +1 -1
  61. package/package.json +1 -1
@@ -1041,7 +1041,6 @@ exports.Moves = {
1041
1041
  accuracy: 100,
1042
1042
  basePower: 60,
1043
1043
  category: "Physical",
1044
- isNonstandard: "Unobtainable",
1045
1044
  name: "Barb Barrage",
1046
1045
  pp: 10,
1047
1046
  priority: 0,
@@ -1488,11 +1487,15 @@ exports.Moves = {
1488
1487
  accuracy: 80,
1489
1488
  basePower: 100,
1490
1489
  category: "Special",
1491
- isNonstandard: "Unobtainable",
1492
1490
  name: "Bleakwind Storm",
1493
1491
  pp: 10,
1494
1492
  priority: 0,
1495
1493
  flags: { protect: 1, mirror: 1, wind: 1 },
1494
+ onModifyMove(move, pokemon, target) {
1495
+ if (target && ['raindance', 'primordialsea'].includes(target.effectiveWeather())) {
1496
+ move.accuracy = true;
1497
+ }
1498
+ },
1496
1499
  secondary: {
1497
1500
  chance: 30,
1498
1501
  boosts: {
@@ -2203,7 +2206,6 @@ exports.Moves = {
2203
2206
  accuracy: 90,
2204
2207
  basePower: 65,
2205
2208
  category: "Physical",
2206
- isNonstandard: "Unobtainable",
2207
2209
  name: "Ceaseless Edge",
2208
2210
  pp: 15,
2209
2211
  priority: 0,
@@ -2413,7 +2415,6 @@ exports.Moves = {
2413
2415
  accuracy: 95,
2414
2416
  basePower: 150,
2415
2417
  category: "Special",
2416
- isNonstandard: "Unobtainable",
2417
2418
  name: "Chloroblast",
2418
2419
  pp: 5,
2419
2420
  priority: 0,
@@ -2952,7 +2953,6 @@ exports.Moves = {
2952
2953
  accuracy: true,
2953
2954
  basePower: 0,
2954
2955
  category: "Status",
2955
- isNonstandard: "Unobtainable",
2956
2956
  name: "Cosmic Power",
2957
2957
  pp: 20,
2958
2958
  priority: 0,
@@ -3794,7 +3794,6 @@ exports.Moves = {
3794
3794
  accuracy: 100,
3795
3795
  basePower: 80,
3796
3796
  category: "Physical",
3797
- isNonstandard: "Unobtainable",
3798
3797
  name: "Dire Claw",
3799
3798
  pp: 15,
3800
3799
  priority: 0,
@@ -4979,7 +4978,6 @@ exports.Moves = {
4979
4978
  accuracy: 100,
4980
4979
  basePower: 80,
4981
4980
  category: "Special",
4982
- isNonstandard: "Unobtainable",
4983
4981
  name: "Esper Wing",
4984
4982
  pp: 10,
4985
4983
  priority: 0,
@@ -8460,7 +8458,6 @@ exports.Moves = {
8460
8458
  accuracy: true,
8461
8459
  basePower: 0,
8462
8460
  category: "Status",
8463
- isNonstandard: "Unobtainable",
8464
8461
  name: "Heal Bell",
8465
8462
  pp: 5,
8466
8463
  priority: 0,
@@ -9809,7 +9806,6 @@ exports.Moves = {
9809
9806
  return move.basePower;
9810
9807
  },
9811
9808
  category: "Special",
9812
- isNonstandard: "Unobtainable",
9813
9809
  name: "Infernal Parade",
9814
9810
  pp: 15,
9815
9811
  priority: 0,
@@ -10838,7 +10834,6 @@ exports.Moves = {
10838
10834
  accuracy: true,
10839
10835
  basePower: 0,
10840
10836
  category: "Status",
10841
- isNonstandard: "Unobtainable",
10842
10837
  name: "Lunar Blessing",
10843
10838
  pp: 5,
10844
10839
  priority: 0,
@@ -12705,7 +12700,6 @@ exports.Moves = {
12705
12700
  accuracy: 85,
12706
12701
  basePower: 100,
12707
12702
  category: "Physical",
12708
- isNonstandard: "Unobtainable",
12709
12703
  name: "Mountain Gale",
12710
12704
  pp: 10,
12711
12705
  priority: 0,
@@ -12875,7 +12869,6 @@ exports.Moves = {
12875
12869
  accuracy: 90,
12876
12870
  basePower: 70,
12877
12871
  category: "Special",
12878
- isNonstandard: "Unobtainable",
12879
12872
  name: "Mystical Power",
12880
12873
  pp: 10,
12881
12874
  priority: 0,
@@ -14678,7 +14671,6 @@ exports.Moves = {
14678
14671
  accuracy: 90,
14679
14672
  basePower: 70,
14680
14673
  category: "Physical",
14681
- isNonstandard: "Unobtainable",
14682
14674
  name: "Psyshield Bash",
14683
14675
  pp: 10,
14684
14676
  priority: 0,
@@ -15124,7 +15116,6 @@ exports.Moves = {
15124
15116
  accuracy: 100,
15125
15117
  basePower: 120,
15126
15118
  category: "Physical",
15127
- isNonstandard: "Unobtainable",
15128
15119
  name: "Raging Fury",
15129
15120
  pp: 10,
15130
15121
  priority: 0,
@@ -16208,11 +16199,15 @@ exports.Moves = {
16208
16199
  accuracy: 80,
16209
16200
  basePower: 100,
16210
16201
  category: "Special",
16211
- isNonstandard: "Unobtainable",
16212
16202
  name: "Sandsear Storm",
16213
16203
  pp: 10,
16214
16204
  priority: 0,
16215
16205
  flags: { protect: 1, mirror: 1, wind: 1 },
16206
+ onModifyMove(move, pokemon, target) {
16207
+ if (target && ['raindance', 'primordialsea'].includes(target.effectiveWeather())) {
16208
+ move.accuracy = true;
16209
+ }
16210
+ },
16216
16211
  secondary: {
16217
16212
  chance: 20,
16218
16213
  status: 'brn',
@@ -16894,7 +16889,6 @@ exports.Moves = {
16894
16889
  accuracy: true,
16895
16890
  basePower: 0,
16896
16891
  category: "Status",
16897
- isNonstandard: "Unobtainable",
16898
16892
  name: "Shelter",
16899
16893
  pp: 10,
16900
16894
  priority: 0,
@@ -17071,7 +17065,6 @@ exports.Moves = {
17071
17065
  accuracy: 100,
17072
17066
  basePower: 0,
17073
17067
  category: "Status",
17074
- isNonstandard: "Unobtainable",
17075
17068
  name: "Simple Beam",
17076
17069
  pp: 15,
17077
17070
  priority: 0,
@@ -18488,7 +18481,6 @@ exports.Moves = {
18488
18481
  accuracy: 80,
18489
18482
  basePower: 100,
18490
18483
  category: "Special",
18491
- isNonstandard: "Unobtainable",
18492
18484
  name: "Springtide Storm",
18493
18485
  pp: 5,
18494
18486
  priority: 0,
@@ -18783,7 +18775,6 @@ exports.Moves = {
18783
18775
  accuracy: 90,
18784
18776
  basePower: 65,
18785
18777
  category: "Physical",
18786
- isNonstandard: "Unobtainable",
18787
18778
  name: "Stone Axe",
18788
18779
  pp: 15,
18789
18780
  priority: 0,
@@ -20674,7 +20665,6 @@ exports.Moves = {
20674
20665
  accuracy: 100,
20675
20666
  basePower: 90,
20676
20667
  category: "Physical",
20677
- isNonstandard: "Unobtainable",
20678
20668
  name: "Triple Arrows",
20679
20669
  pp: 10,
20680
20670
  priority: 0,
@@ -21063,7 +21053,6 @@ exports.Moves = {
21063
21053
  accuracy: true,
21064
21054
  basePower: 0,
21065
21055
  category: "Status",
21066
- isNonstandard: "Unobtainable",
21067
21056
  name: "Victory Dance",
21068
21057
  pp: 10,
21069
21058
  priority: 0,
@@ -21565,11 +21554,15 @@ exports.Moves = {
21565
21554
  accuracy: 80,
21566
21555
  basePower: 100,
21567
21556
  category: "Special",
21568
- isNonstandard: "Unobtainable",
21569
21557
  name: "Wildbolt Storm",
21570
21558
  pp: 10,
21571
21559
  priority: 0,
21572
21560
  flags: { protect: 1, mirror: 1, wind: 1 },
21561
+ onModifyMove(move, pokemon, target) {
21562
+ if (target && ['raindance', 'primordialsea'].includes(target.effectiveWeather())) {
21563
+ move.accuracy = true;
21564
+ }
21565
+ },
21573
21566
  secondary: {
21574
21567
  chance: 20,
21575
21568
  status: 'par',