More FloatMath -> MathHelper from merge.

This commit is contained in:
Pieter-Jan Briers
2020-08-20 20:34:32 +02:00
parent bf60a4e9fc
commit 8a2530e7a0
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ namespace Content.Server.AI.Utility.Considerations
// Previously we used a makeupvalue method although the geometric mean is less punishing for more considerations
var considerationsCount = context.GetState<ConsiderationState>().GetValue();
var adjustedScore = MathF.Pow(score, 1 / (float) considerationsCount);
return FloatMath.Clamp(adjustedScore, 0.0f, 1.0f);
return MathHelper.Clamp(adjustedScore, 0.0f, 1.0f);
}
[Pure]