Typescript info (#6670)

This commit is contained in:
Kris Johnson
2020-05-11 04:08:33 -06:00
committed by GitHub
parent 9f5d1bc681
commit d20f1fbb64
4 changed files with 385 additions and 296 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -591,6 +591,11 @@ export class Species extends BasicEffect implements Readonly<BasicEffect & Speci
/** Evolutions. Array because many Pokemon have multiple evolutions. */
readonly evos: ID[];
readonly evoType?: 'trade' | 'useItem' | 'levelMove' | 'levelExtra' | 'levelFriendship' | 'levelHold' | 'other';
/** Evolution condition. falsy if doesn't evolve. */
readonly evoCondition?: string;
/** Evolution item. falsy if doesn't evolve. */
readonly evoItem?: string;
/** Evolution move. falsy if doesn't evolve. */
readonly evoMove?: string;
/** Evolution level. falsy if doesn't evolve. */
readonly evoLevel?: number;

View File

@@ -82,8 +82,8 @@ const nullEffect: PureEffect = new Data.PureEffect({name: '', exists: false});
export interface Nature {
name: string;
plus?: keyof StatsTable;
minus?: keyof StatsTable;
plus?: StatNameExceptHP;
minus?: StatNameExceptHP;
[k: string]: any;
}

View File

@@ -918,10 +918,8 @@ interface MoveData extends EffectData, MoveEventMethods, HitEffect {
// Z-move data
// -----------
/**
* `true` for generic Z-moves like Gigavolt Havoc.
* Also `true` for Z-powered status moves like Z-Encore.
* Move ID of the base move, for specific Z-moves like Stoked
* Sparksurfer.
* ID of the Z-Crystal that calls the move.
* `true` for Z-Powered status moves like Z-Encore.
*/
isZ?: boolean | string;
zMove?: {