zenno/lib/race: constrain poskeep chances to hundredths
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user