From 4e253862fc9794f3fc76feee7b250b1d397db03a Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 5 Jul 2023 13:53:28 -0400 Subject: [PATCH] Lower shiny charm rate boost --- src/modifier/modifier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 980a401b305..09614f01027 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -1041,13 +1041,13 @@ export class ShinyRateBoosterModifier extends PersistentModifier { } apply(args: any[]): boolean { - (args[0] as Utils.IntegerHolder).value = Math.pow((args[0] as Utils.IntegerHolder).value * 0.5, this.getStackCount() + 1); + (args[0] as Utils.IntegerHolder).value = Math.floor(Math.pow((args[0] as Utils.IntegerHolder).value * 0.5, Math.sqrt(this.getStackCount()) + 1)); return true; } getMaxStackCount(): integer { - return 4; + return 5; } }