mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-03 04:06:09 +00:00
Fixed docs
This commit is contained in:
parent
2c6cd55677
commit
dc24233144
@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string {
|
||||
return ret;
|
||||
}
|
||||
|
||||
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number {
|
||||
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon | null, getBoostedDescription?: boolean): number {
|
||||
const pokemon = enemyPokemon ?? null;
|
||||
const description = getBoostedDescription ?? false;
|
||||
switch (type) {
|
||||
|
@ -181,7 +181,7 @@ class AddPokeballModifierType extends ModifierType {
|
||||
}
|
||||
|
||||
getDescription(scene: BattleScene): string {
|
||||
let catchRate: String;
|
||||
let catchRate: String = "";
|
||||
if (this.pokeballType === PokeballType.ROGUE_BALL) {
|
||||
catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", {
|
||||
"normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),
|
||||
|
Loading…
Reference in New Issue
Block a user