Skip to content

Commit 65a16db

Browse files
singiamtelscheibo
authored andcommitted
Fix some typos
1 parent 0625e28 commit 65a16db

9 files changed

Lines changed: 14 additions & 14 deletions

File tree

data/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {Generations} from '@pkmn/data';
4343
const dexGens = new Generations(dex.Dex);
4444

4545
// 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 uknown as Dex);
46+
const simGens = new Generations(sim.Dex as unknown as Dex);
4747
```
4848

4949
### `Generations`
@@ -72,7 +72,7 @@ a couple of Pokémon Showdown quirks. While this interface is far from the
7272
`Dex#stats` which just provides some lists of names).
7373
- a usable `Learnsets` API which allows you to easily determine which moves a Pokémon can legally
7474
learn (though validating combinations of moves or other features requires `@pkmn/sim`'s
75-
`TeamValidator` - something as seemingly simple as determing Galar move legality cannot be
75+
`TeamValidator` - something as seemingly simple as determining Galar move legality cannot be
7676
generally solved without the full power of the `TeamValidator`).
7777

7878
**`Generations` handles existence at the field level slightly differently than at the object level**
@@ -119,7 +119,7 @@ the `Generations` constructor:
119119

120120
```ts
121121
// 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 harcode it.
122+
// the artificial 'natDexTier' field which allows Pokémon Showdown to track this so we hardcode it.
123123
// If using @pkmn/sim instead, this list can be replaced with a `d.natDexTier !== 'Illegal'` check.
124124
const NATDEX_UNOBTAINABLE_SPECIES = [
125125
'Eevee-Starter', 'Floette-Eternal', 'Pichu-Spiky-eared', 'Pikachu-Belle', 'Pikachu-Cosplay',

img/import-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ const NODEX = new Set([
930930
'pikachulibre', 'pikachuphd', 'pikachupopstar', 'pikachubelle', 'pikachurockstar',
931931
]);
932932

933-
// FIXME: ideally this list should be unnecesary and shiny sprites would be added
933+
// FIXME: ideally this list should be unnecessary and shiny sprites would be added
934934
const MISSING = {
935935
chesnaught: ['gen5ani-shiny', 'gen5ani-back-shiny'],
936936
corviknight: ['gen5ani-shiny'],

integration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ following additional flags may be used:
6060
just once. If `--cycles` is negative, `--forever` is implied.
6161
- **`--forever`**: continue iterating through formats infinitely, exhausting
6262
each `--cycles` times.
63-
- **`--maxFailures`**: exit early if this many failures have occured.
63+
- **`--maxFailures`**: exit early if this many failures have occurred.

integration/build-client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
10961096
}
10971097
}
10981098

1099-
// Client relevant data that should be overriden by past gens and mods
1099+
// Client relevant data that should be overridden by past gens and mods
11001100
const overrideSpeciesKeys = ['abilities', 'baseStats', 'cosmeticFormes', 'isNonstandard', 'requiredItems', 'types', 'unreleasedHidden'];
11011101
const overrideMoveKeys = ['accuracy', 'basePower', 'category', 'desc', 'flags', 'isNonstandard', 'pp', 'priority', 'shortDesc', 'target', 'type'];
11021102
const overrideAbilityKeys = ['desc', 'flags', 'isNonstandard', 'rating', 'shortDesc'];

mods/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The `ModdedDex` wrapper class around `Dex` exists for typechecking purposes as w
6767
contains entirely new fields, `ModdedDex` (initialized with the correct types as parameters) will
6868
allow for presenting a typesafe API to clients (though internally relies on casting, which is not
6969
guaranteed to be safe). There are cleaner ways to implement typesafe mods, but this `ModdedDex`
70-
approach aims to simply acheive parity with the upstream Pokémon Showdown implementation.
70+
approach aims to simply achieve parity with the upstream Pokémon Showdown implementation.
7171

7272
```ts
7373
import {Dex, ID, ModData, Ability, AbilityData} from '@pkmn/dex'; // '@pkmn/sim'

protocol/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Parsing logic for [Pokémon Showdown](https://pokemonshowdown.com)'s
99
[SIM-PROTOCOL](https://github.com/smogon/pokemon-showdown/blob/master/sim/SIM-PROTOCOL.md).
1010

1111
This package converts Pokémon Showdown's text protocols into typed object
12-
respresentations for ease of use.
12+
representations for ease of use.
1313

1414
## Installation
1515

protocol/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export namespace Protocol {
478478
/**
479479
* `|uhtml|NAME|HTML`
480480
*
481-
* We recieved an HTML message (NAME) that can change what it's displaying, this is used in
481+
* We received an HTML message (NAME) that can change what it's displaying, this is used in
482482
* things like our Polls system, for example.
483483
*/
484484
'|uhtml|': readonly ['uhtml', UHTMLName, HTML];
@@ -1004,7 +1004,7 @@ export namespace Protocol {
10041004
* `|t:|TIMESTAMP`
10051005
*
10061006
* The current UNIX timestamp (the number of seconds since 1970) - useful for determining
1007-
* when events occured in real time.
1007+
* when events occurred in real time.
10081008
*/
10091009
'|t:|': readonly ['t:', Timestamp];
10101010
}
@@ -1114,7 +1114,7 @@ export namespace Protocol {
11141114
/**
11151115
* `|-fail|POKEMON|ACTION`
11161116
*
1117-
* The specified `ACTION` has failed against the `POKEMON` targetted. The `ACTION` in question
1117+
* The specified `ACTION` has failed against the `POKEMON` targeted. The `ACTION` in question
11181118
* should be a move that fails due to its own mechanics. Moves (or effect activations) that fail
11191119
* because they're blocked by another effect should use `-block` instead.
11201120
*/

sets/src/test/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {GenerationNum, StatsTable} from '@pkmn/types';
44
import {Data, toID} from '../sets';
55

66
const ABILITIES: {[id: string]: string} = {
7-
justifed: 'Justified',
7+
justified: 'Justified',
88
levitate: 'Levitate',
99
magicguard: 'Magic Guard',
1010
magnetpull: 'Magnet Pull',

view/src/choices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ChoiceBuilder {
4848
alreadyMega = false;
4949
alreadyMax = false;
5050
alreadyZ = false;
51-
alreadTera = false;
51+
alreadyTera = false;
5252

5353
constructor(request: Protocol.Request) {
5454
this.request = request;
@@ -129,7 +129,7 @@ export class ChoiceBuilder {
129129
if (choice.mega) this.alreadyMega = true;
130130
if (choice.z) this.alreadyZ = true;
131131
if (choice.max) this.alreadyMax = true;
132-
if (choice.tera) this.alreadTera = true;
132+
if (choice.tera) this.alreadyTera = true;
133133
this.current.move = 0;
134134
this.current.mega = false;
135135
this.current.ultra = false;

0 commit comments

Comments
 (0)