From dc242331448158d1dc6d589c2f90036876feca8e Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:20:00 +1000 Subject: [PATCH] Fixed docs --- src/data/pokeball.ts | 2 +- src/modifier/modifier-type.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/pokeball.ts b/src/data/pokeball.ts index 1e271a719f8..a2d45e8636a 100644 --- a/src/data/pokeball.ts +++ b/src/data/pokeball.ts @@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string { return ret; } -export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number { +export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon | null, getBoostedDescription?: boolean): number { const pokemon = enemyPokemon ?? null; const description = getBoostedDescription ?? false; switch (type) { diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 42183148b85..3e1012e13fb 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -181,7 +181,7 @@ class AddPokeballModifierType extends ModifierType { } getDescription(scene: BattleScene): string { - let catchRate: String; + let catchRate: String = ""; if (this.pokeballType === PokeballType.ROGUE_BALL) { catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", { "normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),