diff --git a/zenno/src/lib/race.ts b/zenno/src/lib/race.ts index c179051..601694a 100644 --- a/zenno/src/lib/race.ts +++ b/zenno/src/lib/race.ts @@ -537,7 +537,7 @@ export function downhillAccelEnterChance(witStat: number): number { * @returns Probability each eligible tick to enter speed-up or overtake mode */ export function frontModeEnterChance(witStat: number): number { - return 0.2 * math.log10(witStat) - 0.2; + return Math.ceil(20 * math.log10(witStat * 0.1)) / 100; } /** @@ -546,7 +546,7 @@ export function frontModeEnterChance(witStat: number): number { * @returns Probability each eligible tick to enter pace-up mode */ export function paceUpEnterChance(witStat: number): number { - return 0.15 * math.log10(witStat) - 0.15; + return Math.ceil(15 * math.log10(witStat * 0.1)) / 100; } /**