Skip to content

Commit

Permalink
fixed a few bugs & add comments for these files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurem1 committed Mar 25, 2024
1 parent d499047 commit 7acbc46
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/types/utility/Pokemon/abilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/**
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion dist/types/utility/Pokemon/pokemon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions dist/utility/Pokemon/abilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
/**
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion dist/utility/Pokemon/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7acbc46

Please sign in to comment.