@pkmn/data
Advanced tools
Comparing version 0.2.7 to 0.3.0
@@ -123,3 +123,3 @@ import { AbilityName, Condition, Data, Dex, EggGroup, EvoType, FormeName, GenderName, GenerationNum, ID, ItemName, MoveCategory, MoveName, Nature, Nonstandard, Species as DexSpecies, SpeciesAbility, SpeciesName, StatName, StatsTable, Tier, Type as DexType, TypeName } from '@pkmn/dex-types'; | ||
constructor(dex: Dex, exists: ExistsFn); | ||
get(name: string): Condition | import("@pkmn/dex-types").Move | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Ability | undefined; | ||
get(name: string): Condition | import("@pkmn/dex-types").Ability | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Move | undefined; | ||
} | ||
@@ -126,0 +126,0 @@ export declare class Natures { |
@@ -64,3 +64,3 @@ "use strict"; | ||
it('counts', () => { | ||
const COUNTS = [0, 0, 76, 47, 41, 27, 42, 27]; | ||
const COUNTS = [0, 0, 76, 47, 41, 27, 42, 34]; | ||
let total = 0; | ||
@@ -199,3 +199,3 @@ for (const gen of gens) { | ||
expect(Array.from(gen.moves)) | ||
.toHaveLength(gen.num === 8 ? 623 + 41 - 33 : (total += COUNTS[gen.num - 1])); | ||
.toHaveLength(gen.num === 8 ? 623 + 41 + 34 - 33 : (total += COUNTS[gen.num - 1])); | ||
} | ||
@@ -281,9 +281,11 @@ }); | ||
// Keldeo (1) + Kyruem (2) + Darmanitan (2) + Cherrim (1) | ||
// {DLC} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// {DLC1} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// Rockruff (1) + Lycanroc (2) + [Pikachu (1) + Zarude (1)] | ||
// {DLC2} Giratina (1) + *-Therian (3) + Genesect (4) + Zygarde (2) + | ||
// Birds (3) + Slowking (1) + Calyrex (2) | ||
// {GMax} 26 + 7 | ||
formes = 17 + 5 + 1 + 1 + 1 + 3 + 3 + 7 + 14 + 8 + | ||
1 + 1 + 1 + 2 + 1 + 2 + 2 + 2 + 1 + 1 + 2 + 2 + 1 + | ||
4 + 1 + 1 + 1 + 1 + 2 - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({ species: 540, formes }); | ||
(4 + 1 + 1 + 1 + 1 + 2) + (1 + 3 + 4 + 2 + 3 + 1 + 2) - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({ species: 664, formes }); | ||
}); | ||
@@ -290,0 +292,0 @@ it('formeNum', () => { |
@@ -52,3 +52,3 @@ import {GenerationNum, Generations, StatsTable, Dex as DexT, ItemName} from './index'; | ||
it('counts', () => { | ||
const COUNTS = [0, 0, 76, 47, 41, 27, 42, 27]; | ||
const COUNTS = [0, 0, 76, 47, 41, 27, 42, 34]; | ||
let total = 0; | ||
@@ -203,3 +203,3 @@ for (const gen of gens) { | ||
expect(Array.from(gen.moves)) | ||
.toHaveLength(gen.num === 8 ? 623 + 41 - 33 : (total += COUNTS[gen.num - 1])); | ||
.toHaveLength(gen.num === 8 ? 623 + 41 + 34 - 33 : (total += COUNTS[gen.num - 1])); | ||
} | ||
@@ -290,9 +290,11 @@ }); | ||
// Keldeo (1) + Kyruem (2) + Darmanitan (2) + Cherrim (1) | ||
// {DLC} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// {DLC1} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// Rockruff (1) + Lycanroc (2) + [Pikachu (1) + Zarude (1)] | ||
// {DLC2} Giratina (1) + *-Therian (3) + Genesect (4) + Zygarde (2) + | ||
// Birds (3) + Slowking (1) + Calyrex (2) | ||
// {GMax} 26 + 7 | ||
formes = 17 + 5 + 1 + 1 + 1 + 3 + 3 + 7 + 14 + 8 + | ||
1 + 1 + 1 + 2 + 1 + 2 + 2 + 2 + 1 + 1 + 2 + 2 + 1 + | ||
4 + 1 + 1 + 1 + 1 + 2 - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({species: 540, formes}); | ||
(4 + 1 + 1 + 1 + 1 + 2) + (1 + 3 + 4 + 2 + 3 + 1 + 2) - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({species: 664, formes}); | ||
}); | ||
@@ -299,0 +301,0 @@ |
{ | ||
"name": "@pkmn/data", | ||
"version": "0.2.7", | ||
"version": "0.3.0", | ||
"main": "build/index.js", | ||
@@ -14,7 +14,7 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"@pkmn/dex-types": "^0.2.7" | ||
"@pkmn/dex-types": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@pkmn/dex": "^0.2.7", | ||
"@pkmn/sim": "^0.2.7", | ||
"@pkmn/dex": "^0.3.0", | ||
"@pkmn/sim": "^0.3.0", | ||
"@smogon/calc": "^0.5.0" | ||
@@ -21,0 +21,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
271141
2334
+ Added@pkmn/dex-types@0.3.22(transitive)
- Removed@pkmn/dex-types@0.2.7(transitive)
Updated@pkmn/dex-types@^0.3.0