mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Change IntegerHolder to NumberHolder
This commit is contained in:
parent
fe41a1940a
commit
c9f6b03ba0
@ -1,4 +1,4 @@
|
||||
import { IntegerHolder } from "#app/utils";
|
||||
import { NumberHolder } from "#app/utils";
|
||||
import { PokeballType } from "#enums/pokeball";
|
||||
import BattleScene from "../battle-scene";
|
||||
import i18next from "i18next";
|
||||
@ -92,7 +92,7 @@ export function getPokeballTintColor(type: PokeballType): number {
|
||||
*/
|
||||
export function getCriticalCaptureChance(scene: BattleScene, modifiedCatchRate: number): number {
|
||||
const dexCount = scene.gameData.getSpeciesCount(d => !!d.caughtAttr);
|
||||
const catchingCharmMultiplier = new IntegerHolder(1);
|
||||
const catchingCharmMultiplier = new NumberHolder(1);
|
||||
//scene.findModifier(m => m instanceof CriticalCaptureBoostModifier)?.apply(catchingCharmMultiplier);
|
||||
const dexMultiplier = dexCount > 600 ? 2.5
|
||||
: dexCount > 450 ? 2
|
||||
|
Loading…
Reference in New Issue
Block a user