From 2e618b613fc494e4f1c156f21746ffde9b60f138 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sun, 14 Jun 2026 19:05:52 -0400 Subject: [PATCH] zenno/lib/race: constrain poskeep chances to hundredths --- zenno/src/lib/race.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /**