mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-08 09:15:44 +00:00
Updated as per comment
This commit is contained in:
parent
c62ddc2fe5
commit
09cfdf6f7f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user