mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-02 11:46:11 +00:00
Updated docs v2
This commit is contained in:
parent
dc24233144
commit
ee26b41504
@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string {
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon | null, getBoostedDescription?: boolean): number {
|
||||
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number {
|
||||
const pokemon = enemyPokemon ?? null;
|
||||
const description = getBoostedDescription ?? false;
|
||||
switch (type) {
|
||||
|
@ -185,7 +185,7 @@ class AddPokeballModifierType extends ModifierType {
|
||||
if (this.pokeballType === PokeballType.ROGUE_BALL) {
|
||||
catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", {
|
||||
"normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),
|
||||
"boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, null, true),
|
||||
"boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, undefined, true),
|
||||
});
|
||||
} else if (this.pokeballType !== PokeballType.MASTER_BALL) {
|
||||
catchRate = `${getPokeballCatchMultiplier(this.pokeballType)}x`;
|
||||
|
Loading…
Reference in New Issue
Block a user