From 09cfdf6f7f2d55a298517393dd28e96e33ff9cdd Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:19:16 +1000 Subject: [PATCH] Updated as per comment --- src/data/pokeball.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data/pokeball.ts b/src/data/pokeball.ts index 1e271a719f8..c021e25af53 100644 --- a/src/data/pokeball.ts +++ b/src/data/pokeball.ts @@ -50,8 +50,6 @@ export function getPokeballName(type: PokeballType): string { } export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number { - const pokemon = enemyPokemon ?? null; - const description = getBoostedDescription ?? false; switch (type) { case PokeballType.POKEBALL: return 1; @@ -63,7 +61,7 @@ export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Po /* making rogue balls have a higher chance to catch pokemon if they have a tinted pokeball (i.e. at least one thing is new for them) * you can also get the boosted type for a description (i.e. for modifier-type) */ - if (pokemon?.isTintedPokeball() || description) { + if (enemyPokemon?.isTintedPokeball() || getBoostedDescription) { return 5; } return 3;