@pkmn/sim 0.7.5 → 0.7.6

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 (102) hide show
  1. package/build/cjs/config/formats.js +36 -18
  2. package/build/cjs/config/formats.js.map +1 -1
  3. package/build/cjs/data/abilities.js +24 -5
  4. package/build/cjs/data/abilities.js.map +1 -1
  5. package/build/cjs/data/aliases.js +5 -5
  6. package/build/cjs/data/formats-data.js +4 -4
  7. package/build/cjs/data/formats-data.js.map +1 -1
  8. package/build/cjs/data/items.js +203 -45
  9. package/build/cjs/data/items.js.map +1 -1
  10. package/build/cjs/data/learnsets.js +115 -2
  11. package/build/cjs/data/learnsets.js.map +1 -1
  12. package/build/cjs/data/mods/gen1/moves.js +2 -2
  13. package/build/cjs/data/mods/gen1/moves.js.map +1 -1
  14. package/build/cjs/data/mods/gen1/scripts.js +14 -16
  15. package/build/cjs/data/mods/gen1/scripts.js.map +1 -1
  16. package/build/cjs/data/mods/gen2/moves.js +2 -20
  17. package/build/cjs/data/mods/gen2/moves.js.map +1 -1
  18. package/build/cjs/data/mods/gen3/moves.js +17 -51
  19. package/build/cjs/data/mods/gen3/moves.js.map +1 -1
  20. package/build/cjs/data/mods/gen8/index.js +3 -1
  21. package/build/cjs/data/mods/gen8/index.js.map +1 -1
  22. package/build/cjs/data/mods/gen8/items.js +654 -0
  23. package/build/cjs/data/mods/gen8/items.js.map +1 -0
  24. package/build/cjs/data/moves.js +5 -1
  25. package/build/cjs/data/moves.js.map +1 -1
  26. package/build/cjs/data/rulesets.js +59 -17
  27. package/build/cjs/data/rulesets.js.map +1 -1
  28. package/build/cjs/data/text/moves.js +5 -2
  29. package/build/cjs/data/text/moves.js.map +1 -1
  30. package/build/cjs/sim/battle-actions.js +24 -12
  31. package/build/cjs/sim/battle-actions.js.map +1 -1
  32. package/build/cjs/sim/battle.js +15 -10
  33. package/build/cjs/sim/battle.js.map +1 -1
  34. package/build/cjs/sim/dex-conditions.js.map +1 -1
  35. package/build/cjs/sim/dex-formats.js.map +1 -1
  36. package/build/cjs/sim/dex-items.js.map +1 -1
  37. package/build/cjs/sim/dex.js +2 -1
  38. package/build/cjs/sim/dex.js.map +1 -1
  39. package/build/cjs/sim/index.js +2 -1
  40. package/build/cjs/sim/index.js.map +1 -1
  41. package/build/cjs/sim/pokemon.js +6 -0
  42. package/build/cjs/sim/pokemon.js.map +1 -1
  43. package/build/cjs/sim/team-validator.js +2 -2
  44. package/build/cjs/sim/team-validator.js.map +1 -1
  45. package/build/esm/config/formats.mjs +62 -18
  46. package/build/esm/config/formats.mjs.map +1 -1
  47. package/build/esm/data/abilities.mjs +24 -5
  48. package/build/esm/data/abilities.mjs.map +1 -1
  49. package/build/esm/data/aliases.mjs +7 -7
  50. package/build/esm/data/formats-data.mjs +4 -4
  51. package/build/esm/data/formats-data.mjs.map +1 -1
  52. package/build/esm/data/items.mjs +203 -45
  53. package/build/esm/data/items.mjs.map +1 -1
  54. package/build/esm/data/learnsets.mjs +115 -2
  55. package/build/esm/data/learnsets.mjs.map +1 -1
  56. package/build/esm/data/mods/gen1/moves.mjs +2 -2
  57. package/build/esm/data/mods/gen1/moves.mjs.map +1 -1
  58. package/build/esm/data/mods/gen1/scripts.mjs +14 -16
  59. package/build/esm/data/mods/gen1/scripts.mjs.map +1 -1
  60. package/build/esm/data/mods/gen2/moves.mjs +2 -20
  61. package/build/esm/data/mods/gen2/moves.mjs.map +1 -1
  62. package/build/esm/data/mods/gen3/moves.mjs +17 -51
  63. package/build/esm/data/mods/gen3/moves.mjs.map +1 -1
  64. package/build/esm/data/mods/gen8/index.mjs +1 -0
  65. package/build/esm/data/mods/gen8/index.mjs.map +1 -1
  66. package/build/esm/data/mods/gen8/items.mjs +651 -0
  67. package/build/esm/data/mods/gen8/items.mjs.map +1 -0
  68. package/build/esm/data/moves.mjs +5 -1
  69. package/build/esm/data/moves.mjs.map +1 -1
  70. package/build/esm/data/rulesets.mjs +59 -17
  71. package/build/esm/data/rulesets.mjs.map +1 -1
  72. package/build/esm/data/text/moves.mjs +5 -2
  73. package/build/esm/data/text/moves.mjs.map +1 -1
  74. package/build/esm/sim/battle-actions.mjs +24 -12
  75. package/build/esm/sim/battle-actions.mjs.map +1 -1
  76. package/build/esm/sim/battle.mjs +15 -10
  77. package/build/esm/sim/battle.mjs.map +1 -1
  78. package/build/esm/sim/dex-conditions.mjs.map +1 -1
  79. package/build/esm/sim/dex-formats.mjs.map +1 -1
  80. package/build/esm/sim/dex-items.mjs.map +1 -1
  81. package/build/esm/sim/dex.mjs +2 -1
  82. package/build/esm/sim/dex.mjs.map +1 -1
  83. package/build/esm/sim/index.mjs +1 -1
  84. package/build/esm/sim/index.mjs.map +1 -1
  85. package/build/esm/sim/pokemon.mjs +6 -0
  86. package/build/esm/sim/pokemon.mjs.map +1 -1
  87. package/build/esm/sim/team-validator.mjs +2 -2
  88. package/build/esm/sim/team-validator.mjs.map +1 -1
  89. package/build/esm/sim/tools/exhaustive-runner.mjs +4 -2
  90. package/build/esm/sim/tools/exhaustive-runner.mjs.map +1 -1
  91. package/build/esm/sim/tools/runner.mjs +4 -2
  92. package/build/esm/sim/tools/runner.mjs.map +1 -1
  93. package/build/types/data/mods/gen8/index.d.ts +1 -0
  94. package/build/types/data/mods/gen8/items.d.ts +3 -0
  95. package/build/types/sim/dex-conditions.d.ts +0 -12
  96. package/build/types/sim/dex-formats.d.ts +0 -1
  97. package/build/types/sim/dex-items.d.ts +1 -0
  98. package/build/types/sim/dex.d.ts +2 -2
  99. package/build/types/sim/exported-global-types.d.ts +2 -0
  100. package/build/types/sim/global-types.d.ts +2 -0
  101. package/build/types/sim/index.d.ts +1 -1
  102. package/package.json +2 -1
@@ -81,6 +81,7 @@ exports.Items = {
81
81
  itemUser: ["Dialga"],
82
82
  num: 135,
83
83
  gen: 4,
84
+ isNonstandard: "Unobtainable",
84
85
  },
85
86
  adrenalineorb: {
86
87
  name: "Adrenaline Orb",
@@ -147,7 +148,8 @@ exports.Items = {
147
148
  type: "Dragon",
148
149
  },
149
150
  onUpdate(pokemon) {
150
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
151
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
152
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
151
153
  pokemon.eatItem();
152
154
  }
153
155
  },
@@ -259,7 +261,8 @@ exports.Items = {
259
261
  type: "Ground",
260
262
  },
261
263
  onUpdate(pokemon) {
262
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
264
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
265
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
263
266
  pokemon.eatItem();
264
267
  }
