@pkmn/engine 0.1.0-dev.63cef311 → 0.1.0-dev.729b1e87
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 +1 -1
- package/package.json +1 -1
- package/src/lib/gen1/data.zig +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ implementation of both Pokémon battles as defined by the original game code, an
|
|
|
22
22
|
Showdown](https://pokemonshowdown.com/)[^1] simulator which represents Pokémon battling as practically
|
|
23
23
|
interpreted online.
|
|
24
24
|
|
|
25
|
-
The pkmn engine is [**
|
|
25
|
+
The pkmn engine is up to [**XXXX× faster**](docs/TESTING.md#results) than the
|
|
26
26
|
[patched](docs/TESTING.md#patches) [Pokémon Showdown simulator
|
|
27
27
|
code](https://github.com/smogon/pokemon-showdown) when playing out supported formats in
|
|
28
28
|
compatibility mode and is extensively [tested](docs/TESTING.md) and [documented](docs). Note,
|
package/package.json
CHANGED
package/src/lib/gen1/data.zig
CHANGED
|
@@ -272,7 +272,7 @@ pub const Status = enum(u8) {
|
|
|
272
272
|
return num > 0;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
///
|
|
275
|
+
/// Retunrns a human-readable representation of the status `num`.
|
|
276
276
|
pub fn name(num: u8) []const u8 {
|
|
277
277
|
if (Status.is(num, .EXT)) return if (num == Status.TOX) "TOX" else "SLF";
|
|
278
278
|
if (Status.is(num, .SLP)) return "SLP";
|