From 7acbc46436169982391363a2799721ca3735e43c Mon Sep 17 00:00:00 2001 From: Yurem Date: Sun, 24 Mar 2024 20:23:16 -0500 Subject: [PATCH] fixed a few bugs & add comments for these files --- dist/types/utility/Pokemon/abilities.d.ts | 4 ++-- dist/types/utility/Pokemon/pokemon.d.ts | 6 +++++- dist/utility/Pokemon/abilities.js | 8 ++++---- dist/utility/Pokemon/pokemon.js | 6 +++++- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/dist/types/utility/Pokemon/abilities.d.ts b/dist/types/utility/Pokemon/abilities.d.ts index 3ad7329..245c01a 100644 --- a/dist/types/utility/Pokemon/abilities.d.ts +++ b/dist/types/utility/Pokemon/abilities.d.ts @@ -22,7 +22,7 @@ export declare class Abilities { private readonly names; private readonly effect_entries; private readonly effect_changes; - private readonly flavor_text_changes; + private readonly flavor_text_entries; private readonly pokemon; constructor(_abilities: IAbilities); /** @@ -64,7 +64,7 @@ export declare class Abilities { * Gets the pokémon flavor text changes of this ability. * @returns The flavor text changes, or null if not available. */ - get getFlavorTextChanges(): AbilityFlavorText[] | null; + get getFlavorTextEntries(): AbilityFlavorText[] | null; /** * Gets the pokémons that use this ability. * @returns The pokémons, or null if not available. diff --git a/dist/types/utility/Pokemon/pokemon.d.ts b/dist/types/utility/Pokemon/pokemon.d.ts index 516d332..cf4bef4 100644 --- a/dist/types/utility/Pokemon/pokemon.d.ts +++ b/dist/types/utility/Pokemon/pokemon.d.ts @@ -82,10 +82,14 @@ export declare class Pokemon { */ get getPokemonAbilities(): PokemonAbility[] | null; /** - * Gets the forms of the Pokemon. + * Gets the forms of the Pokémon. * @returns The forms of the Pokemon, or null if not available. */ get getPokemonForms(): NamedAPIResource[] | null; + /** + * Gets the pokémon game indices. + * @returns The pokémon game indices, or null if not avaliable + */ get getPokemonGameIndices(): VersionGameIndex[] | null; /** * Gets the held items of the Pokemon. diff --git a/dist/utility/Pokemon/abilities.js b/dist/utility/Pokemon/abilities.js index 3be3682..3f355b1 100644 --- a/dist/utility/Pokemon/abilities.js +++ b/dist/utility/Pokemon/abilities.js @@ -15,7 +15,7 @@ export class Abilities { names; effect_entries; effect_changes; - flavor_text_changes; + flavor_text_entries; pokemon; constructor(_abilities) { this.id = _abilities.id; @@ -25,7 +25,7 @@ export class Abilities { this.names = _abilities.names; this.effect_entries = _abilities.effect_entries; this.effect_changes = _abilities.effect_changes; - this.flavor_text_changes = _abilities.flavor_text_entries; + this.flavor_text_entries = _abilities.flavor_text_entries; this.pokemon = _abilities.pokemon; } /** @@ -81,8 +81,8 @@ export class Abilities { * Gets the pokémon flavor text changes of this ability. * @returns The flavor text changes, or null if not available. */ - get getFlavorTextChanges() { - return this.flavor_text_changes; + get getFlavorTextEntries() { + return this.flavor_text_entries; } /** * Gets the pokémons that use this ability. diff --git a/dist/utility/Pokemon/pokemon.js b/dist/utility/Pokemon/pokemon.js index 985a425..bd9d094 100644 --- a/dist/utility/Pokemon/pokemon.js +++ b/dist/utility/Pokemon/pokemon.js @@ -108,12 +108,16 @@ export class Pokemon { return this.abilities || null; } /** - * Gets the forms of the Pokemon. + * Gets the forms of the Pokémon. * @returns The forms of the Pokemon, or null if not available. */ get getPokemonForms() { return this.forms || null; } + /** + * Gets the pokémon game indices. + * @returns The pokémon game indices, or null if not avaliable + */ get getPokemonGameIndices() { return this.game_indices || null; }