mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Disable critical captures in daily and fresh start runs
This commit is contained in:
parent
7a17a98ae2
commit
d245a0e214
@ -91,6 +91,9 @@ 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()) {
|
||||||
|
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 CriticalCaptureBoostModifier)?.apply(catchingCharmMultiplier);
|
//scene.findModifier(m => m instanceof CriticalCaptureBoostModifier)?.apply(catchingCharmMultiplier);
|
||||||
|
Loading…
Reference in New Issue
Block a user