From ee26b41504b8b74615128d0ca918d9e475b8e78b Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:36:18 +1000 Subject: [PATCH] Updated docs v2 --- 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 a2d45e8636a..1e271a719f8 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 | null, getBoostedDescription?: boolean): number { +export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, 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 3e1012e13fb..36bf33858af 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -185,7 +185,7 @@ class AddPokeballModifierType extends ModifierType { if (this.pokeballType === PokeballType.ROGUE_BALL) { catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", { "normalCatchRate": getPokeballCatchMultiplier(this.pokeballType), - "boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, null, true), + "boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, undefined, true), }); } else if (this.pokeballType !== PokeballType.MASTER_BALL) { catchRate = `${getPokeballCatchMultiplier(this.pokeballType)}x`;