Starting change on rogue balls for extra catch rate for tinted pokeball pokemon

This commit is contained in:
Opaque02 2024-09-06 01:06:29 +10:00
parent c902369eed
commit dc2559562d

View File

@ -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;