From 158902c974ba2701c384215e2bf934f0083a87c2 Mon Sep 17 00:00:00 2001 From: Moka <54149968+MokaStitcher@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:32:13 +0100 Subject: [PATCH] update doc --- src/system/game-data.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 6ba4933631e..55156f7222c 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1792,18 +1792,15 @@ export class GameData { } /** - * @param {PokemonSpecies} species - * @returns {boolean} whether root species has been unlocked for given {@linkcode PokemonSpecies} + * Checks whether the root species of a given {@PokemonSpecies} has been unlocked in the dex */ isRootSpeciesUnlocked(species: PokemonSpecies): boolean { return !!this.dexData[species.getRootSpeciesId()]?.caughtAttr; } /** - * Unlocks nature for a given {@linkcode PokemonSpecies} and its prevolutions. + * Unlocks the given {@linkcode Nature} for a {@linkcode PokemonSpecies} and its prevolutions. * Will fail silently if root species has not been unlocked - * @param {PokemonSpecies} species - * @param {Nature} nature */ unlockSpeciesNature(species: PokemonSpecies, nature: Nature): void { if (!this.isRootSpeciesUnlocked(species)) {