@pkmn/data 0.9.35 → 0.9.36
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.
- package/README.md +3 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ import {Generations} from '@pkmn/data';
|
|
|
43
43
|
const dexGens = new Generations(dex.Dex);
|
|
44
44
|
|
|
45
45
|
// All of the types from sim.Dex don't actually line up perfectly, but casting sidesteps that
|
|
46
|
-
const simGens = new Generations(sim.Dex as
|
|
46
|
+
const simGens = new Generations(sim.Dex as unknown as Dex);
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### `Generations`
|
|
@@ -72,7 +72,7 @@ a couple of Pokémon Showdown quirks. While this interface is far from the
|
|
|
72
72
|
`Dex#stats` which just provides some lists of names).
|
|
73
73
|
- a usable `Learnsets` API which allows you to easily determine which moves a Pokémon can legally
|
|
74
74
|
learn (though validating combinations of moves or other features requires `@pkmn/sim`'s
|
|
75
|
-
`TeamValidator` - something as seemingly simple as
|
|
75
|
+
`TeamValidator` - something as seemingly simple as determining Galar move legality cannot be
|
|
76
76
|
generally solved without the full power of the `TeamValidator`).
|
|
77
77
|
|
|
78
78
|
**`Generations` handles existence at the field level slightly differently than at the object level**
|
|
@@ -119,7 +119,7 @@ the `Generations` constructor:
|
|
|
119
119
|
|
|
120
120
|
```ts
|
|
121
121
|
// These species are unobtainable outside of their own generations, but @pkmn/dex doesn't contain
|
|
122
|
-
// the artificial 'natDexTier' field which allows Pokémon Showdown to track this so we
|
|
122
|
+
// the artificial 'natDexTier' field which allows Pokémon Showdown to track this so we hardcode it.
|
|
123
123
|
// If using @pkmn/sim instead, this list can be replaced with a `d.natDexTier !== 'Illegal'` check.
|
|
124
124
|
const NATDEX_UNOBTAINABLE_SPECIES = [
|
|
125
125
|
'Eevee-Starter', 'Floette-Eternal', 'Pichu-Spiky-eared', 'Pikachu-Belle', 'Pikachu-Cosplay',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pkmn/data",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.36",
|
|
4
4
|
"description": "A forked implementation of the Pokémon Showdown client's data layer",
|
|
5
5
|
"repository": "github:pkmn/ps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"build"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@pkmn/dex-types": "^0.9.
|
|
19
|
+
"@pkmn/dex-types": "^0.9.36"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pkmn/dex": "^0.9.
|
|
23
|
-
"@pkmn/mods": "^0.9.
|
|
24
|
-
"@pkmn/sim": "^0.9.
|
|
22
|
+
"@pkmn/dex": "^0.9.36",
|
|
23
|
+
"@pkmn/mods": "^0.9.36",
|
|
24
|
+
"@pkmn/sim": "^0.9.36",
|
|
25
25
|
"@smogon/calc": "^0.10.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|