mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
Fixing linters
This commit is contained in:
parent
1c019d88cd
commit
64c91cd9c4
@ -51,24 +51,24 @@ 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 {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case PokeballType.POKEBALL:
|
case PokeballType.POKEBALL:
|
||||||
return 1;
|
return 1;
|
||||||
case PokeballType.GREAT_BALL:
|
case PokeballType.GREAT_BALL:
|
||||||
return 1.5;
|
return 1.5;
|
||||||
case PokeballType.ULTRA_BALL:
|
case PokeballType.ULTRA_BALL:
|
||||||
return 2;
|
return 2;
|
||||||
case PokeballType.ROGUE_BALL:
|
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)
|
/* 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 (enemyPokemon?.isTintedPokeball() || getBoostedDescription) {
|
if (enemyPokemon?.isTintedPokeball() || getBoostedDescription) {
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
return 3;
|
return 3;
|
||||||
case PokeballType.MASTER_BALL:
|
case PokeballType.MASTER_BALL:
|
||||||
return -1;
|
return -1;
|
||||||
case PokeballType.LUXURY_BALL:
|
case PokeballType.LUXURY_BALL:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user