From 2d9b932637fda22e58e57f3d09985c9dab347618 Mon Sep 17 00:00:00 2001 From: Sergio Garcia Date: Wed, 30 Apr 2025 17:59:46 +0200 Subject: [PATCH] Fix some typos --- data/README.md | 6 +++--- img/import-data | 2 +- integration/README.md | 2 +- integration/build-client | 2 +- mods/README.md | 2 +- protocol/README.md | 2 +- protocol/src/index.ts | 6 +++--- sets/src/test/data.ts | 2 +- view/src/choices.ts | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/data/README.md b/data/README.md index 079b72c8..4fb41dc7 100644 --- a/data/README.md +++ b/data/README.md @@ -43,7 +43,7 @@ import {Generations} from '@pkmn/data'; const dexGens = new Generations(dex.Dex); // All of the types from sim.Dex don't actually line up perfectly, but casting sidesteps that -const simGens = new Generations(sim.Dex as uknown as Dex); +const simGens = new Generations(sim.Dex as unknown as Dex); ``` ### `Generations` @@ -72,7 +72,7 @@ a couple of Pokémon Showdown quirks. While this interface is far from the `Dex#stats` which just provides some lists of names). - a usable `Learnsets` API which allows you to easily determine which moves a Pokémon can legally learn (though validating combinations of moves or other features requires `@pkmn/sim`'s - `TeamValidator` - something as seemingly simple as determing Galar move legality cannot be + `TeamValidator` - something as seemingly simple as determining Galar move legality cannot be generally solved without the full power of the `TeamValidator`). **`Generations` handles existence at the field level slightly differently than at the object level** @@ -119,7 +119,7 @@ the `Generations` constructor: ```ts // These species are unobtainable outside of their own generations, but @pkmn/dex doesn't contain -// the artificial 'natDexTier' field which allows Pokémon Showdown to track this so we harcode it. +// the artificial 'natDexTier' field which allows Pokémon Showdown to track this so we hardcode it. // If using @pkmn/sim instead, this list can be replaced with a `d.natDexTier !== 'Illegal'` check. const NATDEX_UNOBTAINABLE_SPECIES = [ 'Eevee-Starter', 'Floette-Eternal', 'Pichu-Spiky-eared', 'Pikachu-Belle', 'Pikachu-Cosplay', diff --git a/img/import-data b/img/import-data index 2e8b30c0..7c1402c0 100755 --- a/img/import-data +++ b/img/import-data @@ -930,7 +930,7 @@ const NODEX = new Set([ 'pikachulibre', 'pikachuphd', 'pikachupopstar', 'pikachubelle', 'pikachurockstar', ]); -// FIXME: ideally this list should be unnecesary and shiny sprites would be added +// FIXME: ideally this list should be unnecessary and shiny sprites would be added const MISSING = { chesnaught: ['gen5ani-shiny', 'gen5ani-back-shiny'], corviknight: ['gen5ani-shiny'], diff --git a/integration/README.md b/integration/README.md index 32e563a3..9c910fa5 100644 --- a/integration/README.md +++ b/integration/README.md @@ -60,4 +60,4 @@ following additional flags may be used: just once. If `--cycles` is negative, `--forever` is implied. - **`--forever`**: continue iterating through formats infinitely, exhausting each `--cycles` times. -- **`--maxFailures`**: exit early if this many failures have occured. +- **`--maxFailures`**: exit early if this many failures have occurred. diff --git a/integration/build-client b/integration/build-client index 6b871536..c3f3c316 100755 --- a/integration/build-client +++ b/integration/build-client @@ -1096,7 +1096,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); } } - // Client relevant data that should be overriden by past gens and mods + // Client relevant data that should be overridden by past gens and mods const overrideSpeciesKeys = ['abilities', 'baseStats', 'cosmeticFormes', 'isNonstandard', 'requiredItems', 'types', 'unreleasedHidden']; const overrideMoveKeys = ['accuracy', 'basePower', 'category', 'desc', 'flags', 'isNonstandard', 'pp', 'priority', 'shortDesc', 'target', 'type']; const overrideAbilityKeys = ['desc', 'flags', 'isNonstandard', 'rating', 'shortDesc']; diff --git a/mods/README.md b/mods/README.md index 9096e210..8fba16d5 100644 --- a/mods/README.md +++ b/mods/README.md @@ -67,7 +67,7 @@ The `ModdedDex` wrapper class around `Dex` exists for typechecking purposes as w contains entirely new fields, `ModdedDex` (initialized with the correct types as parameters) will allow for presenting a typesafe API to clients (though internally relies on casting, which is not guaranteed to be safe). There are cleaner ways to implement typesafe mods, but this `ModdedDex` -approach aims to simply acheive parity with the upstream Pokémon Showdown implementation. +approach aims to simply achieve parity with the upstream Pokémon Showdown implementation. ```ts import {Dex, ID, ModData, Ability, AbilityData} from '@pkmn/dex'; // '@pkmn/sim' diff --git a/protocol/README.md b/protocol/README.md index 8f68cf95..7af750b3 100644 --- a/protocol/README.md +++ b/protocol/README.md @@ -9,7 +9,7 @@ Parsing logic for [Pokémon Showdown](https://pokemonshowdown.com)'s [SIM-PROTOCOL](https://github.com/smogon/pokemon-showdown/blob/master/sim/SIM-PROTOCOL.md). This package converts Pokémon Showdown's text protocols into typed object -respresentations for ease of use. +representations for ease of use. ## Installation diff --git a/protocol/src/index.ts b/protocol/src/index.ts index f94781e8..c68e5059 100644 --- a/protocol/src/index.ts +++ b/protocol/src/index.ts @@ -478,7 +478,7 @@ export namespace Protocol { /** * `|uhtml|NAME|HTML` * - * We recieved an HTML message (NAME) that can change what it's displaying, this is used in + * We received an HTML message (NAME) that can change what it's displaying, this is used in * things like our Polls system, for example. */ '|uhtml|': readonly ['uhtml', UHTMLName, HTML]; @@ -1004,7 +1004,7 @@ export namespace Protocol { * `|t:|TIMESTAMP` * * The current UNIX timestamp (the number of seconds since 1970) - useful for determining - * when events occured in real time. + * when events occurred in real time. */ '|t:|': readonly ['t:', Timestamp]; } @@ -1114,7 +1114,7 @@ export namespace Protocol { /** * `|-fail|POKEMON|ACTION` * - * The specified `ACTION` has failed against the `POKEMON` targetted. The `ACTION` in question + * The specified `ACTION` has failed against the `POKEMON` targeted. The `ACTION` in question * should be a move that fails due to its own mechanics. Moves (or effect activations) that fail * because they're blocked by another effect should use `-block` instead. */ diff --git a/sets/src/test/data.ts b/sets/src/test/data.ts index 4f115408..06aa182e 100644 --- a/sets/src/test/data.ts +++ b/sets/src/test/data.ts @@ -4,7 +4,7 @@ import {GenerationNum, StatsTable} from '@pkmn/types'; import {Data, toID} from '../sets'; const ABILITIES: {[id: string]: string} = { - justifed: 'Justified', + justified: 'Justified', levitate: 'Levitate', magicguard: 'Magic Guard', magnetpull: 'Magnet Pull', diff --git a/view/src/choices.ts b/view/src/choices.ts index c59e7c48..8e2a0e45 100644 --- a/view/src/choices.ts +++ b/view/src/choices.ts @@ -48,7 +48,7 @@ export class ChoiceBuilder { alreadyMega = false; alreadyMax = false; alreadyZ = false; - alreadTera = false; + alreadyTera = false; constructor(request: Protocol.Request) { this.request = request; @@ -129,7 +129,7 @@ export class ChoiceBuilder { if (choice.mega) this.alreadyMega = true; if (choice.z) this.alreadyZ = true; if (choice.max) this.alreadyMax = true; - if (choice.tera) this.alreadTera = true; + if (choice.tera) this.alreadyTera = true; this.current.move = 0; this.current.mega = false; this.current.ultra = false;