mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Use max crit catch dex multiplier in daily runs
This commit is contained in:
parent
8fb01bd2c0
commit
2a06d6dce5
@ -91,13 +91,13 @@ export function getPokeballTintColor(type: PokeballType): number {
|
|||||||
* @returns the chance of getting a critical capture, out of 256
|
* @returns the chance of getting a critical capture, out of 256
|
||||||
*/
|
*/
|
||||||
export function getCriticalCaptureChance(scene: BattleScene, modifiedCatchRate: number): number {
|
export function getCriticalCaptureChance(scene: BattleScene, modifiedCatchRate: number): number {
|
||||||
if (scene.gameMode.isDaily || scene.gameMode.isFreshStartChallenge()) {
|
if (scene.gameMode.isFreshStartChallenge()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
const dexCount = scene.gameData.getSpeciesCount(d => !!d.caughtAttr);
|
const dexCount = scene.gameData.getSpeciesCount(d => !!d.caughtAttr);
|
||||||
const catchingCharmMultiplier = new NumberHolder(1);
|
const catchingCharmMultiplier = new NumberHolder(1);
|
||||||
//scene.findModifier(m => m instanceof CriticalCatchChanceBoosterModifier)?.apply(catchingCharmMultiplier);
|
//scene.findModifier(m => m instanceof CriticalCatchChanceBoosterModifier)?.apply(catchingCharmMultiplier);
|
||||||
const dexMultiplier = dexCount > 800 ? 2.5
|
const dexMultiplier = scene.gameMode.isDaily || dexCount > 800 ? 2.5
|
||||||
: dexCount > 600 ? 2
|
: dexCount > 600 ? 2
|
||||||
: dexCount > 400 ? 1.5
|
: dexCount > 400 ? 1.5
|
||||||
: dexCount > 200 ? 1
|
: dexCount > 200 ? 1
|
||||||
|
Loading…
Reference in New Issue
Block a user