From 64c91cd9c4afc798fbb410eecc10ecc14af49eb3 Mon Sep 17 00:00:00 2001 From: Opaque02 <66582645+Opaque02@users.noreply.github.com> Date: Sat, 26 Oct 2024 10:46:45 +1000 Subject: [PATCH] Fixing linters --- src/data/pokeball.ts | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/data/pokeball.ts b/src/data/pokeball.ts index 6c2060e0606..ea1cb25a961 100644 --- a/src/data/pokeball.ts +++ b/src/data/pokeball.ts @@ -51,24 +51,24 @@ export function getPokeballName(type: PokeballType): string { export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number { switch (type) { - case PokeballType.POKEBALL: - return 1; - case PokeballType.GREAT_BALL: - return 1.5; - case PokeballType.ULTRA_BALL: - return 2; - case PokeballType.ROGUE_BALL: - /* 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) + case PokeballType.POKEBALL: + return 1; + case PokeballType.GREAT_BALL: + return 1.5; + case PokeballType.ULTRA_BALL: + return 2; + case PokeballType.ROGUE_BALL: + /* 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 (enemyPokemon?.isTintedPokeball() || getBoostedDescription) { - return 5; - } - return 3; - case PokeballType.MASTER_BALL: - return -1; - case PokeballType.LUXURY_BALL: - return 1; + if (enemyPokemon?.isTintedPokeball() || getBoostedDescription) { + return 5; + } + return 3; + case PokeballType.MASTER_BALL: + return -1; + case PokeballType.LUXURY_BALL: + return 1; } }