@pkmn/data
Advanced tools
Comparing version 0.0.11 to 0.1.0
@@ -1,2 +0,2 @@ | ||
import { AbilityName, Dex, Effect, EggGroup, EvoType, FormeName, GenderName, GenerationNum, ID, ItemName, MoveCategory, MoveName, Nature, Nonstandard, PureEffect, Species as DexSpecies, SpeciesAbility, SpeciesName, StatName, StatsTable, Type as DexType, TypeName } from '@pkmn/dex-types'; | ||
import { AbilityName, Condition, Dex, Effect, EggGroup, EvoType, FormeName, GenderName, GenerationNum, ID, ItemName, MoveCategory, MoveName, Nature, Nonstandard, Species as DexSpecies, SpeciesAbility, SpeciesName, StatName, StatsTable, Type as DexType, TypeName } from '@pkmn/dex-types'; | ||
declare const DEFAULT_EXISTS: (e: Effect | DexSpecies) => boolean; | ||
@@ -8,3 +8,3 @@ declare type ExistsFn = typeof DEFAULT_EXISTS; | ||
private readonly exists; | ||
constructor(dex: Dex, exists?: (e: import("@pkmn/dex-types").Ability | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Move | PureEffect | DexSpecies) => boolean); | ||
constructor(dex: Dex, exists?: (e: DexSpecies | Condition | import("@pkmn/dex-types").Ability | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Move) => boolean); | ||
get(gen: GenerationNum): Generation; | ||
@@ -111,3 +111,3 @@ [Symbol.iterator](): Generator<Generation, void, unknown>; | ||
readonly evoType?: EvoType; | ||
readonly effect?: Partial<PureEffect>; | ||
readonly condition?: Partial<Condition>; | ||
readonly canHatch?: boolean; | ||
@@ -124,3 +124,3 @@ private readonly dex; | ||
constructor(dex: Dex, exists: ExistsFn); | ||
get(name: string): import("@pkmn/dex-types").Ability | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Move | PureEffect | undefined; | ||
get(name: string): Condition | import("@pkmn/dex-types").Ability | import("@pkmn/dex-types").Item | import("@pkmn/dex-types").Move | undefined; | ||
} | ||
@@ -194,2 +194,2 @@ export declare class Natures { | ||
} | ||
export { ID, As, Weather, FieldCondition, SideCondition, GenerationNum, GenderName, StatName, StatsTable, BoostName, BoostsTable, MoveCategory, MoveTarget, Nonstandard, EvoType, EggGroup, SideID, Player, GameType, HPColor, StatusName, NatureName, TypeName, HPTypeName, PokemonSet, AbilityName, ItemName, MoveName, SpeciesName, FormeName, EffectType, DataKind, Effect, EffectData, HitEffect, SecondaryEffect, PureEffectData, AbilityData, ItemData, MoveData, SpeciesData, MoveSource, EventInfoData, LearnsetData, TypeData, NatureData, BasicEffect, PureEffect, Ability, Item, Move, EventInfo, Learnset, Nature, GenID, Dex, } from '@pkmn/dex-types'; | ||
export { ID, As, Weather, FieldCondition, SideCondition, GenerationNum, GenderName, StatName, StatsTable, BoostName, BoostsTable, MoveCategory, MoveTarget, Nonstandard, EvoType, EggGroup, SideID, Player, GameType, HPColor, StatusName, NatureName, TypeName, HPTypeName, PokemonSet, AbilityName, ItemName, MoveName, SpeciesName, FormeName, EffectType, DataKind, Effect, EffectData, HitEffect, SecondaryEffect, ConditionData, AbilityData, ItemData, MoveData, SpeciesData, MoveSource, EventInfoData, LearnsetData, TypeData, NatureData, BasicEffect, Condition, Ability, Item, Move, EventInfo, Learnset, Nature, GenID, Dex, } from '@pkmn/dex-types'; |
@@ -189,3 +189,3 @@ "use strict"; | ||
expect(Array.from(gen.moves)) | ||
.toHaveLength(gen.num === 8 ? 624 + 41 : (total += COUNTS[gen.num - 1])); | ||
.toHaveLength(gen.num === 8 ? 624 + 41 - 33 : (total += COUNTS[gen.num - 1])); | ||
} | ||
@@ -266,3 +266,3 @@ }); | ||
expect(counts(7)).toEqual({ species: 807, formes }); | ||
// GMax (26) + Silvally (17) + Rotom (5) + Basculin (1) + Meowstic (1) + | ||
// Silvally (17) + Rotom (5) + Basculin (1) + Meowstic (1) + | ||
// Aegislash (1) + Pumpkaboo (3) + Gourgeist (3) + Pikachu (7) + Galar (14) + | ||
@@ -272,7 +272,8 @@ // Alola (8) + Indeedee (1) + Morpeko (1) + Eiscue (1) + Zacian/Zamazenta (2) + | ||
// Keldeo (1) + Kyruem (2) + Darmanitan (2) + Cherrim (1) | ||
// {DLC} GMax (7) + Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// {DLC} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// Rockruff (1) + Lycanroc (2) + [Pikachu (1) + Zarude (2)] | ||
formes = 26 + 17 + 5 + 1 + 1 + 1 + 3 + 3 + 7 + 14 + 8 + | ||
// {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 + | ||
7 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 1 - 1; // FIXME Rockruff | ||
4 + 1 + 1 + 1 + 1 + 2 - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({ species: 539, formes }); | ||
@@ -357,4 +358,4 @@ }); | ||
expect(gen.effects.get('item: Metronome').effectType).toBe('Item'); | ||
// Falls back to PureEffect | ||
expect(gen.effects.get('Metronome').effectType).toBe('Effect'); | ||
// Falls back to Condition | ||
expect(gen.effects.get('Metronome').effectType).toBe('Condition'); | ||
}); | ||
@@ -361,0 +362,0 @@ }); |
@@ -194,3 +194,3 @@ import {GenerationNum, StatsTable, Dex as DexT, ItemName} from '@pkmn/dex-types'; | ||
expect(Array.from(gen.moves)) | ||
.toHaveLength(gen.num === 8 ? 624 + 41 : (total += COUNTS[gen.num - 1])); | ||
.toHaveLength(gen.num === 8 ? 624 + 41 - 33 : (total += COUNTS[gen.num - 1])); | ||
} | ||
@@ -276,3 +276,3 @@ }); | ||
expect(counts(7)).toEqual({species: 807, formes}); | ||
// GMax (26) + Silvally (17) + Rotom (5) + Basculin (1) + Meowstic (1) + | ||
// Silvally (17) + Rotom (5) + Basculin (1) + Meowstic (1) + | ||
// Aegislash (1) + Pumpkaboo (3) + Gourgeist (3) + Pikachu (7) + Galar (14) + | ||
@@ -282,7 +282,8 @@ // Alola (8) + Indeedee (1) + Morpeko (1) + Eiscue (1) + Zacian/Zamazenta (2) + | ||
// Keldeo (1) + Kyruem (2) + Darmanitan (2) + Cherrim (1) | ||
// {DLC} GMax (7) + Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// {DLC} Alola (4) + Galar (1) + Magearna (1) + Urshifu (1) + | ||
// Rockruff (1) + Lycanroc (2) + [Pikachu (1) + Zarude (2)] | ||
formes = 26 + 17 + 5 + 1 + 1 + 1 + 3 + 3 + 7 + 14 + 8 + | ||
// {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 + | ||
7 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 1 - 1; // FIXME Rockruff | ||
4 + 1 + 1 + 1 + 1 + 2 - 1; // FIXME Rockruff | ||
expect(counts(8)).toEqual({species: 539, formes}); | ||
@@ -373,4 +374,4 @@ }); | ||
expect(gen.effects.get('item: Metronome')!.effectType).toBe('Item'); | ||
// Falls back to PureEffect | ||
expect(gen.effects.get('Metronome')!.effectType).toBe('Effect'); | ||
// Falls back to Condition | ||
expect(gen.effects.get('Metronome')!.effectType).toBe('Condition'); | ||
}); | ||
@@ -377,0 +378,0 @@ }); |
import { | ||
AbilityName, | ||
Condition, | ||
Dex, | ||
@@ -16,3 +17,2 @@ Effect, | ||
Nonstandard, | ||
PureEffect, | ||
Species as DexSpecies, | ||
@@ -253,3 +253,3 @@ SpeciesAbility, | ||
readonly evoType?: EvoType; | ||
readonly effect?: Partial<PureEffect>; | ||
readonly condition?: Partial<Condition>; | ||
readonly canHatch?: boolean; | ||
@@ -620,3 +620,3 @@ | ||
SecondaryEffect, | ||
PureEffectData, | ||
ConditionData, | ||
AbilityData, | ||
@@ -632,3 +632,3 @@ ItemData, | ||
BasicEffect, | ||
PureEffect, | ||
Condition, | ||
Ability, | ||
@@ -635,0 +635,0 @@ Item, |
{ | ||
"name": "@pkmn/data", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"main": "build/index.js", | ||
@@ -13,8 +13,8 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"@pkmn/dex-types": "^0.0.11" | ||
"@pkmn/dex-types": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@pkmn/dex": "^0.0.11", | ||
"@pkmn/sim": "^0.0.11", | ||
"@smogon/calc": "^0.4.2" | ||
"@pkmn/dex": "^0.1.0", | ||
"@pkmn/sim": "^0.1.0", | ||
"@smogon/calc": "^0.4.3" | ||
}, | ||
@@ -21,0 +21,0 @@ "scripts": { |
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
2317
431660
+ Added@pkmn/dex-types@0.1.3(transitive)
- Removed@pkmn/dex-types@0.0.11(transitive)
Updated@pkmn/dex-types@^0.1.0