Updated as per comment

This commit is contained in:
Opaque02 2024-09-18 10:19:16 +10:00
parent c62ddc2fe5
commit 09cfdf6f7f
1 changed files with 1 additions and 3 deletions

View File

@ -50,8 +50,6 @@ export function getPokeballName(type: PokeballType): string {
} }
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number { export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number {
const pokemon = enemyPokemon ?? null;
const description = getBoostedDescription ?? false;
switch (type) { switch (type) {
case PokeballType.POKEBALL: case PokeballType.POKEBALL:
return 1; 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) /* 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) * 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 5;
} }
return 3; return 3;