@pkmn/dex-types 0.9.7 → 0.9.9

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.
Files changed (2) hide show
  1. package/index.d.ts +13 -9
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -182,7 +182,7 @@ export interface MoveData extends EffectData, HitEffect {
182
182
  basePower: number;
183
183
  };
184
184
 
185
- ohko?: boolean | TypeName;
185
+ ohko?: boolean | 'Ice';
186
186
  thawsTarget?: boolean;
187
187
  heal?: number[] | null;
188
188
  forceSwitch?: boolean;
@@ -220,6 +220,7 @@ export interface MoveData extends EffectData, HitEffect {
220
220
  infiltrates?: boolean;
221
221
  multiaccuracy?: boolean;
222
222
  multihit?: number | number[];
223
+ multihitType?: 'parentalbond';
223
224
  noCopy?: boolean;
224
225
  noDamageVariance?: boolean;
225
226
  noFaint?: boolean;
@@ -230,6 +231,7 @@ export interface MoveData extends EffectData, HitEffect {
230
231
  spreadModifier?: number;
231
232
  tracksTarget?: boolean;
232
233
  willCrit?: boolean;
234
+ callsMove?: boolean;
233
235
 
234
236
  hasCrashDamage?: boolean;
235
237
  hasSheerForce?: boolean;
@@ -238,7 +240,8 @@ export interface MoveData extends EffectData, HitEffect {
238
240
  stallingMove?: boolean;
239
241
  }
240
242
 
241
- export type SpeciesTag = 'Mythical' | 'Restricted Legendary' | 'Sub-Legendary' | 'Ultra Beast' | 'Paradox';
243
+ export type SpeciesTag =
244
+ 'Mythical' | 'Restricted Legendary' | 'Sub-Legendary' | 'Ultra Beast' | 'Paradox';
242
245
  export interface SpeciesAbility<A = string> { 0: A; 1?: A; H?: A; S?: A }
243
246
 
244
247
  export interface SpeciesData {
@@ -416,6 +419,7 @@ export interface Species extends Readonly<BasicEffect<SpeciesName> & SpeciesData
416
419
  readonly tier: Tier.Singles | Tier.Other | 'Illegal';
417
420
  readonly doublesTier: Tier.Doubles | 'Illegal';
418
421
  readonly isMega?: boolean;
422
+ readonly mother?: string;
419
423
  readonly isPrimal?: boolean;
420
424
  readonly battleOnly?: SpeciesName | SpeciesName[];
421
425
  readonly isGigantamax?: MoveName;
@@ -476,14 +480,14 @@ export interface Dex {
476
480
  readonly gen: GenerationNum;
477
481
  readonly modid: ID;
478
482
  readonly data: {
479
- Abilities: {[id: string]: AbilityData};
483
+ Abilities: {[id: Lowercase<string>]: AbilityData};
480
484
  Aliases: {[id: string]: string};
481
- Items: {[id: string]: ItemData};
482
- Moves: {[id: string]: MoveData};
483
- Species: {[id: string]: SpeciesData};
484
- Natures: {[id: string]: NatureData};
485
- Learnsets: null | {[id: string]: LearnsetData};
486
- Types: {[id: string]: TypeData};
485
+ Items: {[id: Lowercase<string>]: ItemData};
486
+ Moves: {[id: Lowercase<string>]: MoveData};
487
+ Species: {[id: Lowercase<string>]: SpeciesData};
488
+ Natures: {[id: Lowercase<string>]: NatureData};
489
+ Learnsets: null | {[id: Lowercase<string>]: LearnsetData};
490
+ Types: {[id: Lowercase<string>]: TypeData};
487
491
  };
488
492
 
489
493
  mod(genid: GenID): Dex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkmn/dex-types",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "types": "index.d.ts",
5
5
  "description": "Common Pokémon Showdown Dex types shared by @pkmn/dex and @pkmn/sim",
6
6
  "repository": "github:pkmn/ps",