zenno/lib/race: constrain poskeep chances to hundredths

This commit is contained in:
2026-06-14 19:05:52 -04:00
parent cc2b5fcfcb
commit 2e618b613f
+2 -2
View File
@@ -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;
}
/**