265
268
  },
@@ -671,6 +674,7 @@ exports.Items = {
671
674
  itemUser: ["Silvally-Bug"],
672
675
  num: 909,
673
676
  gen: 7,
677
+ isNonstandard: "Past",
674
678
  },
675
679
  buginiumz: {
676
680
  name: "Buginium Z",
@@ -698,6 +702,7 @@ exports.Items = {
698
702
  itemUser: ["Genesect-Burn"],
699
703
  num: 118,
700
704
  gen: 5,
705
+ isNonstandard: "Past",
701
706
  },
702
707
  cameruptite: {
703
708
  name: "Cameruptite",
@@ -886,6 +891,7 @@ exports.Items = {
886
891
  itemUser: ["Genesect-Chill"],
887
892
  num: 119,
888
893
  gen: 5,
894
+ isNonstandard: "Past",
889
895
  },
890
896
  chippedpot: {
891
897
  name: "Chipped Pot",
@@ -1138,7 +1144,8 @@ exports.Items = {
1138
1144
  onFractionalPriorityPriority: -2,
1139
1145
  onFractionalPriority(priority, pokemon) {
1140
1146
  if (priority <= 0 &&
1141
- (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony')))) {
1147
+ (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
1148
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony))) {
1142
1149
  if (pokemon.eatItem()) {
1143
1150
  this.add('-activate', pokemon, 'item: Custap Berry', '[consumed]');
1144
1151
  return 0.1;
@@ -1188,6 +1195,7 @@ exports.Items = {
1188
1195
  itemUser: ["Silvally-Dark"],
1189
1196
  num: 919,
1190
1197
  gen: 7,
1198
+ isNonstandard: "Past",
1191
1199
  },
1192
1200
  darkiniumz: {
1193
1201
  name: "Darkinium Z",
@@ -1236,6 +1244,7 @@ exports.Items = {
1236
1244
  itemUser: ["Clamperl"],
1237
1245
  num: 227,
1238
1246
  gen: 3,
1247
+ isNonstandard: "Past",
1239
1248
  },
1240
1249
  deepseatooth: {
1241
1250
  name: "Deep Sea Tooth",
@@ -1252,6 +1261,7 @@ exports.Items = {
1252
1261
  itemUser: ["Clamperl"],
1253
1262
  num: 226,
1254
1263
  gen: 3,
1264
+ isNonstandard: "Past",
1255
1265
  },
1256
1266
  destinyknot: {
1257
1267
  name: "Destiny Knot",
@@ -1316,6 +1326,7 @@ exports.Items = {
1316
1326
  itemUser: ["Genesect-Douse"],
1317
1327
  num: 116,
1318
1328
  gen: 5,
1329
+ isNonstandard: "Past",
1319
1330
  },
1320
1331
  dracoplate: {
1321
1332
  name: "Draco Plate",
@@ -1382,6 +1393,7 @@ exports.Items = {
1382
1393
  itemUser: ["Silvally-Dragon"],
1383
1394
  num: 918,
1384
1395
  gen: 7,
1396
+ isNonstandard: "Past",
1385
1397
  },
1386
1398
  dragonscale: {
1387
1399
  name: "Dragon Scale",
@@ -1391,6 +1403,7 @@ exports.Items = {
1391
1403
  },
1392
1404
  num: 235,
1393
1405
  gen: 2,
1406
+ isNonstandard: "Past",
1394
1407
  },
1395
1408
  dragoniumz: {
1396
1409
  name: "Dragonium Z",
@@ -1440,6 +1453,7 @@ exports.Items = {
1440
1453
  },
1441
1454
  num: 324,
1442
1455
  gen: 4,
1456
+ isNonstandard: "Past",
1443
1457
  },
1444
1458
  durinberry: {
1445
1459
  name: "Durin Berry",
@@ -1513,6 +1527,8 @@ exports.Items = {
1513
1527
  if (source && source !== target && target.hp && move && move.category !== 'Status' && !move.isFutureMove) {
1514
1528
  if (!this.canSwitch(target.side) || target.forceSwitchFlag || target.beingCalledBack || target.isSkyDropped())
1515
1529
  return;
1530
+ if (target.volatiles['commanding'] || target.volatiles['commanded'])
1531
+ return;
1516
1532
  for (const pokemon of this.getAllActive()) {
1517
1533
  if (pokemon.switchFlag === true)
1518
1534
  return;
@@ -1549,6 +1565,8 @@ exports.Items = {
1549
1565
  if (target.hp) {
1550
1566
  if (!this.canSwitch(target.side))
1551
1567
  return;
1568
+ if (target.volatiles['commanding'] || target.volatiles['commanded'])
1569
+ return;
1552
1570
  for (const pokemon of this.getAllActive()) {
1553
1571
  if (pokemon.switchFlag === true)
1554
1572
  return;
@@ -1569,6 +1587,7 @@ exports.Items = {
1569
1587
  },
1570
1588
  num: 322,
1571
1589
  gen: 4,
1590
+ isNonstandard: "Past",
1572
1591
  },
1573
1592
  electricgem: {
1574
1593
  name: "Electric Gem",
@@ -1600,6 +1619,7 @@ exports.Items = {
1600
1619
  itemUser: ["Silvally-Electric"],
1601
1620
  num: 915,
1602
1621
  gen: 7,
1622
+ isNonstandard: "Past",
1603
1623
  },
1604
1624
  electricseed: {
1605
1625
  name: "Electric Seed",
@@ -1744,6 +1764,7 @@ exports.Items = {
1744
1764
  itemUser: ["Silvally-Fairy"],
1745
1765
  num: 920,
1746
1766
  gen: 7,
1767
+ isNonstandard: "Past",
1747
1768
  },
1748
1769
  fastball: {
1749
1770
  name: "Fast Ball",
@@ -1781,6 +1802,7 @@ exports.Items = {
1781
1802
  itemUser: ["Silvally-Fighting"],
1782
1803
  num: 904,
1783
1804
  gen: 7,
1805
+ isNonstandard: "Past",
1784
1806
  },
1785
1807
  fightiniumz: {
1786
1808
  name: "Fightinium Z",
@@ -1803,7 +1825,8 @@ exports.Items = {
1803
1825
  type: "Bug",
1804
1826
  },
1805
1827
  onUpdate(pokemon) {
1806
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
1828
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
1829
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
1807
1830
  pokemon.eatItem();
1808
1831
  }
1809
1832
  },
@@ -1850,6 +1873,7 @@ exports.Items = {
1850
1873
  itemUser: ["Silvally-Fire"],
1851
1874
  num: 912,
1852
1875
  gen: 7,
1876
+ isNonstandard: "Past",
1853
1877
  },
1854
1878
  firestone: {
1855
1879
  name: "Fire Stone",
@@ -1979,6 +2003,7 @@ exports.Items = {
1979
2003
  itemUser: ["Silvally-Flying"],
1980
2004
  num: 905,
1981
2005
  gen: 7,
2006
+ isNonstandard: "Past",
1982
2007
  },
1983
2008
  flyiniumz: {
1984
2009
  name: "Flyinium Z",
@@ -2033,6 +2058,7 @@ exports.Items = {
2033
2058
  },
2034
2059
  num: 1105,
2035
2060
  gen: 8,
2061
+ isNonstandard: "Past",
2036
2062
  },
2037
2063
  fossilizeddino: {
2038
2064
  name: "Fossilized Dino",
@@ -2042,6 +2068,7 @@ exports.Items = {
2042
2068
  },
2043
2069
  num: 1108,
2044
2070
  gen: 8,
2071
+ isNonstandard: "Past",
2045
2072
  },
2046
2073
  fossilizeddrake: {
2047
2074
  name: "Fossilized Drake",
@@ -2051,6 +2078,7 @@ exports.Items = {
2051
2078
  },
2052
2079
  num: 1107,
2053
2080
  gen: 8,
2081
+ isNonstandard: "Past",
2054
2082
  },
2055
2083
  fossilizedfish: {
2056
2084
  name: "Fossilized Fish",
@@ -2060,6 +2088,7 @@ exports.Items = {
2060
2088
  },
2061
2089
  num: 1106,
2062
2090
  gen: 8,
2091
+ isNonstandard: "Past",
2063
2092
  },
2064
2093
  friendball: {
2065
2094
  name: "Friend Ball",
@@ -2077,6 +2106,7 @@ exports.Items = {
2077
2106
  onFractionalPriority: -0.1,
2078
2107
  num: 316,
2079
2108
  gen: 4,
2109
+ isNonstandard: "Unobtainable",
2080
2110
  },
2081
2111
  galaricacuff: {
2082
2112
  name: "Galarica Cuff",
@@ -2086,6 +2116,7 @@ exports.Items = {
2086
2116
  },
2087
2117
  num: 1582,
2088
2118
  gen: 8,
2119
+ isNonstandard: "Past",
2089
2120
  },
2090
2121
  galaricawreath: {
2091
2122
  name: "Galarica Wreath",
@@ -2095,6 +2126,7 @@ exports.Items = {
2095
2126
  },
2096
2127
  num: 1592,
2097
2128
  gen: 8,
2129
+ isNonstandard: "Past",
2098
2130
  },
2099
2131
  galladite: {
2100
2132
  name: "Galladite",
@@ -2120,7 +2152,8 @@ exports.Items = {
2120
2152
  type: "Ice",
2121
2153
  },
2122
2154
  onUpdate(pokemon) {
2123
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
2155
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
2156
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
2124
2157
  pokemon.eatItem();
2125
2158
  }
2126
2159
  },
@@ -2204,6 +2237,7 @@ exports.Items = {
2204
2237
  itemUser: ["Silvally-Ghost"],
2205
2238
  num: 910,
2206
2239
  gen: 7,
2240
+ isNonstandard: "Past",
2207
2241
  },
2208
2242
  ghostiumz: {
2209
2243
  name: "Ghostium Z",
@@ -2271,6 +2305,7 @@ exports.Items = {
2271
2305
  itemUser: ["Silvally-Grass"],
2272
2306
  num: 914,
2273
2307
  gen: 7,
2308
+ isNonstandard: "Past",
2274
2309
  },
2275
2310
  grassiumz: {
2276
2311
  name: "Grassium Z",
@@ -2357,6 +2392,7 @@ exports.Items = {
2357
2392
  itemUser: ["Giratina-Origin"],
2358
2393
  num: 112,
2359
2394
  gen: 4,
2395
+ isNonstandard: "Unobtainable",
2360
2396
  },
2361
2397
  groundgem: {
2362
2398
  name: "Ground Gem",
@@ -2387,6 +2423,7 @@ exports.Items = {
2387
2423
  itemUser: ["Silvally-Ground"],
2388
2424
  num: 907,
2389
2425
  gen: 7,
2426
+ isNonstandard: "Past",
2390
2427
  },
2391
2428
  groundiumz: {
2392
2429
  name: "Groundium Z",
@@ -2548,7 +2585,8 @@ exports.Items = {
2548
2585
  type: "Dark",
2549
2586
  },
2550
2587
  onUpdate(pokemon) {
2551
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
2588
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
2589
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
2552
2590
  pokemon.eatItem();
2553
2591
  }
2554
2592
  },
@@ -2594,6 +2632,7 @@ exports.Items = {
2594
2632
  itemUser: ["Silvally-Ice"],
2595
2633
  num: 917,
2596
2634
  gen: 7,
2635
+ isNonstandard: "Past",
2597
2636
  },
2598
2637
  icestone: {
2599
2638
  name: "Ice Stone",
@@ -2902,7 +2941,8 @@ exports.Items = {
2902
2941
  type: "Flying",
2903
2942
  },
2904
2943
  onUpdate(pokemon) {
2905
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
2944
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
2945
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
2906
2946
  pokemon.eatItem();
2907
2947
  }
2908
2948
  },
@@ -2957,6 +2997,7 @@ exports.Items = {
2957
2997
  },
2958
2998
  num: 255,
2959
2999
  gen: 3,
3000
+ isNonstandard: "Unobtainable",
2960
3001
  },
2961
3002
  leafstone: {
2962
3003
  name: "Leaf Stone",
@@ -2981,6 +3022,7 @@ exports.Items = {
2981
3022
  itemUser: ["Farfetch\u2019d", "Farfetch\u2019d-Galar", "Sirfetch\u2019d"],
2982
3023
  num: 259,
2983
3024
  gen: 8,
3025
+ isNonstandard: "Past",
2984
3026
  },
2985
3027
  leftovers: {
2986
3028
  name: "Leftovers",
@@ -3040,7 +3082,8 @@ exports.Items = {
3040
3082
  type: "Grass",
3041
3083
  },
3042
3084
  onUpdate(pokemon) {
3043
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
3085
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
3086
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
3044
3087
  pokemon.eatItem();
3045
3088
  }
3046
3089
  },
@@ -3248,6 +3291,7 @@ exports.Items = {
3248
3291
  itemUser: ["Palkia"],
3249
3292
  num: 136,
3250
3293
  gen: 4,
3294
+ isNonstandard: "Unobtainable",
3251
3295
  },
3252
3296
  luxuryball: {
3253
3297
  name: "Luxury Ball",
@@ -3313,7 +3357,8 @@ exports.Items = {
3313
3357
  type: "Ghost",
3314
3358
  },
3315
3359
  onUpdate(pokemon) {
3316
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
3360
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
3361
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
3317
3362
  pokemon.eatItem();
3318
3363
  }
3319
3364
  },
@@ -3647,7 +3692,8 @@ exports.Items = {
3647
3692
  type: "Rock",
3648
3693
  },
3649
3694
  onResidual(pokemon) {
3650
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
3695
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
3696
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
3651
3697
  pokemon.eatItem();
3652
3698
  }
3653
3699
  },
@@ -3930,6 +3976,7 @@ exports.Items = {
3930
3976
  },
3931
3977
  num: 314,
3932
3978
  gen: 4,
3979
+ isNonstandard: "Unobtainable",
3933
3980
  },
3934
3981
  oldamber: {
3935
3982
  name: "Old Amber",
@@ -4091,7 +4138,8 @@ exports.Items = {
4091
4138
  type: "Poison",
4092
4139
  },
4093
4140
  onUpdate(pokemon) {
4094
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
4141
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
4142
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
4095
4143
  pokemon.eatItem();
4096
4144
  }
4097
4145
  },
@@ -4241,6 +4289,7 @@ exports.Items = {
4241
4289
  itemUser: ["Silvally-Poison"],
4242
4290
  num: 906,
4243
4291
  gen: 7,
4292
+ isNonstandard: "Past",
4244
4293
  },
4245
4294
  poisoniumz: {
4246
4295
  name: "Poisonium Z",
@@ -4394,6 +4443,7 @@ exports.Items = {
4394
4443
  },
4395
4444
  num: 537,
4396
4445
  gen: 5,
4446
+ isNonstandard: "Past",
4397
4447
  },
4398
4448
  protectivepads: {
4399
4449
  name: "Protective Pads",
@@ -4413,6 +4463,7 @@ exports.Items = {
4413
4463
  },
4414
4464
  num: 321,
4415
4465
  gen: 4,
4466
+ isNonstandard: "Past",
4416
4467
  },
4417
4468
  psychicgem: {
4418
4469
  name: "Psychic Gem",
@@ -4443,6 +4494,7 @@ exports.Items = {
4443
4494
  itemUser: ["Silvally-Psychic"],
4444
4495
  num: 916,
4445
4496
  gen: 7,
4497
+ isNonstandard: "Past",
4446
4498
  },
4447
4499
  psychicseed: {
4448
4500
  name: "Psychic Seed",
@@ -4647,6 +4699,7 @@ exports.Items = {
4647
4699
  },
4648
4700
  num: 325,
4649
4701
  gen: 4,
4702
+ isNonstandard: "Past",
4650
4703
  },
4651
4704
  redcard: {
4652
4705
  name: "Red Card",
@@ -4770,6 +4823,7 @@ exports.Items = {
4770
4823
  },
4771
4824
  num: 315,
4772
4825
  gen: 4,
4826
+ isNonstandard: "Unobtainable",
4773
4827
  },
4774
4828
  rockmemory: {
4775
4829
  name: "Rock Memory",
@@ -4785,6 +4839,7 @@ exports.Items = {
4785
4839
  itemUser: ["Silvally-Rock"],
4786
4840
  num: 908,
4787
4841
  gen: 7,
4842
+ isNonstandard: "Past",
4788
4843
  },
4789
4844
  rockiumz: {
4790
4845
  name: "Rockium Z",
@@ -4860,6 +4915,7 @@ exports.Items = {
4860
4915
  },
4861
4916
  num: 318,
4862
4917
  gen: 4,
4918
+ isNonstandard: "Unobtainable",
4863
4919
  },
4864
4920
  roseliberry: {
4865
4921
  name: "Roseli Berry",
@@ -4917,6 +4973,7 @@ exports.Items = {
4917
4973
  itemUser: ["Zamazenta-Crowned"],
4918
4974
  num: 1104,
4919
4975
  gen: 8,
4976
+ isNonstandard: "Unobtainable",
4920
4977
  },
4921
4978
  rustedsword: {
4922
4979
  name: "Rusted Sword",
@@ -4930,6 +4987,7 @@ exports.Items = {
4930
4987
  itemUser: ["Zacian-Crowned"],
4931
4988
  num: 1103,
4932
4989
  gen: 8,
4990
+ isNonstandard: "Unobtainable",
4933
4991
  },
4934
4992
  sablenite: {
4935
4993
  name: "Sablenite",
@@ -4954,6 +5012,7 @@ exports.Items = {
4954
5012
  },
4955
5013
  num: 647,
4956
5014
  gen: 6,
5015
+ isNonstandard: "Past",
4957
5016
  },
4958
5017
  safariball: {
4959
5018
  name: "Safari Ball",
@@ -5000,7 +5059,8 @@ exports.Items = {
5000
5059
  type: "Fighting",
5001
5060
  },
5002
5061
  onUpdate(pokemon) {
5003
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
5062
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
5063
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
5004
5064
  pokemon.eatItem();
5005
5065
  }
5006
5066
  },
@@ -5081,6 +5141,7 @@ exports.Items = {
5081
5141
  },
5082
5142
  num: 254,
5083
5143
  gen: 3,
5144
+ isNonstandard: "Unobtainable",
5084
5145
  },
5085
5146
  sharpbeak: {
5086
5147
  name: "Sharp Beak",
@@ -5163,6 +5224,7 @@ exports.Items = {
5163
5224
  itemUser: ["Genesect-Shock"],
5164
5225
  num: 117,
5165
5226
  gen: 5,
5227
+ isNonstandard: "Past",
5166
5228
  },
5167
5229
  shucaberry: {
5168
5230
  name: "Shuca Berry",
@@ -5366,6 +5428,7 @@ exports.Items = {
5366
5428
  itemUser: ["Latios", "Latias"],
5367
5429
  num: 225,
5368
5430
  gen: 3,
5431
+ isNonstandard: "Past",
5369
5432
  },
5370
5433
  spelltag: {
5371
5434
  name: "Spell Tag",
@@ -5453,7 +5516,8 @@ exports.Items = {
5453
5516
  type: "Psychic",
5454
5517
  },
5455
5518
  onUpdate(pokemon) {
5456
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
5519
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
5520
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
5457
5521
  pokemon.eatItem();
5458
5522
  }
5459
5523
  },
@@ -5528,6 +5592,7 @@ exports.Items = {
5528
5592
  itemUser: ["Silvally-Steel"],
5529
5593
  num: 911,
5530
5594
  gen: 7,
5595
+ isNonstandard: "Past",
5531
5596
  },
5532
5597
  steeliumz: {
5533
5598
  name: "Steelium Z",
@@ -5723,6 +5788,7 @@ exports.Items = {
5723
5788
  itemUser: ["Marowak", "Marowak-Alola", "Marowak-Alola-Totem", "Cubone"],
5724
5789
  num: 258,
5725
5790
  gen: 2,
5791
+ isNonstandard: "Past",
5726
5792
  },
5727
5793
  throatspray: {
5728
5794
  name: "Throat Spray",
@@ -5801,6 +5867,7 @@ exports.Items = {
5801
5867
  spritenum: 721,
5802
5868
  num: 1130,
5803
5869
  gen: 8,
5870
+ isNonstandard: "Past",
5804
5871
  },
5805
5872
  tr01: {
5806
5873
  name: "TR01",
@@ -5810,6 +5877,7 @@ exports.Items = {
5810
5877
  spritenum: 721,
5811
5878
  num: 1131,
5812
5879
  gen: 8,
5880
+ isNonstandard: "Past",
5813
5881
  },
5814
5882
  tr02: {
5815
5883
  name: "TR02",
@@ -5819,6 +5887,7 @@ exports.Items = {
5819
5887
  spritenum: 730,
5820
5888
  num: 1132,
5821
5889
  gen: 8,
5890
+ isNonstandard: "Past",
5822
5891
  },
5823
5892
  tr03: {
5824
5893
  name: "TR03",
@@ -5828,6 +5897,7 @@ exports.Items = {
5828
5897
  spritenum: 731,
5829
5898
  num: 1133,
5830
5899
  gen: 8,
5900
+ isNonstandard: "Past",
5831
5901
  },
5832
5902
  tr04: {
5833
5903
  name: "TR04",
@@ -5837,6 +5907,7 @@ exports.Items = {
5837
5907
  spritenum: 731,
5838
5908
  num: 1134,
5839
5909
  gen: 8,
5910
+ isNonstandard: "Past",
5840
5911
  },
5841
5912
  tr05: {
5842
5913
  name: "TR05",
@@ -5846,6 +5917,7 @@ exports.Items = {
5846
5917
  spritenum: 735,
5847
5918
  num: 1135,
5848
5919
  gen: 8,
5920
+ isNonstandard: "Past",
5849
5921
  },
5850
5922
  tr06: {
5851
5923
  name: "TR06",
@@ -5855,6 +5927,7 @@ exports.Items = {
5855
5927
  spritenum: 735,
5856
5928
  num: 1136,
5857
5929
  gen: 8,
5930
+ isNonstandard: "Past",
5858
5931
  },
5859
5932
  tr07: {
5860
5933
  name: "TR07",
@@ -5864,6 +5937,7 @@ exports.Items = {
5864
5937
  spritenum: 722,
5865
5938
  num: 1137,
5866
5939
  gen: 8,
5940
+ isNonstandard: "Past",
5867
5941
  },
5868
5942
  tr08: {
5869
5943
  name: "TR08",
@@ -5873,6 +5947,7 @@ exports.Items = {
5873
5947
  spritenum: 733,
5874
5948
  num: 1138,
5875
5949
  gen: 8,
5950
+ isNonstandard: "Past",
5876
5951
  },
5877
5952
  tr09: {
5878
5953
  name: "TR09",
@@ -5882,6 +5957,7 @@ exports.Items = {
5882
5957
  spritenum: 733,
5883
5958
  num: 1139,
5884
5959
  gen: 8,
5960
+ isNonstandard: "Past",
5885
5961
  },
5886
5962
  tr10: {
5887
5963
  name: "TR10",
@@ -5891,6 +5967,7 @@ exports.Items = {
5891
5967
  spritenum: 725,
5892
5968
  num: 1140,
5893
5969
  gen: 8,
5970
+ isNonstandard: "Past",
5894
5971
  },
5895
5972
  tr11: {
5896
5973
  name: "TR11",
@@ -5900,6 +5977,7 @@ exports.Items = {
5900
5977
  spritenum: 734,
5901
5978
  num: 1141,
5902
5979
  gen: 8,
5980
+ isNonstandard: "Past",
5903
5981
  },
5904
5982
  tr12: {
5905
5983
  name: "TR12",
@@ -5909,6 +5987,7 @@ exports.Items = {
5909
5987
  spritenum: 734,
5910
5988
  num: 1142,
5911
5989
  gen: 8,
5990
+ isNonstandard: "Past",
5912
5991
  },
5913
5992
  tr13: {
5914
5993
  name: "TR13",
@@ -5918,6 +5997,7 @@ exports.Items = {
5918
5997
  spritenum: 721,
5919
5998
  num: 1143,
5920
5999
  gen: 8,
6000
+ isNonstandard: "Past",
5921
6001
  },
5922
6002
  tr14: {
5923
6003
  name: "TR14",
@@ -5927,6 +6007,7 @@ exports.Items = {
5927
6007
  spritenum: 721,
5928
6008
  num: 1144,
5929
6009
  gen: 8,
6010
+ isNonstandard: "Past",
5930
6011
  },
5931
6012
  tr15: {
5932
6013
  name: "TR15",
@@ -5936,6 +6017,7 @@ exports.Items = {
5936
6017
  spritenum: 730,
5937
6018
  num: 1145,
5938
6019
  gen: 8,
6020
+ isNonstandard: "Past",
5939
6021
  },
5940
6022
  tr16: {
5941
6023
  name: "TR16",
@@ -5945,6 +6027,7 @@ exports.Items = {
5945
6027
  spritenum: 731,
5946
6028
  num: 1146,
5947
6029
  gen: 8,
6030
+ isNonstandard: "Past",
5948
6031
  },
5949
6032
  tr17: {
5950
6033
  name: "TR17",
@@ -5954,6 +6037,7 @@ exports.Items = {
5954
6037
  spritenum: 734,
5955
6038
  num: 1147,
5956
6039
  gen: 8,
6040
+ isNonstandard: "Past",
5957
6041
  },
5958
6042
  tr18: {
5959
6043
  name: "TR18",
@@ -5963,6 +6047,7 @@ exports.Items = {
5963
6047
  spritenum: 727,
5964
6048
  num: 1148,
5965
6049
  gen: 8,
6050
+ isNonstandard: "Past",
5966
6051
  },
5967
6052
  tr19: {
5968
6053
  name: "TR19",
@@ -5972,6 +6057,7 @@ exports.Items = {
5972
6057
  spritenum: 721,
5973
6058
  num: 1149,
5974
6059
  gen: 8,
6060
+ isNonstandard: "Past",
5975
6061
  },
5976
6062
  tr20: {
5977
6063
  name: "TR20",
@@ -5981,6 +6067,7 @@ exports.Items = {
5981
6067
  spritenum: 721,
5982
6068
  num: 1150,
5983
6069
  gen: 8,
6070
+ isNonstandard: "Past",
5984
6071
  },
5985
6072
  tr21: {
5986
6073
  name: "TR21",
@@ -5990,6 +6077,7 @@ exports.Items = {
5990
6077
  spritenum: 722,
5991
6078
  num: 1151,
5992
6079
  gen: 8,
6080
+ isNonstandard: "Past",
5993
6081
  },
5994
6082
  tr22: {
5995
6083
  name: "TR22",
@@ -5999,6 +6087,7 @@ exports.Items = {
5999
6087
  spritenum: 724,
6000
6088
  num: 1152,
6001
6089
  gen: 8,
6090
+ isNonstandard: "Past",
6002
6091
  },
6003
6092
  tr23: {
6004
6093
  name: "TR23",
@@ -6008,6 +6097,7 @@ exports.Items = {
6008
6097
  spritenum: 725,
6009
6098
  num: 1153,
6010
6099
  gen: 8,
6100
+ isNonstandard: "Past",
6011
6101
  },
6012
6102
  tr24: {
6013
6103
  name: "TR24",
@@ -6017,6 +6107,7 @@ exports.Items = {
6017
6107
  spritenum: 736,
6018
6108
  num: 1154,
6019
6109
  gen: 8,
6110
+ isNonstandard: "Past",
6020
6111
  },
6021
6112
  tr25: {
6022
6113
  name: "TR25",
@@ -6026,6 +6117,7 @@ exports.Items = {
6026
6117
  spritenum: 734,
6027
6118
  num: 1155,
6028
6119
  gen: 8,
6120
+ isNonstandard: "Past",
6029
6121
  },
6030
6122
  tr26: {
6031
6123
  name: "TR26",
@@ -6035,6 +6127,7 @@ exports.Items = {
6035
6127
  spritenum: 721,
6036
6128
  num: 1156,
6037
6129
  gen: 8,
6130
+ isNonstandard: "Past",
6038
6131
  },
6039
6132
  tr27: {
6040
6133
  name: "TR27",
@@ -6044,6 +6137,7 @@ exports.Items = {
6044
6137
  spritenum: 721,
6045
6138
  num: 1157,
6046
6139
  gen: 8,
6140
+ isNonstandard: "Past",
6047
6141
  },
6048
6142
  tr28: {
6049
6143
  name: "TR28",
@@ -6053,6 +6147,7 @@ exports.Items = {
6053
6147
  spritenum: 727,
6054
6148
  num: 1158,
6055
6149
  gen: 8,
6150
+ isNonstandard: "Past",
6056
6151
  },
6057
6152
  tr29: {
6058
6153
  name: "TR29",
@@ -6062,6 +6157,7 @@ exports.Items = {
6062
6157
  spritenum: 721,
6063
6158
  num: 1159,
6064
6159
  gen: 8,
6160
+ isNonstandard: "Past",
6065
6161
  },
6066
6162
  tr30: {
6067
6163
  name: "TR30",
@@ -6071,6 +6167,7 @@ exports.Items = {
6071
6167
  spritenum: 721,
6072
6168
  num: 1160,
6073
6169
  gen: 8,
6170
+ isNonstandard: "Past",
6074
6171
  },
6075
6172
  tr31: {
6076
6173
  name: "TR31",
@@ -6080,6 +6177,7 @@ exports.Items = {
6080
6177
  spritenum: 729,
6081
6178
  num: 1161,
6082
6179
  gen: 8,
6180
+ isNonstandard: "Past",
6083
6181
  },
6084
6182
  tr32: {
6085
6183
  name: "TR32",
@@ -6089,6 +6187,7 @@ exports.Items = {
6089
6187
  spritenum: 737,
6090
6188
  num: 1162,
6091
6189
  gen: 8,
6190
+ isNonstandard: "Past",
6092
6191
  },
6093
6192
  tr33: {
6094
6193
  name: "TR33",
@@ -6098,6 +6197,7 @@ exports.Items = {
6098
6197
  spritenum: 728,
6099
6198
  num: 1163,
6100
6199
  gen: 8,
6200
+ isNonstandard: "Past",
6101
6201
  },
6102
6202
  tr34: {
6103
6203
  name: "TR34",
@@ -6107,6 +6207,7 @@ exports.Items = {
6107
6207
  spritenum: 734,
6108
6208
  num: 1164,
6109
6209
  gen: 8,
6210
+ isNonstandard: "Past",
6110
6211
  },
6111
6212
  tr35: {
6112
6213
  name: "TR35",
@@ -6116,6 +6217,7 @@ exports.Items = {
6116
6217
  spritenum: 721,
6117
6218
  num: 1165,
6118
6219
  gen: 8,
6220
+ isNonstandard: "Past",
6119
6221
  },
6120
6222
  tr36: {
6121
6223
  name: "TR36",
@@ -6125,6 +6227,7 @@ exports.Items = {
6125
6227
  spritenum: 730,
6126
6228
  num: 1166,
6127
6229
  gen: 8,
6230
+ isNonstandard: "Past",
6128
6231
  },
6129
6232
  tr37: {
6130
6233
  name: "TR37",
@@ -6134,6 +6237,7 @@ exports.Items = {
6134
6237
  spritenum: 737,
6135
6238
  num: 1167,
6136
6239
  gen: 8,
6240
+ isNonstandard: "Past",
6137
6241
  },
6138
6242
  tr38: {
6139
6243
  name: "TR38",
@@ -6143,6 +6247,7 @@ exports.Items = {
6143
6247
  spritenum: 734,
6144
6248
  num: 1168,
6145
6249
  gen: 8,
6250
+ isNonstandard: "Past",
6146
6251
  },
6147
6252
  tr39: {
6148
6253
  name: "TR39",
@@ -6152,6 +6257,7 @@ exports.Items = {
6152
6257
  spritenum: 722,
6153
6258
  num: 1169,
6154
6259
  gen: 8,
6260
+ isNonstandard: "Past",
6155
6261
  },
6156
6262
  tr40: {
6157
6263
  name: "TR40",
@@ -6161,6 +6267,7 @@ exports.Items = {
6161
6267
  spritenum: 734,
6162
6268
  num: 1170,
6163
6269
  gen: 8,
6270
+ isNonstandard: "Past",
6164
6271
  },
6165
6272
  tr41: {
6166
6273
  name: "TR41",
@@ -6170,6 +6277,7 @@ exports.Items = {
6170
6277
  spritenum: 730,
6171
6278
  num: 1171,
6172
6279
  gen: 8,
6280
+ isNonstandard: "Past",
6173
6281
  },
6174
6282
  tr42: {
6175
6283
  name: "TR42",
@@ -6179,6 +6287,7 @@ exports.Items = {
6179
6287
  spritenum: 721,
6180
6288
  num: 1172,
6181
6289
  gen: 8,
6290
+ isNonstandard: "Past",
6182
6291
  },
6183
6292
  tr43: {
6184
6293
  name: "TR43",
@@ -6188,6 +6297,7 @@ exports.Items = {
6188
6297
  spritenum: 730,
6189
6298
  num: 1173,
6190
6299
  gen: 8,
6300
+ isNonstandard: "Past",
6191
6301
  },
6192
6302
  tr44: {
6193
6303
  name: "TR44",
@@ -6197,6 +6307,7 @@ exports.Items = {
6197
6307
  spritenum: 734,
6198
6308
  num: 1174,
6199
6309
  gen: 8,
6310
+ isNonstandard: "Past",
6200
6311
  },
6201
6312
  tr45: {
6202
6313
  name: "TR45",
@@ -6206,6 +6317,7 @@ exports.Items = {
6206
6317
  spritenum: 731,
6207
6318
  num: 1175,
6208
6319
  gen: 8,
6320
+ isNonstandard: "Past",
6209
6321
  },
6210
6322
  tr46: {
6211
6323
  name: "TR46",
@@ -6215,6 +6327,7 @@ exports.Items = {
6215
6327
  spritenum: 729,
6216
6328
  num: 1176,
6217
6329
  gen: 8,
6330
+ isNonstandard: "Past",
6218
6331
  },
6219
6332
  tr47: {
6220
6333
  name: "TR47",
@@ -6224,6 +6337,7 @@ exports.Items = {
6224
6337
  spritenum: 736,
6225
6338
  num: 1177,
6226
6339
  gen: 8,
6340
+ isNonstandard: "Past",
6227
6341
  },
6228
6342
  tr48: {
6229
6343
  name: "TR48",
@@ -6233,6 +6347,7 @@ exports.Items = {
6233
6347
  spritenum: 722,
6234
6348
  num: 1178,
6235
6349
  gen: 8,
6350
+ isNonstandard: "Past",
6236
6351
  },
6237
6352
  tr49: {
6238
6353
  name: "TR49",
@@ -6242,6 +6357,7 @@ exports.Items = {
6242
6357
  spritenum: 734,
6243
6358
  num: 1179,
6244
6359
  gen: 8,
6360
+ isNonstandard: "Past",
6245
6361
  },
6246
6362
  tr50: {
6247
6363
  name: "TR50",
@@ -6251,6 +6367,7 @@ exports.Items = {
6251
6367
  spritenum: 732,
6252
6368
  num: 1180,
6253
6369
  gen: 8,
6370
+ isNonstandard: "Past",
6254
6371
  },
6255
6372
  tr51: {
6256
6373
  name: "TR51",
@@ -6260,6 +6377,7 @@ exports.Items = {
6260
6377
  spritenum: 736,
6261
6378
  num: 1181,
6262
6379
  gen: 8,
6380
+ isNonstandard: "Past",
6263
6381
  },
6264
6382
  tr52: {
6265
6383
  name: "TR52",
@@ -6269,6 +6387,7 @@ exports.Items = {
6269
6387
  spritenum: 729,
6270
6388
  num: 1182,
6271
6389
  gen: 8,
6390
+ isNonstandard: "Past",
6272
6391
  },
6273
6392
  tr53: {
6274
6393
  name: "TR53",
@@ -6278,6 +6397,7 @@ exports.Items = {
6278
6397
  spritenum: 722,
6279
6398
  num: 1183,
6280
6399
  gen: 8,
6400
+ isNonstandard: "Past",
6281
6401
  },
6282
6402
  tr54: {
6283
6403
  name: "TR54",
@@ -6287,6 +6407,7 @@ exports.Items = {
6287
6407
  spritenum: 724,
6288
6408
  num: 1184,
6289
6409
  gen: 8,
6410
+ isNonstandard: "Past",
6290
6411
  },
6291
6412
  tr55: {
6292
6413
  name: "TR55",
@@ -6296,6 +6417,7 @@ exports.Items = {
6296
6417
  spritenum: 730,
6297
6418
  num: 1185,
6298
6419
  gen: 8,
6420
+ isNonstandard: "Past",
6299
6421
  },
6300
6422
  tr56: {
6301
6423
  name: "TR56",
@@ -6305,6 +6427,7 @@ exports.Items = {
6305
6427
  spritenum: 722,
6306
6428
  num: 1186,
6307
6429
  gen: 8,
6430
+ isNonstandard: "Past",
6308
6431
  },
6309
6432
  tr57: {
6310
6433
  name: "TR57",
@@ -6314,6 +6437,7 @@ exports.Items = {
6314
6437
  spritenum: 724,
6315
6438
  num: 1187,
6316
6439
  gen: 8,
6440
+ isNonstandard: "Past",
6317
6441
  },
6318
6442
  tr58: {
6319
6443
  name: "TR58",
@@ -6323,6 +6447,7 @@ exports.Items = {
6323
6447
  spritenum: 737,
6324
6448
  num: 1188,
6325
6449
  gen: 8,
6450
+ isNonstandard: "Past",
6326
6451
  },
6327
6452
  tr59: {
6328
6453
  name: "TR59",
@@ -6332,6 +6457,7 @@ exports.Items = {
6332
6457
  spritenum: 732,
6333
6458
  num: 1189,
6334
6459
  gen: 8,
6460
+ isNonstandard: "Past",
6335
6461
  },
6336
6462
  tr60: {
6337
6463
  name: "TR60",
@@ -6341,6 +6467,7 @@ exports.Items = {
6341
6467
  spritenum: 727,
6342
6468
  num: 1190,
6343
6469
  gen: 8,
6470
+ isNonstandard: "Past",
6344
6471
  },
6345
6472
  tr61: {
6346
6473
  name: "TR61",
@@ -6350,6 +6477,7 @@ exports.Items = {
6350
6477
  spritenum: 727,
6351
6478
  num: 1191,
6352
6479
  gen: 8,
6480
+ isNonstandard: "Past",
6353
6481
  },
6354
6482
  tr62: {
6355
6483
  name: "TR62",
@@ -6359,6 +6487,7 @@ exports.Items = {
6359
6487
  spritenum: 736,
6360
6488
  num: 1192,
6361
6489
  gen: 8,
6490
+ isNonstandard: "Past",
6362
6491
  },
6363
6492
  tr63: {
6364
6493
  name: "TR63",
@@ -6368,6 +6497,7 @@ exports.Items = {
6368
6497
  spritenum: 726,
6369
6498
  num: 1193,
6370
6499
  gen: 8,
6500
+ isNonstandard: "Past",
6371
6501
  },
6372
6502
  tr64: {
6373
6503
  name: "TR64",
@@ -6377,6 +6507,7 @@ exports.Items = {
6377
6507
  spritenum: 722,
6378
6508
  num: 1194,
6379
6509
  gen: 8,
6510
+ isNonstandard: "Past",
6380
6511
  },
6381
6512
  tr65: {
6382
6513
  name: "TR65",
@@ -6386,6 +6517,7 @@ exports.Items = {
6386
6517
  spritenum: 732,
6387
6518
  num: 1195,
6388
6519
  gen: 8,
6520
+ isNonstandard: "Past",
6389
6521
  },
6390
6522
  tr66: {
6391
6523
  name: "TR66",
@@ -6395,6 +6527,7 @@ exports.Items = {
6395
6527
  spritenum: 723,
6396
6528
  num: 1196,
6397
6529
  gen: 8,
6530
+ isNonstandard: "Past",
6398
6531
  },
6399
6532
  tr67: {
6400
6533
  name: "TR67",
@@ -6404,6 +6537,7 @@ exports.Items = {
6404
6537
  spritenum: 725,
6405
6538
  num: 1197,
6406
6539
  gen: 8,
6540
+ isNonstandard: "Past",
6407
6541
  },
6408
6542
  tr68: {
6409
6543
  name: "TR68",
@@ -6413,6 +6547,7 @@ exports.Items = {
6413
6547
  spritenum: 737,
6414
6548
  num: 1198,
6415
6549
  gen: 8,
6550
+ isNonstandard: "Past",
6416
6551
  },
6417
6552
  tr69: {
6418
6553
  name: "TR69",
@@ -6422,6 +6557,7 @@ exports.Items = {
6422
6557
  spritenum: 734,
6423
6558
  num: 1199,
6424
6559
  gen: 8,
6560
+ isNonstandard: "Past",
6425
6561
  },
6426
6562
  tr70: {
6427
6563
  name: "TR70",
@@ -6431,6 +6567,7 @@ exports.Items = {
6431
6567
  spritenum: 729,
6432
6568
  num: 1200,
6433
6569
  gen: 8,
6570
+ isNonstandard: "Past",
6434
6571
  },
6435
6572
  tr71: {
6436
6573
  name: "TR71",
@@ -6440,6 +6577,7 @@ exports.Items = {
6440
6577
  spritenum: 732,
6441
6578
  num: 1201,
6442
6579
  gen: 8,
6580
+ isNonstandard: "Past",
6443
6581
  },
6444
6582
  tr72: {
6445
6583
  name: "TR72",
@@ -6449,6 +6587,7 @@ exports.Items = {
6449
6587
  spritenum: 732,
6450
6588
  num: 1202,
6451
6589
  gen: 8,
6590
+ isNonstandard: "Past",
6452
6591
  },
6453
6592
  tr73: {
6454
6593
  name: "TR73",
@@ -6458,6 +6597,7 @@ exports.Items = {
6458
6597
  spritenum: 724,
6459
6598
  num: 1203,
6460
6599
  gen: 8,
6600
+ isNonstandard: "Past",
6461
6601
  },
6462
6602
  tr74: {
6463
6603
  name: "TR74",
@@ -6467,6 +6607,7 @@ exports.Items = {
6467
6607
  spritenum: 729,
6468
6608
  num: 1204,
6469
6609
  gen: 8,
6610
+ isNonstandard: "Past",
6470
6611
  },
6471
6612
  tr75: {
6472
6613
  name: "TR75",
@@ -6476,6 +6617,7 @@ exports.Items = {
6476
6617
  spritenum: 726,
6477
6618
  num: 1205,
6478
6619
  gen: 8,
6620
+ isNonstandard: "Past",
6479
6621
  },
6480
6622
  tr76: {
6481
6623
  name: "TR76",
@@ -6485,6 +6627,7 @@ exports.Items = {
6485
6627
  spritenum: 726,
6486
6628
  num: 1206,
6487
6629
  gen: 8,
6630
+ isNonstandard: "Past",
6488
6631
  },
6489
6632
  tr77: {
6490
6633
  name: "TR77",
@@ -6494,6 +6637,7 @@ exports.Items = {
6494
6637
  spritenum: 732,
6495
6638
  num: 1207,
6496
6639
  gen: 8,
6640
+ isNonstandard: "Past",
6497
6641
  },
6498
6642
  tr78: {
6499
6643
  name: "TR78",
@@ -6503,6 +6647,7 @@ exports.Items = {
6503
6647
  spritenum: 724,
6504
6648
  num: 1208,
6505
6649
  gen: 8,
6650
+ isNonstandard: "Past",
6506
6651
  },
6507
6652
  tr79: {
6508
6653
  name: "TR79",
@@ -6512,6 +6657,7 @@ exports.Items = {
6512
6657
  spritenum: 729,
6513
6658
  num: 1209,
6514
6659
  gen: 8,
6660
+ isNonstandard: "Past",
6515
6661
  },
6516
6662
  tr80: {
6517
6663
  name: "TR80",
@@ -6521,6 +6667,7 @@ exports.Items = {
6521
6667
  spritenum: 733,
6522
6668
  num: 1210,
6523
6669
  gen: 8,
6670
+ isNonstandard: "Past",
6524
6671
  },
6525
6672
  tr81: {
6526
6673
  name: "TR81",
@@ -6530,6 +6677,7 @@ exports.Items = {
6530
6677
  spritenum: 737,
6531
6678
  num: 1211,
6532
6679
  gen: 8,
6680
+ isNonstandard: "Past",
6533
6681
  },
6534
6682
  tr82: {
6535
6683
  name: "TR82",
@@ -6539,6 +6687,7 @@ exports.Items = {
6539
6687
  spritenum: 734,
6540
6688
  num: 1212,
6541
6689
  gen: 8,
6690
+ isNonstandard: "Past",
6542
6691
  },
6543
6692
  tr83: {
6544
6693
  name: "TR83",
@@ -6548,6 +6697,7 @@ exports.Items = {
6548
6697
  spritenum: 734,
6549
6698
  num: 1213,
6550
6699
  gen: 8,
6700
+ isNonstandard: "Past",
6551
6701
  },
6552
6702
  tr84: {
6553
6703
  name: "TR84",
@@ -6557,6 +6707,7 @@ exports.Items = {
6557
6707
  spritenum: 731,
6558
6708
  num: 1214,
6559
6709
  gen: 8,
6710
+ isNonstandard: "Past",
6560
6711
  },
6561
6712
  tr85: {
6562
6713
  name: "TR85",
@@ -6566,6 +6717,7 @@ exports.Items = {
6566
6717
  spritenum: 721,
6567
6718
  num: 1215,
6568
6719
  gen: 8,
6720
+ isNonstandard: "Past",
6569
6721
  },
6570
6722
  tr86: {
6571
6723
  name: "TR86",
@@ -6575,6 +6727,7 @@ exports.Items = {
6575
6727
  spritenum: 733,
6576
6728
  num: 1216,
6577
6729
  gen: 8,
6730
+ isNonstandard: "Past",
6578
6731
  },
6579
6732
  tr87: {
6580
6733
  name: "TR87",
@@ -6584,6 +6737,7 @@ exports.Items = {
6584
6737
  spritenum: 725,
6585
6738
  num: 1217,
6586
6739
  gen: 8,
6740
+ isNonstandard: "Past",
6587
6741
  },
6588
6742
  tr88: {
6589
6743
  name: "TR88",
@@ -6593,6 +6747,7 @@ exports.Items = {
6593
6747
  spritenum: 730,
6594
6748
  num: 1218,
6595
6749
  gen: 8,
6750
+ isNonstandard: "Past",
6596
6751
  },
6597
6752
  tr89: {
6598
6753
  name: "TR89",
@@ -6602,6 +6757,7 @@ exports.Items = {
6602
6757
  spritenum: 723,
6603
6758
  num: 1219,
6604
6759
  gen: 8,
6760
+ isNonstandard: "Past",
6605
6761
  },
6606
6762
  tr90: {
6607
6763
  name: "TR90",
@@ -6611,6 +6767,7 @@ exports.Items = {
6611
6767
  spritenum: 738,
6612
6768
  num: 1220,
6613
6769
  gen: 8,
6770
+ isNonstandard: "Past",
6614
6771
  },
6615
6772
  tr91: {
6616
6773
  name: "TR91",
@@ -6620,6 +6777,7 @@ exports.Items = {
6620
6777
  spritenum: 724,
6621
6778
  num: 1221,
6622
6779
  gen: 8,
6780
+ isNonstandard: "Past",
6623
6781
  },
6624
6782
  tr92: {
6625
6783
  name: "TR92",
@@ -6629,6 +6787,7 @@ exports.Items = {
6629
6787
  spritenum: 738,
6630
6788
  num: 1222,
6631
6789
  gen: 8,
6790
+ isNonstandard: "Past",
6632
6791
  },
6633
6792
  tr93: {
6634
6793
  name: "TR93",
@@ -6638,6 +6797,7 @@ exports.Items = {
6638
6797
  spritenum: 737,
6639
6798
  num: 1223,
6640
6799
  gen: 8,
6800
+ isNonstandard: "Past",
6641
6801
  },
6642
6802
  tr94: {
6643
6803
  name: "TR94",
@@ -6647,6 +6807,7 @@ exports.Items = {
6647
6807
  spritenum: 725,
6648
6808
  num: 1224,
6649
6809
  gen: 8,
6810
+ isNonstandard: "Past",
6650
6811
  },
6651
6812
  tr95: {
6652
6813
  name: "TR95",
@@ -6656,6 +6817,7 @@ exports.Items = {
6656
6817
  spritenum: 737,
6657
6818
  num: 1225,
6658
6819
  gen: 8,
6820
+ isNonstandard: "Past",
6659
6821
  },
6660
6822
  tr96: {
6661
6823
  name: "TR96",
@@ -6665,6 +6827,7 @@ exports.Items = {
6665
6827
  spritenum: 727,
6666
6828
  num: 1226,
6667
6829
  gen: 8,
6830
+ isNonstandard: "Past",
6668
6831
  },
6669
6832
  tr97: {
6670
6833
  name: "TR97",
@@ -6674,6 +6837,7 @@ exports.Items = {
6674
6837
  spritenum: 734,
6675
6838
  num: 1227,
6676
6839
  gen: 8,
6840
+ isNonstandard: "Past",
6677
6841
  },
6678
6842
  tr98: {
6679
6843
  name: "TR98",
@@ -6683,6 +6847,7 @@ exports.Items = {
6683
6847
  spritenum: 731,
6684
6848
  num: 1228,
6685
6849
  gen: 8,
6850
+ isNonstandard: "Past",
6686
6851
  },
6687
6852
  tr99: {
6688
6853
  name: "TR99",
@@ -6692,6 +6857,7 @@ exports.Items = {
6692
6857
  spritenum: 722,
6693
6858
  num: 1229,
6694
6859
  gen: 8,
6860
+ isNonstandard: "Past",
6695
6861
  },
6696
6862
  twistedspoon: {
6697
6863
  name: "Twisted Spoon",
@@ -6749,6 +6915,7 @@ exports.Items = {
6749
6915
  },
6750
6916
  num: 252,
6751
6917
  gen: 2,
6918
+ isNonstandard: "Past",
6752
6919
  },
6753
6920
  utilityumbrella: {
6754
6921
  name: "Utility Umbrella",
@@ -6758,38 +6925,25 @@ exports.Items = {
6758
6925
  },
6759
6926
  // Partially implemented in Pokemon.effectiveWeather() in sim/pokemon.ts
6760
6927
  onStart(pokemon) {
6761
- pokemon.addVolatile('utilityumbrella');
6928
+ if (!pokemon.ignoringItem())
6929
+ return;
6930
+ if (['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather())) {
6931
+ this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6932
+ }
6762
6933
  },
6763
- condition: {
6764
- onStart(pokemon) {
6765
- if (!pokemon.ignoringItem() &&
6766
- ['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather())) {
6767
- this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6768
- }
6769
- },
6770
- onUpdate(pokemon) {
6771
- // could break in OMs with bonus items
6772
- if (pokemon.item !== 'utilityumbrella') {
6773
- pokemon.removeVolatile('utilityumbrella');
6774
- return;
6775
- }
6776
- if (!['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather()))
6777
- return;
6778
- if (pokemon.ignoringItem() && !this.effectState.inactive) {
6779
- this.effectState.inactive = true;
6780
- this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6781
- }
6782
- else if (!pokemon.ignoringItem() && this.effectState.inactive) {
6783
- this.effectState.inactive = false;
6784
- this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6785
- }
6786
- },
6787
- onEnd(pokemon) {
6788
- if (!this.effectState.inactive &&
6789
- ['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather())) {
6790
- this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6791
- }
6792
- },
6934
+ onUpdate(pokemon) {
6935
+ if (!this.effectState.inactive)
6936
+ return;
6937
+ this.effectState.inactive = false;
6938
+ if (['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather())) {
6939
+ this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6940
+ }
6941
+ },
6942
+ onEnd(pokemon) {
6943
+ if (['sunnyday', 'raindance', 'desolateland', 'primordialsea'].includes(this.field.effectiveWeather())) {
6944
+ this.runEvent('WeatherChange', pokemon, pokemon, this.effect);
6945
+ }
6946
+ this.effectState.inactive = true;
6793
6947
  },
6794
6948
  num: 1123,
6795
6949
  gen: 8,
@@ -6863,6 +7017,7 @@ exports.Items = {
6863
7017
  itemUser: ["Silvally-Water"],
6864
7018
  num: 913,
6865
7019
  gen: 7,
7020
+ isNonstandard: "Past",
6866
7021
  },
6867
7022
  waterstone: {
6868
7023
  name: "Water Stone",
@@ -6912,6 +7067,7 @@ exports.Items = {
6912
7067
  },
6913
7068
  num: 317,
6914
7069
  gen: 4,
7070
+ isNonstandard: "Unobtainable",
6915
7071
  },
6916
7072
  weaknesspolicy: {
6917
7073
  name: "Weakness Policy",
@@ -6952,6 +7108,7 @@ exports.Items = {
6952
7108
  },
6953
7109
  num: 646,
6954
7110
  gen: 6,
7111
+ isNonstandard: "Past",
6955
7112
  },
6956
7113
  whiteherb: {
6957
7114
  name: "White Herb",
@@ -7016,7 +7173,8 @@ exports.Items = {
7016
7173
  type: "Rock",
7017
7174
  },
7018
7175
  onUpdate(pokemon) {
7019
- if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && pokemon.hasAbility('gluttony'))) {
7176
+ if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
7177
+ pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
7020
7178
  pokemon.eatItem();
7021
7179
  }
7022
7180
  },