@pkmn/sim 0.5.11 → 0.5.12
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 +5 -0
- package/build/config/formats.js +346 -281
- package/build/config/formats.js.map +1 -1
- package/build/data/abilities.js +7 -7
- package/build/data/abilities.js.map +1 -1
- package/build/data/aliases.js +2 -0
- package/build/data/aliases.js.map +1 -1
- package/build/data/conditions.js +8 -12
- package/build/data/conditions.js.map +1 -1
- package/build/data/formats-data.js +33 -32
- package/build/data/formats-data.js.map +1 -1
- package/build/data/items.js +1 -1
- package/build/data/items.js.map +1 -1
- package/build/data/mods/gen1/moves.js +2 -4
- package/build/data/mods/gen1/moves.js.map +1 -1
- package/build/data/mods/gen3/formats-data.js +1 -1
- package/build/data/mods/gen3/formats-data.js.map +1 -1
- package/build/data/moves.js +14 -12
- package/build/data/moves.js.map +1 -1
- package/build/data/pokedex.js +2 -2
- package/build/data/pokedex.js.map +1 -1
- package/build/data/text/moves.js +1 -0
- package/build/data/text/moves.js.map +1 -1
- package/build/sim/battle.js +13 -11
- package/build/sim/battle.js.map +1 -1
- package/build/sim/dex-conditions.js +10 -3
- package/build/sim/dex-conditions.js.map +1 -1
- package/build/sim/team-validator.js +1 -1
- package/build/sim/team-validator.js.map +1 -1
- package/config/formats.ts +332 -265
- package/data/abilities.ts +7 -7
- package/data/aliases.ts +2 -0
- package/data/conditions.ts +8 -10
- package/data/formats-data.ts +33 -32
- package/data/items.ts +1 -1
- package/data/mods/gen1/moves.ts +2 -4
- package/data/mods/gen3/formats-data.ts +1 -1
- package/data/moves.ts +13 -12
- package/data/pokedex.ts +2 -2
- package/data/text/moves.ts +2 -0
- package/package.json +1 -1
- package/sim/battle.ts +4 -1
- package/sim/dex-conditions.ts +9 -3
- package/sim/team-validator.ts +1 -1
package/README.md
CHANGED
|
@@ -116,6 +116,11 @@ Pokémon Showdown's `sim/` directory has been modified in the following ways:
|
|
|
116
116
|
added** for what Pokémon Showdown calls `Pokedex` and `TypeChart` respectively. However, it is
|
|
117
117
|
important to **note that the types in `@pkmn/sim` do not match the stricter `@pkmn/dex-types`**
|
|
118
118
|
directly, you must simply cast the `@pkmn/sim` `Dex` and trust that it will work.
|
|
119
|
+
- **`DexConditions` has been modified to behave like the client (and `@pkmn/dex`)**. If an effect
|
|
120
|
+
is prefixed with a type (e.g. `'move: ...'`) then the type will be used to determine which API
|
|
121
|
+
to search. The two differences with Pokémon Showdown's simulator is that the input is more lenient
|
|
122
|
+
(the simulator expects `'move:<ID>'`, where the client allows for `'move: <Name>'`) and the
|
|
123
|
+
returned object's ID is actually a legal ID (the simulator returns `'move:<ID>' as ID`).
|
|
119
124
|
|
|
120
125
|
## License
|
|
121
126
|
|