mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-03 16:38:23 +00:00
Starting change on rogue balls for extra catch rate for tinted pokeball pokemon
This commit is contained in:
parent
c902369eed
commit
dc2559562d
@ -1,4 +1,5 @@
|
|||||||
import { PokeballType } from "#enums/pokeball";
|
import { PokeballType } from "#enums/pokeball";
|
||||||
|
import Pokemon from "../field/pokemon";
|
||||||
import BattleScene from "../battle-scene";
|
import BattleScene from "../battle-scene";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
|
||||||
@ -48,7 +49,8 @@ export function getPokeballName(type: PokeballType): string {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPokeballCatchMultiplier(type: PokeballType): number {
|
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon): number {
|
||||||
|
const pokemon = enemyPokemon ?? null;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case PokeballType.POKEBALL:
|
case PokeballType.POKEBALL:
|
||||||
return 1;
|
return 1;
|
||||||
@ -57,6 +59,7 @@ export function getPokeballCatchMultiplier(type: PokeballType): number {
|
|||||||
case PokeballType.ULTRA_BALL:
|
case PokeballType.ULTRA_BALL:
|
||||||
return 2;
|
return 2;
|
||||||
case PokeballType.ROGUE_BALL:
|
case PokeballType.ROGUE_BALL:
|
||||||
|
console.log(pokemon);
|
||||||
return 3;
|
return 3;
|
||||||
case PokeballType.MASTER_BALL:
|
case PokeballType.MASTER_BALL:
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user