Lower shiny charm rate boost

pull/2/head
Flashfyre 2023-07-05 13:53:28 -04:00
parent f2c35e36ef
commit 4e253862fc
1 changed files with 2 additions and 2 deletions

View File

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