Fix shiny odds not working properly

pull/2/head
Flashfyre 2023-10-28 22:08:06 -04:00
parent e0a63a9ed6
commit e3368b79e5
1 changed files with 2 additions and 2 deletions

View File

@ -1061,13 +1061,13 @@ export class ShinyRateBoosterModifier extends PersistentModifier {
}
apply(args: any[]): boolean {
(args[0] as Utils.IntegerHolder).value *= Math.pow(2, 5 - this.getStackCount());
(args[0] as Utils.IntegerHolder).value /= Math.pow(2, -3 - this.getStackCount());
return true;
}
getMaxStackCount(): integer {
return 5;
return 4;
}
}